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


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


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

    const-string v0, "Schedulers"

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

    move-result-object v0

    sput-object v0, Lm1/e;->a:Ljava/lang/String;

    return-void
.end method

.method public static a(Landroidx/work/b;Landroidx/work/impl/WorkDatabase;Ljava/util/List;)V
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/work/b;",
            "Landroidx/work/impl/WorkDatabase;",
            "Ljava/util/List<",
            "Lm1/d;",
            ">;)V"
        }
    .end annotation

    if-eqz p2, :cond_ad

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

    move-result v0

    if-nez v0, :cond_a

    goto/16 :goto_ad

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

    move-result-object v0

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

    .line 1
    :try_start_11
    iget p0, p0, Landroidx/work/b;->h:I

    .line 2
    check-cast v0, Lu1/r;

    invoke-virtual {v0, p0}, Lu1/r;->c(I)Ljava/util/List;

    move-result-object p0

    const/16 v1, 0xc8

    invoke-virtual {v0, v1}, Lu1/r;->b(I)Ljava/util/List;

    move-result-object v1

    move-object v2, p0

    check-cast v2, Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_45

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

    move-result-wide v2

    move-object v4, p0

    check-cast v4, Ljava/util/ArrayList;

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

    move-result-object v4

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

    move-result v5

    if-eqz v5, :cond_45

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

    move-result-object v5

    check-cast v5, Lu1/p;

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

    invoke-virtual {v0, v5, v2, v3}, Lu1/r;->l(Ljava/lang/String;J)I

    goto :goto_33

    :cond_45
    invoke-virtual {p1}, Lb1/h;->k()V
    :try_end_48
    .catchall {:try_start_11 .. :try_end_48} :catchall_a8

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

    check-cast p0, Ljava/util/ArrayList;

    invoke-virtual {p0}, Ljava/util/ArrayList;->size()I

    move-result p1

    if-lez p1, :cond_79

    invoke-virtual {p0}, Ljava/util/ArrayList;->size()I

    move-result p1

    new-array p1, p1, [Lu1/p;

    invoke-virtual {p0, p1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object p0

    check-cast p0, [Lu1/p;

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

    move-result-object p1

    :cond_63
    :goto_63
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_79

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

    move-result-object v0

    check-cast v0, Lm1/d;

    invoke-interface {v0}, Lm1/d;->f()Z

    move-result v2

    if-eqz v2, :cond_63

    invoke-interface {v0, p0}, Lm1/d;->c([Lu1/p;)V

    goto :goto_63

    :cond_79
    check-cast v1, Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result p0

    if-lez p0, :cond_a7

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result p0

    new-array p0, p0, [Lu1/p;

    invoke-virtual {v1, p0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object p0

    check-cast p0, [Lu1/p;

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

    move-result-object p1

    :cond_91
    :goto_91
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p2

    if-eqz p2, :cond_a7

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

    move-result-object p2

    check-cast p2, Lm1/d;

    invoke-interface {p2}, Lm1/d;->f()Z

    move-result v0

    if-nez v0, :cond_91

    invoke-interface {p2, p0}, Lm1/d;->c([Lu1/p;)V

    goto :goto_91

    :cond_a7
    return-void

    :catchall_a8
    move-exception p0

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

    throw p0

    :cond_ad
    :goto_ad
    return-void
.end method
