.class public Ll2/a;
.super Ll2/b;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ll2/a$a;
    }
.end annotation


# instance fields
.field public A:J

.field public volatile B:J

.field public volatile C:J

.field public w:J

.field public x:Ljava/net/URL;

.field public volatile y:J

.field public z:Lw2/c;


# direct methods
.method public constructor <init>()V
    .registers 3

    invoke-direct {p0}, Ll2/b;-><init>()V

    const-wide/32 v0, 0xea60

    iput-wide v0, p0, Ll2/a;->w:J

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Ll2/a;->A:J

    const-wide/16 v0, 0xf

    iput-wide v0, p0, Ll2/a;->B:J

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Ll2/a;->C:J

    return-void
.end method


# virtual methods
.method public A(Lta/e;Lb2/c;Lb2/b;Ljava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)I
    .registers 15

    .line 1
    iget-boolean p1, p0, Ll2/b;->v:Z

    const/4 p2, 0x2

    if-nez p1, :cond_6

    return p2

    .line 2
    :cond_6
    iget-wide p3, p0, Ll2/a;->A:J

    const-wide/16 p5, 0x1

    add-long v0, p3, p5

    iput-wide v0, p0, Ll2/a;->A:J

    iget-wide v0, p0, Ll2/a;->B:J

    and-long/2addr p3, v0

    iget-wide v0, p0, Ll2/a;->B:J

    cmp-long p1, p3, v0

    if-eqz p1, :cond_18

    return p2

    :cond_18
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide p3

    iget-object p1, p0, Ll2/a;->z:Lw2/c;

    monitor-enter p1

    .line 3
    :try_start_1f
    iget-wide v0, p0, Ll2/a;->C:J

    sub-long v0, p3, v0

    iput-wide p3, p0, Ll2/a;->C:J

    const-wide/16 v2, 0x64

    cmp-long v2, v0, v2

    const/4 v3, 0x1

    if-gez v2, :cond_3a

    iget-wide v4, p0, Ll2/a;->B:J

    const-wide/32 v6, 0xffff

    cmp-long v2, v4, v6

    if-gez v2, :cond_3a

    iget-wide v0, p0, Ll2/a;->B:J

    shl-long/2addr v0, v3

    or-long/2addr p5, v0

    goto :goto_43

    :cond_3a
    const-wide/16 p5, 0x320

    cmp-long p5, v0, p5

    if-lez p5, :cond_45

    iget-wide p5, p0, Ll2/a;->B:J

    ushr-long/2addr p5, p2

    :goto_43
    iput-wide p5, p0, Ll2/a;->B:J

    .line 4
    :cond_45
    iget-wide p5, p0, Ll2/a;->y:J

    cmp-long p5, p3, p5

    const/4 p6, 0x0

    if-ltz p5, :cond_7c

    .line 5
    iget-wide v0, p0, Ll2/a;->w:J

    add-long/2addr p3, v0

    iput-wide p3, p0, Ll2/a;->y:J

    .line 6
    iget-object p3, p0, Ll2/a;->z:Lw2/c;

    .line 7
    iget-object p4, p3, Lw2/c;->w:Ljava/util/List;

    invoke-interface {p4}, Ljava/util/List;->size()I

    move-result p4

    move p5, p6

    :goto_5a
    if-ge p5, p4, :cond_7c

    iget-object v0, p3, Lw2/c;->x:Ljava/util/List;

    invoke-interface {v0, p5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iget-object v2, p3, Lw2/c;->w:Ljava/util/List;

    invoke-interface {v2, p5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/io/File;

    invoke-virtual {v2}, Ljava/io/File;->lastModified()J

    move-result-wide v4

    cmp-long v0, v0, v4

    if-eqz v0, :cond_79

    goto :goto_7d

    :cond_79
    add-int/lit8 p5, p5, 0x1

    goto :goto_5a

    :cond_7c
    move v3, p6

    :goto_7d
    if-eqz v3, :cond_89

    const-wide p3, 0x7fffffffffffffffL

    .line 8
    iput-wide p3, p0, Ll2/a;->y:J

    .line 9
    invoke-virtual {p0}, Ll2/a;->B()V

    :cond_89
    monitor-exit p1

    return p2

    :catchall_8b
    move-exception p2

    monitor-exit p1
    :try_end_8d
    .catchall {:try_start_1f .. :try_end_8d} :catchall_8b

    throw p2
.end method

.method public B()V
    .registers 4

    const-string v0, "Detected change in ["

    invoke-static {v0}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Ll2/a;->z:Lw2/c;

    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 1
    new-instance v2, Ljava/util/ArrayList;

    iget-object v1, v1, Lw2/c;->w:Ljava/util/List;

    invoke-direct {v2, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 2
    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "]"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lc3/d;->u(Ljava/lang/String;)V

    iget-object v0, p0, Lc3/d;->t:Ln2/e;

    invoke-interface {v0}, Ln2/e;->b()Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    new-instance v1, Ll2/a$a;

    invoke-direct {v1, p0}, Ll2/a$a;-><init>(Ll2/a;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;

    return-void
.end method

.method public start()V
    .registers 7

    iget-object v0, p0, Lc3/d;->t:Ln2/e;

    invoke-static {v0}, Lx2/a;->c(Ln2/e;)Lw2/c;

    move-result-object v0

    iput-object v0, p0, Ll2/a;->z:Lw2/c;

    if-eqz v0, :cond_57

    .line 1
    iget-object v1, v0, Lw2/c;->v:Ljava/net/URL;

    .line 2
    iput-object v1, p0, Ll2/a;->x:Ljava/net/URL;

    if-nez v1, :cond_16

    const-string v0, "Due to missing top level configuration file, automatic reconfiguration is impossible."

    invoke-virtual {p0, v0}, Lc3/d;->w(Ljava/lang/String;)V

    return-void

    .line 3
    :cond_16
    new-instance v1, Ljava/util/ArrayList;

    iget-object v0, v0, Lw2/c;->w:Ljava/util/List;

    invoke-direct {v1, v0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 4
    iget-wide v2, p0, Ll2/a;->w:J

    const-wide/16 v4, 0x3e8

    div-long/2addr v2, v4

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Will scan for changes in ["

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, "] every "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, " seconds. "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lc3/d;->u(Ljava/lang/String;)V

    iget-object v0, p0, Ll2/a;->z:Lw2/c;

    monitor-enter v0

    :try_start_46
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    .line 5
    iget-wide v3, p0, Ll2/a;->w:J

    add-long/2addr v1, v3

    iput-wide v1, p0, Ll2/a;->y:J

    .line 6
    monitor-exit v0
    :try_end_50
    .catchall {:try_start_46 .. :try_end_50} :catchall_54

    const/4 v0, 0x1

    .line 7
    iput-boolean v0, p0, Ll2/b;->v:Z

    goto :goto_5c

    :catchall_54
    move-exception v1

    .line 8
    :try_start_55
    monitor-exit v0
    :try_end_56
    .catchall {:try_start_55 .. :try_end_56} :catchall_54

    throw v1

    :cond_57
    const-string v0, "Empty ConfigurationWatchList in context"

    invoke-virtual {p0, v0}, Lc3/d;->w(Ljava/lang/String;)V

    :goto_5c
    return-void
.end method

.method public toString()Ljava/lang/String;
    .registers 4

    const-string v0, "ReconfigureOnChangeFilter{invocationCounter="

    invoke-static {v0}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-wide v1, p0, Ll2/a;->A:J

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const/16 v1, 0x7d

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
