h.smali

.class public final Lcom/bumptech/glide/r/h;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lcom/bumptech/glide/r/c;
.implements Lcom/bumptech/glide/r/j/g;
.implements Lcom/bumptech/glide/r/g;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/bumptech/glide/r/h$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<R:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lcom/bumptech/glide/r/c;",
        "Lcom/bumptech/glide/r/j/g;",
        "Lcom/bumptech/glide/r/g;"
    }
.end annotation


# static fields
.field private static final D:Z


# instance fields
.field private A:I

.field private B:Z

.field private C:Ljava/lang/RuntimeException;

.field private final a:Ljava/lang/String;

.field private final b:Lcom/bumptech/glide/t/l/c;

.field private final c:Ljava/lang/Object;

.field private final d:Lcom/bumptech/glide/r/e;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/bumptech/glide/r/e<",
            "TR;>;"
        }
    .end annotation
.end field

.field private final e:Lcom/bumptech/glide/r/d;

.field private final f:Landroid/content/Context;

.field private final g:Lcom/bumptech/glide/d;

.field private final h:Ljava/lang/Object;

.field private final i:Ljava/lang/Class;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/Class<",
            "TR;>;"
        }
    .end annotation
.end field

.field private final j:Lcom/bumptech/glide/r/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/bumptech/glide/r/a<",
            "*>;"
        }
    .end annotation
.end field

.field private final k:I

.field private final l:I

.field private final m:Lcom/bumptech/glide/g;

.field private final n:Lcom/bumptech/glide/r/j/h;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/bumptech/glide/r/j/h<",
            "TR;>;"
        }
    .end annotation
.end field

.field private final o:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/bumptech/glide/r/e<",
            "TR;>;>;"
        }
    .end annotation
.end field

.field private final p:Lcom/bumptech/glide/r/k/c;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/bumptech/glide/r/k/c<",
            "-TR;>;"
        }
    .end annotation
.end field

.field private final q:Ljava/util/concurrent/Executor;

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

.field private s:Lcom/bumptech/glide/load/n/k$d;

.field private t:J

.field private volatile u:Lcom/bumptech/glide/load/n/k;

.field private v:Lcom/bumptech/glide/r/h$a;

.field private w:Landroid/graphics/drawable/Drawable;

.field private x:Landroid/graphics/drawable/Drawable;

.field private y:Landroid/graphics/drawable/Drawable;

.field private z:I


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

    const-string v0, "Request"

    const/4 v1, 0x2

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

    move-result v0

    sput-boolean v0, Lcom/bumptech/glide/r/h;->D:Z

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/d;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;Lcom/bumptech/glide/r/a;IILcom/bumptech/glide/g;Lcom/bumptech/glide/r/j/h;Lcom/bumptech/glide/r/e;Ljava/util/List;Lcom/bumptech/glide/r/d;Lcom/bumptech/glide/load/n/k;Lcom/bumptech/glide/r/k/c;Ljava/util/concurrent/Executor;)V
    .registers 20
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/bumptech/glide/d;",
            "Ljava/lang/Object;",
            "Ljava/lang/Object;",
            "Ljava/lang/Class<",
            "TR;>;",
            "Lcom/bumptech/glide/r/a<",
            "*>;II",
            "Lcom/bumptech/glide/g;",
            "Lcom/bumptech/glide/r/j/h<",
            "TR;>;",
            "Lcom/bumptech/glide/r/e<",
            "TR;>;",
            "Ljava/util/List<",
            "Lcom/bumptech/glide/r/e<",
            "TR;>;>;",
            "Lcom/bumptech/glide/r/d;",
            "Lcom/bumptech/glide/load/n/k;",
            "Lcom/bumptech/glide/r/k/c<",
            "-TR;>;",
            "Ljava/util/concurrent/Executor;",
            ")V"
        }
    .end annotation

    move-object v0, p0

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

    sget-boolean v1, Lcom/bumptech/glide/r/h;->D:Z

    if-eqz v1, :cond_11

    invoke-super {p0}, Ljava/lang/Object;->hashCode()I

    move-result v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    goto :goto_12

    :cond_11
    const/4 v1, 0x0

    :goto_12
    iput-object v1, v0, Lcom/bumptech/glide/r/h;->a:Ljava/lang/String;

    invoke-static {}, Lcom/bumptech/glide/t/l/c;->a()Lcom/bumptech/glide/t/l/c;

    move-result-object v1

    iput-object v1, v0, Lcom/bumptech/glide/r/h;->b:Lcom/bumptech/glide/t/l/c;

    move-object v1, p3

    iput-object v1, v0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    move-object v1, p1

    iput-object v1, v0, Lcom/bumptech/glide/r/h;->f:Landroid/content/Context;

    move-object v1, p2

    iput-object v1, v0, Lcom/bumptech/glide/r/h;->g:Lcom/bumptech/glide/d;

    move-object v2, p4

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

    move-object v2, p5

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->i:Ljava/lang/Class;

    move-object v2, p6

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    move v2, p7

    iput v2, v0, Lcom/bumptech/glide/r/h;->k:I

    move v2, p8

    iput v2, v0, Lcom/bumptech/glide/r/h;->l:I

    move-object v2, p9

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->m:Lcom/bumptech/glide/g;

    move-object v2, p10

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    move-object v2, p11

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->d:Lcom/bumptech/glide/r/e;

    move-object v2, p12

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->o:Ljava/util/List;

    move-object/from16 v2, p13

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->e:Lcom/bumptech/glide/r/d;

    move-object/from16 v2, p14

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->u:Lcom/bumptech/glide/load/n/k;

    move-object/from16 v2, p15

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->p:Lcom/bumptech/glide/r/k/c;

    move-object/from16 v2, p16

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->q:Ljava/util/concurrent/Executor;

    sget-object v2, Lcom/bumptech/glide/r/h$a;->e:Lcom/bumptech/glide/r/h$a;

    iput-object v2, v0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    iget-object v2, v0, Lcom/bumptech/glide/r/h;->C:Ljava/lang/RuntimeException;

    if-nez v2, :cond_6b

    invoke-virtual {p2}, Lcom/bumptech/glide/d;->g()Lcom/bumptech/glide/e;

    move-result-object v1

    const-class v2, Lcom/bumptech/glide/c$c;

    invoke-virtual {v1, v2}, Lcom/bumptech/glide/e;->a(Ljava/lang/Class;)Z

    move-result v1

    if-eqz v1, :cond_6b

    new-instance v1, Ljava/lang/RuntimeException;

    const-string v2, "Glide request origin trace"

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

    iput-object v1, v0, Lcom/bumptech/glide/r/h;->C:Ljava/lang/RuntimeException;

    :cond_6b
    return-void
.end method

.method private A()V
    .registers 3

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->l()Z

    move-result v0

    if-nez v0, :cond_7

    return-void

    :cond_7
    const/4 v0, 0x0

    iget-object v1, p0, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

    if-nez v1, :cond_10

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->p()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    :cond_10
    if-nez v0, :cond_16

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->o()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    :cond_16
    if-nez v0, :cond_1c

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->q()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    :cond_1c
    iget-object v1, p0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    invoke-interface {v1, v0}, Lcom/bumptech/glide/r/j/h;->d(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method private i()V
    .registers 3

    iget-boolean v0, p0, Lcom/bumptech/glide/r/h;->B:Z

    if-nez v0, :cond_5

    return-void

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

    const-string v1, "You can\'t start or clear loads in RequestListener or Target callbacks. If you\'re trying to start a fallback request when a load fails, use RequestBuilder#error(RequestBuilder). Otherwise consider posting your into() or clear() calls to the main thread using a Handler instead."

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

    throw v0
.end method

.method private k()Z
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->e:Lcom/bumptech/glide/r/d;

    if-eqz v0, :cond_d

    invoke-interface {v0, p0}, Lcom/bumptech/glide/r/d;->k(Lcom/bumptech/glide/r/c;)Z

    move-result v0

    if-eqz v0, :cond_b

    goto :goto_d

    :cond_b
    const/4 v0, 0x0

    goto :goto_e

    :cond_d
    :goto_d
    const/4 v0, 0x1

    :goto_e
    return v0
.end method

.method private l()Z
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->e:Lcom/bumptech/glide/r/d;

    if-eqz v0, :cond_d

    invoke-interface {v0, p0}, Lcom/bumptech/glide/r/d;->e(Lcom/bumptech/glide/r/c;)Z

    move-result v0

    if-eqz v0, :cond_b

    goto :goto_d

    :cond_b
    const/4 v0, 0x0

    goto :goto_e

    :cond_d
    :goto_d
    const/4 v0, 0x1

    :goto_e
    return v0
.end method

.method private m()Z
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->e:Lcom/bumptech/glide/r/d;

    if-eqz v0, :cond_d

    invoke-interface {v0, p0}, Lcom/bumptech/glide/r/d;->g(Lcom/bumptech/glide/r/c;)Z

    move-result v0

    if-eqz v0, :cond_b

    goto :goto_d

    :cond_b
    const/4 v0, 0x0

    goto :goto_e

    :cond_d
    :goto_d
    const/4 v0, 0x1

    :goto_e
    return v0
.end method

.method private n()V
    .registers 2

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->i()V

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->b:Lcom/bumptech/glide/t/l/c;

    invoke-virtual {v0}, Lcom/bumptech/glide/t/l/c;->c()V

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    invoke-interface {v0, p0}, Lcom/bumptech/glide/r/j/h;->a(Lcom/bumptech/glide/r/j/g;)V

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->s:Lcom/bumptech/glide/load/n/k$d;

    if-eqz v0, :cond_17

    invoke-virtual {v0}, Lcom/bumptech/glide/load/n/k$d;->a()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/bumptech/glide/r/h;->s:Lcom/bumptech/glide/load/n/k$d;

    :cond_17
    return-void
.end method

.method private o()Landroid/graphics/drawable/Drawable;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->w:Landroid/graphics/drawable/Drawable;

    if-nez v0, :cond_22

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->k()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/bumptech/glide/r/h;->w:Landroid/graphics/drawable/Drawable;

    if-nez v0, :cond_22

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->j()I

    move-result v0

    if-lez v0, :cond_22

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->j()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/bumptech/glide/r/h;->s(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/bumptech/glide/r/h;->w:Landroid/graphics/drawable/Drawable;

    :cond_22
    iget-object v0, p0, Lcom/bumptech/glide/r/h;->w:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method private p()Landroid/graphics/drawable/Drawable;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->y:Landroid/graphics/drawable/Drawable;

    if-nez v0, :cond_22

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->l()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/bumptech/glide/r/h;->y:Landroid/graphics/drawable/Drawable;

    if-nez v0, :cond_22

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->m()I

    move-result v0

    if-lez v0, :cond_22

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->m()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/bumptech/glide/r/h;->s(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/bumptech/glide/r/h;->y:Landroid/graphics/drawable/Drawable;

    :cond_22
    iget-object v0, p0, Lcom/bumptech/glide/r/h;->y:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method private q()Landroid/graphics/drawable/Drawable;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->x:Landroid/graphics/drawable/Drawable;

    if-nez v0, :cond_22

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->s()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/bumptech/glide/r/h;->x:Landroid/graphics/drawable/Drawable;

    if-nez v0, :cond_22

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->t()I

    move-result v0

    if-lez v0, :cond_22

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->t()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/bumptech/glide/r/h;->s(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/bumptech/glide/r/h;->x:Landroid/graphics/drawable/Drawable;

    :cond_22
    iget-object v0, p0, Lcom/bumptech/glide/r/h;->x:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method private r()Z
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->e:Lcom/bumptech/glide/r/d;

    if-eqz v0, :cond_11

    invoke-interface {v0}, Lcom/bumptech/glide/r/d;->c()Lcom/bumptech/glide/r/d;

    move-result-object v0

    invoke-interface {v0}, Lcom/bumptech/glide/r/d;->b()Z

    move-result v0

    if-nez v0, :cond_f

    goto :goto_11

    :cond_f
    const/4 v0, 0x0

    goto :goto_12

    :cond_11
    :goto_11
    const/4 v0, 0x1

    :goto_12
    return v0
.end method

.method private s(I)Landroid/graphics/drawable/Drawable;
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->y()Landroid/content/res/Resources$Theme;

    move-result-object v0

    if-eqz v0, :cond_f

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->y()Landroid/content/res/Resources$Theme;

    move-result-object v0

    goto :goto_15

    :cond_f
    iget-object v0, p0, Lcom/bumptech/glide/r/h;->f:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;

    move-result-object v0

    :goto_15
    iget-object v1, p0, Lcom/bumptech/glide/r/h;->g:Lcom/bumptech/glide/d;

    invoke-static {v1, p1, v0}, Lcom/bumptech/glide/load/p/f/a;->a(Landroid/content/Context;ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    return-object p1
.end method

.method private t(Ljava/lang/String;)V
    .registers 3

    new-instance v0, Ljava/lang/StringBuilder;

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

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

    const-string p1, " this: "

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

    iget-object p1, p0, Lcom/bumptech/glide/r/h;->a:Ljava/lang/String;

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

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

    move-result-object p1

    const-string v0, "Request"

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

    return-void
.end method

.method private static u(IF)I
    .registers 3

    const/high16 v0, -0x80000000

    if-ne p0, v0, :cond_5

    goto :goto_c

    :cond_5
    int-to-float p0, p0

    mul-float p1, p1, p0

    invoke-static {p1}, Ljava/lang/Math;->round(F)I

    move-result p0

    :goto_c
    return p0
.end method

.method private v()V
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->e:Lcom/bumptech/glide/r/d;

    if-eqz v0, :cond_7

    invoke-interface {v0, p0}, Lcom/bumptech/glide/r/d;->a(Lcom/bumptech/glide/r/c;)V

    :cond_7
    return-void
.end method

.method private w()V
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->e:Lcom/bumptech/glide/r/d;

    if-eqz v0, :cond_7

    invoke-interface {v0, p0}, Lcom/bumptech/glide/r/d;->i(Lcom/bumptech/glide/r/c;)V

    :cond_7
    return-void
.end method

.method public static x(Landroid/content/Context;Lcom/bumptech/glide/d;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;Lcom/bumptech/glide/r/a;IILcom/bumptech/glide/g;Lcom/bumptech/glide/r/j/h;Lcom/bumptech/glide/r/e;Ljava/util/List;Lcom/bumptech/glide/r/d;Lcom/bumptech/glide/load/n/k;Lcom/bumptech/glide/r/k/c;Ljava/util/concurrent/Executor;)Lcom/bumptech/glide/r/h;
    .registers 34
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<R:",
            "Ljava/lang/Object;",
            ">(",
            "Landroid/content/Context;",
            "Lcom/bumptech/glide/d;",
            "Ljava/lang/Object;",
            "Ljava/lang/Object;",
            "Ljava/lang/Class<",
            "TR;>;",
            "Lcom/bumptech/glide/r/a<",
            "*>;II",
            "Lcom/bumptech/glide/g;",
            "Lcom/bumptech/glide/r/j/h<",
            "TR;>;",
            "Lcom/bumptech/glide/r/e<",
            "TR;>;",
            "Ljava/util/List<",
            "Lcom/bumptech/glide/r/e<",
            "TR;>;>;",
            "Lcom/bumptech/glide/r/d;",
            "Lcom/bumptech/glide/load/n/k;",
            "Lcom/bumptech/glide/r/k/c<",
            "-TR;>;",
            "Ljava/util/concurrent/Executor;",
            ")",
            "Lcom/bumptech/glide/r/h<",
            "TR;>;"
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v2, p1

    move-object/from16 v3, p2

    move-object/from16 v4, p3

    move-object/from16 v5, p4

    move-object/from16 v6, p5

    move/from16 v7, p6

    move/from16 v8, p7

    move-object/from16 v9, p8

    move-object/from16 v10, p9

    move-object/from16 v11, p10

    move-object/from16 v12, p11

    move-object/from16 v13, p12

    move-object/from16 v14, p13

    move-object/from16 v15, p14

    move-object/from16 v16, p15

    new-instance v17, Lcom/bumptech/glide/r/h;

    move-object/from16 v0, v17

    invoke-direct/range {v0 .. v16}, Lcom/bumptech/glide/r/h;-><init>(Landroid/content/Context;Lcom/bumptech/glide/d;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;Lcom/bumptech/glide/r/a;IILcom/bumptech/glide/g;Lcom/bumptech/glide/r/j/h;Lcom/bumptech/glide/r/e;Ljava/util/List;Lcom/bumptech/glide/r/d;Lcom/bumptech/glide/load/n/k;Lcom/bumptech/glide/r/k/c;Ljava/util/concurrent/Executor;)V

    return-object v17
.end method

.method private y(Lcom/bumptech/glide/load/n/q;I)V
    .registers 11

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->b:Lcom/bumptech/glide/t/l/c;

    invoke-virtual {v0}, Lcom/bumptech/glide/t/l/c;->c()V

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v0

    :try_start_8
    iget-object v1, p0, Lcom/bumptech/glide/r/h;->C:Ljava/lang/RuntimeException;

    invoke-virtual {p1, v1}, Lcom/bumptech/glide/load/n/q;->p(Ljava/lang/Exception;)V

    iget-object v1, p0, Lcom/bumptech/glide/r/h;->g:Lcom/bumptech/glide/d;

    invoke-virtual {v1}, Lcom/bumptech/glide/d;->h()I

    move-result v1

    if-gt v1, p2, :cond_4e

    const-string p2, "Glide"

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "Load failed for "

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

    iget-object v3, p0, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

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

    const-string v3, " with size ["

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

    iget v3, p0, Lcom/bumptech/glide/r/h;->z:I

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

    const-string v3, "x"

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

    iget v3, p0, Lcom/bumptech/glide/r/h;->A:I

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

    const-string v3, "]"

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

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

    move-result-object v2

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

    const/4 p2, 0x4

    if-gt v1, p2, :cond_4e

    const-string p2, "Glide"

    invoke-virtual {p1, p2}, Lcom/bumptech/glide/load/n/q;->l(Ljava/lang/String;)V

    :cond_4e
    const/4 p2, 0x0

    iput-object p2, p0, Lcom/bumptech/glide/r/h;->s:Lcom/bumptech/glide/load/n/k$d;

    sget-object p2, Lcom/bumptech/glide/r/h$a;->i:Lcom/bumptech/glide/r/h$a;

    iput-object p2, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    const/4 p2, 0x1

    iput-boolean p2, p0, Lcom/bumptech/glide/r/h;->B:Z
    :try_end_58
    .catchall {:try_start_8 .. :try_end_58} :catchall_a3

    const/4 v1, 0x0

    :try_start_59
    iget-object v2, p0, Lcom/bumptech/glide/r/h;->o:Ljava/util/List;

    if-eqz v2, :cond_7c

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

    move-result-object v2

    const/4 v3, 0x0

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

    move-result v4

    if-eqz v4, :cond_7d

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

    move-result-object v4

    check-cast v4, Lcom/bumptech/glide/r/e;

    iget-object v5, p0, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

    iget-object v6, p0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->r()Z

    move-result v7

    invoke-interface {v4, p1, v5, v6, v7}, Lcom/bumptech/glide/r/e;->a(Lcom/bumptech/glide/load/n/q;Ljava/lang/Object;Lcom/bumptech/glide/r/j/h;Z)Z

    move-result v4

    or-int/2addr v3, v4

    goto :goto_62

    :cond_7c
    const/4 v3, 0x0

    :cond_7d
    iget-object v2, p0, Lcom/bumptech/glide/r/h;->d:Lcom/bumptech/glide/r/e;

    if-eqz v2, :cond_90

    iget-object v4, p0, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

    iget-object v5, p0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->r()Z

    move-result v6

    invoke-interface {v2, p1, v4, v5, v6}, Lcom/bumptech/glide/r/e;->a(Lcom/bumptech/glide/load/n/q;Ljava/lang/Object;Lcom/bumptech/glide/r/j/h;Z)Z

    move-result p1

    if-eqz p1, :cond_90

    goto :goto_91

    :cond_90
    const/4 p2, 0x0

    :goto_91
    or-int p1, v3, p2

    if-nez p1, :cond_98

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->A()V
    :try_end_98
    .catchall {:try_start_59 .. :try_end_98} :catchall_9f

    :cond_98
    :try_start_98
    iput-boolean v1, p0, Lcom/bumptech/glide/r/h;->B:Z

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->v()V

    monitor-exit v0

    return-void

    :catchall_9f
    move-exception p1

    iput-boolean v1, p0, Lcom/bumptech/glide/r/h;->B:Z

    throw p1

    :catchall_a3
    move-exception p1

    monitor-exit v0
    :try_end_a5
    .catchall {:try_start_98 .. :try_end_a5} :catchall_a3

    goto :goto_a7

    :goto_a6
    throw p1

    :goto_a7
    goto :goto_a6
.end method

.method private z(Lcom/bumptech/glide/load/n/v;Ljava/lang/Object;Lcom/bumptech/glide/load/a;Z)V
    .registers 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/load/n/v<",
            "TR;>;TR;",
            "Lcom/bumptech/glide/load/a;",
            "Z)V"
        }
    .end annotation

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->r()Z

    move-result p4

    sget-object v0, Lcom/bumptech/glide/r/h$a;->h:Lcom/bumptech/glide/r/h$a;

    iput-object v0, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    iput-object p1, p0, Lcom/bumptech/glide/r/h;->r:Lcom/bumptech/glide/load/n/v;

    iget-object p1, p0, Lcom/bumptech/glide/r/h;->g:Lcom/bumptech/glide/d;

    invoke-virtual {p1}, Lcom/bumptech/glide/d;->h()I

    move-result p1

    const/4 v0, 0x3

    if-gt p1, v0, :cond_6a

    new-instance p1, Ljava/lang/StringBuilder;

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

    const-string v0, "Finished loading "

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

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

    move-result-object v0

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

    move-result-object v0

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

    const-string v0, " from "

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

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

    const-string v0, " for "

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

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

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

    const-string v0, " with size ["

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

    iget v0, p0, Lcom/bumptech/glide/r/h;->z:I

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

    const-string v0, "x"

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

    iget v0, p0, Lcom/bumptech/glide/r/h;->A:I

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

    const-string v0, "] in "

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

    iget-wide v0, p0, Lcom/bumptech/glide/r/h;->t:J

    invoke-static {v0, v1}, Lcom/bumptech/glide/t/f;->a(J)D

    move-result-wide v0

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

    const-string v0, " ms"

    invoke-virtual {p1, v0}, 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 v0, "Glide"

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

    :cond_6a
    const/4 p1, 0x1

    iput-boolean p1, p0, Lcom/bumptech/glide/r/h;->B:Z

    const/4 v6, 0x0

    :try_start_6e
    iget-object v0, p0, Lcom/bumptech/glide/r/h;->o:Ljava/util/List;

    if-eqz v0, :cond_90

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

    move-result-object v7

    const/4 v8, 0x0

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

    move-result v0

    if-eqz v0, :cond_91

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

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/r/e;

    iget-object v2, p0, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

    iget-object v3, p0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    move-object v1, p2

    move-object v4, p3

    move v5, p4

    invoke-interface/range {v0 .. v5}, Lcom/bumptech/glide/r/e;->b(Ljava/lang/Object;Ljava/lang/Object;Lcom/bumptech/glide/r/j/h;Lcom/bumptech/glide/load/a;Z)Z

    move-result v0

    or-int/2addr v8, v0

    goto :goto_77

    :cond_90
    const/4 v8, 0x0

    :cond_91
    iget-object v0, p0, Lcom/bumptech/glide/r/h;->d:Lcom/bumptech/glide/r/e;

    if-eqz v0, :cond_a3

    iget-object v2, p0, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

    iget-object v3, p0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    move-object v1, p2

    move-object v4, p3

    move v5, p4

    invoke-interface/range {v0 .. v5}, Lcom/bumptech/glide/r/e;->b(Ljava/lang/Object;Ljava/lang/Object;Lcom/bumptech/glide/r/j/h;Lcom/bumptech/glide/load/a;Z)Z

    move-result v0

    if-eqz v0, :cond_a3

    goto :goto_a4

    :cond_a3
    const/4 p1, 0x0

    :goto_a4
    or-int/2addr p1, v8

    if-nez p1, :cond_b2

    iget-object p1, p0, Lcom/bumptech/glide/r/h;->p:Lcom/bumptech/glide/r/k/c;

    invoke-interface {p1, p3, p4}, Lcom/bumptech/glide/r/k/c;->a(Lcom/bumptech/glide/load/a;Z)Lcom/bumptech/glide/r/k/b;

    move-result-object p1

    iget-object p3, p0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    invoke-interface {p3, p2, p1}, Lcom/bumptech/glide/r/j/h;->b(Ljava/lang/Object;Lcom/bumptech/glide/r/k/b;)V
    :try_end_b2
    .catchall {:try_start_6e .. :try_end_b2} :catchall_b8

    :cond_b2
    iput-boolean v6, p0, Lcom/bumptech/glide/r/h;->B:Z

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->w()V

    return-void

    :catchall_b8
    move-exception p1

    iput-boolean v6, p0, Lcom/bumptech/glide/r/h;->B:Z

    goto :goto_bd

    :goto_bc
    throw p1

    :goto_bd
    goto :goto_bc
.end method


# virtual methods
.method public a(Lcom/bumptech/glide/load/n/q;)V
    .registers 3

    const/4 v0, 0x5

    invoke-direct {p0, p1, v0}, Lcom/bumptech/glide/r/h;->y(Lcom/bumptech/glide/load/n/q;I)V

    return-void
.end method

.method public b()Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    sget-object v2, Lcom/bumptech/glide/r/h$a;->h:Lcom/bumptech/glide/r/h$a;

    if-ne v1, v2, :cond_b

    const/4 v1, 0x1

    goto :goto_c

    :cond_b
    const/4 v1, 0x0

    :goto_c
    monitor-exit v0

    return v1

    :catchall_e
    move-exception v1

    monitor-exit v0
    :try_end_10
    .catchall {:try_start_3 .. :try_end_10} :catchall_e

    throw v1
.end method

.method public c(Lcom/bumptech/glide/load/n/v;Lcom/bumptech/glide/load/a;Z)V
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/load/n/v<",
            "*>;",
            "Lcom/bumptech/glide/load/a;",
            "Z)V"
        }
    .end annotation

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->b:Lcom/bumptech/glide/t/l/c;

    invoke-virtual {v0}, Lcom/bumptech/glide/t/l/c;->c()V

    const/4 v0, 0x0

    :try_start_6
    iget-object v1, p0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v1
    :try_end_9
    .catchall {:try_start_6 .. :try_end_9} :catchall_b9

    :try_start_9
    iput-object v0, p0, Lcom/bumptech/glide/r/h;->s:Lcom/bumptech/glide/load/n/k$d;

    if-nez p1, :cond_2f

    new-instance p1, Lcom/bumptech/glide/load/n/q;

    new-instance p2, Ljava/lang/StringBuilder;

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

    const-string p3, "Expected to receive a Resource<R> with an object of "

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

    iget-object p3, p0, Lcom/bumptech/glide/r/h;->i:Ljava/lang/Class;

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

    const-string p3, " inside, but instead got null."

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

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

    move-result-object p2

    invoke-direct {p1, p2}, Lcom/bumptech/glide/load/n/q;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, p1}, Lcom/bumptech/glide/r/h;->a(Lcom/bumptech/glide/load/n/q;)V

    monitor-exit v1

    return-void

    :cond_2f
    invoke-interface {p1}, Lcom/bumptech/glide/load/n/v;->get()Ljava/lang/Object;

    move-result-object v2

    if-eqz v2, :cond_5c

    iget-object v3, p0, Lcom/bumptech/glide/r/h;->i:Ljava/lang/Class;

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

    move-result-object v4

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

    move-result v3

    if-nez v3, :cond_42

    goto :goto_5c

    :cond_42
    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->m()Z

    move-result v3
    :try_end_46
    .catchall {:try_start_9 .. :try_end_46} :catchall_b6

    if-nez v3, :cond_57

    :try_start_48
    iput-object v0, p0, Lcom/bumptech/glide/r/h;->r:Lcom/bumptech/glide/load/n/v;

    sget-object p2, Lcom/bumptech/glide/r/h$a;->h:Lcom/bumptech/glide/r/h$a;

    iput-object p2, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    monitor-exit v1
    :try_end_4f
    .catchall {:try_start_48 .. :try_end_4f} :catchall_b2

    if-eqz p1, :cond_56

    iget-object p2, p0, Lcom/bumptech/glide/r/h;->u:Lcom/bumptech/glide/load/n/k;

    invoke-virtual {p2, p1}, Lcom/bumptech/glide/load/n/k;->k(Lcom/bumptech/glide/load/n/v;)V

    :cond_56
    return-void

    :cond_57
    :try_start_57
    invoke-direct {p0, p1, v2, p2, p3}, Lcom/bumptech/glide/r/h;->z(Lcom/bumptech/glide/load/n/v;Ljava/lang/Object;Lcom/bumptech/glide/load/a;Z)V

    monitor-exit v1
    :try_end_5b
    .catchall {:try_start_57 .. :try_end_5b} :catchall_b6

    return-void

    :cond_5c
    :goto_5c
    :try_start_5c
    iput-object v0, p0, Lcom/bumptech/glide/r/h;->r:Lcom/bumptech/glide/load/n/v;

    new-instance p2, Lcom/bumptech/glide/load/n/q;

    new-instance p3, Ljava/lang/StringBuilder;

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

    const-string v0, "Expected to receive an object of "

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

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->i:Ljava/lang/Class;

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

    const-string v0, " but instead got "

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

    if-eqz v2, :cond_7b

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

    move-result-object v0

    goto :goto_7d

    :cond_7b
    const-string v0, ""

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

    const-string v0, "{"

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

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

    const-string v0, "} inside Resource{"

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

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

    const-string v0, "}."

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

    if-eqz v2, :cond_9a

    const-string v0, ""

    goto :goto_9c

    :cond_9a
    const-string v0, " To indicate failure return a null Resource object, rather than a Resource object containing null data."

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

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

    move-result-object p3

    invoke-direct {p2, p3}, Lcom/bumptech/glide/load/n/q;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, p2}, Lcom/bumptech/glide/r/h;->a(Lcom/bumptech/glide/load/n/q;)V

    monitor-exit v1
    :try_end_aa
    .catchall {:try_start_5c .. :try_end_aa} :catchall_b2

    if-eqz p1, :cond_b1

    iget-object p2, p0, Lcom/bumptech/glide/r/h;->u:Lcom/bumptech/glide/load/n/k;

    invoke-virtual {p2, p1}, Lcom/bumptech/glide/load/n/k;->k(Lcom/bumptech/glide/load/n/v;)V

    :cond_b1
    return-void

    :catchall_b2
    move-exception p2

    move-object v0, p1

    move-object p1, p2

    goto :goto_b7

    :catchall_b6
    move-exception p1

    :goto_b7
    :try_start_b7
    monitor-exit v1
    :try_end_b8
    .catchall {:try_start_b7 .. :try_end_b8} :catchall_b6

    :try_start_b8
    throw p1
    :try_end_b9
    .catchall {:try_start_b8 .. :try_end_b9} :catchall_b9

    :catchall_b9
    move-exception p1

    if-eqz v0, :cond_c1

    iget-object p2, p0, Lcom/bumptech/glide/r/h;->u:Lcom/bumptech/glide/load/n/k;

    invoke-virtual {p2, v0}, Lcom/bumptech/glide/load/n/k;->k(Lcom/bumptech/glide/load/n/v;)V

    :cond_c1
    throw p1
.end method

.method public clear()V
    .registers 6

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->i()V

    iget-object v1, p0, Lcom/bumptech/glide/r/h;->b:Lcom/bumptech/glide/t/l/c;

    invoke-virtual {v1}, Lcom/bumptech/glide/t/l/c;->c()V

    iget-object v1, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    sget-object v2, Lcom/bumptech/glide/r/h$a;->j:Lcom/bumptech/glide/r/h$a;

    if-ne v1, v2, :cond_13

    monitor-exit v0

    return-void

    :cond_13
    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->n()V

    iget-object v1, p0, Lcom/bumptech/glide/r/h;->r:Lcom/bumptech/glide/load/n/v;

    const/4 v3, 0x0

    if-eqz v1, :cond_1e

    iput-object v3, p0, Lcom/bumptech/glide/r/h;->r:Lcom/bumptech/glide/load/n/v;

    goto :goto_1f

    :cond_1e
    move-object v1, v3

    :goto_1f
    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->k()Z

    move-result v3

    if-eqz v3, :cond_2e

    iget-object v3, p0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->q()Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-interface {v3, v4}, Lcom/bumptech/glide/r/j/h;->g(Landroid/graphics/drawable/Drawable;)V

    :cond_2e
    iput-object v2, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    monitor-exit v0
    :try_end_31
    .catchall {:try_start_3 .. :try_end_31} :catchall_39

    if-eqz v1, :cond_38

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->u:Lcom/bumptech/glide/load/n/k;

    invoke-virtual {v0, v1}, Lcom/bumptech/glide/load/n/k;->k(Lcom/bumptech/glide/load/n/v;)V

    :cond_38
    return-void

    :catchall_39
    move-exception v1

    :try_start_3a
    monitor-exit v0
    :try_end_3b
    .catchall {:try_start_3a .. :try_end_3b} :catchall_39

    throw v1
.end method

.method public d(Lcom/bumptech/glide/r/c;)Z
    .registers 18

    move-object/from16 v1, p0

    move-object/from16 v0, p1

    instance-of v2, v0, Lcom/bumptech/glide/r/h;

    const/4 v3, 0x0

    if-nez v2, :cond_a

    return v3

    :cond_a
    iget-object v2, v1, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v2

    :try_start_d
    iget v4, v1, Lcom/bumptech/glide/r/h;->k:I

    iget v5, v1, Lcom/bumptech/glide/r/h;->l:I

    iget-object v6, v1, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

    iget-object v7, v1, Lcom/bumptech/glide/r/h;->i:Ljava/lang/Class;

    iget-object v8, v1, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    iget-object v9, v1, Lcom/bumptech/glide/r/h;->m:Lcom/bumptech/glide/g;

    iget-object v10, v1, Lcom/bumptech/glide/r/h;->o:Ljava/util/List;

    if-eqz v10, :cond_22

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

    move-result v10

    goto :goto_23

    :cond_22
    const/4 v10, 0x0

    :goto_23
    monitor-exit v2
    :try_end_24
    .catchall {:try_start_d .. :try_end_24} :catchall_61

    check-cast v0, Lcom/bumptech/glide/r/h;

    iget-object v11, v0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v11

    :try_start_29
    iget v2, v0, Lcom/bumptech/glide/r/h;->k:I

    iget v12, v0, Lcom/bumptech/glide/r/h;->l:I

    iget-object v13, v0, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

    iget-object v14, v0, Lcom/bumptech/glide/r/h;->i:Ljava/lang/Class;

    iget-object v15, v0, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    iget-object v3, v0, Lcom/bumptech/glide/r/h;->m:Lcom/bumptech/glide/g;

    iget-object v0, v0, Lcom/bumptech/glide/r/h;->o:Ljava/util/List;

    if-eqz v0, :cond_3e

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

    move-result v0

    goto :goto_3f

    :cond_3e
    const/4 v0, 0x0

    :goto_3f
    monitor-exit v11
    :try_end_40
    .catchall {:try_start_29 .. :try_end_40} :catchall_5e

    if-ne v4, v2, :cond_5c

    if-ne v5, v12, :cond_5c

    invoke-static {v6, v13}, Lcom/bumptech/glide/t/k;->b(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5c

    invoke-virtual {v7, v14}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5c

    invoke-virtual {v8, v15}, Lcom/bumptech/glide/r/a;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5c

    if-ne v9, v3, :cond_5c

    if-ne v10, v0, :cond_5c

    const/4 v3, 0x1

    goto :goto_5d

    :cond_5c
    const/4 v3, 0x0

    :goto_5d
    return v3

    :catchall_5e
    move-exception v0

    :try_start_5f
    monitor-exit v11
    :try_end_60
    .catchall {:try_start_5f .. :try_end_60} :catchall_5e

    throw v0

    :catchall_61
    move-exception v0

    :try_start_62
    monitor-exit v2
    :try_end_63
    .catchall {:try_start_62 .. :try_end_63} :catchall_61

    throw v0
.end method

.method public e(II)V
    .registers 27

    move-object/from16 v15, p0

    iget-object v0, v15, Lcom/bumptech/glide/r/h;->b:Lcom/bumptech/glide/t/l/c;

    invoke-virtual {v0}, Lcom/bumptech/glide/t/l/c;->c()V

    iget-object v14, v15, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v14

    :try_start_a
    sget-boolean v0, Lcom/bumptech/glide/r/h;->D:Z

    if-eqz v0, :cond_28

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Got onSizeReady in "

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

    iget-wide v2, v15, Lcom/bumptech/glide/r/h;->t:J

    invoke-static {v2, v3}, Lcom/bumptech/glide/t/f;->a(J)D

    move-result-wide v2

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

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

    move-result-object v1

    invoke-direct {v15, v1}, Lcom/bumptech/glide/r/h;->t(Ljava/lang/String;)V

    :cond_28
    iget-object v1, v15, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    sget-object v2, Lcom/bumptech/glide/r/h$a;->g:Lcom/bumptech/glide/r/h$a;

    if-eq v1, v2, :cond_30

    monitor-exit v14

    return-void

    :cond_30
    sget-object v13, Lcom/bumptech/glide/r/h$a;->f:Lcom/bumptech/glide/r/h$a;

    iput-object v13, v15, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    iget-object v1, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v1}, Lcom/bumptech/glide/r/a;->x()F

    move-result v1

    move/from16 v2, p1

    invoke-static {v2, v1}, Lcom/bumptech/glide/r/h;->u(IF)I

    move-result v2

    iput v2, v15, Lcom/bumptech/glide/r/h;->z:I

    move/from16 v2, p2

    invoke-static {v2, v1}, Lcom/bumptech/glide/r/h;->u(IF)I

    move-result v1

    iput v1, v15, Lcom/bumptech/glide/r/h;->A:I

    if-eqz v0, :cond_66

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "finished setup for calling load in "

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

    iget-wide v2, v15, Lcom/bumptech/glide/r/h;->t:J

    invoke-static {v2, v3}, Lcom/bumptech/glide/t/f;->a(J)D

    move-result-wide v2

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

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

    move-result-object v1

    invoke-direct {v15, v1}, Lcom/bumptech/glide/r/h;->t(Ljava/lang/String;)V

    :cond_66
    iget-object v1, v15, Lcom/bumptech/glide/r/h;->u:Lcom/bumptech/glide/load/n/k;

    iget-object v2, v15, Lcom/bumptech/glide/r/h;->g:Lcom/bumptech/glide/d;

    iget-object v3, v15, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

    iget-object v4, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v4}, Lcom/bumptech/glide/r/a;->w()Lcom/bumptech/glide/load/g;

    move-result-object v4

    iget v5, v15, Lcom/bumptech/glide/r/h;->z:I

    iget v6, v15, Lcom/bumptech/glide/r/h;->A:I

    iget-object v7, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v7}, Lcom/bumptech/glide/r/a;->v()Ljava/lang/Class;

    move-result-object v7

    iget-object v8, v15, Lcom/bumptech/glide/r/h;->i:Ljava/lang/Class;

    iget-object v9, v15, Lcom/bumptech/glide/r/h;->m:Lcom/bumptech/glide/g;

    iget-object v10, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v10}, Lcom/bumptech/glide/r/a;->i()Lcom/bumptech/glide/load/n/j;

    move-result-object v10

    iget-object v11, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v11}, Lcom/bumptech/glide/r/a;->z()Ljava/util/Map;

    move-result-object v11

    iget-object v12, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v12}, Lcom/bumptech/glide/r/a;->J()Z

    move-result v12

    move-object/from16 v16, v13

    iget-object v13, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v13}, Lcom/bumptech/glide/r/a;->F()Z

    move-result v13

    move/from16 v21, v0

    iget-object v0, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->o()Lcom/bumptech/glide/load/i;

    move-result-object v0

    move-object/from16 p1, v0

    iget-object v0, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->D()Z

    move-result v0

    move/from16 p2, v0

    iget-object v0, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->B()Z

    move-result v0

    move/from16 v17, v0

    iget-object v0, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->A()Z

    move-result v0

    move/from16 v18, v0

    iget-object v0, v15, Lcom/bumptech/glide/r/h;->j:Lcom/bumptech/glide/r/a;

    invoke-virtual {v0}, Lcom/bumptech/glide/r/a;->n()Z

    move-result v0

    move/from16 v19, v0

    iget-object v0, v15, Lcom/bumptech/glide/r/h;->q:Ljava/util/concurrent/Executor;
    :try_end_c6
    .catchall {:try_start_a .. :try_end_c6} :catchall_10b

    move-object/from16 v22, v16

    move-object/from16 v23, v14

    move-object/from16 v14, p1

    move/from16 v15, p2

    move/from16 v16, v17

    move/from16 v17, v18

    move/from16 v18, v19

    move-object/from16 v19, p0

    move-object/from16 v20, v0

    :try_start_d8
    invoke-virtual/range {v1 .. v20}, Lcom/bumptech/glide/load/n/k;->f(Lcom/bumptech/glide/d;Ljava/lang/Object;Lcom/bumptech/glide/load/g;IILjava/lang/Class;Ljava/lang/Class;Lcom/bumptech/glide/g;Lcom/bumptech/glide/load/n/j;Ljava/util/Map;ZZLcom/bumptech/glide/load/i;ZZZZLcom/bumptech/glide/r/g;Ljava/util/concurrent/Executor;)Lcom/bumptech/glide/load/n/k$d;

    move-result-object v0
    :try_end_dc
    .catchall {:try_start_d8 .. :try_end_dc} :catchall_107

    move-object/from16 v1, p0

    :try_start_de
    iput-object v0, v1, Lcom/bumptech/glide/r/h;->s:Lcom/bumptech/glide/load/n/k$d;

    iget-object v0, v1, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    move-object/from16 v2, v22

    if-eq v0, v2, :cond_e9

    const/4 v0, 0x0

    iput-object v0, v1, Lcom/bumptech/glide/r/h;->s:Lcom/bumptech/glide/load/n/k$d;

    :cond_e9
    if-eqz v21, :cond_105

    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v2, "finished onSizeReady in "

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

    iget-wide v2, v1, Lcom/bumptech/glide/r/h;->t:J

    invoke-static {v2, v3}, Lcom/bumptech/glide/t/f;->a(J)D

    move-result-wide v2

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

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

    move-result-object v0

    invoke-direct {v1, v0}, Lcom/bumptech/glide/r/h;->t(Ljava/lang/String;)V

    :cond_105
    monitor-exit v23

    return-void

    :catchall_107
    move-exception v0

    move-object/from16 v1, p0

    goto :goto_10f

    :catchall_10b
    move-exception v0

    move-object/from16 v23, v14

    move-object v1, v15

    :goto_10f
    monitor-exit v23
    :try_end_110
    .catchall {:try_start_de .. :try_end_110} :catchall_111

    throw v0

    :catchall_111
    move-exception v0

    goto :goto_10f
.end method

.method public f()Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    sget-object v2, Lcom/bumptech/glide/r/h$a;->j:Lcom/bumptech/glide/r/h$a;

    if-ne v1, v2, :cond_b

    const/4 v1, 0x1

    goto :goto_c

    :cond_b
    const/4 v1, 0x0

    :goto_c
    monitor-exit v0

    return v1

    :catchall_e
    move-exception v1

    monitor-exit v0
    :try_end_10
    .catchall {:try_start_3 .. :try_end_10} :catchall_e

    throw v1
.end method

.method public g()Ljava/lang/Object;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->b:Lcom/bumptech/glide/t/l/c;

    invoke-virtual {v0}, Lcom/bumptech/glide/t/l/c;->c()V

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    return-object v0
.end method

.method public h()V
    .registers 6

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->i()V

    iget-object v1, p0, Lcom/bumptech/glide/r/h;->b:Lcom/bumptech/glide/t/l/c;

    invoke-virtual {v1}, Lcom/bumptech/glide/t/l/c;->c()V

    invoke-static {}, Lcom/bumptech/glide/t/f;->b()J

    move-result-wide v1

    iput-wide v1, p0, Lcom/bumptech/glide/r/h;->t:J

    iget-object v1, p0, Lcom/bumptech/glide/r/h;->h:Ljava/lang/Object;

    if-nez v1, :cond_3c

    iget v1, p0, Lcom/bumptech/glide/r/h;->k:I

    iget v2, p0, Lcom/bumptech/glide/r/h;->l:I

    invoke-static {v1, v2}, Lcom/bumptech/glide/t/k;->s(II)Z

    move-result v1

    if-eqz v1, :cond_27

    iget v1, p0, Lcom/bumptech/glide/r/h;->k:I

    iput v1, p0, Lcom/bumptech/glide/r/h;->z:I

    iget v1, p0, Lcom/bumptech/glide/r/h;->l:I

    iput v1, p0, Lcom/bumptech/glide/r/h;->A:I

    :cond_27
    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->p()Landroid/graphics/drawable/Drawable;

    move-result-object v1

    if-nez v1, :cond_2f

    const/4 v1, 0x5

    goto :goto_30

    :cond_2f
    const/4 v1, 0x3

    :goto_30
    new-instance v2, Lcom/bumptech/glide/load/n/q;

    const-string v3, "Received null model"

    invoke-direct {v2, v3}, Lcom/bumptech/glide/load/n/q;-><init>(Ljava/lang/String;)V

    invoke-direct {p0, v2, v1}, Lcom/bumptech/glide/r/h;->y(Lcom/bumptech/glide/load/n/q;I)V

    monitor-exit v0

    return-void

    :cond_3c
    iget-object v1, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    sget-object v2, Lcom/bumptech/glide/r/h$a;->f:Lcom/bumptech/glide/r/h$a;

    if-eq v1, v2, :cond_a0

    sget-object v3, Lcom/bumptech/glide/r/h$a;->h:Lcom/bumptech/glide/r/h$a;

    if-ne v1, v3, :cond_50

    iget-object v1, p0, Lcom/bumptech/glide/r/h;->r:Lcom/bumptech/glide/load/n/v;

    sget-object v2, Lcom/bumptech/glide/load/a;->i:Lcom/bumptech/glide/load/a;

    const/4 v3, 0x0

    invoke-virtual {p0, v1, v2, v3}, Lcom/bumptech/glide/r/h;->c(Lcom/bumptech/glide/load/n/v;Lcom/bumptech/glide/load/a;Z)V

    monitor-exit v0

    return-void

    :cond_50
    sget-object v1, Lcom/bumptech/glide/r/h$a;->g:Lcom/bumptech/glide/r/h$a;

    iput-object v1, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    iget v3, p0, Lcom/bumptech/glide/r/h;->k:I

    iget v4, p0, Lcom/bumptech/glide/r/h;->l:I

    invoke-static {v3, v4}, Lcom/bumptech/glide/t/k;->s(II)Z

    move-result v3

    if-eqz v3, :cond_66

    iget v3, p0, Lcom/bumptech/glide/r/h;->k:I

    iget v4, p0, Lcom/bumptech/glide/r/h;->l:I

    invoke-virtual {p0, v3, v4}, Lcom/bumptech/glide/r/h;->e(II)V

    goto :goto_6b

    :cond_66
    iget-object v3, p0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    invoke-interface {v3, p0}, Lcom/bumptech/glide/r/j/h;->h(Lcom/bumptech/glide/r/j/g;)V

    :goto_6b
    iget-object v3, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    if-eq v3, v2, :cond_71

    if-ne v3, v1, :cond_80

    :cond_71
    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->l()Z

    move-result v1

    if-eqz v1, :cond_80

    iget-object v1, p0, Lcom/bumptech/glide/r/h;->n:Lcom/bumptech/glide/r/j/h;

    invoke-direct {p0}, Lcom/bumptech/glide/r/h;->q()Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-interface {v1, v2}, Lcom/bumptech/glide/r/j/h;->e(Landroid/graphics/drawable/Drawable;)V

    :cond_80
    sget-boolean v1, Lcom/bumptech/glide/r/h;->D:Z

    if-eqz v1, :cond_9e

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "finished run method in "

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

    iget-wide v2, p0, Lcom/bumptech/glide/r/h;->t:J

    invoke-static {v2, v3}, Lcom/bumptech/glide/t/f;->a(J)D

    move-result-wide v2

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

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

    move-result-object v1

    invoke-direct {p0, v1}, Lcom/bumptech/glide/r/h;->t(Ljava/lang/String;)V

    :cond_9e
    monitor-exit v0

    return-void

    :cond_a0
    new-instance v1, Ljava/lang/IllegalArgumentException;

    const-string v2, "Cannot restart a running request"

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

    throw v1

    :catchall_a8
    move-exception v1

    monitor-exit v0
    :try_end_aa
    .catchall {:try_start_3 .. :try_end_aa} :catchall_a8

    throw v1
.end method

.method public isRunning()Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    sget-object v2, Lcom/bumptech/glide/r/h$a;->f:Lcom/bumptech/glide/r/h$a;

    if-eq v1, v2, :cond_10

    sget-object v2, Lcom/bumptech/glide/r/h$a;->g:Lcom/bumptech/glide/r/h$a;

    if-ne v1, v2, :cond_e

    goto :goto_10

    :cond_e
    const/4 v1, 0x0

    goto :goto_11

    :cond_10
    :goto_10
    const/4 v1, 0x1

    :goto_11
    monitor-exit v0

    return v1

    :catchall_13
    move-exception v1

    monitor-exit v0
    :try_end_15
    .catchall {:try_start_3 .. :try_end_15} :catchall_13

    throw v1
.end method

.method public j()Z
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/bumptech/glide/r/h;->v:Lcom/bumptech/glide/r/h$a;

    sget-object v2, Lcom/bumptech/glide/r/h$a;->h:Lcom/bumptech/glide/r/h$a;

    if-ne v1, v2, :cond_b

    const/4 v1, 0x1

    goto :goto_c

    :cond_b
    const/4 v1, 0x0

    :goto_c
    monitor-exit v0

    return v1

    :catchall_e
    move-exception v1

    monitor-exit v0
    :try_end_10
    .catchall {:try_start_3 .. :try_end_10} :catchall_e

    throw v1
.end method

.method public pause()V
    .registers 3

    iget-object v0, p0, Lcom/bumptech/glide/r/h;->c:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    invoke-virtual {p0}, Lcom/bumptech/glide/r/h;->isRunning()Z

    move-result v1

    if-eqz v1, :cond_c

    invoke-virtual {p0}, Lcom/bumptech/glide/r/h;->clear()V

    :cond_c
    monitor-exit v0

    return-void

    :catchall_e
    move-exception v1

    monitor-exit v0
    :try_end_10
    .catchall {:try_start_3 .. :try_end_10} :catchall_e

    throw v1
.end method