.class public Ld3/c;
.super Lc3/d;
.source ""

# interfaces
.implements Ld3/f;
.implements Lc3/e;


# instance fields
.field public v:Z

.field public w:J


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

    .line 1
    invoke-direct {p0}, Lc3/d;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Ld3/c;->v:Z

    const-wide/16 v0, 0x12c

    iput-wide v0, p0, Ld3/c;->w:J

    return-void
.end method

.method public static A(Ln2/e;)V
    .registers 6

    new-instance v0, Ld3/c;

    invoke-direct {v0}, Ld3/c;-><init>()V

    invoke-virtual {v0, p0}, Lc3/d;->k(Ln2/e;)V

    invoke-interface {p0}, Ln2/e;->d()Ln2/d;

    move-result-object v1

    .line 1
    invoke-virtual {v1}, Ln2/d;->g()Ljava/util/List;

    move-result-object v2

    check-cast v2, Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_16
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_4c

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ld3/f;

    invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_16

    new-instance v2, Ld3/g;

    const-string v4, "A previous listener of type ["

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

    move-result-object v4

    invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

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

    const-string v3, "] has been already registered. Skipping double registration."

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

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

    move-result-object v3

    invoke-direct {v2, v3, p0}, Ld3/g;-><init>(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-virtual {v1, v2}, Ln2/d;->a(Ld3/d;)V

    const/4 p0, 0x0

    goto :goto_50

    :cond_4c
    invoke-virtual {v1, v0}, Ln2/d;->b(Ld3/f;)V

    const/4 p0, 0x1

    :goto_50
    if-eqz p0, :cond_55

    .line 2
    invoke-virtual {v0}, Ld3/c;->start()V

    :cond_55
    return-void
.end method


# virtual methods
.method public final B(Ld3/d;)V
    .registers 4

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, ""

    invoke-static {v0, v1, p1}, Lf3/i;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ld3/d;)V

    .line 2
    sget-object p1, Ljava/lang/System;->out:Ljava/io/PrintStream;

    .line 3
    invoke-virtual {p1, v0}, Ljava/io/PrintStream;->print(Ljava/lang/Object;)V

    return-void
.end method

.method public final C()V
    .registers 9

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

    if-nez v0, :cond_5

    goto :goto_39

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

    move-result-wide v0

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

    invoke-interface {v2}, Ln2/e;->d()Ln2/d;

    move-result-object v2

    invoke-virtual {v2}, Ln2/d;->f()Ljava/util/List;

    move-result-object v2

    check-cast v2, Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_19
    :goto_19
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_39

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ld3/d;

    invoke-interface {v3}, Ld3/d;->d()Ljava/lang/Long;

    move-result-object v4

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

    move-result-wide v4

    sub-long v4, v0, v4

    iget-wide v6, p0, Ld3/c;->w:J

    cmp-long v4, v4, v6

    if-gez v4, :cond_19

    invoke-virtual {p0, v3}, Ld3/c;->B(Ld3/d;)V

    goto :goto_19

    :cond_39
    :goto_39
    return-void
.end method

.method public j(Ld3/d;)V
    .registers 3

    .line 1
    iget-boolean v0, p0, Ld3/c;->v:Z

    if-nez v0, :cond_5

    goto :goto_8

    :cond_5
    invoke-virtual {p0, p1}, Ld3/c;->B(Ld3/d;)V

    :goto_8
    return-void
.end method

.method public n()Z
    .registers 2

    .line 1
    iget-boolean v0, p0, Ld3/c;->v:Z

    return v0
.end method

.method public start()V
    .registers 5

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Ld3/c;->v:Z

    iget-wide v0, p0, Ld3/c;->w:J

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-lez v0, :cond_e

    invoke-virtual {p0}, Ld3/c;->C()V

    :cond_e
    return-void
.end method

.method public stop()V
    .registers 2

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Ld3/c;->v:Z

    return-void
.end method
