.class public final Lu1/r;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lu1/q;


# instance fields
.field public final a:Lb1/h;

.field public final b:Lb1/b;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lb1/b<",
            "Lu1/p;",
            ">;"
        }
    .end annotation
.end field

.field public final c:Lb1/l;

.field public final d:Lb1/l;

.field public final e:Lb1/l;

.field public final f:Lb1/l;

.field public final g:Lb1/l;

.field public final h:Lb1/l;

.field public final i:Lb1/l;


# direct methods
.method public constructor <init>(Lb1/h;)V
    .registers 3

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

    iput-object p1, p0, Lu1/r;->a:Lb1/h;

    new-instance v0, Lu1/r$a;

    invoke-direct {v0, p0, p1}, Lu1/r$a;-><init>(Lu1/r;Lb1/h;)V

    iput-object v0, p0, Lu1/r;->b:Lb1/b;

    new-instance v0, Lu1/r$b;

    invoke-direct {v0, p0, p1}, Lu1/r$b;-><init>(Lu1/r;Lb1/h;)V

    iput-object v0, p0, Lu1/r;->c:Lb1/l;

    new-instance v0, Lu1/r$c;

    invoke-direct {v0, p0, p1}, Lu1/r$c;-><init>(Lu1/r;Lb1/h;)V

    iput-object v0, p0, Lu1/r;->d:Lb1/l;

    new-instance v0, Lu1/r$d;

    invoke-direct {v0, p0, p1}, Lu1/r$d;-><init>(Lu1/r;Lb1/h;)V

    iput-object v0, p0, Lu1/r;->e:Lb1/l;

    new-instance v0, Lu1/r$e;

    invoke-direct {v0, p0, p1}, Lu1/r$e;-><init>(Lu1/r;Lb1/h;)V

    iput-object v0, p0, Lu1/r;->f:Lb1/l;

    new-instance v0, Lu1/r$f;

    invoke-direct {v0, p0, p1}, Lu1/r$f;-><init>(Lu1/r;Lb1/h;)V

    iput-object v0, p0, Lu1/r;->g:Lb1/l;

    new-instance v0, Lu1/r$g;

    invoke-direct {v0, p0, p1}, Lu1/r$g;-><init>(Lu1/r;Lb1/h;)V

    iput-object v0, p0, Lu1/r;->h:Lb1/l;

    new-instance v0, Lu1/r$h;

    invoke-direct {v0, p0, p1}, Lu1/r$h;-><init>(Lu1/r;Lb1/h;)V

    iput-object v0, p0, Lu1/r;->i:Lb1/l;

    .line 1
    new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v0, 0x0

    invoke-direct {p1, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)V
    .registers 5

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

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

    iget-object v0, p0, Lu1/r;->c:Lb1/l;

    invoke-virtual {v0}, Lb1/l;->a()Lf1/f;

    move-result-object v0

    const/4 v1, 0x1

    if-nez p1, :cond_14

    .line 1
    iget-object p1, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {p1, v1}, Landroid/database/sqlite/SQLiteProgram;->bindNull(I)V

    goto :goto_19

    .line 2
    :cond_14
    iget-object v2, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {v2, v1, p1}, Landroid/database/sqlite/SQLiteProgram;->bindString(ILjava/lang/String;)V

    .line 3
    :goto_19
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

    :try_start_1e
    invoke-virtual {v0}, Lf1/f;->b()I

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

    invoke-virtual {p1}, Lb1/h;->k()V
    :try_end_26
    .catchall {:try_start_1e .. :try_end_26} :catchall_38

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

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

    iget-object p1, p0, Lu1/r;->c:Lb1/l;

    .line 4
    iget-object v1, p1, Lb1/l;->c:Lf1/f;

    if-ne v0, v1, :cond_37

    iget-object p1, p1, Lb1/l;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    :cond_37
    return-void

    :catchall_38
    move-exception p1

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

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

    iget-object v1, p0, Lu1/r;->c:Lb1/l;

    invoke-virtual {v1, v0}, Lb1/l;->c(Lf1/f;)V

    throw p1
.end method

.method public b(I)Ljava/util/List;
    .registers 36
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/List<",
            "Lu1/p;",
            ">;"
        }
    .end annotation

    move-object/from16 v1, p0

    const-string v0, "SELECT `required_network_type`, `requires_charging`, `requires_device_idle`, `requires_battery_not_low`, `requires_storage_not_low`, `trigger_content_update_delay`, `trigger_max_content_delay`, `content_uri_triggers`, `WorkSpec`.`id` AS `id`, `WorkSpec`.`state` AS `state`, `WorkSpec`.`worker_class_name` AS `worker_class_name`, `WorkSpec`.`input_merger_class_name` AS `input_merger_class_name`, `WorkSpec`.`input` AS `input`, `WorkSpec`.`output` AS `output`, `WorkSpec`.`initial_delay` AS `initial_delay`, `WorkSpec`.`interval_duration` AS `interval_duration`, `WorkSpec`.`flex_duration` AS `flex_duration`, `WorkSpec`.`run_attempt_count` AS `run_attempt_count`, `WorkSpec`.`backoff_policy` AS `backoff_policy`, `WorkSpec`.`backoff_delay_duration` AS `backoff_delay_duration`, `WorkSpec`.`period_start_time` AS `period_start_time`, `WorkSpec`.`minimum_retention_duration` AS `minimum_retention_duration`, `WorkSpec`.`schedule_requested_at` AS `schedule_requested_at`, `WorkSpec`.`run_in_foreground` AS `run_in_foreground`, `WorkSpec`.`out_of_quota_policy` AS `out_of_quota_policy` FROM workspec WHERE state=0 ORDER BY period_start_time LIMIT ?"

    const/4 v2, 0x1

    invoke-static {v0, v2}, Lb1/j;->e(Ljava/lang/String;I)Lb1/j;

    move-result-object v3

    move/from16 v0, p1

    int-to-long v4, v0

    invoke-virtual {v3, v2, v4, v5}, Lb1/j;->k(IJ)V

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

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

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

    const/4 v4, 0x0

    const/4 v5, 0x0

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

    move-result-object v5

    :try_start_1c
    const-string v0, "required_network_type"

    invoke-static {v5, v0}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v0

    const-string v6, "requires_charging"

    invoke-static {v5, v6}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v6

    const-string v7, "requires_device_idle"

    invoke-static {v5, v7}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v7

    const-string v8, "requires_battery_not_low"

    invoke-static {v5, v8}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v8

    const-string v9, "requires_storage_not_low"

    invoke-static {v5, v9}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v9

    const-string v10, "trigger_content_update_delay"

    invoke-static {v5, v10}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v10

    const-string v11, "trigger_max_content_delay"

    invoke-static {v5, v11}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v11

    const-string v12, "content_uri_triggers"

    invoke-static {v5, v12}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v12

    const-string v13, "id"

    invoke-static {v5, v13}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v13

    const-string v14, "state"

    invoke-static {v5, v14}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v14

    const-string v15, "worker_class_name"

    invoke-static {v5, v15}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v15

    const-string v2, "input_merger_class_name"

    invoke-static {v5, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    const-string v4, "input"

    invoke-static {v5, v4}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v4

    const-string v1, "output"

    invoke-static {v5, v1}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v1
    :try_end_70
    .catchall {:try_start_1c .. :try_end_70} :catchall_216

    move-object/from16 v16, v3

    :try_start_72
    const-string v3, "initial_delay"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v17, v3

    const-string v3, "interval_duration"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v18, v3

    const-string v3, "flex_duration"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v19, v3

    const-string v3, "run_attempt_count"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v20, v3

    const-string v3, "backoff_policy"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v21, v3

    const-string v3, "backoff_delay_duration"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v22, v3

    const-string v3, "period_start_time"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v23, v3

    const-string v3, "minimum_retention_duration"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v24, v3

    const-string v3, "schedule_requested_at"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v25, v3

    const-string v3, "run_in_foreground"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v26, v3

    const-string v3, "out_of_quota_policy"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v27, v3

    new-instance v3, Ljava/util/ArrayList;

    move/from16 v28, v1

    invoke-interface {v5}, Landroid/database/Cursor;->getCount()I

    move-result v1

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

    :goto_d5
    invoke-interface {v5}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_20d

    invoke-interface {v5, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    move/from16 v29, v13

    invoke-interface {v5, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v13

    move/from16 v30, v15

    new-instance v15, Ll1/b;

    invoke-direct {v15}, Ll1/b;-><init>()V

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

    move-result v31

    move/from16 v32, v0

    invoke-static/range {v31 .. v31}, Lu1/v;->c(I)Landroidx/work/d;

    move-result-object v0

    .line 1
    iput-object v0, v15, Ll1/b;->a:Landroidx/work/d;

    .line 2
    invoke-interface {v5, v6}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_100

    const/4 v0, 0x1

    goto :goto_101

    :cond_100
    const/4 v0, 0x0

    .line 3
    :goto_101
    iput-boolean v0, v15, Ll1/b;->b:Z

    .line 4
    invoke-interface {v5, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_10b

    const/4 v0, 0x1

    goto :goto_10c

    :cond_10b
    const/4 v0, 0x0

    .line 5
    :goto_10c
    iput-boolean v0, v15, Ll1/b;->c:Z

    .line 6
    invoke-interface {v5, v8}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_116

    const/4 v0, 0x1

    goto :goto_117

    :cond_116
    const/4 v0, 0x0

    .line 7
    :goto_117
    iput-boolean v0, v15, Ll1/b;->d:Z

    .line 8
    invoke-interface {v5, v9}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_121

    const/4 v0, 0x1

    goto :goto_122

    :cond_121
    const/4 v0, 0x0

    .line 9
    :goto_122
    iput-boolean v0, v15, Ll1/b;->e:Z

    move v0, v6

    move/from16 v31, v7

    .line 10
    invoke-interface {v5, v10}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

    .line 11
    iput-wide v6, v15, Ll1/b;->f:J

    .line 12
    invoke-interface {v5, v11}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

    .line 13
    iput-wide v6, v15, Ll1/b;->g:J

    .line 14
    invoke-interface {v5, v12}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v6

    invoke-static {v6}, Lu1/v;->a([B)Ll1/c;

    move-result-object v6

    .line 15
    iput-object v6, v15, Ll1/b;->h:Ll1/c;

    .line 16
    new-instance v6, Lu1/p;

    invoke-direct {v6, v1, v13}, Lu1/p;-><init>(Ljava/lang/String;Ljava/lang/String;)V

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

    move-result v1

    invoke-static {v1}, Lu1/v;->e(I)Landroidx/work/f;

    move-result-object v1

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

    invoke-interface {v5, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v6, Lu1/p;->d:Ljava/lang/String;

    invoke-interface {v5, v4}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v1

    invoke-static {v1}, Landroidx/work/c;->a([B)Landroidx/work/c;

    move-result-object v1

    iput-object v1, v6, Lu1/p;->e:Landroidx/work/c;

    move/from16 v1, v28

    invoke-interface {v5, v1}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v7

    invoke-static {v7}, Landroidx/work/c;->a([B)Landroidx/work/c;

    move-result-object v7

    iput-object v7, v6, Lu1/p;->f:Landroidx/work/c;

    move v13, v0

    move/from16 v28, v1

    move/from16 v7, v17

    invoke-interface {v5, v7}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    iput-wide v0, v6, Lu1/p;->g:J

    move/from16 v17, v2

    move/from16 v0, v18

    invoke-interface {v5, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v6, Lu1/p;->h:J

    move/from16 v18, v7

    move v2, v8

    move/from16 v1, v19

    invoke-interface {v5, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v7

    iput-wide v7, v6, Lu1/p;->i:J

    move/from16 v7, v20

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

    move-result v8

    iput v8, v6, Lu1/p;->k:I

    move/from16 v8, v21

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

    move-result v19

    move/from16 v20, v0

    invoke-static/range {v19 .. v19}, Lu1/v;->b(I)Landroidx/work/a;

    move-result-object v0

    iput-object v0, v6, Lu1/p;->l:Landroidx/work/a;

    move/from16 v19, v1

    move/from16 v21, v2

    move/from16 v0, v22

    invoke-interface {v5, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v6, Lu1/p;->m:J

    move v2, v7

    move/from16 v22, v8

    move/from16 v1, v23

    invoke-interface {v5, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v7

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

    move v8, v0

    move/from16 v23, v1

    move/from16 v7, v24

    invoke-interface {v5, v7}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    iput-wide v0, v6, Lu1/p;->o:J

    move/from16 v24, v2

    move/from16 v0, v25

    invoke-interface {v5, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v6, Lu1/p;->p:J

    move/from16 v1, v26

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

    move-result v2

    if-eqz v2, :cond_1d4

    const/4 v2, 0x1

    goto :goto_1d5

    :cond_1d4
    const/4 v2, 0x0

    :goto_1d5
    iput-boolean v2, v6, Lu1/p;->q:Z

    move/from16 v2, v27

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

    move-result v25

    move/from16 v26, v0

    invoke-static/range {v25 .. v25}, Lu1/v;->d(I)Landroidx/work/e;

    move-result-object v0

    iput-object v0, v6, Lu1/p;->r:Landroidx/work/e;

    iput-object v15, v6, Lu1/p;->j:Ll1/b;

    invoke-virtual {v3, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_1ea
    .catchall {:try_start_72 .. :try_end_1ea} :catchall_214

    move/from16 v27, v2

    move v6, v13

    move/from16 v2, v17

    move/from16 v17, v18

    move/from16 v18, v20

    move/from16 v20, v24

    move/from16 v25, v26

    move/from16 v13, v29

    move/from16 v15, v30

    move/from16 v0, v32

    move/from16 v26, v1

    move/from16 v24, v7

    move/from16 v7, v31

    move/from16 v33, v22

    move/from16 v22, v8

    move/from16 v8, v21

    move/from16 v21, v33

    goto/16 :goto_d5

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

    invoke-virtual/range {v16 .. v16}, Lb1/j;->q()V

    return-object v3

    :catchall_214
    move-exception v0

    goto :goto_219

    :catchall_216
    move-exception v0

    move-object/from16 v16, v3

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

    invoke-virtual/range {v16 .. v16}, Lb1/j;->q()V

    throw v0
.end method

.method public c(I)Ljava/util/List;
    .registers 36
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/List<",
            "Lu1/p;",
            ">;"
        }
    .end annotation

    move-object/from16 v1, p0

    const-string v0, "SELECT `required_network_type`, `requires_charging`, `requires_device_idle`, `requires_battery_not_low`, `requires_storage_not_low`, `trigger_content_update_delay`, `trigger_max_content_delay`, `content_uri_triggers`, `WorkSpec`.`id` AS `id`, `WorkSpec`.`state` AS `state`, `WorkSpec`.`worker_class_name` AS `worker_class_name`, `WorkSpec`.`input_merger_class_name` AS `input_merger_class_name`, `WorkSpec`.`input` AS `input`, `WorkSpec`.`output` AS `output`, `WorkSpec`.`initial_delay` AS `initial_delay`, `WorkSpec`.`interval_duration` AS `interval_duration`, `WorkSpec`.`flex_duration` AS `flex_duration`, `WorkSpec`.`run_attempt_count` AS `run_attempt_count`, `WorkSpec`.`backoff_policy` AS `backoff_policy`, `WorkSpec`.`backoff_delay_duration` AS `backoff_delay_duration`, `WorkSpec`.`period_start_time` AS `period_start_time`, `WorkSpec`.`minimum_retention_duration` AS `minimum_retention_duration`, `WorkSpec`.`schedule_requested_at` AS `schedule_requested_at`, `WorkSpec`.`run_in_foreground` AS `run_in_foreground`, `WorkSpec`.`out_of_quota_policy` AS `out_of_quota_policy` FROM workspec WHERE state=0 AND schedule_requested_at=-1 ORDER BY period_start_time LIMIT (SELECT MAX(?-COUNT(*), 0) FROM workspec WHERE schedule_requested_at<>-1 AND state NOT IN (2, 3, 5))"

    const/4 v2, 0x1

    invoke-static {v0, v2}, Lb1/j;->e(Ljava/lang/String;I)Lb1/j;

    move-result-object v3

    move/from16 v0, p1

    int-to-long v4, v0

    invoke-virtual {v3, v2, v4, v5}, Lb1/j;->k(IJ)V

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

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

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

    const/4 v4, 0x0

    const/4 v5, 0x0

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

    move-result-object v5

    :try_start_1c
    const-string v0, "required_network_type"

    invoke-static {v5, v0}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v0

    const-string v6, "requires_charging"

    invoke-static {v5, v6}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v6

    const-string v7, "requires_device_idle"

    invoke-static {v5, v7}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v7

    const-string v8, "requires_battery_not_low"

    invoke-static {v5, v8}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v8

    const-string v9, "requires_storage_not_low"

    invoke-static {v5, v9}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v9

    const-string v10, "trigger_content_update_delay"

    invoke-static {v5, v10}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v10

    const-string v11, "trigger_max_content_delay"

    invoke-static {v5, v11}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v11

    const-string v12, "content_uri_triggers"

    invoke-static {v5, v12}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v12

    const-string v13, "id"

    invoke-static {v5, v13}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v13

    const-string v14, "state"

    invoke-static {v5, v14}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v14

    const-string v15, "worker_class_name"

    invoke-static {v5, v15}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v15

    const-string v2, "input_merger_class_name"

    invoke-static {v5, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    const-string v4, "input"

    invoke-static {v5, v4}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v4

    const-string v1, "output"

    invoke-static {v5, v1}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v1
    :try_end_70
    .catchall {:try_start_1c .. :try_end_70} :catchall_216

    move-object/from16 v16, v3

    :try_start_72
    const-string v3, "initial_delay"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v17, v3

    const-string v3, "interval_duration"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v18, v3

    const-string v3, "flex_duration"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v19, v3

    const-string v3, "run_attempt_count"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v20, v3

    const-string v3, "backoff_policy"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v21, v3

    const-string v3, "backoff_delay_duration"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v22, v3

    const-string v3, "period_start_time"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v23, v3

    const-string v3, "minimum_retention_duration"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v24, v3

    const-string v3, "schedule_requested_at"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v25, v3

    const-string v3, "run_in_foreground"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v26, v3

    const-string v3, "out_of_quota_policy"

    invoke-static {v5, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v27, v3

    new-instance v3, Ljava/util/ArrayList;

    move/from16 v28, v1

    invoke-interface {v5}, Landroid/database/Cursor;->getCount()I

    move-result v1

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

    :goto_d5
    invoke-interface {v5}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_20d

    invoke-interface {v5, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    move/from16 v29, v13

    invoke-interface {v5, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v13

    move/from16 v30, v15

    new-instance v15, Ll1/b;

    invoke-direct {v15}, Ll1/b;-><init>()V

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

    move-result v31

    move/from16 v32, v0

    invoke-static/range {v31 .. v31}, Lu1/v;->c(I)Landroidx/work/d;

    move-result-object v0

    .line 1
    iput-object v0, v15, Ll1/b;->a:Landroidx/work/d;

    .line 2
    invoke-interface {v5, v6}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_100

    const/4 v0, 0x1

    goto :goto_101

    :cond_100
    const/4 v0, 0x0

    .line 3
    :goto_101
    iput-boolean v0, v15, Ll1/b;->b:Z

    .line 4
    invoke-interface {v5, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_10b

    const/4 v0, 0x1

    goto :goto_10c

    :cond_10b
    const/4 v0, 0x0

    .line 5
    :goto_10c
    iput-boolean v0, v15, Ll1/b;->c:Z

    .line 6
    invoke-interface {v5, v8}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_116

    const/4 v0, 0x1

    goto :goto_117

    :cond_116
    const/4 v0, 0x0

    .line 7
    :goto_117
    iput-boolean v0, v15, Ll1/b;->d:Z

    .line 8
    invoke-interface {v5, v9}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_121

    const/4 v0, 0x1

    goto :goto_122

    :cond_121
    const/4 v0, 0x0

    .line 9
    :goto_122
    iput-boolean v0, v15, Ll1/b;->e:Z

    move v0, v6

    move/from16 v31, v7

    .line 10
    invoke-interface {v5, v10}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

    .line 11
    iput-wide v6, v15, Ll1/b;->f:J

    .line 12
    invoke-interface {v5, v11}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

    .line 13
    iput-wide v6, v15, Ll1/b;->g:J

    .line 14
    invoke-interface {v5, v12}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v6

    invoke-static {v6}, Lu1/v;->a([B)Ll1/c;

    move-result-object v6

    .line 15
    iput-object v6, v15, Ll1/b;->h:Ll1/c;

    .line 16
    new-instance v6, Lu1/p;

    invoke-direct {v6, v1, v13}, Lu1/p;-><init>(Ljava/lang/String;Ljava/lang/String;)V

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

    move-result v1

    invoke-static {v1}, Lu1/v;->e(I)Landroidx/work/f;

    move-result-object v1

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

    invoke-interface {v5, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v6, Lu1/p;->d:Ljava/lang/String;

    invoke-interface {v5, v4}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v1

    invoke-static {v1}, Landroidx/work/c;->a([B)Landroidx/work/c;

    move-result-object v1

    iput-object v1, v6, Lu1/p;->e:Landroidx/work/c;

    move/from16 v1, v28

    invoke-interface {v5, v1}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v7

    invoke-static {v7}, Landroidx/work/c;->a([B)Landroidx/work/c;

    move-result-object v7

    iput-object v7, v6, Lu1/p;->f:Landroidx/work/c;

    move v13, v0

    move/from16 v28, v1

    move/from16 v7, v17

    invoke-interface {v5, v7}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    iput-wide v0, v6, Lu1/p;->g:J

    move/from16 v17, v2

    move/from16 v0, v18

    invoke-interface {v5, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v6, Lu1/p;->h:J

    move/from16 v18, v7

    move v2, v8

    move/from16 v1, v19

    invoke-interface {v5, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v7

    iput-wide v7, v6, Lu1/p;->i:J

    move/from16 v7, v20

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

    move-result v8

    iput v8, v6, Lu1/p;->k:I

    move/from16 v8, v21

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

    move-result v19

    move/from16 v20, v0

    invoke-static/range {v19 .. v19}, Lu1/v;->b(I)Landroidx/work/a;

    move-result-object v0

    iput-object v0, v6, Lu1/p;->l:Landroidx/work/a;

    move/from16 v19, v1

    move/from16 v21, v2

    move/from16 v0, v22

    invoke-interface {v5, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v6, Lu1/p;->m:J

    move v2, v7

    move/from16 v22, v8

    move/from16 v1, v23

    invoke-interface {v5, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v7

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

    move v8, v0

    move/from16 v23, v1

    move/from16 v7, v24

    invoke-interface {v5, v7}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    iput-wide v0, v6, Lu1/p;->o:J

    move/from16 v24, v2

    move/from16 v0, v25

    invoke-interface {v5, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v6, Lu1/p;->p:J

    move/from16 v1, v26

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

    move-result v2

    if-eqz v2, :cond_1d4

    const/4 v2, 0x1

    goto :goto_1d5

    :cond_1d4
    const/4 v2, 0x0

    :goto_1d5
    iput-boolean v2, v6, Lu1/p;->q:Z

    move/from16 v2, v27

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

    move-result v25

    move/from16 v26, v0

    invoke-static/range {v25 .. v25}, Lu1/v;->d(I)Landroidx/work/e;

    move-result-object v0

    iput-object v0, v6, Lu1/p;->r:Landroidx/work/e;

    iput-object v15, v6, Lu1/p;->j:Ll1/b;

    invoke-virtual {v3, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_1ea
    .catchall {:try_start_72 .. :try_end_1ea} :catchall_214

    move/from16 v27, v2

    move v6, v13

    move/from16 v2, v17

    move/from16 v17, v18

    move/from16 v18, v20

    move/from16 v20, v24

    move/from16 v25, v26

    move/from16 v13, v29

    move/from16 v15, v30

    move/from16 v0, v32

    move/from16 v26, v1

    move/from16 v24, v7

    move/from16 v7, v31

    move/from16 v33, v22

    move/from16 v22, v8

    move/from16 v8, v21

    move/from16 v21, v33

    goto/16 :goto_d5

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

    invoke-virtual/range {v16 .. v16}, Lb1/j;->q()V

    return-object v3

    :catchall_214
    move-exception v0

    goto :goto_219

    :catchall_216
    move-exception v0

    move-object/from16 v16, v3

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

    invoke-virtual/range {v16 .. v16}, Lb1/j;->q()V

    throw v0
.end method

.method public d()Ljava/util/List;
    .registers 36
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lu1/p;",
            ">;"
        }
    .end annotation

    move-object/from16 v1, p0

    const-string v0, "SELECT `required_network_type`, `requires_charging`, `requires_device_idle`, `requires_battery_not_low`, `requires_storage_not_low`, `trigger_content_update_delay`, `trigger_max_content_delay`, `content_uri_triggers`, `WorkSpec`.`id` AS `id`, `WorkSpec`.`state` AS `state`, `WorkSpec`.`worker_class_name` AS `worker_class_name`, `WorkSpec`.`input_merger_class_name` AS `input_merger_class_name`, `WorkSpec`.`input` AS `input`, `WorkSpec`.`output` AS `output`, `WorkSpec`.`initial_delay` AS `initial_delay`, `WorkSpec`.`interval_duration` AS `interval_duration`, `WorkSpec`.`flex_duration` AS `flex_duration`, `WorkSpec`.`run_attempt_count` AS `run_attempt_count`, `WorkSpec`.`backoff_policy` AS `backoff_policy`, `WorkSpec`.`backoff_delay_duration` AS `backoff_delay_duration`, `WorkSpec`.`period_start_time` AS `period_start_time`, `WorkSpec`.`minimum_retention_duration` AS `minimum_retention_duration`, `WorkSpec`.`schedule_requested_at` AS `schedule_requested_at`, `WorkSpec`.`run_in_foreground` AS `run_in_foreground`, `WorkSpec`.`out_of_quota_policy` AS `out_of_quota_policy` FROM workspec WHERE state=1"

    const/4 v2, 0x0

    invoke-static {v0, v2}, Lb1/j;->e(Ljava/lang/String;I)Lb1/j;

    move-result-object v3

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

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

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

    const/4 v4, 0x0

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

    move-result-object v4

    :try_start_15
    const-string v0, "required_network_type"

    invoke-static {v4, v0}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v0

    const-string v5, "requires_charging"

    invoke-static {v4, v5}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v5

    const-string v6, "requires_device_idle"

    invoke-static {v4, v6}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v6

    const-string v7, "requires_battery_not_low"

    invoke-static {v4, v7}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v7

    const-string v8, "requires_storage_not_low"

    invoke-static {v4, v8}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v8

    const-string v9, "trigger_content_update_delay"

    invoke-static {v4, v9}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v9

    const-string v10, "trigger_max_content_delay"

    invoke-static {v4, v10}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v10

    const-string v11, "content_uri_triggers"

    invoke-static {v4, v11}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v11

    const-string v12, "id"

    invoke-static {v4, v12}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v12

    const-string v13, "state"

    invoke-static {v4, v13}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v13

    const-string v14, "worker_class_name"

    invoke-static {v4, v14}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v14

    const-string v15, "input_merger_class_name"

    invoke-static {v4, v15}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v15

    const-string v2, "input"

    invoke-static {v4, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    const-string v1, "output"

    invoke-static {v4, v1}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v1
    :try_end_69
    .catchall {:try_start_15 .. :try_end_69} :catchall_216

    move-object/from16 v16, v3

    :try_start_6b
    const-string v3, "initial_delay"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v17, v3

    const-string v3, "interval_duration"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v18, v3

    const-string v3, "flex_duration"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v19, v3

    const-string v3, "run_attempt_count"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v20, v3

    const-string v3, "backoff_policy"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v21, v3

    const-string v3, "backoff_delay_duration"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v22, v3

    const-string v3, "period_start_time"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v23, v3

    const-string v3, "minimum_retention_duration"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v24, v3

    const-string v3, "schedule_requested_at"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v25, v3

    const-string v3, "run_in_foreground"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v26, v3

    const-string v3, "out_of_quota_policy"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v27, v3

    new-instance v3, Ljava/util/ArrayList;

    move/from16 v28, v1

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

    move-result v1

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

    :goto_ce
    invoke-interface {v4}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_20d

    invoke-interface {v4, v12}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    move/from16 v29, v12

    invoke-interface {v4, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v12

    move/from16 v30, v14

    new-instance v14, Ll1/b;

    invoke-direct {v14}, Ll1/b;-><init>()V

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

    move-result v31

    move/from16 v32, v0

    invoke-static/range {v31 .. v31}, Lu1/v;->c(I)Landroidx/work/d;

    move-result-object v0

    .line 1
    iput-object v0, v14, Ll1/b;->a:Landroidx/work/d;

    .line 2
    invoke-interface {v4, v5}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    const/16 v31, 0x1

    if-eqz v0, :cond_fc

    move/from16 v0, v31

    goto :goto_fd

    :cond_fc
    const/4 v0, 0x0

    .line 3
    :goto_fd
    iput-boolean v0, v14, Ll1/b;->b:Z

    .line 4
    invoke-interface {v4, v6}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_108

    move/from16 v0, v31

    goto :goto_109

    :cond_108
    const/4 v0, 0x0

    .line 5
    :goto_109
    iput-boolean v0, v14, Ll1/b;->c:Z

    .line 6
    invoke-interface {v4, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_114

    move/from16 v0, v31

    goto :goto_115

    :cond_114
    const/4 v0, 0x0

    .line 7
    :goto_115
    iput-boolean v0, v14, Ll1/b;->d:Z

    .line 8
    invoke-interface {v4, v8}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_120

    move/from16 v0, v31

    goto :goto_121

    :cond_120
    const/4 v0, 0x0

    .line 9
    :goto_121
    iput-boolean v0, v14, Ll1/b;->e:Z

    move v0, v5

    move/from16 v33, v6

    .line 10
    invoke-interface {v4, v9}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v5

    .line 11
    iput-wide v5, v14, Ll1/b;->f:J

    .line 12
    invoke-interface {v4, v10}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v5

    .line 13
    iput-wide v5, v14, Ll1/b;->g:J

    .line 14
    invoke-interface {v4, v11}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v5

    invoke-static {v5}, Lu1/v;->a([B)Ll1/c;

    move-result-object v5

    .line 15
    iput-object v5, v14, Ll1/b;->h:Ll1/c;

    .line 16
    new-instance v5, Lu1/p;

    invoke-direct {v5, v1, v12}, Lu1/p;-><init>(Ljava/lang/String;Ljava/lang/String;)V

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

    move-result v1

    invoke-static {v1}, Lu1/v;->e(I)Landroidx/work/f;

    move-result-object v1

    iput-object v1, v5, Lu1/p;->b:Landroidx/work/f;

    invoke-interface {v4, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v5, Lu1/p;->d:Ljava/lang/String;

    invoke-interface {v4, v2}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v1

    invoke-static {v1}, Landroidx/work/c;->a([B)Landroidx/work/c;

    move-result-object v1

    iput-object v1, v5, Lu1/p;->e:Landroidx/work/c;

    move/from16 v1, v28

    invoke-interface {v4, v1}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v6

    invoke-static {v6}, Landroidx/work/c;->a([B)Landroidx/work/c;

    move-result-object v6

    iput-object v6, v5, Lu1/p;->f:Landroidx/work/c;

    move v12, v0

    move/from16 v28, v1

    move/from16 v6, v17

    invoke-interface {v4, v6}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    iput-wide v0, v5, Lu1/p;->g:J

    move/from16 v17, v2

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v5, Lu1/p;->h:J

    move/from16 v18, v6

    move v2, v7

    move/from16 v1, v19

    invoke-interface {v4, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

    iput-wide v6, v5, Lu1/p;->i:J

    move/from16 v6, v20

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

    move-result v7

    iput v7, v5, Lu1/p;->k:I

    move/from16 v7, v21

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

    move-result v19

    move/from16 v20, v0

    invoke-static/range {v19 .. v19}, Lu1/v;->b(I)Landroidx/work/a;

    move-result-object v0

    iput-object v0, v5, Lu1/p;->l:Landroidx/work/a;

    move/from16 v19, v1

    move/from16 v21, v2

    move/from16 v0, v22

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v5, Lu1/p;->m:J

    move v2, v6

    move/from16 v22, v7

    move/from16 v1, v23

    invoke-interface {v4, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

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

    move v7, v0

    move/from16 v23, v1

    move/from16 v6, v24

    invoke-interface {v4, v6}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    iput-wide v0, v5, Lu1/p;->o:J

    move/from16 v24, v2

    move/from16 v0, v25

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v5, Lu1/p;->p:J

    move/from16 v1, v26

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

    move-result v2

    if-eqz v2, :cond_1d4

    move/from16 v2, v31

    goto :goto_1d5

    :cond_1d4
    const/4 v2, 0x0

    :goto_1d5
    iput-boolean v2, v5, Lu1/p;->q:Z

    move/from16 v2, v27

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

    move-result v25

    move/from16 v26, v0

    invoke-static/range {v25 .. v25}, Lu1/v;->d(I)Landroidx/work/e;

    move-result-object v0

    iput-object v0, v5, Lu1/p;->r:Landroidx/work/e;

    iput-object v14, v5, Lu1/p;->j:Ll1/b;

    invoke-virtual {v3, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_1ea
    .catchall {:try_start_6b .. :try_end_1ea} :catchall_214

    move/from16 v27, v2

    move v5, v12

    move/from16 v2, v17

    move/from16 v17, v18

    move/from16 v18, v20

    move/from16 v20, v24

    move/from16 v25, v26

    move/from16 v12, v29

    move/from16 v14, v30

    move/from16 v0, v32

    move/from16 v26, v1

    move/from16 v24, v6

    move/from16 v6, v33

    move/from16 v34, v22

    move/from16 v22, v7

    move/from16 v7, v21

    move/from16 v21, v34

    goto/16 :goto_ce

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

    invoke-virtual/range {v16 .. v16}, Lb1/j;->q()V

    return-object v3

    :catchall_214
    move-exception v0

    goto :goto_219

    :catchall_216
    move-exception v0

    move-object/from16 v16, v3

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

    invoke-virtual/range {v16 .. v16}, Lb1/j;->q()V

    throw v0
.end method

.method public e()Ljava/util/List;
    .registers 36
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lu1/p;",
            ">;"
        }
    .end annotation

    move-object/from16 v1, p0

    const-string v0, "SELECT `required_network_type`, `requires_charging`, `requires_device_idle`, `requires_battery_not_low`, `requires_storage_not_low`, `trigger_content_update_delay`, `trigger_max_content_delay`, `content_uri_triggers`, `WorkSpec`.`id` AS `id`, `WorkSpec`.`state` AS `state`, `WorkSpec`.`worker_class_name` AS `worker_class_name`, `WorkSpec`.`input_merger_class_name` AS `input_merger_class_name`, `WorkSpec`.`input` AS `input`, `WorkSpec`.`output` AS `output`, `WorkSpec`.`initial_delay` AS `initial_delay`, `WorkSpec`.`interval_duration` AS `interval_duration`, `WorkSpec`.`flex_duration` AS `flex_duration`, `WorkSpec`.`run_attempt_count` AS `run_attempt_count`, `WorkSpec`.`backoff_policy` AS `backoff_policy`, `WorkSpec`.`backoff_delay_duration` AS `backoff_delay_duration`, `WorkSpec`.`period_start_time` AS `period_start_time`, `WorkSpec`.`minimum_retention_duration` AS `minimum_retention_duration`, `WorkSpec`.`schedule_requested_at` AS `schedule_requested_at`, `WorkSpec`.`run_in_foreground` AS `run_in_foreground`, `WorkSpec`.`out_of_quota_policy` AS `out_of_quota_policy` FROM workspec WHERE state=0 AND schedule_requested_at<>-1"

    const/4 v2, 0x0

    invoke-static {v0, v2}, Lb1/j;->e(Ljava/lang/String;I)Lb1/j;

    move-result-object v3

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

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

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

    const/4 v4, 0x0

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

    move-result-object v4

    :try_start_15
    const-string v0, "required_network_type"

    invoke-static {v4, v0}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v0

    const-string v5, "requires_charging"

    invoke-static {v4, v5}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v5

    const-string v6, "requires_device_idle"

    invoke-static {v4, v6}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v6

    const-string v7, "requires_battery_not_low"

    invoke-static {v4, v7}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v7

    const-string v8, "requires_storage_not_low"

    invoke-static {v4, v8}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v8

    const-string v9, "trigger_content_update_delay"

    invoke-static {v4, v9}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v9

    const-string v10, "trigger_max_content_delay"

    invoke-static {v4, v10}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v10

    const-string v11, "content_uri_triggers"

    invoke-static {v4, v11}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v11

    const-string v12, "id"

    invoke-static {v4, v12}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v12

    const-string v13, "state"

    invoke-static {v4, v13}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v13

    const-string v14, "worker_class_name"

    invoke-static {v4, v14}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v14

    const-string v15, "input_merger_class_name"

    invoke-static {v4, v15}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v15

    const-string v2, "input"

    invoke-static {v4, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    const-string v1, "output"

    invoke-static {v4, v1}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v1
    :try_end_69
    .catchall {:try_start_15 .. :try_end_69} :catchall_216

    move-object/from16 v16, v3

    :try_start_6b
    const-string v3, "initial_delay"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v17, v3

    const-string v3, "interval_duration"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v18, v3

    const-string v3, "flex_duration"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v19, v3

    const-string v3, "run_attempt_count"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v20, v3

    const-string v3, "backoff_policy"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v21, v3

    const-string v3, "backoff_delay_duration"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v22, v3

    const-string v3, "period_start_time"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v23, v3

    const-string v3, "minimum_retention_duration"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v24, v3

    const-string v3, "schedule_requested_at"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v25, v3

    const-string v3, "run_in_foreground"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v26, v3

    const-string v3, "out_of_quota_policy"

    invoke-static {v4, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    move/from16 v27, v3

    new-instance v3, Ljava/util/ArrayList;

    move/from16 v28, v1

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

    move-result v1

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

    :goto_ce
    invoke-interface {v4}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-eqz v1, :cond_20d

    invoke-interface {v4, v12}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    move/from16 v29, v12

    invoke-interface {v4, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v12

    move/from16 v30, v14

    new-instance v14, Ll1/b;

    invoke-direct {v14}, Ll1/b;-><init>()V

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

    move-result v31

    move/from16 v32, v0

    invoke-static/range {v31 .. v31}, Lu1/v;->c(I)Landroidx/work/d;

    move-result-object v0

    .line 1
    iput-object v0, v14, Ll1/b;->a:Landroidx/work/d;

    .line 2
    invoke-interface {v4, v5}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    const/16 v31, 0x1

    if-eqz v0, :cond_fc

    move/from16 v0, v31

    goto :goto_fd

    :cond_fc
    const/4 v0, 0x0

    .line 3
    :goto_fd
    iput-boolean v0, v14, Ll1/b;->b:Z

    .line 4
    invoke-interface {v4, v6}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_108

    move/from16 v0, v31

    goto :goto_109

    :cond_108
    const/4 v0, 0x0

    .line 5
    :goto_109
    iput-boolean v0, v14, Ll1/b;->c:Z

    .line 6
    invoke-interface {v4, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_114

    move/from16 v0, v31

    goto :goto_115

    :cond_114
    const/4 v0, 0x0

    .line 7
    :goto_115
    iput-boolean v0, v14, Ll1/b;->d:Z

    .line 8
    invoke-interface {v4, v8}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_120

    move/from16 v0, v31

    goto :goto_121

    :cond_120
    const/4 v0, 0x0

    .line 9
    :goto_121
    iput-boolean v0, v14, Ll1/b;->e:Z

    move v0, v5

    move/from16 v33, v6

    .line 10
    invoke-interface {v4, v9}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v5

    .line 11
    iput-wide v5, v14, Ll1/b;->f:J

    .line 12
    invoke-interface {v4, v10}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v5

    .line 13
    iput-wide v5, v14, Ll1/b;->g:J

    .line 14
    invoke-interface {v4, v11}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v5

    invoke-static {v5}, Lu1/v;->a([B)Ll1/c;

    move-result-object v5

    .line 15
    iput-object v5, v14, Ll1/b;->h:Ll1/c;

    .line 16
    new-instance v5, Lu1/p;

    invoke-direct {v5, v1, v12}, Lu1/p;-><init>(Ljava/lang/String;Ljava/lang/String;)V

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

    move-result v1

    invoke-static {v1}, Lu1/v;->e(I)Landroidx/work/f;

    move-result-object v1

    iput-object v1, v5, Lu1/p;->b:Landroidx/work/f;

    invoke-interface {v4, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v5, Lu1/p;->d:Ljava/lang/String;

    invoke-interface {v4, v2}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v1

    invoke-static {v1}, Landroidx/work/c;->a([B)Landroidx/work/c;

    move-result-object v1

    iput-object v1, v5, Lu1/p;->e:Landroidx/work/c;

    move/from16 v1, v28

    invoke-interface {v4, v1}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v6

    invoke-static {v6}, Landroidx/work/c;->a([B)Landroidx/work/c;

    move-result-object v6

    iput-object v6, v5, Lu1/p;->f:Landroidx/work/c;

    move v12, v0

    move/from16 v28, v1

    move/from16 v6, v17

    invoke-interface {v4, v6}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    iput-wide v0, v5, Lu1/p;->g:J

    move/from16 v17, v2

    move/from16 v0, v18

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v5, Lu1/p;->h:J

    move/from16 v18, v6

    move v2, v7

    move/from16 v1, v19

    invoke-interface {v4, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

    iput-wide v6, v5, Lu1/p;->i:J

    move/from16 v6, v20

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

    move-result v7

    iput v7, v5, Lu1/p;->k:I

    move/from16 v7, v21

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

    move-result v19

    move/from16 v20, v0

    invoke-static/range {v19 .. v19}, Lu1/v;->b(I)Landroidx/work/a;

    move-result-object v0

    iput-object v0, v5, Lu1/p;->l:Landroidx/work/a;

    move/from16 v19, v1

    move/from16 v21, v2

    move/from16 v0, v22

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v5, Lu1/p;->m:J

    move v2, v6

    move/from16 v22, v7

    move/from16 v1, v23

    invoke-interface {v4, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

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

    move v7, v0

    move/from16 v23, v1

    move/from16 v6, v24

    invoke-interface {v4, v6}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    iput-wide v0, v5, Lu1/p;->o:J

    move/from16 v24, v2

    move/from16 v0, v25

    invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v1

    iput-wide v1, v5, Lu1/p;->p:J

    move/from16 v1, v26

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

    move-result v2

    if-eqz v2, :cond_1d4

    move/from16 v2, v31

    goto :goto_1d5

    :cond_1d4
    const/4 v2, 0x0

    :goto_1d5
    iput-boolean v2, v5, Lu1/p;->q:Z

    move/from16 v2, v27

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

    move-result v25

    move/from16 v26, v0

    invoke-static/range {v25 .. v25}, Lu1/v;->d(I)Landroidx/work/e;

    move-result-object v0

    iput-object v0, v5, Lu1/p;->r:Landroidx/work/e;

    iput-object v14, v5, Lu1/p;->j:Ll1/b;

    invoke-virtual {v3, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_1ea
    .catchall {:try_start_6b .. :try_end_1ea} :catchall_214

    move/from16 v27, v2

    move v5, v12

    move/from16 v2, v17

    move/from16 v17, v18

    move/from16 v18, v20

    move/from16 v20, v24

    move/from16 v25, v26

    move/from16 v12, v29

    move/from16 v14, v30

    move/from16 v0, v32

    move/from16 v26, v1

    move/from16 v24, v6

    move/from16 v6, v33

    move/from16 v34, v22

    move/from16 v22, v7

    move/from16 v7, v21

    move/from16 v21, v34

    goto/16 :goto_ce

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

    invoke-virtual/range {v16 .. v16}, Lb1/j;->q()V

    return-object v3

    :catchall_214
    move-exception v0

    goto :goto_219

    :catchall_216
    move-exception v0

    move-object/from16 v16, v3

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

    invoke-virtual/range {v16 .. v16}, Lb1/j;->q()V

    throw v0
.end method

.method public f(Ljava/lang/String;)Landroidx/work/f;
    .registers 6

    const-string v0, "SELECT state FROM workspec WHERE id=?"

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lb1/j;->e(Ljava/lang/String;I)Lb1/j;

    move-result-object v0

    if-nez p1, :cond_d

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

    goto :goto_10

    :cond_d
    invoke-virtual {v0, v1, p1}, Lb1/j;->p(ILjava/lang/String;)V

    :goto_10
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

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

    const/4 v1, 0x0

    const/4 v2, 0x0

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

    move-result-object p1

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

    move-result v3

    if-eqz v3, :cond_2b

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

    move-result v1

    invoke-static {v1}, Lu1/v;->e(I)Landroidx/work/f;

    move-result-object v2
    :try_end_2b
    .catchall {:try_start_1d .. :try_end_2b} :catchall_32

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

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

    return-object v2

    :catchall_32
    move-exception v1

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

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

    throw v1
.end method

.method public g(Ljava/lang/String;)Ljava/util/List;
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    const-string v0, "SELECT id FROM workspec WHERE state NOT IN (2, 3, 5) AND id IN (SELECT work_spec_id FROM workname WHERE name=?)"

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lb1/j;->e(Ljava/lang/String;I)Lb1/j;

    move-result-object v0

    if-nez p1, :cond_d

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

    goto :goto_10

    :cond_d
    invoke-virtual {v0, v1, p1}, Lb1/j;->p(ILjava/lang/String;)V

    :goto_10
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

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

    const/4 v1, 0x0

    const/4 v2, 0x0

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

    move-result-object p1

    :try_start_1d
    new-instance v1, Ljava/util/ArrayList;

    invoke-interface {p1}, Landroid/database/Cursor;->getCount()I

    move-result v3

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

    :goto_26
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v3

    if-eqz v3, :cond_34

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_33
    .catchall {:try_start_1d .. :try_end_33} :catchall_3b

    goto :goto_26

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

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

    return-object v1

    :catchall_3b
    move-exception v1

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

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

    throw v1
.end method

.method public h(Ljava/lang/String;)Ljava/util/List;
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    const-string v0, "SELECT id FROM workspec WHERE state NOT IN (2, 3, 5) AND id IN (SELECT work_spec_id FROM worktag WHERE tag=?)"

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lb1/j;->e(Ljava/lang/String;I)Lb1/j;

    move-result-object v0

    if-nez p1, :cond_d

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

    goto :goto_10

    :cond_d
    invoke-virtual {v0, v1, p1}, Lb1/j;->p(ILjava/lang/String;)V

    :goto_10
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

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

    const/4 v1, 0x0

    const/4 v2, 0x0

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

    move-result-object p1

    :try_start_1d
    new-instance v1, Ljava/util/ArrayList;

    invoke-interface {p1}, Landroid/database/Cursor;->getCount()I

    move-result v3

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

    :goto_26
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v3

    if-eqz v3, :cond_34

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_33
    .catchall {:try_start_1d .. :try_end_33} :catchall_3b

    goto :goto_26

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

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

    return-object v1

    :catchall_3b
    move-exception v1

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

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

    throw v1
.end method

.method public i(Ljava/lang/String;)Lu1/p;
    .registers 30

    move-object/from16 v1, p0

    move-object/from16 v0, p1

    const-string v2, "SELECT `required_network_type`, `requires_charging`, `requires_device_idle`, `requires_battery_not_low`, `requires_storage_not_low`, `trigger_content_update_delay`, `trigger_max_content_delay`, `content_uri_triggers`, `WorkSpec`.`id` AS `id`, `WorkSpec`.`state` AS `state`, `WorkSpec`.`worker_class_name` AS `worker_class_name`, `WorkSpec`.`input_merger_class_name` AS `input_merger_class_name`, `WorkSpec`.`input` AS `input`, `WorkSpec`.`output` AS `output`, `WorkSpec`.`initial_delay` AS `initial_delay`, `WorkSpec`.`interval_duration` AS `interval_duration`, `WorkSpec`.`flex_duration` AS `flex_duration`, `WorkSpec`.`run_attempt_count` AS `run_attempt_count`, `WorkSpec`.`backoff_policy` AS `backoff_policy`, `WorkSpec`.`backoff_delay_duration` AS `backoff_delay_duration`, `WorkSpec`.`period_start_time` AS `period_start_time`, `WorkSpec`.`minimum_retention_duration` AS `minimum_retention_duration`, `WorkSpec`.`schedule_requested_at` AS `schedule_requested_at`, `WorkSpec`.`run_in_foreground` AS `run_in_foreground`, `WorkSpec`.`out_of_quota_policy` AS `out_of_quota_policy` FROM workspec WHERE id=?"

    const/4 v3, 0x1

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

    move-result-object v2

    if-nez v0, :cond_11

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

    goto :goto_14

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

    :goto_14
    iget-object v0, v1, Lu1/r;->a:Lb1/h;

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

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

    const/4 v4, 0x0

    const/4 v5, 0x0

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

    move-result-object v6

    :try_start_21
    const-string v0, "required_network_type"

    invoke-static {v6, v0}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v0

    const-string v7, "requires_charging"

    invoke-static {v6, v7}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v7

    const-string v8, "requires_device_idle"

    invoke-static {v6, v8}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v8

    const-string v9, "requires_battery_not_low"

    invoke-static {v6, v9}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v9

    const-string v10, "requires_storage_not_low"

    invoke-static {v6, v10}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v10

    const-string v11, "trigger_content_update_delay"

    invoke-static {v6, v11}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v11

    const-string v12, "trigger_max_content_delay"

    invoke-static {v6, v12}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v12

    const-string v13, "content_uri_triggers"

    invoke-static {v6, v13}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v13

    const-string v14, "id"

    invoke-static {v6, v14}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v14

    const-string v15, "state"

    invoke-static {v6, v15}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v15

    const-string v3, "worker_class_name"

    invoke-static {v6, v3}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v3

    const-string v4, "input_merger_class_name"

    invoke-static {v6, v4}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v4

    const-string v5, "input"

    invoke-static {v6, v5}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v5

    const-string v1, "output"

    invoke-static {v6, v1}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v1
    :try_end_75
    .catchall {:try_start_21 .. :try_end_75} :catchall_1ca

    move-object/from16 v16, v2

    :try_start_77
    const-string v2, "initial_delay"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    move/from16 v17, v2

    const-string v2, "interval_duration"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    move/from16 v18, v2

    const-string v2, "flex_duration"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    move/from16 v19, v2

    const-string v2, "run_attempt_count"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    move/from16 v20, v2

    const-string v2, "backoff_policy"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    move/from16 v21, v2

    const-string v2, "backoff_delay_duration"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    move/from16 v22, v2

    const-string v2, "period_start_time"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    move/from16 v23, v2

    const-string v2, "minimum_retention_duration"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    move/from16 v24, v2

    const-string v2, "schedule_requested_at"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    move/from16 v25, v2

    const-string v2, "run_in_foreground"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    move/from16 v26, v2

    const-string v2, "out_of_quota_policy"

    invoke-static {v6, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

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

    move-result v27

    if-eqz v27, :cond_1c0

    invoke-interface {v6, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v14

    invoke-interface {v6, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    move/from16 v27, v2

    new-instance v2, Ll1/b;

    invoke-direct {v2}, Ll1/b;-><init>()V

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

    move-result v0

    invoke-static {v0}, Lu1/v;->c(I)Landroidx/work/d;

    move-result-object v0

    .line 1
    iput-object v0, v2, Ll1/b;->a:Landroidx/work/d;

    .line 2
    invoke-interface {v6, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_f4

    const/4 v0, 0x1

    goto :goto_f5

    :cond_f4
    const/4 v0, 0x0

    .line 3
    :goto_f5
    iput-boolean v0, v2, Ll1/b;->b:Z

    .line 4
    invoke-interface {v6, v8}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_ff

    const/4 v0, 0x1

    goto :goto_100

    :cond_ff
    const/4 v0, 0x0

    .line 5
    :goto_100
    iput-boolean v0, v2, Ll1/b;->c:Z

    .line 6
    invoke-interface {v6, v9}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_10a

    const/4 v0, 0x1

    goto :goto_10b

    :cond_10a
    const/4 v0, 0x0

    .line 7
    :goto_10b
    iput-boolean v0, v2, Ll1/b;->d:Z

    .line 8
    invoke-interface {v6, v10}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    if-eqz v0, :cond_115

    const/4 v0, 0x1

    goto :goto_116

    :cond_115
    const/4 v0, 0x0

    .line 9
    :goto_116
    iput-boolean v0, v2, Ll1/b;->e:Z

    .line 10
    invoke-interface {v6, v11}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v7

    .line 11
    iput-wide v7, v2, Ll1/b;->f:J

    .line 12
    invoke-interface {v6, v12}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v7

    .line 13
    iput-wide v7, v2, Ll1/b;->g:J

    .line 14
    invoke-interface {v6, v13}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v0

    invoke-static {v0}, Lu1/v;->a([B)Ll1/c;

    move-result-object v0

    .line 15
    iput-object v0, v2, Ll1/b;->h:Ll1/c;

    .line 16
    new-instance v0, Lu1/p;

    invoke-direct {v0, v14, v3}, Lu1/p;-><init>(Ljava/lang/String;Ljava/lang/String;)V

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

    move-result v3

    invoke-static {v3}, Lu1/v;->e(I)Landroidx/work/f;

    move-result-object v3

    iput-object v3, v0, Lu1/p;->b:Landroidx/work/f;

    invoke-interface {v6, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lu1/p;->d:Ljava/lang/String;

    invoke-interface {v6, v5}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v3

    invoke-static {v3}, Landroidx/work/c;->a([B)Landroidx/work/c;

    move-result-object v3

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

    invoke-interface {v6, v1}, Landroid/database/Cursor;->getBlob(I)[B

    move-result-object v1

    invoke-static {v1}, Landroidx/work/c;->a([B)Landroidx/work/c;

    move-result-object v1

    iput-object v1, v0, Lu1/p;->f:Landroidx/work/c;

    move/from16 v1, v17

    invoke-interface {v6, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v3

    iput-wide v3, v0, Lu1/p;->g:J

    move/from16 v1, v18

    invoke-interface {v6, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v3

    iput-wide v3, v0, Lu1/p;->h:J

    move/from16 v1, v19

    invoke-interface {v6, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v3

    iput-wide v3, v0, Lu1/p;->i:J

    move/from16 v1, v20

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

    move-result v1

    iput v1, v0, Lu1/p;->k:I

    move/from16 v1, v21

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

    move-result v1

    invoke-static {v1}, Lu1/v;->b(I)Landroidx/work/a;

    move-result-object v1

    iput-object v1, v0, Lu1/p;->l:Landroidx/work/a;

    move/from16 v1, v22

    invoke-interface {v6, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v3

    iput-wide v3, v0, Lu1/p;->m:J

    move/from16 v1, v23

    invoke-interface {v6, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v3

    iput-wide v3, v0, Lu1/p;->n:J

    move/from16 v1, v24

    invoke-interface {v6, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v3

    iput-wide v3, v0, Lu1/p;->o:J

    move/from16 v1, v25

    invoke-interface {v6, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v3

    iput-wide v3, v0, Lu1/p;->p:J

    move/from16 v1, v26

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

    move-result v1

    if-eqz v1, :cond_1ad

    const/4 v3, 0x1

    goto :goto_1ae

    :cond_1ad
    const/4 v3, 0x0

    :goto_1ae
    iput-boolean v3, v0, Lu1/p;->q:Z

    move/from16 v1, v27

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

    move-result v1

    invoke-static {v1}, Lu1/v;->d(I)Landroidx/work/e;

    move-result-object v1

    iput-object v1, v0, Lu1/p;->r:Landroidx/work/e;

    iput-object v2, v0, Lu1/p;->j:Ll1/b;
    :try_end_1be
    .catchall {:try_start_77 .. :try_end_1be} :catchall_1c8

    move-object v5, v0

    goto :goto_1c1

    :cond_1c0
    const/4 v5, 0x0

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

    invoke-virtual/range {v16 .. v16}, Lb1/j;->q()V

    return-object v5

    :catchall_1c8
    move-exception v0

    goto :goto_1cd

    :catchall_1ca
    move-exception v0

    move-object/from16 v16, v2

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

    invoke-virtual/range {v16 .. v16}, Lb1/j;->q()V

    throw v0
.end method

.method public j(Ljava/lang/String;)Ljava/util/List;
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Lu1/p$a;",
            ">;"
        }
    .end annotation

    const-string v0, "SELECT id, state FROM workspec WHERE id IN (SELECT work_spec_id FROM workname WHERE name=?)"

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lb1/j;->e(Ljava/lang/String;I)Lb1/j;

    move-result-object v0

    if-nez p1, :cond_d

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

    goto :goto_10

    :cond_d
    invoke-virtual {v0, v1, p1}, Lb1/j;->p(ILjava/lang/String;)V

    :goto_10
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

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

    const/4 v1, 0x0

    const/4 v2, 0x0

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

    move-result-object p1

    :try_start_1d
    const-string v1, "id"

    invoke-static {p1, v1}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v1

    const-string v2, "state"

    invoke-static {p1, v2}, Le/j;->c(Landroid/database/Cursor;Ljava/lang/String;)I

    move-result v2

    new-instance v3, Ljava/util/ArrayList;

    invoke-interface {p1}, Landroid/database/Cursor;->getCount()I

    move-result v4

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

    :goto_32
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v4

    if-eqz v4, :cond_51

    new-instance v4, Lu1/p$a;

    invoke-direct {v4}, Lu1/p$a;-><init>()V

    invoke-interface {p1, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lu1/p$a;->a:Ljava/lang/String;

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

    move-result v5

    invoke-static {v5}, Lu1/v;->e(I)Landroidx/work/f;

    move-result-object v5

    iput-object v5, v4, Lu1/p$a;->b:Landroidx/work/f;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_50
    .catchall {:try_start_1d .. :try_end_50} :catchall_58

    goto :goto_32

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

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

    return-object v3

    :catchall_58
    move-exception v1

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

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

    throw v1
.end method

.method public k(Ljava/lang/String;)I
    .registers 5

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

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

    iget-object v0, p0, Lu1/r;->f:Lb1/l;

    invoke-virtual {v0}, Lb1/l;->a()Lf1/f;

    move-result-object v0

    const/4 v1, 0x1

    if-nez p1, :cond_14

    .line 1
    iget-object p1, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {p1, v1}, Landroid/database/sqlite/SQLiteProgram;->bindNull(I)V

    goto :goto_19

    .line 2
    :cond_14
    iget-object v2, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {v2, v1, p1}, Landroid/database/sqlite/SQLiteProgram;->bindString(ILjava/lang/String;)V

    .line 3
    :goto_19
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

    :try_start_1e
    invoke-virtual {v0}, Lf1/f;->b()I

    move-result p1

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

    invoke-virtual {v1}, Lb1/h;->k()V
    :try_end_27
    .catchall {:try_start_1e .. :try_end_27} :catchall_39

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

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

    iget-object v1, p0, Lu1/r;->f:Lb1/l;

    .line 4
    iget-object v2, v1, Lb1/l;->c:Lf1/f;

    if-ne v0, v2, :cond_38

    iget-object v0, v1, Lb1/l;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    :cond_38
    return p1

    :catchall_39
    move-exception p1

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

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

    iget-object v1, p0, Lu1/r;->f:Lb1/l;

    invoke-virtual {v1, v0}, Lb1/l;->c(Lf1/f;)V

    throw p1
.end method

.method public l(Ljava/lang/String;J)I
    .registers 7

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

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

    iget-object v0, p0, Lu1/r;->h:Lb1/l;

    invoke-virtual {v0}, Lb1/l;->a()Lf1/f;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    const/4 v2, 0x1

    invoke-virtual {v1, v2, p2, p3}, Landroid/database/sqlite/SQLiteProgram;->bindLong(IJ)V

    const/4 p2, 0x2

    if-nez p1, :cond_1a

    .line 2
    iget-object p1, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteProgram;->bindNull(I)V

    goto :goto_1f

    .line 3
    :cond_1a
    iget-object p3, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {p3, p2, p1}, Landroid/database/sqlite/SQLiteProgram;->bindString(ILjava/lang/String;)V

    .line 4
    :goto_1f
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

    const/4 p1, 0x0

    :try_start_25
    invoke-virtual {v0}, Lf1/f;->b()I

    move-result p2

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

    invoke-virtual {p3}, Lb1/h;->k()V
    :try_end_2e
    .catchall {:try_start_25 .. :try_end_2e} :catchall_3f

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

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

    iget-object p3, p0, Lu1/r;->h:Lb1/l;

    .line 5
    iget-object v1, p3, Lb1/l;->c:Lf1/f;

    if-ne v0, v1, :cond_3e

    iget-object p3, p3, Lb1/l;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {p3, p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    :cond_3e
    return p2

    :catchall_3f
    move-exception p2

    .line 6
    iget-object p3, p0, Lu1/r;->a:Lb1/h;

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

    iget-object p3, p0, Lu1/r;->h:Lb1/l;

    .line 7
    iget-object v1, p3, Lb1/l;->c:Lf1/f;

    if-ne v0, v1, :cond_50

    iget-object p3, p3, Lb1/l;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {p3, p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    .line 8
    :cond_50
    throw p2
.end method

.method public m(Ljava/lang/String;)I
    .registers 5

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

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

    iget-object v0, p0, Lu1/r;->g:Lb1/l;

    invoke-virtual {v0}, Lb1/l;->a()Lf1/f;

    move-result-object v0

    const/4 v1, 0x1

    if-nez p1, :cond_14

    .line 1
    iget-object p1, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {p1, v1}, Landroid/database/sqlite/SQLiteProgram;->bindNull(I)V

    goto :goto_19

    .line 2
    :cond_14
    iget-object v2, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {v2, v1, p1}, Landroid/database/sqlite/SQLiteProgram;->bindString(ILjava/lang/String;)V

    .line 3
    :goto_19
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

    :try_start_1e
    invoke-virtual {v0}, Lf1/f;->b()I

    move-result p1

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

    invoke-virtual {v1}, Lb1/h;->k()V
    :try_end_27
    .catchall {:try_start_1e .. :try_end_27} :catchall_39

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

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

    iget-object v1, p0, Lu1/r;->g:Lb1/l;

    .line 4
    iget-object v2, v1, Lb1/l;->c:Lf1/f;

    if-ne v0, v2, :cond_38

    iget-object v0, v1, Lb1/l;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    :cond_38
    return p1

    :catchall_39
    move-exception p1

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

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

    iget-object v1, p0, Lu1/r;->g:Lb1/l;

    invoke-virtual {v1, v0}, Lb1/l;->c(Lf1/f;)V

    throw p1
.end method

.method public n(Ljava/lang/String;Landroidx/work/c;)V
    .registers 6

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

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

    iget-object v0, p0, Lu1/r;->d:Lb1/l;

    invoke-virtual {v0}, Lb1/l;->a()Lf1/f;

    move-result-object v0

    invoke-static {p2}, Landroidx/work/c;->c(Landroidx/work/c;)[B

    move-result-object p2

    const/4 v1, 0x1

    if-nez p2, :cond_18

    .line 1
    iget-object p2, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {p2, v1}, Landroid/database/sqlite/SQLiteProgram;->bindNull(I)V

    goto :goto_1d

    .line 2
    :cond_18
    iget-object v2, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {v2, v1, p2}, Landroid/database/sqlite/SQLiteProgram;->bindBlob(I[B)V

    :goto_1d
    const/4 p2, 0x2

    if-nez p1, :cond_26

    .line 3
    iget-object p1, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteProgram;->bindNull(I)V

    goto :goto_2b

    .line 4
    :cond_26
    iget-object v1, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {v1, p2, p1}, Landroid/database/sqlite/SQLiteProgram;->bindString(ILjava/lang/String;)V

    .line 5
    :goto_2b
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

    :try_start_30
    invoke-virtual {v0}, Lf1/f;->b()I

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

    invoke-virtual {p1}, Lb1/h;->k()V
    :try_end_38
    .catchall {:try_start_30 .. :try_end_38} :catchall_4a

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

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

    iget-object p1, p0, Lu1/r;->d:Lb1/l;

    .line 6
    iget-object p2, p1, Lb1/l;->c:Lf1/f;

    if-ne v0, p2, :cond_49

    iget-object p1, p1, Lb1/l;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    :cond_49
    return-void

    :catchall_4a
    move-exception p1

    .line 7
    iget-object p2, p0, Lu1/r;->a:Lb1/h;

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

    iget-object p2, p0, Lu1/r;->d:Lb1/l;

    invoke-virtual {p2, v0}, Lb1/l;->c(Lf1/f;)V

    throw p1
.end method

.method public o(Ljava/lang/String;J)V
    .registers 7

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

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

    iget-object v0, p0, Lu1/r;->e:Lb1/l;

    invoke-virtual {v0}, Lb1/l;->a()Lf1/f;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    const/4 v2, 0x1

    invoke-virtual {v1, v2, p2, p3}, Landroid/database/sqlite/SQLiteProgram;->bindLong(IJ)V

    const/4 p2, 0x2

    if-nez p1, :cond_1a

    .line 2
    iget-object p1, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteProgram;->bindNull(I)V

    goto :goto_1f

    .line 3
    :cond_1a
    iget-object p3, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {p3, p2, p1}, Landroid/database/sqlite/SQLiteProgram;->bindString(ILjava/lang/String;)V

    .line 4
    :goto_1f
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

    const/4 p1, 0x0

    :try_start_25
    invoke-virtual {v0}, Lf1/f;->b()I

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

    invoke-virtual {p2}, Lb1/h;->k()V
    :try_end_2d
    .catchall {:try_start_25 .. :try_end_2d} :catchall_3e

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

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

    iget-object p2, p0, Lu1/r;->e:Lb1/l;

    .line 5
    iget-object p3, p2, Lb1/l;->c:Lf1/f;

    if-ne v0, p3, :cond_3d

    iget-object p2, p2, Lb1/l;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {p2, p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    :cond_3d
    return-void

    :catchall_3e
    move-exception p2

    .line 6
    iget-object p3, p0, Lu1/r;->a:Lb1/h;

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

    iget-object p3, p0, Lu1/r;->e:Lb1/l;

    .line 7
    iget-object v1, p3, Lb1/l;->c:Lf1/f;

    if-ne v0, v1, :cond_4f

    iget-object p3, p3, Lb1/l;->a:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {p3, p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    .line 8
    :cond_4f
    throw p2
.end method

.method public varargs p(Landroidx/work/f;[Ljava/lang/String;)I
    .registers 9

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

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

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

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

    const-string v1, "UPDATE workspec SET state="

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

    const-string v1, "?"

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

    const-string v2, " WHERE id IN ("

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

    array-length v2, p2

    const/4 v3, 0x0

    move v4, v3

    :goto_1c
    if-ge v4, v2, :cond_2d

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

    add-int/lit8 v5, v2, -0x1

    if-ge v4, v5, :cond_2a

    const-string v5, ","

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

    :cond_2a
    add-int/lit8 v4, v4, 0x1

    goto :goto_1c

    :cond_2d
    const-string v1, ")"

    .line 4
    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

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

    invoke-virtual {v1, v0}, Lb1/h;->d(Ljava/lang/String;)Lf1/f;

    move-result-object v0

    invoke-static {p1}, Lu1/v;->f(Landroidx/work/f;)I

    move-result p1

    int-to-long v1, p1

    .line 5
    iget-object p1, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    const/4 v4, 0x1

    invoke-virtual {p1, v4, v1, v2}, Landroid/database/sqlite/SQLiteProgram;->bindLong(IJ)V

    const/4 p1, 0x2

    .line 6
    array-length v1, p2

    :goto_49
    if-ge v3, v1, :cond_5f

    aget-object v2, p2, v3

    if-nez v2, :cond_55

    .line 7
    iget-object v2, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {v2, p1}, Landroid/database/sqlite/SQLiteProgram;->bindNull(I)V

    goto :goto_5a

    .line 8
    :cond_55
    iget-object v4, v0, Lf1/e;->r:Landroid/database/sqlite/SQLiteProgram;

    invoke-virtual {v4, p1, v2}, Landroid/database/sqlite/SQLiteProgram;->bindString(ILjava/lang/String;)V

    :goto_5a
    add-int/lit8 p1, p1, 0x1

    add-int/lit8 v3, v3, 0x1

    goto :goto_49

    .line 9
    :cond_5f
    iget-object p1, p0, Lu1/r;->a:Lb1/h;

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

    :try_start_64
    invoke-virtual {v0}, Lf1/f;->b()I

    move-result p1

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

    invoke-virtual {p2}, Lb1/h;->k()V
    :try_end_6d
    .catchall {:try_start_64 .. :try_end_6d} :catchall_73

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

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

    return p1

    :catchall_73
    move-exception p1

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

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

    throw p1
.end method
