.class public Lv1/e;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ljava/lang/Runnable;


# static fields
.field public static final t:Ljava/lang/String;


# instance fields
.field public final r:Lm1/f;

.field public final s:Lm1/b;


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    const-string v0, "EnqueueRunnable"

    invoke-static {v0}, Ll1/i;->e(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lv1/e;->t:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Lm1/f;)V
    .registers 2

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

    iput-object p1, p0, Lv1/e;->r:Lm1/f;

    new-instance p1, Lm1/b;

    invoke-direct {p1}, Lm1/b;-><init>()V

    iput-object p1, p0, Lv1/e;->s:Lm1/b;

    return-void
.end method

.method public static a(Lm1/f;)Z
    .registers 27

    move-object/from16 v0, p0

    .line 1
    iget-object v1, v0, Lm1/f;->g:Ljava/util/List;

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz v1, :cond_41

    .line 2
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    move v4, v2

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

    move-result v5

    if-eqz v5, :cond_42

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

    move-result-object v5

    check-cast v5, Lm1/f;

    .line 3
    iget-boolean v6, v5, Lm1/f;->h:Z

    if-nez v6, :cond_23

    .line 4
    invoke-static {v5}, Lv1/e;->a(Lm1/f;)Z

    move-result v5

    or-int/2addr v4, v5

    goto :goto_d

    :cond_23
    invoke-static {}, Ll1/i;->c()Ll1/i;

    move-result-object v6

    sget-object v7, Lv1/e;->t:Ljava/lang/String;

    new-array v8, v3, [Ljava/lang/Object;

    .line 5
    iget-object v5, v5, Lm1/f;->e:Ljava/util/List;

    const-string v9, ", "

    .line 6
    invoke-static {v9, v5}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v8, v2

    const-string v5, "Already enqueued work ids (%s)."

    invoke-static {v5, v8}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    new-array v8, v2, [Ljava/lang/Throwable;

    invoke-virtual {v6, v7, v5, v8}, Ll1/i;->f(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V

    goto :goto_d

    :cond_41
    move v4, v2

    .line 7
    :cond_42
    invoke-static/range {p0 .. p0}, Lm1/f;->c(Lm1/f;)Ljava/util/Set;

    move-result-object v1

    .line 8
    iget-object v5, v0, Lm1/f;->a:Lm1/j;

    .line 9
    iget-object v6, v0, Lm1/f;->d:Ljava/util/List;

    new-array v7, v2, [Ljava/lang/String;

    .line 10
    invoke-interface {v1, v7}, Ljava/util/Set;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Ljava/lang/String;

    .line 11
    iget-object v7, v0, Lm1/f;->b:Ljava/lang/String;

    .line 12
    iget v8, v0, Lm1/f;->c:I

    .line 13
    sget-object v9, Landroidx/work/f;->r:Landroidx/work/f;

    sget-object v11, Landroidx/work/f;->t:Landroidx/work/f;

    sget-object v12, Landroidx/work/f;->w:Landroidx/work/f;

    sget-object v13, Landroidx/work/f;->u:Landroidx/work/f;

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

    move-result-wide v14

    .line 14
    iget-object v10, v5, Lm1/j;->c:Landroidx/work/impl/WorkDatabase;

    if-eqz v1, :cond_6b

    .line 15
    array-length v2, v1

    if-lez v2, :cond_6b

    move v2, v3

    goto :goto_6c

    :cond_6b
    const/4 v2, 0x0

    :goto_6c
    if-eqz v2, :cond_c4

    array-length v3, v1

    move-wide/from16 v18, v14

    const/4 v14, 0x0

    const/4 v15, 0x0

    const/16 v20, 0x0

    const/16 v21, 0x1

    :goto_77
    if-ge v14, v3, :cond_c1

    move/from16 v22, v3

    aget-object v3, v1, v14

    invoke-virtual {v10}, Landroidx/work/impl/WorkDatabase;->q()Lu1/q;

    move-result-object v23

    move/from16 v24, v15

    move-object/from16 v15, v23

    check-cast v15, Lu1/r;

    invoke-virtual {v15, v3}, Lu1/r;->i(Ljava/lang/String;)Lu1/p;

    move-result-object v15

    if-nez v15, :cond_a6

    invoke-static {}, Ll1/i;->c()Ll1/i;

    move-result-object v1

    sget-object v2, Lv1/e;->t:Ljava/lang/String;

    const/4 v5, 0x1

    new-array v6, v5, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v3, v6, v5

    const-string v3, "Prerequisite %s doesn\'t exist; not enqueuing"

    invoke-static {v3, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    new-array v6, v5, [Ljava/lang/Throwable;

    invoke-virtual {v1, v2, v3, v6}, Ll1/i;->b(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V

    goto/16 :goto_110

    :cond_a6
    iget-object v3, v15, Lu1/p;->b:Landroidx/work/f;

    if-ne v3, v11, :cond_ac

    const/4 v15, 0x1

    goto :goto_ad

    :cond_ac
    const/4 v15, 0x0

    :goto_ad
    and-int v21, v21, v15

    if-ne v3, v13, :cond_b6

    move/from16 v15, v24

    const/16 v20, 0x1

    goto :goto_bc

    :cond_b6
    if-ne v3, v12, :cond_ba

    const/4 v15, 0x1

    goto :goto_bc

    :cond_ba
    move/from16 v15, v24

    :goto_bc
    add-int/lit8 v14, v14, 0x1

    move/from16 v3, v22

    goto :goto_77

    :cond_c1
    move/from16 v24, v15

    goto :goto_cb

    :cond_c4
    move-wide/from16 v18, v14

    const/4 v15, 0x0

    const/16 v20, 0x0

    const/16 v21, 0x1

    :goto_cb
    invoke-static {v7}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    const/4 v14, 0x1

    xor-int/2addr v3, v14

    if-eqz v3, :cond_d7

    if-nez v2, :cond_d7

    const/4 v14, 0x1

    goto :goto_d8

    :cond_d7
    const/4 v14, 0x0

    :goto_d8
    if-eqz v14, :cond_212

    invoke-virtual {v10}, Landroidx/work/impl/WorkDatabase;->q()Lu1/q;

    move-result-object v14

    check-cast v14, Lu1/r;

    invoke-virtual {v14, v7}, Lu1/r;->j(Ljava/lang/String;)Ljava/util/List;

    move-result-object v14

    check-cast v14, Ljava/util/ArrayList;

    invoke-virtual {v14}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v22

    if-nez v22, :cond_212

    move/from16 v22, v2

    const/4 v2, 0x3

    if-eq v8, v2, :cond_145

    const/4 v2, 0x4

    if-ne v8, v2, :cond_f5

    goto :goto_145

    :cond_f5
    const/4 v2, 0x2

    if-ne v8, v2, :cond_115

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

    move-result-object v2

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

    move-result v8

    if-eqz v8, :cond_115

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

    move-result-object v8

    check-cast v8, Lu1/p$a;

    iget-object v8, v8, Lu1/p$a;->b:Landroidx/work/f;

    if-eq v8, v9, :cond_110

    sget-object v11, Landroidx/work/f;->s:Landroidx/work/f;

    if-ne v8, v11, :cond_fc

    :cond_110
    :goto_110
    move/from16 v24, v4

    const/4 v2, 0x0

    goto/16 :goto_33c

    .line 16
    :cond_115
    new-instance v2, Lv1/c;

    const/4 v8, 0x0

    invoke-direct {v2, v5, v7, v8}, Lv1/c;-><init>(Lm1/j;Ljava/lang/String;Z)V

    .line 17
    invoke-virtual {v2}, Lv1/d;->run()V

    invoke-virtual {v10}, Landroidx/work/impl/WorkDatabase;->q()Lu1/q;

    move-result-object v2

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

    move-result-object v5

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

    move-result v8

    if-eqz v8, :cond_13b

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

    move-result-object v8

    check-cast v8, Lu1/p$a;

    iget-object v8, v8, Lu1/p$a;->a:Ljava/lang/String;

    move-object v11, v2

    check-cast v11, Lu1/r;

    invoke-virtual {v11, v8}, Lu1/r;->a(Ljava/lang/String;)V

    goto :goto_126

    :cond_13b
    move/from16 v25, v3

    move/from16 v24, v4

    move/from16 v2, v22

    const/4 v4, 0x0

    const/4 v5, 0x1

    goto/16 :goto_21c

    :cond_145
    :goto_145
    invoke-virtual {v10}, Landroidx/work/impl/WorkDatabase;->l()Lu1/b;

    move-result-object v2

    new-instance v5, Ljava/util/ArrayList;

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

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

    move-result-object v14

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

    move-result v22

    if-eqz v22, :cond_1cf

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

    move-result-object v22

    move-object/from16 v23, v14

    move-object/from16 v14, v22

    check-cast v14, Lu1/p$a;

    move/from16 v24, v4

    iget-object v4, v14, Lu1/p$a;->a:Ljava/lang/String;

    move-object v0, v2

    check-cast v0, Lu1/c;

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

    move-object/from16 v22, v2

    const-string v2, "SELECT COUNT(*)>0 FROM dependency WHERE prerequisite_id=?"

    move/from16 v25, v3

    const/4 v3, 0x1

    .line 18
    invoke-static {v2, v3}, Lb1/j;->e(Ljava/lang/String;I)Lb1/j;

    move-result-object v2

    if-nez v4, :cond_17d

    invoke-virtual {v2, v3}, Lb1/j;->o(I)V

    goto :goto_180

    :cond_17d
    invoke-virtual {v2, v3, v4}, Lb1/j;->p(ILjava/lang/String;)V

    :goto_180
    iget-object v3, v0, Lu1/c;->a:Lb1/h;

    invoke-virtual {v3}, Lb1/h;->b()V

    iget-object v0, v0, Lu1/c;->a:Lb1/h;

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-static {v0, v2, v4, v3}, Ld1/b;->a(Lb1/h;Le1/d;ZLandroid/os/CancellationSignal;)Landroid/database/Cursor;

    move-result-object v3

    :try_start_18d
    invoke-interface {v3}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v0

    if-eqz v0, :cond_19b

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getInt(I)I

    move-result v0
    :try_end_197
    .catchall {:try_start_18d .. :try_end_197} :catchall_1c7

    if-eqz v0, :cond_19b

    const/4 v0, 0x1

    goto :goto_19c

    :cond_19b
    move v0, v4

    :goto_19c
    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    invoke-virtual {v2}, Lb1/j;->q()V

    if-nez v0, :cond_1bc

    .line 19
    iget-object v0, v14, Lu1/p$a;->b:Landroidx/work/f;

    if-ne v0, v11, :cond_1aa

    const/4 v2, 0x1

    goto :goto_1ab

    :cond_1aa
    move v2, v4

    :goto_1ab
    and-int v2, v21, v2

    if-ne v0, v13, :cond_1b2

    const/16 v20, 0x1

    goto :goto_1b5

    :cond_1b2
    if-ne v0, v12, :cond_1b5

    const/4 v15, 0x1

    :cond_1b5
    :goto_1b5
    iget-object v0, v14, Lu1/p$a;->a:Ljava/lang/String;

    invoke-virtual {v5, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    move/from16 v21, v2

    :cond_1bc
    move-object/from16 v0, p0

    move-object/from16 v2, v22

    move-object/from16 v14, v23

    move/from16 v4, v24

    move/from16 v3, v25

    goto :goto_152

    :catchall_1c7
    move-exception v0

    .line 20
    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    invoke-virtual {v2}, Lb1/j;->q()V

    throw v0

    :cond_1cf
    move/from16 v25, v3

    move/from16 v24, v4

    const/4 v0, 0x4

    const/4 v4, 0x0

    if-ne v8, v0, :cond_204

    if-nez v15, :cond_1db

    if-eqz v20, :cond_204

    .line 21
    :cond_1db
    invoke-virtual {v10}, Landroidx/work/impl/WorkDatabase;->q()Lu1/q;

    move-result-object v0

    check-cast v0, Lu1/r;

    invoke-virtual {v0, v7}, Lu1/r;->j(Ljava/lang/String;)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

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

    move-result v3

    if-eqz v3, :cond_1fd

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

    move-result-object v3

    check-cast v3, Lu1/p$a;

    iget-object v3, v3, Lu1/p$a;->a:Ljava/lang/String;

    invoke-virtual {v0, v3}, Lu1/r;->a(Ljava/lang/String;)V

    goto :goto_1eb

    :cond_1fd
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v5

    move v15, v4

    move/from16 v20, v15

    :cond_204
    invoke-interface {v5, v1}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    move-object v1, v0

    check-cast v1, [Ljava/lang/String;

    array-length v0, v1

    if-lez v0, :cond_210

    const/4 v2, 0x1

    goto :goto_21b

    :cond_210
    move v2, v4

    goto :goto_21b

    :cond_212
    move/from16 v22, v2

    move/from16 v25, v3

    move/from16 v24, v4

    const/4 v4, 0x0

    move/from16 v2, v22

    :goto_21b
    move v5, v4

    :goto_21c
    invoke-interface {v6}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v3

    if-eqz v3, :cond_33a

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

    move-result-object v3

    check-cast v3, Ll1/p;

    .line 22
    iget-object v6, v3, Ll1/p;->b:Lu1/p;

    if-eqz v2, :cond_242

    if-nez v21, :cond_242

    if-eqz v20, :cond_238

    .line 23
    iput-object v13, v6, Lu1/p;->b:Landroidx/work/f;

    :goto_236
    move v11, v5

    goto :goto_253

    :cond_238
    if-eqz v15, :cond_23d

    iput-object v12, v6, Lu1/p;->b:Landroidx/work/f;

    goto :goto_236

    :cond_23d
    sget-object v8, Landroidx/work/f;->v:Landroidx/work/f;

    iput-object v8, v6, Lu1/p;->b:Landroidx/work/f;

    goto :goto_236

    :cond_242
    invoke-virtual {v6}, Lu1/p;->c()Z

    move-result v8

    if-nez v8, :cond_24c

    move v11, v5

    move-wide/from16 v4, v18

    goto :goto_251

    :cond_24c
    const-wide/16 v16, 0x0

    move v11, v5

    move-wide/from16 v4, v16

    :goto_251
    iput-wide v4, v6, Lu1/p;->n:J

    :goto_253
    sget v4, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v5, 0x19

    if-gt v4, v5, :cond_25c

    invoke-static {v6}, Lv1/e;->b(Lu1/p;)V

    :cond_25c
    iget-object v4, v6, Lu1/p;->b:Landroidx/work/f;

    if-ne v4, v9, :cond_262

    const/4 v5, 0x1

    goto :goto_263

    :cond_262
    move v5, v11

    :goto_263
    invoke-virtual {v10}, Landroidx/work/impl/WorkDatabase;->q()Lu1/q;

    move-result-object v4

    check-cast v4, Lu1/r;

    .line 24
    iget-object v11, v4, Lu1/r;->a:Lb1/h;

    invoke-virtual {v11}, Lb1/h;->b()V

    iget-object v11, v4, Lu1/r;->a:Lb1/h;

    invoke-virtual {v11}, Lb1/h;->c()V

    :try_start_273
    iget-object v11, v4, Lu1/r;->b:Lb1/b;

    invoke-virtual {v11, v6}, Lb1/b;->e(Ljava/lang/Object;)V

    iget-object v6, v4, Lu1/r;->a:Lb1/h;

    invoke-virtual {v6}, Lb1/h;->k()V
    :try_end_27d
    .catchall {:try_start_273 .. :try_end_27d} :catchall_333

    iget-object v4, v4, Lu1/r;->a:Lb1/h;

    invoke-virtual {v4}, Lb1/h;->g()V

    if-eqz v2, :cond_2bc

    .line 25
    array-length v4, v1

    const/4 v6, 0x0

    :goto_286
    if-ge v6, v4, :cond_2bc

    aget-object v11, v1, v6

    new-instance v14, Lu1/a;

    invoke-virtual {v3}, Ll1/p;->a()Ljava/lang/String;

    move-result-object v8

    invoke-direct {v14, v8, v11}, Lu1/a;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v10}, Landroidx/work/impl/WorkDatabase;->l()Lu1/b;

    move-result-object v8

    check-cast v8, Lu1/c;

    .line 26
    iget-object v11, v8, Lu1/c;->a:Lb1/h;

    invoke-virtual {v11}, Lb1/h;->b()V

    iget-object v11, v8, Lu1/c;->a:Lb1/h;

    invoke-virtual {v11}, Lb1/h;->c()V

    :try_start_2a3
    iget-object v11, v8, Lu1/c;->b:Lb1/b;

    invoke-virtual {v11, v14}, Lb1/b;->e(Ljava/lang/Object;)V

    iget-object v11, v8, Lu1/c;->a:Lb1/h;

    invoke-virtual {v11}, Lb1/h;->k()V
    :try_end_2ad
    .catchall {:try_start_2a3 .. :try_end_2ad} :catchall_2b5

    iget-object v8, v8, Lu1/c;->a:Lb1/h;

    invoke-virtual {v8}, Lb1/h;->g()V

    add-int/lit8 v6, v6, 0x1

    goto :goto_286

    :catchall_2b5
    move-exception v0

    iget-object v1, v8, Lu1/c;->a:Lb1/h;

    invoke-virtual {v1}, Lb1/h;->g()V

    throw v0

    .line 27
    :cond_2bc
    iget-object v4, v3, Ll1/p;->c:Ljava/util/Set;

    .line 28
    invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v4

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

    move-result v6

    if-eqz v6, :cond_2fe

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

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    invoke-virtual {v10}, Landroidx/work/impl/WorkDatabase;->r()Lu1/t;

    move-result-object v8

    new-instance v11, Lu1/s;

    invoke-virtual {v3}, Ll1/p;->a()Ljava/lang/String;

    move-result-object v14

    invoke-direct {v11, v6, v14}, Lu1/s;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    check-cast v8, Lu1/u;

    .line 29
    iget-object v6, v8, Lu1/u;->a:Lb1/h;

    invoke-virtual {v6}, Lb1/h;->b()V

    iget-object v6, v8, Lu1/u;->a:Lb1/h;

    invoke-virtual {v6}, Lb1/h;->c()V

    :try_start_2e7
    iget-object v6, v8, Lu1/u;->b:Lb1/b;

    invoke-virtual {v6, v11}, Lb1/b;->e(Ljava/lang/Object;)V

    iget-object v6, v8, Lu1/u;->a:Lb1/h;

    invoke-virtual {v6}, Lb1/h;->k()V
    :try_end_2f1
    .catchall {:try_start_2e7 .. :try_end_2f1} :catchall_2f7

    iget-object v6, v8, Lu1/u;->a:Lb1/h;

    invoke-virtual {v6}, Lb1/h;->g()V

    goto :goto_2c2

    :catchall_2f7
    move-exception v0

    iget-object v1, v8, Lu1/u;->a:Lb1/h;

    invoke-virtual {v1}, Lb1/h;->g()V

    throw v0

    :cond_2fe
    if-eqz v25, :cond_330

    .line 30
    invoke-virtual {v10}, Landroidx/work/impl/WorkDatabase;->o()Lu1/k;

    move-result-object v4

    new-instance v6, Lu1/j;

    invoke-virtual {v3}, Ll1/p;->a()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v6, v7, v3}, Lu1/j;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    check-cast v4, Lu1/l;

    .line 31
    iget-object v3, v4, Lu1/l;->a:Lb1/h;

    invoke-virtual {v3}, Lb1/h;->b()V

    iget-object v3, v4, Lu1/l;->a:Lb1/h;

    invoke-virtual {v3}, Lb1/h;->c()V

    :try_start_319
    iget-object v3, v4, Lu1/l;->b:Lb1/b;

    invoke-virtual {v3, v6}, Lb1/b;->e(Ljava/lang/Object;)V

    iget-object v3, v4, Lu1/l;->a:Lb1/h;

    invoke-virtual {v3}, Lb1/h;->k()V
    :try_end_323
    .catchall {:try_start_319 .. :try_end_323} :catchall_329

    iget-object v3, v4, Lu1/l;->a:Lb1/h;

    invoke-virtual {v3}, Lb1/h;->g()V

    goto :goto_330

    :catchall_329
    move-exception v0

    iget-object v1, v4, Lu1/l;->a:Lb1/h;

    invoke-virtual {v1}, Lb1/h;->g()V

    throw v0

    :cond_330
    :goto_330
    const/4 v4, 0x0

    goto/16 :goto_220

    :catchall_333
    move-exception v0

    .line 32
    iget-object v1, v4, Lu1/r;->a:Lb1/h;

    invoke-virtual {v1}, Lb1/h;->g()V

    throw v0

    :cond_33a
    move v11, v5

    move v2, v11

    :goto_33c
    const/4 v1, 0x1

    move-object/from16 v0, p0

    .line 33
    iput-boolean v1, v0, Lm1/f;->h:Z

    or-int v0, v24, v2

    return v0
.end method

.method public static b(Lu1/p;)V
    .registers 6

    const-class v0, Landroidx/work/impl/workers/ConstraintTrackingWorker;

    iget-object v1, p0, Lu1/p;->j:Ll1/b;

    iget-object v2, p0, Lu1/p;->c:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_37

    .line 1
    iget-boolean v3, v1, Ll1/b;->d:Z

    if-nez v3, :cond_18

    .line 2
    iget-boolean v1, v1, Ll1/b;->e:Z

    if-eqz v1, :cond_37

    .line 3
    :cond_18
    new-instance v1, Landroidx/work/c$a;

    invoke-direct {v1}, Landroidx/work/c$a;-><init>()V

    iget-object v3, p0, Lu1/p;->e:Landroidx/work/c;

    .line 4
    iget-object v3, v3, Landroidx/work/c;->a:Ljava/util/Map;

    invoke-virtual {v1, v3}, Landroidx/work/c$a;->b(Ljava/util/Map;)Landroidx/work/c$a;

    .line 5
    iget-object v3, v1, Landroidx/work/c$a;->a:Ljava/util/Map;

    const-string v4, "androidx.work.impl.workers.ConstraintTrackingWorker.ARGUMENT_CLASS_NAME"

    invoke-interface {v3, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 6
    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lu1/p;->c:Ljava/lang/String;

    invoke-virtual {v1}, Landroidx/work/c$a;->a()Landroidx/work/c;

    move-result-object v0

    iput-object v0, p0, Lu1/p;->e:Landroidx/work/c;

    :cond_37
    return-void
.end method


# virtual methods
.method public run()V
    .registers 6

    :try_start_0
    iget-object v0, p0, Lv1/e;->r:Lm1/f;

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

    .line 1
    new-instance v1, Ljava/util/HashSet;

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

    invoke-static {v0, v1}, Lm1/f;->b(Lm1/f;Ljava/util/Set;)Z

    move-result v0

    const/4 v1, 0x1

    if-nez v0, :cond_4d

    .line 2
    iget-object v0, p0, Lv1/e;->r:Lm1/f;

    .line 3
    iget-object v0, v0, Lm1/f;->a:Lm1/j;

    .line 4
    iget-object v0, v0, Lm1/j;->c:Landroidx/work/impl/WorkDatabase;

    .line 5
    invoke-virtual {v0}, Lb1/h;->c()V
    :try_end_1a
    .catchall {:try_start_0 .. :try_end_1a} :catchall_60

    :try_start_1a
    iget-object v2, p0, Lv1/e;->r:Lm1/f;

    invoke-static {v2}, Lv1/e;->a(Lm1/f;)Z

    move-result v2

    invoke-virtual {v0}, Lb1/h;->k()V
    :try_end_23
    .catchall {:try_start_1a .. :try_end_23} :catchall_48

    :try_start_23
    invoke-virtual {v0}, Lb1/h;->g()V

    if-eqz v2, :cond_40

    .line 6
    iget-object v0, p0, Lv1/e;->r:Lm1/f;

    .line 7
    iget-object v0, v0, Lm1/f;->a:Lm1/j;

    .line 8
    iget-object v0, v0, Lm1/j;->a:Landroid/content/Context;

    .line 9
    const-class v2, Landroidx/work/impl/background/systemalarm/RescheduleReceiver;

    invoke-static {v0, v2, v1}, Lv1/g;->a(Landroid/content/Context;Ljava/lang/Class;Z)V

    .line 10
    iget-object v0, p0, Lv1/e;->r:Lm1/f;

    .line 11
    iget-object v0, v0, Lm1/f;->a:Lm1/j;

    .line 12
    iget-object v1, v0, Lm1/j;->b:Landroidx/work/b;

    .line 13
    iget-object v2, v0, Lm1/j;->c:Landroidx/work/impl/WorkDatabase;

    .line 14
    iget-object v0, v0, Lm1/j;->e:Ljava/util/List;

    .line 15
    invoke-static {v1, v2, v0}, Lm1/e;->a(Landroidx/work/b;Landroidx/work/impl/WorkDatabase;Ljava/util/List;)V

    .line 16
    :cond_40
    iget-object v0, p0, Lv1/e;->s:Lm1/b;

    sget-object v1, Ll1/k;->a:Ll1/k$b$c;

    invoke-virtual {v0, v1}, Lm1/b;->a(Ll1/k$b;)V

    goto :goto_6b

    :catchall_48
    move-exception v1

    .line 17
    invoke-virtual {v0}, Lb1/h;->g()V

    throw v1

    .line 18
    :cond_4d
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v2, "WorkContinuation has cycles (%s)"

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v3, 0x0

    iget-object v4, p0, Lv1/e;->r:Lm1/f;

    aput-object v4, v1, v3

    invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

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

    throw v0
    :try_end_60
    .catchall {:try_start_23 .. :try_end_60} :catchall_60

    :catchall_60
    move-exception v0

    iget-object v1, p0, Lv1/e;->s:Lm1/b;

    new-instance v2, Ll1/k$b$a;

    invoke-direct {v2, v0}, Ll1/k$b$a;-><init>(Ljava/lang/Throwable;)V

    invoke-virtual {v1, v2}, Lm1/b;->a(Ll1/k$b;)V

    :goto_6b
    return-void
.end method
