.class public final Lca/f$d$c;
.super Ly9/a;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lca/f$d;->f(ZLca/t;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation


# instance fields
.field public final synthetic e:Lca/f$d;

.field public final synthetic f:Z

.field public final synthetic g:Lca/t;


# direct methods
.method public constructor <init>(Ljava/lang/String;ZLjava/lang/String;ZLca/f$d;ZLca/t;)V
    .registers 8

    iput-object p5, p0, Lca/f$d$c;->e:Lca/f$d;

    iput-boolean p6, p0, Lca/f$d$c;->f:Z

    iput-object p7, p0, Lca/f$d$c;->g:Lca/t;

    invoke-direct {p0, p3, p4}, Ly9/a;-><init>(Ljava/lang/String;Z)V

    return-void
.end method


# virtual methods
.method public a()J
    .registers 22

    move-object/from16 v1, p0

    iget-object v13, v1, Lca/f$d$c;->e:Lca/f$d;

    iget-boolean v9, v1, Lca/f$d$c;->f:Z

    iget-object v10, v1, Lca/f$d$c;->g:Lca/t;

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

    const-string v0, "settings"

    .line 1
    invoke-static {v10, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v14, Li9/f;

    invoke-direct {v14}, Li9/f;-><init>()V

    new-instance v15, Li9/g;

    invoke-direct {v15}, Li9/g;-><init>()V

    new-instance v0, Li9/g;

    invoke-direct {v0}, Li9/g;-><init>()V

    iget-object v2, v13, Lca/f$d;->s:Lca/f;

    .line 2
    iget-object v12, v2, Lca/f;->Q:Lca/p;

    .line 3
    monitor-enter v12

    :try_start_24
    iget-object v11, v13, Lca/f$d;->s:Lca/f;

    monitor-enter v11
    :try_end_27
    .catchall {:try_start_24 .. :try_end_27} :catchall_113

    :try_start_27
    iget-object v2, v13, Lca/f$d;->s:Lca/f;

    .line 4
    iget-object v2, v2, Lca/f;->K:Lca/t;

    if-eqz v9, :cond_2f

    move-object v3, v10

    goto :goto_3a

    .line 5
    :cond_2f
    new-instance v3, Lca/t;

    invoke-direct {v3}, Lca/t;-><init>()V

    invoke-virtual {v3, v2}, Lca/t;->b(Lca/t;)V

    invoke-virtual {v3, v10}, Lca/t;->b(Lca/t;)V

    :goto_3a
    iput-object v3, v0, Li9/g;->r:Ljava/lang/Object;

    invoke-virtual {v3}, Lca/t;->a()I

    move-result v3

    int-to-long v3, v3

    invoke-virtual {v2}, Lca/t;->a()I

    move-result v2

    int-to-long v5, v2

    sub-long/2addr v3, v5

    iput-wide v3, v14, Li9/f;->r:J

    const-wide/16 v7, 0x0

    cmp-long v2, v3, v7

    const/4 v6, 0x0

    if-eqz v2, :cond_76

    iget-object v2, v13, Lca/f$d;->s:Lca/f;

    .line 6
    iget-object v2, v2, Lca/f;->t:Ljava/util/Map;

    .line 7
    invoke-interface {v2}, Ljava/util/Map;->isEmpty()Z

    move-result v2

    if-eqz v2, :cond_5b

    goto :goto_76

    :cond_5b
    iget-object v2, v13, Lca/f$d;->s:Lca/f;

    .line 8
    iget-object v2, v2, Lca/f;->t:Ljava/util/Map;

    .line 9
    invoke-interface {v2}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v2

    new-array v3, v6, [Lca/o;

    invoke-interface {v2, v3}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v2

    if-eqz v2, :cond_6e

    check-cast v2, [Lca/o;

    goto :goto_77

    :cond_6e
    new-instance v0, Ljava/lang/NullPointerException;

    const-string v2, "null cannot be cast to non-null type kotlin.Array<T>"

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

    throw v0

    :cond_76
    :goto_76
    const/4 v2, 0x0

    :goto_77
    iput-object v2, v15, Li9/g;->r:Ljava/lang/Object;

    iget-object v2, v13, Lca/f$d;->s:Lca/f;

    iget-object v3, v0, Li9/g;->r:Ljava/lang/Object;

    check-cast v3, Lca/t;

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

    const-string v4, "<set-?>"

    .line 10
    invoke-static {v3, v4}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    iput-object v3, v2, Lca/f;->K:Lca/t;

    .line 11
    iget-object v2, v13, Lca/f$d;->s:Lca/f;

    .line 12
    iget-object v5, v2, Lca/f;->B:Ly9/c;

    .line 13
    new-instance v2, Ljava/lang/StringBuilder;

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

    iget-object v3, v13, Lca/f$d;->s:Lca/f;

    .line 14
    iget-object v3, v3, Lca/f;->u:Ljava/lang/String;

    .line 15
    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, " onSettings"

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

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

    move-result-object v16

    const/16 v17, 0x1

    new-instance v4, Lca/g;
    :try_end_a6
    .catchall {:try_start_27 .. :try_end_a6} :catchall_10a

    move-object v2, v4

    move-object/from16 v3, v16

    move-object/from16 v18, v4

    move/from16 v4, v17

    move-object/from16 v19, v5

    move-object/from16 v5, v16

    move/from16 v16, v6

    move/from16 v6, v17

    move-object v7, v13

    move-object v8, v0

    move-object/from16 v17, v11

    move-object v11, v14

    move-object/from16 v20, v12

    move-object v12, v15

    :try_start_bd
    invoke-direct/range {v2 .. v12}, Lca/g;-><init>(Ljava/lang/String;ZLjava/lang/String;ZLca/f$d;Li9/g;ZLca/t;Li9/f;Li9/g;)V

    move-object/from16 v3, v18

    move-object/from16 v2, v19

    const-wide/16 v4, 0x0

    invoke-virtual {v2, v3, v4, v5}, Ly9/c;->c(Ly9/a;J)V
    :try_end_c9
    .catchall {:try_start_bd .. :try_end_c9} :catchall_108

    :try_start_c9
    monitor-exit v17
    :try_end_ca
    .catchall {:try_start_c9 .. :try_end_ca} :catchall_111

    :try_start_ca
    iget-object v2, v13, Lca/f$d;->s:Lca/f;

    .line 16
    iget-object v2, v2, Lca/f;->Q:Lca/p;

    .line 17
    iget-object v0, v0, Li9/g;->r:Ljava/lang/Object;

    check-cast v0, Lca/t;

    invoke-virtual {v2, v0}, Lca/p;->b(Lca/t;)V
    :try_end_d5
    .catch Ljava/io/IOException; {:try_start_ca .. :try_end_d5} :catch_d6
    .catchall {:try_start_ca .. :try_end_d5} :catchall_111

    goto :goto_de

    :catch_d6
    move-exception v0

    :try_start_d7
    iget-object v2, v13, Lca/f$d;->s:Lca/f;

    .line 18
    sget-object v3, Lca/b;->t:Lca/b;

    invoke-virtual {v2, v3, v3, v0}, Lca/f;->b(Lca/b;Lca/b;Ljava/io/IOException;)V
    :try_end_de
    .catchall {:try_start_d7 .. :try_end_de} :catchall_111

    .line 19
    :goto_de
    monitor-exit v20

    iget-object v0, v15, Li9/g;->r:Ljava/lang/Object;

    check-cast v0, [Lca/o;

    if-eqz v0, :cond_105

    invoke-static {v0}, Lx/e;->d(Ljava/lang/Object;)V

    array-length v2, v0

    move/from16 v6, v16

    :goto_eb
    if-ge v6, v2, :cond_105

    aget-object v3, v0, v6

    monitor-enter v3

    :try_start_f0
    iget-wide v7, v14, Li9/f;->r:J

    .line 20
    iget-wide v9, v3, Lca/o;->d:J

    add-long/2addr v9, v7

    iput-wide v9, v3, Lca/o;->d:J

    cmp-long v7, v7, v4

    if-lez v7, :cond_fe

    invoke-virtual {v3}, Ljava/lang/Object;->notifyAll()V
    :try_end_fe
    .catchall {:try_start_f0 .. :try_end_fe} :catchall_102

    .line 21
    :cond_fe
    monitor-exit v3

    add-int/lit8 v6, v6, 0x1

    goto :goto_eb

    :catchall_102
    move-exception v0

    monitor-exit v3

    throw v0

    :cond_105
    const-wide/16 v2, -0x1

    return-wide v2

    :catchall_108
    move-exception v0

    goto :goto_10f

    :catchall_10a
    move-exception v0

    move-object/from16 v17, v11

    move-object/from16 v20, v12

    :goto_10f
    :try_start_10f
    monitor-exit v17

    throw v0
    :try_end_111
    .catchall {:try_start_10f .. :try_end_111} :catchall_111

    :catchall_111
    move-exception v0

    goto :goto_116

    :catchall_113
    move-exception v0

    move-object/from16 v20, v12

    :goto_116
    monitor-exit v20

    throw v0
.end method
