.class public Lm3/i;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lm3/g$a;
.implements Ljava/lang/Runnable;
.implements Ljava/lang/Comparable;
.implements Lh4/a$d;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lm3/i$g;,
        Lm3/i$f;,
        Lm3/i$d;,
        Lm3/i$a;,
        Lm3/i$c;,
        Lm3/i$e;,
        Lm3/i$b;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<R:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lm3/g$a;",
        "Ljava/lang/Runnable;",
        "Ljava/lang/Comparable<",
        "Lm3/i<",
        "*>;>;",
        "Lh4/a$d;"
    }
.end annotation


# instance fields
.field public A:Lcom/bumptech/glide/f;

.field public B:Lm3/o;

.field public C:I

.field public D:I

.field public E:Lm3/k;

.field public F:Lk3/e;

.field public G:Lm3/i$a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lm3/i$a<",
            "TR;>;"
        }
    .end annotation
.end field

.field public H:I

.field public I:Lm3/i$g;

.field public J:Lm3/i$f;

.field public K:J

.field public L:Z

.field public M:Ljava/lang/Object;

.field public N:Ljava/lang/Thread;

.field public O:Lk3/c;

.field public P:Lk3/c;

.field public Q:Ljava/lang/Object;

.field public R:Lcom/bumptech/glide/load/a;

.field public S:Lcom/bumptech/glide/load/data/d;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/bumptech/glide/load/data/d<",
            "*>;"
        }
    .end annotation
.end field

.field public volatile T:Lm3/g;

.field public volatile U:Z

.field public volatile V:Z

.field public W:Z

.field public final r:Lm3/h;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lm3/h<",
            "TR;>;"
        }
    .end annotation
.end field

.field public final s:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/Throwable;",
            ">;"
        }
    .end annotation
.end field

.field public final t:Lh4/d;

.field public final u:Lm3/i$d;

.field public final v:Lk0/c;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lk0/c<",
            "Lm3/i<",
            "*>;>;"
        }
    .end annotation
.end field

.field public final w:Lm3/i$c;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lm3/i$c<",
            "*>;"
        }
    .end annotation
.end field

.field public final x:Lm3/i$e;

.field public y:Lcom/bumptech/glide/d;

.field public z:Lk3/c;


# direct methods
.method public constructor <init>(Lm3/i$d;Lk0/c;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lm3/i$d;",
            "Lk0/c<",
            "Lm3/i<",
            "*>;>;)V"
        }
    .end annotation

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

    new-instance v0, Lm3/h;

    invoke-direct {v0}, Lm3/h;-><init>()V

    iput-object v0, p0, Lm3/i;->r:Lm3/h;

    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lm3/i;->s:Ljava/util/List;

    .line 1
    new-instance v0, Lh4/d$b;

    invoke-direct {v0}, Lh4/d$b;-><init>()V

    .line 2
    iput-object v0, p0, Lm3/i;->t:Lh4/d;

    new-instance v0, Lm3/i$c;

    invoke-direct {v0}, Lm3/i$c;-><init>()V

    iput-object v0, p0, Lm3/i;->w:Lm3/i$c;

    new-instance v0, Lm3/i$e;

    invoke-direct {v0}, Lm3/i$e;-><init>()V

    iput-object v0, p0, Lm3/i;->x:Lm3/i$e;

    iput-object p1, p0, Lm3/i;->u:Lm3/i$d;

    iput-object p2, p0, Lm3/i;->v:Lk0/c;

    return-void
.end method


# virtual methods
.method public a()V
    .registers 2

    sget-object v0, Lm3/i$f;->s:Lm3/i$f;

    iput-object v0, p0, Lm3/i;->J:Lm3/i$f;

    iget-object v0, p0, Lm3/i;->G:Lm3/i$a;

    check-cast v0, Lm3/m;

    invoke-virtual {v0, p0}, Lm3/m;->i(Lm3/i;)V

    return-void
.end method

.method public b(Lk3/c;Ljava/lang/Object;Lcom/bumptech/glide/load/data/d;Lcom/bumptech/glide/load/a;Lk3/c;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lk3/c;",
            "Ljava/lang/Object;",
            "Lcom/bumptech/glide/load/data/d<",
            "*>;",
            "Lcom/bumptech/glide/load/a;",
            "Lk3/c;",
            ")V"
        }
    .end annotation

    iput-object p1, p0, Lm3/i;->O:Lk3/c;

    iput-object p2, p0, Lm3/i;->Q:Ljava/lang/Object;

    iput-object p3, p0, Lm3/i;->S:Lcom/bumptech/glide/load/data/d;

    iput-object p4, p0, Lm3/i;->R:Lcom/bumptech/glide/load/a;

    iput-object p5, p0, Lm3/i;->P:Lk3/c;

    iget-object p2, p0, Lm3/i;->r:Lm3/h;

    invoke-virtual {p2}, Lm3/h;->a()Ljava/util/List;

    move-result-object p2

    const/4 p3, 0x0

    invoke-interface {p2, p3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    if-eq p1, p2, :cond_18

    const/4 p3, 0x1

    :cond_18
    iput-boolean p3, p0, Lm3/i;->W:Z

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object p1

    iget-object p2, p0, Lm3/i;->N:Ljava/lang/Thread;

    if-eq p1, p2, :cond_2e

    sget-object p1, Lm3/i$f;->t:Lm3/i$f;

    iput-object p1, p0, Lm3/i;->J:Lm3/i$f;

    iget-object p1, p0, Lm3/i;->G:Lm3/i$a;

    check-cast p1, Lm3/m;

    invoke-virtual {p1, p0}, Lm3/m;->i(Lm3/i;)V

    goto :goto_31

    :cond_2e
    :try_start_2e
    invoke-virtual {p0}, Lm3/i;->g()V
    :try_end_31
    .catchall {:try_start_2e .. :try_end_31} :catchall_32

    :goto_31
    return-void

    :catchall_32
    move-exception p1

    throw p1
.end method

.method public c(Lk3/c;Ljava/lang/Exception;Lcom/bumptech/glide/load/data/d;Lcom/bumptech/glide/load/a;)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lk3/c;",
            "Ljava/lang/Exception;",
            "Lcom/bumptech/glide/load/data/d<",
            "*>;",
            "Lcom/bumptech/glide/load/a;",
            ")V"
        }
    .end annotation

    invoke-interface {p3}, Lcom/bumptech/glide/load/data/d;->b()V

    new-instance v0, Lm3/r;

    const-string v1, "Fetching data failed"

    invoke-direct {v0, v1, p2}, Lm3/r;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    invoke-interface {p3}, Lcom/bumptech/glide/load/data/d;->a()Ljava/lang/Class;

    move-result-object p2

    .line 1
    iput-object p1, v0, Lm3/r;->s:Lk3/c;

    iput-object p4, v0, Lm3/r;->t:Lcom/bumptech/glide/load/a;

    iput-object p2, v0, Lm3/r;->u:Ljava/lang/Class;

    .line 2
    iget-object p1, p0, Lm3/i;->s:Ljava/util/List;

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

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object p1

    iget-object p2, p0, Lm3/i;->N:Ljava/lang/Thread;

    if-eq p1, p2, :cond_2d

    sget-object p1, Lm3/i$f;->s:Lm3/i$f;

    iput-object p1, p0, Lm3/i;->J:Lm3/i$f;

    iget-object p1, p0, Lm3/i;->G:Lm3/i$a;

    check-cast p1, Lm3/m;

    invoke-virtual {p1, p0}, Lm3/m;->i(Lm3/i;)V

    goto :goto_30

    :cond_2d
    invoke-virtual {p0}, Lm3/i;->m()V

    :goto_30
    return-void
.end method

.method public compareTo(Ljava/lang/Object;)I
    .registers 4

    check-cast p1, Lm3/i;

    .line 1
    iget-object v0, p0, Lm3/i;->A:Lcom/bumptech/glide/f;

    invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I

    move-result v0

    iget-object v1, p1, Lm3/i;->A:Lcom/bumptech/glide/f;

    invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I

    move-result v1

    sub-int/2addr v0, v1

    if-nez v0, :cond_16

    .line 2
    iget v0, p0, Lm3/i;->H:I

    iget p1, p1, Lm3/i;->H:I

    sub-int/2addr v0, p1

    :cond_16
    return v0
.end method

.method public d()Lh4/d;
    .registers 2

    iget-object v0, p0, Lm3/i;->t:Lh4/d;

    return-object v0
.end method

.method public final e(Lcom/bumptech/glide/load/data/d;Ljava/lang/Object;Lcom/bumptech/glide/load/a;)Lm3/w;
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<Data:",
            "Ljava/lang/Object;",
            ">(",
            "Lcom/bumptech/glide/load/data/d<",
            "*>;TData;",
            "Lcom/bumptech/glide/load/a;",
            ")",
            "Lm3/w<",
            "TR;>;"
        }
    .end annotation

    const/4 v0, 0x0

    if-nez p2, :cond_7

    invoke-interface {p1}, Lcom/bumptech/glide/load/data/d;->b()V

    return-object v0

    :cond_7
    :try_start_7
    sget v1, Lg4/f;->b:I

    .line 1
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtimeNanos()J

    move-result-wide v1

    .line 2
    invoke-virtual {p0, p2, p3}, Lm3/i;->f(Ljava/lang/Object;Lcom/bumptech/glide/load/a;)Lm3/w;

    move-result-object p2

    const-string p3, "DecodeJob"

    const/4 v3, 0x2

    invoke-static {p3, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result p3

    if-eqz p3, :cond_2e

    new-instance p3, Ljava/lang/StringBuilder;

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

    const-string v3, "Decoded result "

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

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

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

    move-result-object p3

    .line 3
    invoke-virtual {p0, p3, v1, v2, v0}, Lm3/i;->j(Ljava/lang/String;JLjava/lang/String;)V
    :try_end_2e
    .catchall {:try_start_7 .. :try_end_2e} :catchall_32

    .line 4
    :cond_2e
    invoke-interface {p1}, Lcom/bumptech/glide/load/data/d;->b()V

    return-object p2

    :catchall_32
    move-exception p2

    invoke-interface {p1}, Lcom/bumptech/glide/load/data/d;->b()V

    throw p2
.end method

.method public final f(Ljava/lang/Object;Lcom/bumptech/glide/load/a;)Lm3/w;
    .registers 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<Data:",
            "Ljava/lang/Object;",
            ">(TData;",
            "Lcom/bumptech/glide/load/a;",
            ")",
            "Lm3/w<",
            "TR;>;"
        }
    .end annotation

    iget-object v0, p0, Lm3/i;->r:Lm3/h;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v0, v1}, Lm3/h;->d(Ljava/lang/Class;)Lm3/u;

    move-result-object v2

    .line 1
    iget-object v0, p0, Lm3/i;->F:Lk3/e;

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

    const/16 v3, 0x1a

    if-ge v1, v3, :cond_13

    goto :goto_33

    :cond_13
    sget-object v1, Lcom/bumptech/glide/load/a;->u:Lcom/bumptech/glide/load/a;

    if-eq p2, v1, :cond_20

    iget-object v1, p0, Lm3/i;->r:Lm3/h;

    .line 2
    iget-boolean v1, v1, Lm3/h;->r:Z

    if-eqz v1, :cond_1e

    goto :goto_20

    :cond_1e
    const/4 v1, 0x0

    goto :goto_21

    :cond_20
    :goto_20
    const/4 v1, 0x1

    .line 3
    :goto_21
    sget-object v3, Lt3/l;->i:Lk3/d;

    invoke-virtual {v0, v3}, Lk3/e;->c(Lk3/d;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Boolean;

    if-eqz v4, :cond_35

    invoke-virtual {v4}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v4

    if-eqz v4, :cond_33

    if-eqz v1, :cond_35

    :cond_33
    :goto_33
    move-object v4, v0

    goto :goto_49

    :cond_35
    new-instance v0, Lk3/e;

    invoke-direct {v0}, Lk3/e;-><init>()V

    iget-object v4, p0, Lm3/i;->F:Lk3/e;

    invoke-virtual {v0, v4}, Lk3/e;->d(Lk3/e;)V

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

    move-result-object v1

    .line 4
    iget-object v4, v0, Lk3/e;->b:Lr/a;

    invoke-virtual {v4, v3, v1}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_33

    .line 5
    :goto_49
    iget-object v0, p0, Lm3/i;->y:Lcom/bumptech/glide/d;

    .line 6
    iget-object v0, v0, Lcom/bumptech/glide/d;->b:Lcom/bumptech/glide/g;

    .line 7
    iget-object v0, v0, Lcom/bumptech/glide/g;->e:Lcom/bumptech/glide/load/data/f;

    .line 8
    monitor-enter v0

    :try_start_50
    iget-object v1, v0, Lcom/bumptech/glide/load/data/f;->a:Ljava/util/Map;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

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

    move-result-object v1

    check-cast v1, Lcom/bumptech/glide/load/data/e$a;

    if-nez v1, :cond_83

    iget-object v3, v0, Lcom/bumptech/glide/load/data/f;->a:Ljava/util/Map;

    invoke-interface {v3}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v3

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

    move-result v5

    if-eqz v5, :cond_83

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

    move-result-object v5

    check-cast v5, Lcom/bumptech/glide/load/data/e$a;

    invoke-interface {v5}, Lcom/bumptech/glide/load/data/e$a;->a()Ljava/lang/Class;

    move-result-object v6

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z

    move-result v6

    if-eqz v6, :cond_68

    move-object v1, v5

    :cond_83
    if-nez v1, :cond_87

    sget-object v1, Lcom/bumptech/glide/load/data/f;->b:Lcom/bumptech/glide/load/data/e$a;

    :cond_87
    invoke-interface {v1, p1}, Lcom/bumptech/glide/load/data/e$a;->b(Ljava/lang/Object;)Lcom/bumptech/glide/load/data/e;

    move-result-object p1
    :try_end_8b
    .catchall {:try_start_50 .. :try_end_8b} :catchall_a3

    monitor-exit v0

    .line 9
    :try_start_8c
    iget v5, p0, Lm3/i;->C:I

    iget v6, p0, Lm3/i;->D:I

    new-instance v7, Lm3/i$b;

    invoke-direct {v7, p0, p2}, Lm3/i$b;-><init>(Lm3/i;Lcom/bumptech/glide/load/a;)V

    move-object v3, p1

    invoke-virtual/range {v2 .. v7}, Lm3/u;->a(Lcom/bumptech/glide/load/data/e;Lk3/e;IILm3/j$a;)Lm3/w;

    move-result-object p2
    :try_end_9a
    .catchall {:try_start_8c .. :try_end_9a} :catchall_9e

    invoke-interface {p1}, Lcom/bumptech/glide/load/data/e;->b()V

    return-object p2

    :catchall_9e
    move-exception p2

    invoke-interface {p1}, Lcom/bumptech/glide/load/data/e;->b()V

    throw p2

    :catchall_a3
    move-exception p1

    .line 10
    monitor-exit v0

    throw p1
.end method

.method public final g()V
    .registers 14

    const-string v0, "DecodeJob"

    const/4 v1, 0x2

    invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v0

    if-eqz v0, :cond_33

    const-string v0, "Retrieved data"

    iget-wide v1, p0, Lm3/i;->K:J

    const-string v3, "data: "

    invoke-static {v3}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lm3/i;->Q:Ljava/lang/Object;

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

    const-string v4, ", cache key: "

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

    iget-object v4, p0, Lm3/i;->O:Lk3/c;

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

    const-string v4, ", fetcher: "

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

    iget-object v4, p0, Lm3/i;->S:Lcom/bumptech/glide/load/data/d;

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

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

    move-result-object v3

    invoke-virtual {p0, v0, v1, v2, v3}, Lm3/i;->j(Ljava/lang/String;JLjava/lang/String;)V

    :cond_33
    const/4 v0, 0x0

    :try_start_34
    iget-object v1, p0, Lm3/i;->S:Lcom/bumptech/glide/load/data/d;

    iget-object v2, p0, Lm3/i;->Q:Ljava/lang/Object;

    iget-object v3, p0, Lm3/i;->R:Lcom/bumptech/glide/load/a;

    invoke-virtual {p0, v1, v2, v3}, Lm3/i;->e(Lcom/bumptech/glide/load/data/d;Ljava/lang/Object;Lcom/bumptech/glide/load/a;)Lm3/w;

    move-result-object v1
    :try_end_3e
    .catch Lm3/r; {:try_start_34 .. :try_end_3e} :catch_3f

    goto :goto_50

    :catch_3f
    move-exception v1

    iget-object v2, p0, Lm3/i;->P:Lk3/c;

    iget-object v3, p0, Lm3/i;->R:Lcom/bumptech/glide/load/a;

    .line 1
    iput-object v2, v1, Lm3/r;->s:Lk3/c;

    iput-object v3, v1, Lm3/r;->t:Lcom/bumptech/glide/load/a;

    iput-object v0, v1, Lm3/r;->u:Ljava/lang/Class;

    .line 2
    iget-object v2, p0, Lm3/i;->s:Ljava/util/List;

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

    move-object v1, v0

    :goto_50
    if-eqz v1, :cond_162

    iget-object v2, p0, Lm3/i;->R:Lcom/bumptech/glide/load/a;

    iget-boolean v3, p0, Lm3/i;->W:Z

    .line 3
    instance-of v4, v1, Lm3/s;

    if-eqz v4, :cond_60

    move-object v4, v1

    check-cast v4, Lm3/s;

    invoke-interface {v4}, Lm3/s;->initialize()V

    :cond_60
    iget-object v4, p0, Lm3/i;->w:Lm3/i$c;

    .line 4
    iget-object v4, v4, Lm3/i$c;->c:Lm3/v;

    const/4 v5, 0x0

    const/4 v6, 0x1

    if-eqz v4, :cond_6a

    move v4, v6

    goto :goto_6b

    :cond_6a
    move v4, v5

    :goto_6b
    if-eqz v4, :cond_72

    .line 5
    invoke-static {v1}, Lm3/v;->e(Lm3/w;)Lm3/v;

    move-result-object v0

    move-object v1, v0

    .line 6
    :cond_72
    invoke-virtual {p0}, Lm3/i;->o()V

    iget-object v4, p0, Lm3/i;->G:Lm3/i$a;

    check-cast v4, Lm3/m;

    .line 7
    monitor-enter v4

    :try_start_7a
    iput-object v1, v4, Lm3/m;->H:Lm3/w;

    iput-object v2, v4, Lm3/m;->I:Lcom/bumptech/glide/load/a;

    iput-boolean v3, v4, Lm3/m;->P:Z

    monitor-exit v4
    :try_end_81
    .catchall {:try_start_7a .. :try_end_81} :catchall_15f

    .line 8
    monitor-enter v4

    :try_start_82
    iget-object v1, v4, Lm3/m;->s:Lh4/d;

    invoke-virtual {v1}, Lh4/d;->a()V

    iget-boolean v1, v4, Lm3/m;->O:Z

    if-eqz v1, :cond_95

    iget-object v1, v4, Lm3/m;->H:Lm3/w;

    invoke-interface {v1}, Lm3/w;->c()V

    invoke-virtual {v4}, Lm3/m;->g()V

    monitor-exit v4

    goto :goto_f9

    :cond_95
    iget-object v1, v4, Lm3/m;->r:Lm3/m$e;

    invoke-virtual {v1}, Lm3/m$e;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_154

    iget-boolean v1, v4, Lm3/m;->J:Z

    if-nez v1, :cond_14c

    iget-object v1, v4, Lm3/m;->v:Lm3/m$c;

    iget-object v8, v4, Lm3/m;->H:Lm3/w;

    iget-boolean v9, v4, Lm3/m;->D:Z

    iget-object v11, v4, Lm3/m;->C:Lk3/c;

    iget-object v12, v4, Lm3/m;->t:Lm3/q$a;

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

    .line 9
    new-instance v1, Lm3/q;

    const/4 v10, 0x1

    move-object v7, v1

    invoke-direct/range {v7 .. v12}, Lm3/q;-><init>(Lm3/w;ZZLk3/c;Lm3/q$a;)V

    .line 10
    iput-object v1, v4, Lm3/m;->M:Lm3/q;

    iput-boolean v6, v4, Lm3/m;->J:Z

    iget-object v1, v4, Lm3/m;->r:Lm3/m$e;

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

    .line 11
    new-instance v2, Ljava/util/ArrayList;

    iget-object v1, v1, Lm3/m$e;->r:Ljava/util/List;

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

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

    move-result v1

    add-int/2addr v1, v6

    .line 13
    invoke-virtual {v4, v1}, Lm3/m;->e(I)V

    iget-object v1, v4, Lm3/m;->C:Lk3/c;

    iget-object v3, v4, Lm3/m;->M:Lm3/q;

    monitor-exit v4
    :try_end_d2
    .catchall {:try_start_82 .. :try_end_d2} :catchall_15c

    iget-object v7, v4, Lm3/m;->w:Lm3/n;

    check-cast v7, Lm3/l;

    invoke-virtual {v7, v4, v1, v3}, Lm3/l;->e(Lm3/m;Lk3/c;Lm3/q;)V

    .line 14
    invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .line 15
    :goto_dd
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_f6

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

    move-result-object v2

    check-cast v2, Lm3/m$d;

    iget-object v3, v2, Lm3/m$d;->b:Ljava/util/concurrent/Executor;

    new-instance v7, Lm3/m$b;

    iget-object v2, v2, Lm3/m$d;->a:Lc4/g;

    invoke-direct {v7, v4, v2}, Lm3/m$b;-><init>(Lm3/m;Lc4/g;)V

    invoke-interface {v3, v7}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    goto :goto_dd

    :cond_f6
    invoke-virtual {v4}, Lm3/m;->c()V

    .line 16
    :goto_f9
    sget-object v1, Lm3/i$g;->v:Lm3/i$g;

    iput-object v1, p0, Lm3/i;->I:Lm3/i$g;

    :try_start_fd
    iget-object v1, p0, Lm3/i;->w:Lm3/i$c;

    .line 17
    iget-object v2, v1, Lm3/i$c;->c:Lm3/v;

    if-eqz v2, :cond_105

    move v2, v6

    goto :goto_106

    :cond_105
    move v2, v5

    :goto_106
    if-eqz v2, :cond_12d

    .line 18
    iget-object v2, p0, Lm3/i;->u:Lm3/i$d;

    iget-object v3, p0, Lm3/i;->F:Lk3/e;
    :try_end_10c
    .catchall {:try_start_fd .. :try_end_10c} :catchall_145

    .line 19
    :try_start_10c
    check-cast v2, Lm3/l$c;

    invoke-virtual {v2}, Lm3/l$c;->a()Lo3/a;

    move-result-object v2

    iget-object v4, v1, Lm3/i$c;->a:Lk3/c;

    new-instance v7, Lm3/f;

    iget-object v8, v1, Lm3/i$c;->b:Lk3/g;

    iget-object v9, v1, Lm3/i$c;->c:Lm3/v;

    invoke-direct {v7, v8, v9, v3}, Lm3/f;-><init>(Lk3/a;Ljava/lang/Object;Lk3/e;)V

    invoke-interface {v2, v4, v7}, Lo3/a;->a(Lk3/c;Lo3/a$b;)V
    :try_end_120
    .catchall {:try_start_10c .. :try_end_120} :catchall_126

    :try_start_120
    iget-object v1, v1, Lm3/i$c;->c:Lm3/v;

    invoke-virtual {v1}, Lm3/v;->f()V

    goto :goto_12d

    :catchall_126
    move-exception v2

    iget-object v1, v1, Lm3/i$c;->c:Lm3/v;

    invoke-virtual {v1}, Lm3/v;->f()V

    throw v2
    :try_end_12d
    .catchall {:try_start_120 .. :try_end_12d} :catchall_145

    :cond_12d
    :goto_12d
    if-eqz v0, :cond_132

    .line 20
    invoke-virtual {v0}, Lm3/v;->f()V

    .line 21
    :cond_132
    iget-object v0, p0, Lm3/i;->x:Lm3/i$e;

    .line 22
    monitor-enter v0

    :try_start_135
    iput-boolean v6, v0, Lm3/i$e;->b:Z

    invoke-virtual {v0, v5}, Lm3/i$e;->a(Z)Z

    move-result v1
    :try_end_13b
    .catchall {:try_start_135 .. :try_end_13b} :catchall_142

    monitor-exit v0

    if-eqz v1, :cond_165

    .line 23
    invoke-virtual {p0}, Lm3/i;->l()V

    goto :goto_165

    :catchall_142
    move-exception v1

    .line 24
    monitor-exit v0

    throw v1

    :catchall_145
    move-exception v1

    if-eqz v0, :cond_14b

    .line 25
    invoke-virtual {v0}, Lm3/v;->f()V

    :cond_14b
    throw v1

    .line 26
    :cond_14c
    :try_start_14c
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Already have resource"

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

    throw v0

    :cond_154
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Received a resource without any callbacks to notify"

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

    throw v0

    :catchall_15c
    move-exception v0

    monitor-exit v4
    :try_end_15e
    .catchall {:try_start_14c .. :try_end_15e} :catchall_15c

    throw v0

    :catchall_15f
    move-exception v0

    .line 27
    :try_start_160
    monitor-exit v4
    :try_end_161
    .catchall {:try_start_160 .. :try_end_161} :catchall_15f

    throw v0

    .line 28
    :cond_162
    invoke-virtual {p0}, Lm3/i;->m()V

    :cond_165
    :goto_165
    return-void
.end method

.method public final h()Lm3/g;
    .registers 4

    iget-object v0, p0, Lm3/i;->I:Lm3/i$g;

    invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I

    move-result v0

    const/4 v1, 0x1

    if-eq v0, v1, :cond_39

    const/4 v1, 0x2

    if-eq v0, v1, :cond_31

    const/4 v1, 0x3

    if-eq v0, v1, :cond_29

    const/4 v1, 0x5

    if-ne v0, v1, :cond_14

    const/4 v0, 0x0

    return-object v0

    :cond_14
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Unrecognized stage: "

    invoke-static {v1}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lm3/i;->I:Lm3/i$g;

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

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

    move-result-object v1

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

    throw v0

    :cond_29
    new-instance v0, Lm3/b0;

    iget-object v1, p0, Lm3/i;->r:Lm3/h;

    invoke-direct {v0, v1, p0}, Lm3/b0;-><init>(Lm3/h;Lm3/g$a;)V

    return-object v0

    :cond_31
    new-instance v0, Lm3/d;

    iget-object v1, p0, Lm3/i;->r:Lm3/h;

    invoke-direct {v0, v1, p0}, Lm3/d;-><init>(Lm3/h;Lm3/g$a;)V

    return-object v0

    :cond_39
    new-instance v0, Lm3/x;

    iget-object v1, p0, Lm3/i;->r:Lm3/h;

    invoke-direct {v0, v1, p0}, Lm3/x;-><init>(Lm3/h;Lm3/g$a;)V

    return-object v0
.end method

.method public final i(Lm3/i$g;)Lm3/i$g;
    .registers 6

    sget-object v0, Lm3/i$g;->s:Lm3/i$g;

    sget-object v1, Lm3/i$g;->t:Lm3/i$g;

    sget-object v2, Lm3/i$g;->w:Lm3/i$g;

    invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I

    move-result v3

    if-eqz v3, :cond_47

    const/4 v0, 0x1

    if-eq v3, v0, :cond_39

    const/4 v0, 0x2

    if-eq v3, v0, :cond_31

    const/4 v0, 0x3

    if-eq v3, v0, :cond_30

    const/4 v0, 0x5

    if-ne v3, v0, :cond_19

    goto :goto_30

    :cond_19
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Unrecognized stage: "

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

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

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

    move-result-object p1

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

    throw v0

    :cond_30
    :goto_30
    return-object v2

    :cond_31
    iget-boolean p1, p0, Lm3/i;->L:Z

    if-eqz p1, :cond_36

    goto :goto_38

    :cond_36
    sget-object v2, Lm3/i$g;->u:Lm3/i$g;

    :goto_38
    return-object v2

    :cond_39
    iget-object p1, p0, Lm3/i;->E:Lm3/k;

    invoke-virtual {p1}, Lm3/k;->a()Z

    move-result p1

    if-eqz p1, :cond_42

    goto :goto_46

    :cond_42
    invoke-virtual {p0, v1}, Lm3/i;->i(Lm3/i$g;)Lm3/i$g;

    move-result-object v1

    :goto_46
    return-object v1

    :cond_47
    iget-object p1, p0, Lm3/i;->E:Lm3/k;

    invoke-virtual {p1}, Lm3/k;->b()Z

    move-result p1

    if-eqz p1, :cond_50

    goto :goto_54

    :cond_50
    invoke-virtual {p0, v0}, Lm3/i;->i(Lm3/i$g;)Lm3/i$g;

    move-result-object v0

    :goto_54
    return-object v0
.end method

.method public final j(Ljava/lang/String;JLjava/lang/String;)V
    .registers 6

    const-string v0, " in "

    invoke-static {p1, v0}, Le/k;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p1

    invoke-static {p2, p3}, Lg4/f;->a(J)D

    move-result-wide p2

    invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    const-string p2, ", load key: "

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

    iget-object p2, p0, Lm3/i;->B:Lm3/o;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    if-eqz p4, :cond_20

    const-string p2, ", "

    invoke-static {p2, p4}, Le/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    goto :goto_22

    :cond_20
    const-string p2, ""

    :goto_22
    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, ", thread: "

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

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Thread;->getName()Ljava/lang/String;

    move-result-object p2

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

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

    move-result-object p1

    const-string p2, "DecodeJob"

    invoke-static {p2, p1}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public final k()V
    .registers 7

    invoke-virtual {p0}, Lm3/i;->o()V

    new-instance v0, Lm3/r;

    const-string v1, "Failed to load resource"

    new-instance v2, Ljava/util/ArrayList;

    iget-object v3, p0, Lm3/i;->s:Ljava/util/List;

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

    invoke-direct {v0, v1, v2}, Lm3/r;-><init>(Ljava/lang/String;Ljava/util/List;)V

    iget-object v1, p0, Lm3/i;->G:Lm3/i$a;

    check-cast v1, Lm3/m;

    .line 1
    monitor-enter v1

    :try_start_16
    iput-object v0, v1, Lm3/m;->K:Lm3/r;

    monitor-exit v1
    :try_end_19
    .catchall {:try_start_16 .. :try_end_19} :catchall_9d

    .line 2
    monitor-enter v1

    :try_start_1a
    iget-object v0, v1, Lm3/m;->s:Lh4/d;

    invoke-virtual {v0}, Lh4/d;->a()V

    iget-boolean v0, v1, Lm3/m;->O:Z

    const/4 v2, 0x1

    if-eqz v0, :cond_29

    invoke-virtual {v1}, Lm3/m;->g()V

    monitor-exit v1

    goto :goto_76

    :cond_29
    iget-object v0, v1, Lm3/m;->r:Lm3/m$e;

    invoke-virtual {v0}, Lm3/m$e;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_92

    iget-boolean v0, v1, Lm3/m;->L:Z

    if-nez v0, :cond_8a

    iput-boolean v2, v1, Lm3/m;->L:Z

    iget-object v0, v1, Lm3/m;->C:Lk3/c;

    iget-object v3, v1, Lm3/m;->r:Lm3/m$e;

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

    .line 3
    new-instance v4, Ljava/util/ArrayList;

    iget-object v3, v3, Lm3/m$e;->r:Ljava/util/List;

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

    .line 4
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v3

    add-int/2addr v3, v2

    .line 5
    invoke-virtual {v1, v3}, Lm3/m;->e(I)V

    monitor-exit v1
    :try_end_4e
    .catchall {:try_start_1a .. :try_end_4e} :catchall_9a

    iget-object v3, v1, Lm3/m;->w:Lm3/n;

    const/4 v5, 0x0

    check-cast v3, Lm3/l;

    invoke-virtual {v3, v1, v0, v5}, Lm3/l;->e(Lm3/m;Lk3/c;Lm3/q;)V

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

    move-result-object v0

    .line 7
    :goto_5a
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_73

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

    move-result-object v3

    check-cast v3, Lm3/m$d;

    iget-object v4, v3, Lm3/m$d;->b:Ljava/util/concurrent/Executor;

    new-instance v5, Lm3/m$a;

    iget-object v3, v3, Lm3/m$d;->a:Lc4/g;

    invoke-direct {v5, v1, v3}, Lm3/m$a;-><init>(Lm3/m;Lc4/g;)V

    invoke-interface {v4, v5}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    goto :goto_5a

    :cond_73
    invoke-virtual {v1}, Lm3/m;->c()V

    .line 8
    :goto_76
    iget-object v0, p0, Lm3/i;->x:Lm3/i$e;

    .line 9
    monitor-enter v0

    :try_start_79
    iput-boolean v2, v0, Lm3/i$e;->c:Z

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lm3/i$e;->a(Z)Z

    move-result v1
    :try_end_80
    .catchall {:try_start_79 .. :try_end_80} :catchall_87

    monitor-exit v0

    if-eqz v1, :cond_86

    .line 10
    invoke-virtual {p0}, Lm3/i;->l()V

    :cond_86
    return-void

    :catchall_87
    move-exception v1

    .line 11
    monitor-exit v0

    throw v1

    .line 12
    :cond_8a
    :try_start_8a
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v2, "Already failed once"

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

    throw v0

    :cond_92
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v2, "Received an exception without any callbacks to notify"

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

    throw v0

    :catchall_9a
    move-exception v0

    monitor-exit v1
    :try_end_9c
    .catchall {:try_start_8a .. :try_end_9c} :catchall_9a

    throw v0

    :catchall_9d
    move-exception v0

    .line 13
    :try_start_9e
    monitor-exit v1
    :try_end_9f
    .catchall {:try_start_9e .. :try_end_9f} :catchall_9d

    throw v0
.end method

.method public final l()V
    .registers 6

    iget-object v0, p0, Lm3/i;->x:Lm3/i$e;

    .line 1
    monitor-enter v0

    const/4 v1, 0x0

    :try_start_4
    iput-boolean v1, v0, Lm3/i$e;->b:Z

    iput-boolean v1, v0, Lm3/i$e;->a:Z

    iput-boolean v1, v0, Lm3/i$e;->c:Z
    :try_end_a
    .catchall {:try_start_4 .. :try_end_a} :catchall_65

    monitor-exit v0

    .line 2
    iget-object v0, p0, Lm3/i;->w:Lm3/i$c;

    const/4 v2, 0x0

    .line 3
    iput-object v2, v0, Lm3/i$c;->a:Lk3/c;

    iput-object v2, v0, Lm3/i$c;->b:Lk3/g;

    iput-object v2, v0, Lm3/i$c;->c:Lm3/v;

    .line 4
    iget-object v0, p0, Lm3/i;->r:Lm3/h;

    .line 5
    iput-object v2, v0, Lm3/h;->c:Lcom/bumptech/glide/d;

    iput-object v2, v0, Lm3/h;->d:Ljava/lang/Object;

    iput-object v2, v0, Lm3/h;->n:Lk3/c;

    iput-object v2, v0, Lm3/h;->g:Ljava/lang/Class;

    iput-object v2, v0, Lm3/h;->k:Ljava/lang/Class;

    iput-object v2, v0, Lm3/h;->i:Lk3/e;

    iput-object v2, v0, Lm3/h;->o:Lcom/bumptech/glide/f;

    iput-object v2, v0, Lm3/h;->j:Ljava/util/Map;

    iput-object v2, v0, Lm3/h;->p:Lm3/k;

    iget-object v3, v0, Lm3/h;->a:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->clear()V

    iput-boolean v1, v0, Lm3/h;->l:Z

    iget-object v3, v0, Lm3/h;->b:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->clear()V

    iput-boolean v1, v0, Lm3/h;->m:Z

    .line 6
    iput-boolean v1, p0, Lm3/i;->U:Z

    iput-object v2, p0, Lm3/i;->y:Lcom/bumptech/glide/d;

    iput-object v2, p0, Lm3/i;->z:Lk3/c;

    iput-object v2, p0, Lm3/i;->F:Lk3/e;

    iput-object v2, p0, Lm3/i;->A:Lcom/bumptech/glide/f;

    iput-object v2, p0, Lm3/i;->B:Lm3/o;

    iput-object v2, p0, Lm3/i;->G:Lm3/i$a;

    iput-object v2, p0, Lm3/i;->I:Lm3/i$g;

    iput-object v2, p0, Lm3/i;->T:Lm3/g;

    iput-object v2, p0, Lm3/i;->N:Ljava/lang/Thread;

    iput-object v2, p0, Lm3/i;->O:Lk3/c;

    iput-object v2, p0, Lm3/i;->Q:Ljava/lang/Object;

    iput-object v2, p0, Lm3/i;->R:Lcom/bumptech/glide/load/a;

    iput-object v2, p0, Lm3/i;->S:Lcom/bumptech/glide/load/data/d;

    const-wide/16 v3, 0x0

    iput-wide v3, p0, Lm3/i;->K:J

    iput-boolean v1, p0, Lm3/i;->V:Z

    iput-object v2, p0, Lm3/i;->M:Ljava/lang/Object;

    iget-object v0, p0, Lm3/i;->s:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    iget-object v0, p0, Lm3/i;->v:Lk0/c;

    invoke-interface {v0, p0}, Lk0/c;->a(Ljava/lang/Object;)Z

    return-void

    :catchall_65
    move-exception v1

    .line 7
    monitor-exit v0

    throw v1
.end method

.method public final m()V
    .registers 4

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    iput-object v0, p0, Lm3/i;->N:Ljava/lang/Thread;

    sget v0, Lg4/f;->b:I

    .line 1
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtimeNanos()J

    move-result-wide v0

    .line 2
    iput-wide v0, p0, Lm3/i;->K:J

    const/4 v0, 0x0

    :cond_f
    iget-boolean v1, p0, Lm3/i;->V:Z

    if-nez v1, :cond_3f

    iget-object v1, p0, Lm3/i;->T:Lm3/g;

    if-eqz v1, :cond_3f

    iget-object v0, p0, Lm3/i;->T:Lm3/g;

    invoke-interface {v0}, Lm3/g;->e()Z

    move-result v0

    if-nez v0, :cond_3f

    iget-object v1, p0, Lm3/i;->I:Lm3/i$g;

    invoke-virtual {p0, v1}, Lm3/i;->i(Lm3/i$g;)Lm3/i$g;

    move-result-object v1

    iput-object v1, p0, Lm3/i;->I:Lm3/i$g;

    invoke-virtual {p0}, Lm3/i;->h()Lm3/g;

    move-result-object v1

    iput-object v1, p0, Lm3/i;->T:Lm3/g;

    iget-object v1, p0, Lm3/i;->I:Lm3/i$g;

    sget-object v2, Lm3/i$g;->u:Lm3/i$g;

    if-ne v1, v2, :cond_f

    .line 3
    sget-object v0, Lm3/i$f;->s:Lm3/i$f;

    iput-object v0, p0, Lm3/i;->J:Lm3/i$f;

    iget-object v0, p0, Lm3/i;->G:Lm3/i$a;

    check-cast v0, Lm3/m;

    invoke-virtual {v0, p0}, Lm3/m;->i(Lm3/i;)V

    return-void

    .line 4
    :cond_3f
    iget-object v1, p0, Lm3/i;->I:Lm3/i$g;

    sget-object v2, Lm3/i$g;->w:Lm3/i$g;

    if-eq v1, v2, :cond_49

    iget-boolean v1, p0, Lm3/i;->V:Z

    if-eqz v1, :cond_4e

    :cond_49
    if-nez v0, :cond_4e

    invoke-virtual {p0}, Lm3/i;->k()V

    :cond_4e
    return-void
.end method

.method public final n()V
    .registers 4

    iget-object v0, p0, Lm3/i;->J:Lm3/i$f;

    invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I

    move-result v0

    if-eqz v0, :cond_27

    const/4 v1, 0x1

    if-eq v0, v1, :cond_35

    const/4 v1, 0x2

    if-ne v0, v1, :cond_12

    invoke-virtual {p0}, Lm3/i;->g()V

    goto :goto_38

    :cond_12
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Unrecognized run reason: "

    invoke-static {v1}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lm3/i;->J:Lm3/i$f;

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

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

    move-result-object v1

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

    throw v0

    :cond_27
    sget-object v0, Lm3/i$g;->r:Lm3/i$g;

    invoke-virtual {p0, v0}, Lm3/i;->i(Lm3/i$g;)Lm3/i$g;

    move-result-object v0

    iput-object v0, p0, Lm3/i;->I:Lm3/i$g;

    invoke-virtual {p0}, Lm3/i;->h()Lm3/g;

    move-result-object v0

    iput-object v0, p0, Lm3/i;->T:Lm3/g;

    :cond_35
    invoke-virtual {p0}, Lm3/i;->m()V

    :goto_38
    return-void
.end method

.method public final o()V
    .registers 4

    iget-object v0, p0, Lm3/i;->t:Lh4/d;

    invoke-virtual {v0}, Lh4/d;->a()V

    iget-boolean v0, p0, Lm3/i;->U:Z

    const/4 v1, 0x1

    if-eqz v0, :cond_29

    iget-object v0, p0, Lm3/i;->s:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_14

    const/4 v0, 0x0

    goto :goto_21

    :cond_14
    iget-object v0, p0, Lm3/i;->s:Ljava/util/List;

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

    move-result v2

    sub-int/2addr v2, v1

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Throwable;

    :goto_21
    new-instance v1, Ljava/lang/IllegalStateException;

    const-string v2, "Already notified"

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

    throw v1

    :cond_29
    iput-boolean v1, p0, Lm3/i;->U:Z

    return-void
.end method

.method public run()V
    .registers 6

    const-string v0, "DecodeJob"

    iget-object v1, p0, Lm3/i;->S:Lcom/bumptech/glide/load/data/d;

    :try_start_4
    iget-boolean v2, p0, Lm3/i;->V:Z

    if-eqz v2, :cond_11

    invoke-virtual {p0}, Lm3/i;->k()V
    :try_end_b
    .catch Lm3/c; {:try_start_4 .. :try_end_b} :catch_56
    .catchall {:try_start_4 .. :try_end_b} :catchall_1a

    if-eqz v1, :cond_10

    invoke-interface {v1}, Lcom/bumptech/glide/load/data/d;->b()V

    :cond_10
    return-void

    :cond_11
    :try_start_11
    invoke-virtual {p0}, Lm3/i;->n()V
    :try_end_14
    .catch Lm3/c; {:try_start_11 .. :try_end_14} :catch_56
    .catchall {:try_start_11 .. :try_end_14} :catchall_1a

    if-eqz v1, :cond_19

    invoke-interface {v1}, Lcom/bumptech/glide/load/data/d;->b()V

    :cond_19
    return-void

    :catchall_1a
    move-exception v2

    const/4 v3, 0x3

    :try_start_1c
    invoke-static {v0, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

    move-result v3

    if-eqz v3, :cond_42

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "DecodeJob threw unexpectedly, isCancelled: "

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

    iget-boolean v4, p0, Lm3/i;->V:Z

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

    const-string v4, ", stage: "

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

    iget-object v4, p0, Lm3/i;->I:Lm3/i$g;

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

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

    move-result-object v3

    invoke-static {v0, v3, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :cond_42
    iget-object v0, p0, Lm3/i;->I:Lm3/i$g;

    sget-object v3, Lm3/i$g;->v:Lm3/i$g;

    if-eq v0, v3, :cond_50

    iget-object v0, p0, Lm3/i;->s:Ljava/util/List;

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

    invoke-virtual {p0}, Lm3/i;->k()V

    :cond_50
    iget-boolean v0, p0, Lm3/i;->V:Z

    if-nez v0, :cond_55

    throw v2

    :cond_55
    throw v2

    :catch_56
    move-exception v0

    throw v0
    :try_end_58
    .catchall {:try_start_1c .. :try_end_58} :catchall_58

    :catchall_58
    move-exception v0

    if-eqz v1, :cond_5e

    invoke-interface {v1}, Lcom/bumptech/glide/load/data/d;->b()V

    :cond_5e
    throw v0
.end method
