k.smali

.class public Ld1/k;
.super Ljava/lang/Object;
.source "EngineJob.java"

# interfaces
.implements Lcom/bumptech/glide/load/engine/DecodeJob$b;
.implements Lz1/a$f;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ld1/k$c;,
        Ld1/k$d;,
        Ld1/k$e;,
        Ld1/k$b;,
        Ld1/k$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<R:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lcom/bumptech/glide/load/engine/DecodeJob$b<",
        "TR;>;",
        "Lz1/a$f;"
    }
.end annotation


# static fields
.field public static final x:Ld1/k$c;


# instance fields
.field public final a:Ld1/k$e;

.field public final b:Lz1/c;

.field public final c:Landroidx/core/util/Pools$Pool;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/core/util/Pools$Pool<",
            "Ld1/k<",
            "*>;>;"
        }
    .end annotation
.end field

.field public final d:Ld1/k$c;

.field public final e:Ld1/l;

.field public final f:Lg1/a;

.field public final g:Lg1/a;

.field public final h:Lg1/a;

.field public final i:Lg1/a;

.field public final j:Ljava/util/concurrent/atomic/AtomicInteger;

.field public k:La1/d;

.field public l:Z

.field public m:Z

.field public n:Z

.field public o:Z

.field public p:Ld1/u;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ld1/u<",
            "*>;"
        }
    .end annotation
.end field

.field public q:Lcom/bumptech/glide/load/DataSource;

.field public r:Z

.field public s:Ld1/p;

.field public t:Z

.field public u:Ld1/o;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ld1/o<",
            "*>;"
        }
    .end annotation
.end field

.field public v:Lcom/bumptech/glide/load/engine/DecodeJob;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/bumptech/glide/load/engine/DecodeJob<",
            "TR;>;"
        }
    .end annotation
.end field

.field public volatile w:Z


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

    new-instance v0, Ld1/k$c;

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

    sput-object v0, Ld1/k;->x:Ld1/k$c;

    return-void
.end method

.method public constructor <init>(Lg1/a;Lg1/a;Lg1/a;Lg1/a;Ld1/l;Landroidx/core/util/Pools$Pool;)V
    .registers 15
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lg1/a;",
            "Lg1/a;",
            "Lg1/a;",
            "Lg1/a;",
            "Ld1/l;",
            "Landroidx/core/util/Pools$Pool<",
            "Ld1/k<",
            "*>;>;)V"
        }
    .end annotation

    sget-object v7, Ld1/k;->x:Ld1/k$c;

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    move-object v5, p5

    move-object v6, p6

    invoke-direct/range {v0 .. v7}, Ld1/k;-><init>(Lg1/a;Lg1/a;Lg1/a;Lg1/a;Ld1/l;Landroidx/core/util/Pools$Pool;Ld1/k$c;)V

    return-void
.end method

.method public constructor <init>(Lg1/a;Lg1/a;Lg1/a;Lg1/a;Ld1/l;Landroidx/core/util/Pools$Pool;Ld1/k$c;)V
    .registers 9
    .annotation build Landroidx/annotation/VisibleForTesting;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lg1/a;",
            "Lg1/a;",
            "Lg1/a;",
            "Lg1/a;",
            "Ld1/l;",
            "Landroidx/core/util/Pools$Pool<",
            "Ld1/k<",
            "*>;>;",
            "Ld1/k$c;",
            ")V"
        }
    .end annotation

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

    new-instance v0, Ld1/k$e;

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

    iput-object v0, p0, Ld1/k;->a:Ld1/k$e;

    invoke-static {}, Lz1/c;->b()Lz1/c;

    move-result-object v0

    iput-object v0, p0, Ld1/k;->b:Lz1/c;

    new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;

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

    iput-object v0, p0, Ld1/k;->j:Ljava/util/concurrent/atomic/AtomicInteger;

    iput-object p1, p0, Ld1/k;->f:Lg1/a;

    iput-object p2, p0, Ld1/k;->g:Lg1/a;

    iput-object p3, p0, Ld1/k;->h:Lg1/a;

    iput-object p4, p0, Ld1/k;->i:Lg1/a;

    iput-object p5, p0, Ld1/k;->e:Ld1/l;

    iput-object p6, p0, Ld1/k;->c:Landroidx/core/util/Pools$Pool;

    iput-object p7, p0, Ld1/k;->d:Ld1/k$c;

    return-void
.end method


# virtual methods
.method public declared-synchronized a(La1/d;ZZZZ)Ld1/k;
    .registers 6
    .annotation build Landroidx/annotation/VisibleForTesting;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "La1/d;",
            "ZZZZ)",
            "Ld1/k<",
            "TR;>;"
        }
    .end annotation

    monitor-enter p0

    :try_start_1
    iput-object p1, p0, Ld1/k;->k:La1/d;

    iput-boolean p2, p0, Ld1/k;->l:Z

    iput-boolean p3, p0, Ld1/k;->m:Z

    iput-boolean p4, p0, Ld1/k;->n:Z

    iput-boolean p5, p0, Ld1/k;->o:Z
    :try_end_b
    .catchall {:try_start_1 .. :try_end_b} :catchall_d

    monitor-exit p0

    return-object p0

    :catchall_d
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public a()Lz1/c;
    .registers 2
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    iget-object v0, p0, Ld1/k;->b:Lz1/c;

    return-object v0
.end method

.method public declared-synchronized a(I)V
    .registers 4

    monitor-enter p0

    :try_start_1
    invoke-virtual {p0}, Ld1/k;->e()Z

    move-result v0

    const-string v1, "Not yet complete!"

    invoke-static {v0, v1}, Ly1/j;->a(ZLjava/lang/String;)V

    iget-object v0, p0, Ld1/k;->j:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndAdd(I)I

    move-result p1

    if-nez p1, :cond_1b

    iget-object p1, p0, Ld1/k;->u:Ld1/o;

    if-eqz p1, :cond_1b

    iget-object p1, p0, Ld1/k;->u:Ld1/o;

    invoke-virtual {p1}, Ld1/o;->a()V
    :try_end_1b
    .catchall {:try_start_1 .. :try_end_1b} :catchall_1d

    :cond_1b
    monitor-exit p0

    return-void

    :catchall_1d
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public a(Lcom/bumptech/glide/load/engine/DecodeJob;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/load/engine/DecodeJob<",
            "*>;)V"
        }
    .end annotation

    invoke-virtual {p0}, Ld1/k;->d()Lg1/a;

    move-result-object v0

    invoke-virtual {v0, p1}, Lg1/a;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public a(Ld1/p;)V
    .registers 2

    monitor-enter p0

    :try_start_1
    iput-object p1, p0, Ld1/k;->s:Ld1/p;

    monitor-exit p0
    :try_end_4
    .catchall {:try_start_1 .. :try_end_4} :catchall_8

    invoke-virtual {p0}, Ld1/k;->f()V

    return-void

    :catchall_8
    move-exception p1

    :try_start_9
    monitor-exit p0
    :try_end_a
    .catchall {:try_start_9 .. :try_end_a} :catchall_8

    throw p1
.end method

.method public a(Ld1/u;Lcom/bumptech/glide/load/DataSource;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ld1/u<",
            "TR;>;",
            "Lcom/bumptech/glide/load/DataSource;",
            ")V"
        }
    .end annotation

    monitor-enter p0

    :try_start_1
    iput-object p1, p0, Ld1/k;->p:Ld1/u;

    iput-object p2, p0, Ld1/k;->q:Lcom/bumptech/glide/load/DataSource;

    monitor-exit p0
    :try_end_6
    .catchall {:try_start_1 .. :try_end_6} :catchall_a

    invoke-virtual {p0}, Ld1/k;->g()V

    return-void

    :catchall_a
    move-exception p1

    :try_start_b
    monitor-exit p0
    :try_end_c
    .catchall {:try_start_b .. :try_end_c} :catchall_a

    throw p1
.end method

.method public declared-synchronized a(Lu1/g;)V
    .registers 3

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Ld1/k;->s:Ld1/p;

    invoke-interface {p1, v0}, Lu1/g;->a(Ld1/p;)V
    :try_end_6
    .catchall {:try_start_1 .. :try_end_6} :catchall_8

    monitor-exit p0

    return-void

    :catchall_8
    move-exception p1

    :try_start_9
    new-instance v0, Ld1/b;

    invoke-direct {v0, p1}, Ld1/b;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_f
    .catchall {:try_start_9 .. :try_end_f} :catchall_f

    :catchall_f
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized a(Lu1/g;Ljava/util/concurrent/Executor;)V
    .registers 5

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Ld1/k;->b:Lz1/c;

    invoke-virtual {v0}, Lz1/c;->a()V

    iget-object v0, p0, Ld1/k;->a:Ld1/k$e;

    invoke-virtual {v0, p1, p2}, Ld1/k$e;->a(Lu1/g;Ljava/util/concurrent/Executor;)V

    iget-boolean v0, p0, Ld1/k;->r:Z

    const/4 v1, 0x1

    if-eqz v0, :cond_1c

    invoke-virtual {p0, v1}, Ld1/k;->a(I)V

    new-instance v0, Ld1/k$b;

    invoke-direct {v0, p0, p1}, Ld1/k$b;-><init>(Ld1/k;Lu1/g;)V

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

    goto :goto_37

    :cond_1c
    iget-boolean v0, p0, Ld1/k;->t:Z

    if-eqz v0, :cond_2c

    invoke-virtual {p0, v1}, Ld1/k;->a(I)V

    new-instance v0, Ld1/k$a;

    invoke-direct {v0, p0, p1}, Ld1/k$a;-><init>(Ld1/k;Lu1/g;)V

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

    goto :goto_37

    :cond_2c
    iget-boolean p1, p0, Ld1/k;->w:Z

    if-nez p1, :cond_31

    goto :goto_32

    :cond_31
    const/4 v1, 0x0

    :goto_32
    const-string p1, "Cannot add callbacks to a cancelled EngineJob"

    invoke-static {v1, p1}, Ly1/j;->a(ZLjava/lang/String;)V
    :try_end_37
    .catchall {:try_start_1 .. :try_end_37} :catchall_39

    :goto_37
    monitor-exit p0

    return-void

    :catchall_39
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public b()V
    .registers 3

    invoke-virtual {p0}, Ld1/k;->e()Z

    move-result v0

    if-eqz v0, :cond_7

    return-void

    :cond_7
    const/4 v0, 0x1

    iput-boolean v0, p0, Ld1/k;->w:Z

    iget-object v0, p0, Ld1/k;->v:Lcom/bumptech/glide/load/engine/DecodeJob;

    invoke-virtual {v0}, Lcom/bumptech/glide/load/engine/DecodeJob;->c()V

    iget-object v0, p0, Ld1/k;->e:Ld1/l;

    iget-object v1, p0, Ld1/k;->k:La1/d;

    invoke-interface {v0, p0, v1}, Ld1/l;->a(Ld1/k;La1/d;)V

    return-void
.end method

.method public declared-synchronized b(Lcom/bumptech/glide/load/engine/DecodeJob;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/load/engine/DecodeJob<",
            "TR;>;)V"
        }
    .end annotation

    monitor-enter p0

    :try_start_1
    iput-object p1, p0, Ld1/k;->v:Lcom/bumptech/glide/load/engine/DecodeJob;

    invoke-virtual {p1}, Lcom/bumptech/glide/load/engine/DecodeJob;->o()Z

    move-result v0

    if-eqz v0, :cond_c

    iget-object v0, p0, Ld1/k;->f:Lg1/a;

    goto :goto_10

    :cond_c
    invoke-virtual {p0}, Ld1/k;->d()Lg1/a;

    move-result-object v0

    :goto_10
    invoke-virtual {v0, p1}, Lg1/a;->execute(Ljava/lang/Runnable;)V
    :try_end_13
    .catchall {:try_start_1 .. :try_end_13} :catchall_15

    monitor-exit p0

    return-void

    :catchall_15
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized b(Lu1/g;)V
    .registers 4

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Ld1/k;->u:Ld1/o;

    iget-object v1, p0, Ld1/k;->q:Lcom/bumptech/glide/load/DataSource;

    invoke-interface {p1, v0, v1}, Lu1/g;->a(Ld1/u;Lcom/bumptech/glide/load/DataSource;)V
    :try_end_8
    .catchall {:try_start_1 .. :try_end_8} :catchall_a

    monitor-exit p0

    return-void

    :catchall_a
    move-exception p1

    :try_start_b
    new-instance v0, Ld1/b;

    invoke-direct {v0, p1}, Ld1/b;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_11
    .catchall {:try_start_b .. :try_end_11} :catchall_11

    :catchall_11
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized c()V
    .registers 4

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Ld1/k;->b:Lz1/c;

    invoke-virtual {v0}, Lz1/c;->a()V

    invoke-virtual {p0}, Ld1/k;->e()Z

    move-result v0

    const-string v1, "Not yet complete!"

    invoke-static {v0, v1}, Ly1/j;->a(ZLjava/lang/String;)V

    iget-object v0, p0, Ld1/k;->j:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I

    move-result v0

    if-ltz v0, :cond_19

    const/4 v1, 0x1

    goto :goto_1a

    :cond_19
    const/4 v1, 0x0

    :goto_1a
    const-string v2, "Can\'t decrement below 0"

    invoke-static {v1, v2}, Ly1/j;->a(ZLjava/lang/String;)V

    if-nez v0, :cond_2d

    iget-object v0, p0, Ld1/k;->u:Ld1/o;

    if-eqz v0, :cond_2a

    iget-object v0, p0, Ld1/k;->u:Ld1/o;

    invoke-virtual {v0}, Ld1/o;->e()V

    :cond_2a
    invoke-virtual {p0}, Ld1/k;->i()V
    :try_end_2d
    .catchall {:try_start_1 .. :try_end_2d} :catchall_2f

    :cond_2d
    monitor-exit p0

    return-void

    :catchall_2f
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized c(Lu1/g;)V
    .registers 3

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Ld1/k;->b:Lz1/c;

    invoke-virtual {v0}, Lz1/c;->a()V

    iget-object v0, p0, Ld1/k;->a:Ld1/k$e;

    invoke-virtual {v0, p1}, Ld1/k$e;->b(Lu1/g;)V

    iget-object p1, p0, Ld1/k;->a:Ld1/k$e;

    invoke-virtual {p1}, Ld1/k$e;->isEmpty()Z

    move-result p1

    if-eqz p1, :cond_2f

    invoke-virtual {p0}, Ld1/k;->b()V

    iget-boolean p1, p0, Ld1/k;->r:Z

    if-nez p1, :cond_21

    iget-boolean p1, p0, Ld1/k;->t:Z

    if-eqz p1, :cond_1f

    goto :goto_21

    :cond_1f
    const/4 p1, 0x0

    goto :goto_22

    :cond_21
    :goto_21
    const/4 p1, 0x1

    :goto_22
    if-eqz p1, :cond_2f

    iget-object p1, p0, Ld1/k;->j:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I

    move-result p1

    if-nez p1, :cond_2f

    invoke-virtual {p0}, Ld1/k;->i()V
    :try_end_2f
    .catchall {:try_start_1 .. :try_end_2f} :catchall_31

    :cond_2f
    monitor-exit p0

    return-void

    :catchall_31
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public final d()Lg1/a;
    .registers 2

    iget-boolean v0, p0, Ld1/k;->m:Z

    if-eqz v0, :cond_7

    iget-object v0, p0, Ld1/k;->h:Lg1/a;

    goto :goto_10

    :cond_7
    iget-boolean v0, p0, Ld1/k;->n:Z

    if-eqz v0, :cond_e

    iget-object v0, p0, Ld1/k;->i:Lg1/a;

    goto :goto_10

    :cond_e
    iget-object v0, p0, Ld1/k;->g:Lg1/a;

    :goto_10
    return-object v0
.end method

.method public final e()Z
    .registers 2

    iget-boolean v0, p0, Ld1/k;->t:Z

    if-nez v0, :cond_f

    iget-boolean v0, p0, Ld1/k;->r:Z

    if-nez v0, :cond_f

    iget-boolean v0, p0, Ld1/k;->w:Z

    if-eqz v0, :cond_d

    goto :goto_f

    :cond_d
    const/4 v0, 0x0

    goto :goto_10

    :cond_f
    :goto_f
    const/4 v0, 0x1

    :goto_10
    return v0
.end method

.method public f()V
    .registers 5

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Ld1/k;->b:Lz1/c;

    invoke-virtual {v0}, Lz1/c;->a()V

    iget-boolean v0, p0, Ld1/k;->w:Z

    if-eqz v0, :cond_f

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

    monitor-exit p0

    return-void

    :cond_f
    iget-object v0, p0, Ld1/k;->a:Ld1/k$e;

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

    move-result v0

    if-nez v0, :cond_5e

    iget-boolean v0, p0, Ld1/k;->t:Z

    if-nez v0, :cond_56

    const/4 v0, 0x1

    iput-boolean v0, p0, Ld1/k;->t:Z

    iget-object v1, p0, Ld1/k;->k:La1/d;

    iget-object v2, p0, Ld1/k;->a:Ld1/k$e;

    invoke-virtual {v2}, Ld1/k$e;->c()Ld1/k$e;

    move-result-object v2

    invoke-virtual {v2}, Ld1/k$e;->size()I

    move-result v3

    add-int/2addr v3, v0

    invoke-virtual {p0, v3}, Ld1/k;->a(I)V

    monitor-exit p0
    :try_end_2f
    .catchall {:try_start_1 .. :try_end_2f} :catchall_66

    iget-object v0, p0, Ld1/k;->e:Ld1/l;

    const/4 v3, 0x0

    invoke-interface {v0, p0, v1, v3}, Ld1/l;->a(Ld1/k;La1/d;Ld1/o;)V

    invoke-virtual {v2}, Ld1/k$e;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_52

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

    move-result-object v1

    check-cast v1, Ld1/k$d;

    iget-object v2, v1, Ld1/k$d;->b:Ljava/util/concurrent/Executor;

    new-instance v3, Ld1/k$a;

    iget-object v1, v1, Ld1/k$d;->a:Lu1/g;

    invoke-direct {v3, p0, v1}, Ld1/k$a;-><init>(Ld1/k;Lu1/g;)V

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

    goto :goto_39

    :cond_52
    invoke-virtual {p0}, Ld1/k;->c()V

    return-void

    :cond_56
    :try_start_56
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Already failed once"

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

    throw v0

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

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

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

    throw v0

    :catchall_66
    move-exception v0

    monitor-exit p0
    :try_end_68
    .catchall {:try_start_56 .. :try_end_68} :catchall_66

    goto :goto_6a

    :goto_69
    throw v0

    :goto_6a
    goto :goto_69
.end method

.method public g()V
    .registers 5

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Ld1/k;->b:Lz1/c;

    invoke-virtual {v0}, Lz1/c;->a()V

    iget-boolean v0, p0, Ld1/k;->w:Z

    if-eqz v0, :cond_14

    iget-object v0, p0, Ld1/k;->p:Ld1/u;

    invoke-interface {v0}, Ld1/u;->recycle()V

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

    monitor-exit p0

    return-void

    :cond_14
    iget-object v0, p0, Ld1/k;->a:Ld1/k$e;

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

    move-result v0

    if-nez v0, :cond_70

    iget-boolean v0, p0, Ld1/k;->r:Z

    if-nez v0, :cond_68

    iget-object v0, p0, Ld1/k;->d:Ld1/k$c;

    iget-object v1, p0, Ld1/k;->p:Ld1/u;

    iget-boolean v2, p0, Ld1/k;->l:Z

    invoke-virtual {v0, v1, v2}, Ld1/k$c;->a(Ld1/u;Z)Ld1/o;

    move-result-object v0

    iput-object v0, p0, Ld1/k;->u:Ld1/o;

    const/4 v0, 0x1

    iput-boolean v0, p0, Ld1/k;->r:Z

    iget-object v1, p0, Ld1/k;->a:Ld1/k$e;

    invoke-virtual {v1}, Ld1/k$e;->c()Ld1/k$e;

    move-result-object v1

    invoke-virtual {v1}, Ld1/k$e;->size()I

    move-result v2

    add-int/2addr v2, v0

    invoke-virtual {p0, v2}, Ld1/k;->a(I)V

    iget-object v0, p0, Ld1/k;->k:La1/d;

    iget-object v2, p0, Ld1/k;->u:Ld1/o;

    monitor-exit p0
    :try_end_42
    .catchall {:try_start_1 .. :try_end_42} :catchall_78

    iget-object v3, p0, Ld1/k;->e:Ld1/l;

    invoke-interface {v3, p0, v0, v2}, Ld1/l;->a(Ld1/k;La1/d;Ld1/o;)V

    invoke-virtual {v1}, Ld1/k$e;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_64

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

    move-result-object v1

    check-cast v1, Ld1/k$d;

    iget-object v2, v1, Ld1/k$d;->b:Ljava/util/concurrent/Executor;

    new-instance v3, Ld1/k$b;

    iget-object v1, v1, Ld1/k$d;->a:Lu1/g;

    invoke-direct {v3, p0, v1}, Ld1/k$b;-><init>(Ld1/k;Lu1/g;)V

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

    goto :goto_4b

    :cond_64
    invoke-virtual {p0}, Ld1/k;->c()V

    return-void

    :cond_68
    :try_start_68
    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_70
    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_78
    move-exception v0

    monitor-exit p0
    :try_end_7a
    .catchall {:try_start_68 .. :try_end_7a} :catchall_78

    goto :goto_7c

    :goto_7b
    throw v0

    :goto_7c
    goto :goto_7b
.end method

.method public h()Z
    .registers 2

    iget-boolean v0, p0, Ld1/k;->o:Z

    return v0
.end method

.method public final declared-synchronized i()V
    .registers 4

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Ld1/k;->k:La1/d;

    if-eqz v0, :cond_2a

    iget-object v0, p0, Ld1/k;->a:Ld1/k$e;

    invoke-virtual {v0}, Ld1/k$e;->clear()V

    const/4 v0, 0x0

    iput-object v0, p0, Ld1/k;->k:La1/d;

    iput-object v0, p0, Ld1/k;->u:Ld1/o;

    iput-object v0, p0, Ld1/k;->p:Ld1/u;

    const/4 v1, 0x0

    iput-boolean v1, p0, Ld1/k;->t:Z

    iput-boolean v1, p0, Ld1/k;->w:Z

    iput-boolean v1, p0, Ld1/k;->r:Z

    iget-object v2, p0, Ld1/k;->v:Lcom/bumptech/glide/load/engine/DecodeJob;

    invoke-virtual {v2, v1}, Lcom/bumptech/glide/load/engine/DecodeJob;->a(Z)V

    iput-object v0, p0, Ld1/k;->v:Lcom/bumptech/glide/load/engine/DecodeJob;

    iput-object v0, p0, Ld1/k;->s:Ld1/p;

    iput-object v0, p0, Ld1/k;->q:Lcom/bumptech/glide/load/DataSource;

    iget-object v0, p0, Ld1/k;->c:Landroidx/core/util/Pools$Pool;

    invoke-interface {v0, p0}, Landroidx/core/util/Pools$Pool;->release(Ljava/lang/Object;)Z
    :try_end_28
    .catchall {:try_start_1 .. :try_end_28} :catchall_30

    monitor-exit p0

    return-void

    :cond_2a
    :try_start_2a
    new-instance v0, Ljava/lang/IllegalArgumentException;

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

    throw v0
    :try_end_30
    .catchall {:try_start_2a .. :try_end_30} :catchall_30

    :catchall_30
    move-exception v0

    monitor-exit p0

    throw v0
.end method