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

# interfaces
.implements Lm1/a;
.implements Lt1/a;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lm1/c$a;
    }
.end annotation


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


# instance fields
.field public final A:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lm1/a;",
            ">;"
        }
    .end annotation
.end field

.field public final B:Ljava/lang/Object;

.field public r:Landroid/os/PowerManager$WakeLock;

.field public s:Landroid/content/Context;

.field public t:Landroidx/work/b;

.field public u:Lx1/a;

.field public v:Landroidx/work/impl/WorkDatabase;

.field public w:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lm1/m;",
            ">;"
        }
    .end annotation
.end field

.field public x:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lm1/m;",
            ">;"
        }
    .end annotation
.end field

.field public y:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lm1/d;",
            ">;"
        }
    .end annotation
.end field

.field public z:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


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

    const-string v0, "Processor"

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

    move-result-object v0

    sput-object v0, Lm1/c;->C:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroidx/work/b;Lx1/a;Landroidx/work/impl/WorkDatabase;Ljava/util/List;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Landroidx/work/b;",
            "Lx1/a;",
            "Landroidx/work/impl/WorkDatabase;",
            "Ljava/util/List<",
            "Lm1/d;",
            ">;)V"
        }
    .end annotation

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

    iput-object p1, p0, Lm1/c;->s:Landroid/content/Context;

    iput-object p2, p0, Lm1/c;->t:Landroidx/work/b;

    iput-object p3, p0, Lm1/c;->u:Lx1/a;

    iput-object p4, p0, Lm1/c;->v:Landroidx/work/impl/WorkDatabase;

    new-instance p1, Ljava/util/HashMap;

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

    iput-object p1, p0, Lm1/c;->x:Ljava/util/Map;

    new-instance p1, Ljava/util/HashMap;

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

    iput-object p1, p0, Lm1/c;->w:Ljava/util/Map;

    iput-object p5, p0, Lm1/c;->y:Ljava/util/List;

    new-instance p1, Ljava/util/HashSet;

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

    iput-object p1, p0, Lm1/c;->z:Ljava/util/Set;

    new-instance p1, Ljava/util/ArrayList;

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

    iput-object p1, p0, Lm1/c;->A:Ljava/util/List;

    const/4 p1, 0x0

    iput-object p1, p0, Lm1/c;->r:Landroid/os/PowerManager$WakeLock;

    new-instance p1, Ljava/lang/Object;

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

    iput-object p1, p0, Lm1/c;->B:Ljava/lang/Object;

    return-void
.end method

.method public static c(Ljava/lang/String;Lm1/m;)Z
    .registers 7

    const/4 v0, 0x1

    const/4 v1, 0x0

    if-eqz p1, :cond_53

    .line 1
    iput-boolean v0, p1, Lm1/m;->J:Z

    invoke-virtual {p1}, Lm1/m;->i()Z

    iget-object v2, p1, Lm1/m;->I:Lq7/a;

    if-eqz v2, :cond_1b

    check-cast v2, Lw1/a;

    invoke-virtual {v2}, Lw1/a;->isDone()Z

    move-result v2

    iget-object v3, p1, Lm1/m;->I:Lq7/a;

    check-cast v3, Lw1/a;

    invoke-virtual {v3, v0}, Lw1/a;->cancel(Z)Z

    goto :goto_1c

    :cond_1b
    move v2, v1

    :goto_1c
    iget-object v3, p1, Lm1/m;->w:Landroidx/work/ListenableWorker;

    if-eqz v3, :cond_26

    if-nez v2, :cond_26

    invoke-virtual {v3}, Landroidx/work/ListenableWorker;->stop()V

    goto :goto_3d

    :cond_26
    new-array v2, v0, [Ljava/lang/Object;

    iget-object p1, p1, Lm1/m;->v:Lu1/p;

    aput-object p1, v2, v1

    const-string p1, "WorkSpec %s is already done. Not interrupting."

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

    move-result-object p1

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

    move-result-object v2

    sget-object v3, Lm1/m;->K:Ljava/lang/String;

    new-array v4, v1, [Ljava/lang/Throwable;

    invoke-virtual {v2, v3, p1, v4}, Ll1/i;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V

    .line 2
    :goto_3d
    invoke-static {}, Ll1/i;->c()Ll1/i;

    move-result-object p1

    sget-object v2, Lm1/c;->C:Ljava/lang/String;

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

    aput-object p0, v3, v1

    const-string p0, "WorkerWrapper interrupted for %s"

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

    move-result-object p0

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

    invoke-virtual {p1, v2, p0, v1}, Ll1/i;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V

    return v0

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

    move-result-object p1

    sget-object v2, Lm1/c;->C:Ljava/lang/String;

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

    aput-object p0, v0, v1

    const-string p0, "WorkerWrapper could not be found for %s"

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

    move-result-object p0

    new-array v0, v1, [Ljava/lang/Throwable;

    invoke-virtual {p1, v2, p0, v0}, Ll1/i;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V

    return v1
.end method


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

    iget-object v0, p0, Lm1/c;->B:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lm1/c;->x:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

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

    move-result-object v1

    sget-object v2, Lm1/c;->C:Ljava/lang/String;

    const-string v3, "%s %s executed; reschedule = %s"

    const/4 v4, 0x3

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

    const-class v5, Lm1/c;

    invoke-virtual {v5}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x0

    aput-object v5, v4, v6

    const/4 v5, 0x1

    aput-object p1, v4, v5

    const/4 v5, 0x2

    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v7

    aput-object v7, v4, v5

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

    move-result-object v3

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

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

    iget-object v1, p0, Lm1/c;->A:Ljava/util/List;

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

    move-result-object v1

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

    move-result v2

    if-eqz v2, :cond_45

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

    move-result-object v2

    check-cast v2, Lm1/a;

    invoke-interface {v2, p1, p2}, Lm1/a;->a(Ljava/lang/String;Z)V

    goto :goto_35

    :cond_45
    monitor-exit v0

    return-void

    :catchall_47
    move-exception p1

    monitor-exit v0
    :try_end_49
    .catchall {:try_start_3 .. :try_end_49} :catchall_47

    throw p1
.end method

.method public b(Lm1/a;)V
    .registers 4

    iget-object v0, p0, Lm1/c;->B:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lm1/c;->A:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    monitor-exit v0

    return-void

    :catchall_a
    move-exception p1

    monitor-exit v0
    :try_end_c
    .catchall {:try_start_3 .. :try_end_c} :catchall_a

    throw p1
.end method

.method public d(Ljava/lang/String;)Z
    .registers 4

    iget-object v0, p0, Lm1/c;->B:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lm1/c;->x:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_16

    iget-object v1, p0, Lm1/c;->w:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_14

    goto :goto_16

    :cond_14
    const/4 p1, 0x0

    goto :goto_17

    :cond_16
    :goto_16
    const/4 p1, 0x1

    :goto_17
    monitor-exit v0

    return p1

    :catchall_19
    move-exception p1

    monitor-exit v0
    :try_end_1b
    .catchall {:try_start_3 .. :try_end_1b} :catchall_19

    throw p1
.end method

.method public e(Lm1/a;)V
    .registers 4

    iget-object v0, p0, Lm1/c;->B:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lm1/c;->A:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    monitor-exit v0

    return-void

    :catchall_a
    move-exception p1

    monitor-exit v0
    :try_end_c
    .catchall {:try_start_3 .. :try_end_c} :catchall_a

    throw p1
.end method

.method public f(Ljava/lang/String;Ll1/d;)V
    .registers 9

    iget-object v0, p0, Lm1/c;->B:Ljava/lang/Object;

    monitor-enter v0

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

    move-result-object v1

    sget-object v2, Lm1/c;->C:Ljava/lang/String;

    const-string v3, "Moving WorkSpec (%s) to the foreground"

    const/4 v4, 0x1

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

    const/4 v5, 0x0

    aput-object p1, v4, v5

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

    move-result-object v3

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

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

    iget-object v1, p0, Lm1/c;->x:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lm1/m;

    if-eqz v1, :cond_51

    iget-object v2, p0, Lm1/c;->r:Landroid/os/PowerManager$WakeLock;

    if-nez v2, :cond_35

    iget-object v2, p0, Lm1/c;->s:Landroid/content/Context;

    const-string v3, "ProcessorForegroundLck"

    invoke-static {v2, v3}, Lv1/m;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/os/PowerManager$WakeLock;

    move-result-object v2

    iput-object v2, p0, Lm1/c;->r:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v2}, Landroid/os/PowerManager$WakeLock;->acquire()V

    :cond_35
    iget-object v2, p0, Lm1/c;->w:Ljava/util/Map;

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

    iget-object v1, p0, Lm1/c;->s:Landroid/content/Context;

    invoke-static {v1, p1, p2}, Landroidx/work/impl/foreground/a;->c(Landroid/content/Context;Ljava/lang/String;Ll1/d;)Landroid/content/Intent;

    move-result-object p1

    iget-object p2, p0, Lm1/c;->s:Landroid/content/Context;

    sget-object v1, Lc0/a;->a:Ljava/lang/Object;

    .line 1
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x1a

    if-lt v1, v2, :cond_4e

    invoke-static {p2, p1}, Lc0/a$e;->a(Landroid/content/Context;Landroid/content/Intent;)Landroid/content/ComponentName;

    goto :goto_51

    :cond_4e
    invoke-virtual {p2, p1}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 2
    :cond_51
    :goto_51
    monitor-exit v0

    return-void

    :catchall_53
    move-exception p1

    monitor-exit v0
    :try_end_55
    .catchall {:try_start_3 .. :try_end_55} :catchall_53

    throw p1
.end method

.method public g(Ljava/lang/String;Landroidx/work/WorkerParameters$a;)Z
    .registers 14

    iget-object v0, p0, Lm1/c;->B:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    invoke-virtual {p0, p1}, Lm1/c;->d(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eqz v1, :cond_22

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

    move-result-object p2

    sget-object v1, Lm1/c;->C:Ljava/lang/String;

    const-string v4, "Work %s is already enqueued for processing"

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

    aput-object p1, v2, v3

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

    move-result-object p1

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

    invoke-virtual {p2, v1, p1, v2}, Ll1/i;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V

    monitor-exit v0

    return v3

    :cond_22
    new-instance v1, Lm1/m$a;

    iget-object v5, p0, Lm1/c;->s:Landroid/content/Context;

    iget-object v6, p0, Lm1/c;->t:Landroidx/work/b;

    iget-object v7, p0, Lm1/c;->u:Lx1/a;

    iget-object v9, p0, Lm1/c;->v:Landroidx/work/impl/WorkDatabase;

    move-object v4, v1

    move-object v8, p0

    move-object v10, p1

    invoke-direct/range {v4 .. v10}, Lm1/m$a;-><init>(Landroid/content/Context;Landroidx/work/b;Lx1/a;Lt1/a;Landroidx/work/impl/WorkDatabase;Ljava/lang/String;)V

    iget-object v4, p0, Lm1/c;->y:Ljava/util/List;

    .line 1
    iput-object v4, v1, Lm1/m$a;->g:Ljava/util/List;

    if-eqz p2, :cond_3a

    .line 2
    iput-object p2, v1, Lm1/m$a;->h:Landroidx/work/WorkerParameters$a;

    .line 3
    :cond_3a
    new-instance p2, Lm1/m;

    invoke-direct {p2, v1}, Lm1/m;-><init>(Lm1/m$a;)V

    .line 4
    iget-object v1, p2, Lm1/m;->H:Lw1/c;

    .line 5
    new-instance v4, Lm1/c$a;

    invoke-direct {v4, p0, p1, v1}, Lm1/c$a;-><init>(Lm1/a;Ljava/lang/String;Lq7/a;)V

    iget-object v5, p0, Lm1/c;->u:Lx1/a;

    check-cast v5, Lx1/b;

    .line 6
    iget-object v5, v5, Lx1/b;->c:Ljava/util/concurrent/Executor;

    .line 7
    invoke-virtual {v1, v4, v5}, Lw1/a;->b(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V

    iget-object v1, p0, Lm1/c;->x:Ljava/util/Map;

    invoke-interface {v1, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    monitor-exit v0
    :try_end_55
    .catchall {:try_start_3 .. :try_end_55} :catchall_7d

    iget-object v0, p0, Lm1/c;->u:Lx1/a;

    check-cast v0, Lx1/b;

    .line 8
    iget-object v0, v0, Lx1/b;->a:Lv1/j;

    .line 9
    invoke-virtual {v0, p2}, Lv1/j;->execute(Ljava/lang/Runnable;)V

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

    move-result-object p2

    sget-object v0, Lm1/c;->C:Ljava/lang/String;

    const-string v1, "%s: processing %s"

    const/4 v4, 0x2

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

    const-class v5, Lm1/c;

    invoke-virtual {v5}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v3

    aput-object p1, v4, v2

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

    move-result-object p1

    new-array v1, v3, [Ljava/lang/Throwable;

    invoke-virtual {p2, v0, p1, v1}, Ll1/i;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V

    return v2

    :catchall_7d
    move-exception p1

    :try_start_7e
    monitor-exit v0
    :try_end_7f
    .catchall {:try_start_7e .. :try_end_7f} :catchall_7d

    throw p1
.end method

.method public final h()V
    .registers 8

    iget-object v0, p0, Lm1/c;->B:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lm1/c;->w:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z

    move-result v1

    const/4 v2, 0x1

    xor-int/2addr v1, v2

    if-nez v1, :cond_3e

    iget-object v1, p0, Lm1/c;->s:Landroid/content/Context;

    sget-object v3, Landroidx/work/impl/foreground/a;->B:Ljava/lang/String;

    .line 1
    new-instance v3, Landroid/content/Intent;

    const-class v4, Landroidx/work/impl/foreground/SystemForegroundService;

    invoke-direct {v3, v1, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "ACTION_STOP_FOREGROUND"

    invoke-virtual {v3, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
    :try_end_1d
    .catchall {:try_start_3 .. :try_end_1d} :catchall_40

    .line 2
    :try_start_1d
    iget-object v1, p0, Lm1/c;->s:Landroid/content/Context;

    invoke-virtual {v1, v3}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;
    :try_end_22
    .catchall {:try_start_1d .. :try_end_22} :catchall_23

    goto :goto_34

    :catchall_23
    move-exception v1

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

    move-result-object v3

    sget-object v4, Lm1/c;->C:Ljava/lang/String;

    const-string v5, "Unable to stop foreground service"

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

    const/4 v6, 0x0

    aput-object v1, v2, v6

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

    :goto_34
    iget-object v1, p0, Lm1/c;->r:Landroid/os/PowerManager$WakeLock;

    if-eqz v1, :cond_3e

    invoke-virtual {v1}, Landroid/os/PowerManager$WakeLock;->release()V

    const/4 v1, 0x0

    iput-object v1, p0, Lm1/c;->r:Landroid/os/PowerManager$WakeLock;

    :cond_3e
    monitor-exit v0

    return-void

    :catchall_40
    move-exception v1

    monitor-exit v0
    :try_end_42
    .catchall {:try_start_24 .. :try_end_42} :catchall_40

    throw v1
.end method

.method public i(Ljava/lang/String;)Z
    .registers 8

    iget-object v0, p0, Lm1/c;->B:Ljava/lang/Object;

    monitor-enter v0

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

    move-result-object v1

    sget-object v2, Lm1/c;->C:Ljava/lang/String;

    const-string v3, "Processor stopping foreground work %s"

    const/4 v4, 0x1

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

    const/4 v5, 0x0

    aput-object p1, v4, v5

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

    move-result-object v3

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

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

    iget-object v1, p0, Lm1/c;->w:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lm1/m;

    invoke-static {p1, v1}, Lm1/c;->c(Ljava/lang/String;Lm1/m;)Z

    move-result p1

    monitor-exit v0

    return p1

    :catchall_28
    move-exception p1

    monitor-exit v0
    :try_end_2a
    .catchall {:try_start_3 .. :try_end_2a} :catchall_28

    throw p1
.end method

.method public j(Ljava/lang/String;)Z
    .registers 8

    iget-object v0, p0, Lm1/c;->B:Ljava/lang/Object;

    monitor-enter v0

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

    move-result-object v1

    sget-object v2, Lm1/c;->C:Ljava/lang/String;

    const-string v3, "Processor stopping background work %s"

    const/4 v4, 0x1

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

    const/4 v5, 0x0

    aput-object p1, v4, v5

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

    move-result-object v3

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

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

    iget-object v1, p0, Lm1/c;->x:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lm1/m;

    invoke-static {p1, v1}, Lm1/c;->c(Ljava/lang/String;Lm1/m;)Z

    move-result p1

    monitor-exit v0

    return p1

    :catchall_28
    move-exception p1

    monitor-exit v0
    :try_end_2a
    .catchall {:try_start_3 .. :try_end_2a} :catchall_28

    throw p1
.end method
