g.smali

.class Lcom/bumptech/glide/load/p/h/g;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/bumptech/glide/load/p/h/g$d;,
        Lcom/bumptech/glide/load/p/h/g$a;,
        Lcom/bumptech/glide/load/p/h/g$c;,
        Lcom/bumptech/glide/load/p/h/g$b;
    }
.end annotation


# instance fields
.field private final a:Lcom/bumptech/glide/n/a;

.field private final b:Landroid/os/Handler;

.field private final c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/bumptech/glide/load/p/h/g$b;",
            ">;"
        }
    .end annotation
.end field

.field final d:Lcom/bumptech/glide/k;

.field private final e:Lcom/bumptech/glide/load/n/a0/e;

.field private f:Z

.field private g:Z

.field private h:Z

.field private i:Lcom/bumptech/glide/j;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/bumptech/glide/j<",
            "Landroid/graphics/Bitmap;",
            ">;"
        }
    .end annotation
.end field

.field private j:Lcom/bumptech/glide/load/p/h/g$a;

.field private k:Z

.field private l:Lcom/bumptech/glide/load/p/h/g$a;

.field private m:Landroid/graphics/Bitmap;

.field private n:Lcom/bumptech/glide/load/m;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/bumptech/glide/load/m<",
            "Landroid/graphics/Bitmap;",
            ">;"
        }
    .end annotation
.end field

.field private o:Lcom/bumptech/glide/load/p/h/g$a;

.field private p:Lcom/bumptech/glide/load/p/h/g$d;

.field private q:I

.field private r:I

.field private s:I


# direct methods
.method constructor <init>(Lcom/bumptech/glide/b;Lcom/bumptech/glide/n/a;IILcom/bumptech/glide/load/m;Landroid/graphics/Bitmap;)V
    .registers 15
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/b;",
            "Lcom/bumptech/glide/n/a;",
            "II",
            "Lcom/bumptech/glide/load/m<",
            "Landroid/graphics/Bitmap;",
            ">;",
            "Landroid/graphics/Bitmap;",
            ")V"
        }
    .end annotation

    invoke-virtual {p1}, Lcom/bumptech/glide/b;->f()Lcom/bumptech/glide/load/n/a0/e;

    move-result-object v1

    invoke-virtual {p1}, Lcom/bumptech/glide/b;->h()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/bumptech/glide/b;->t(Landroid/content/Context;)Lcom/bumptech/glide/k;

    move-result-object v2

    invoke-virtual {p1}, Lcom/bumptech/glide/b;->h()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/bumptech/glide/b;->t(Landroid/content/Context;)Lcom/bumptech/glide/k;

    move-result-object p1

    invoke-static {p1, p3, p4}, Lcom/bumptech/glide/load/p/h/g;->i(Lcom/bumptech/glide/k;II)Lcom/bumptech/glide/j;

    move-result-object v5

    const/4 v4, 0x0

    move-object v0, p0

    move-object v3, p2

    move-object v6, p5

    move-object v7, p6

    invoke-direct/range {v0 .. v7}, Lcom/bumptech/glide/load/p/h/g;-><init>(Lcom/bumptech/glide/load/n/a0/e;Lcom/bumptech/glide/k;Lcom/bumptech/glide/n/a;Landroid/os/Handler;Lcom/bumptech/glide/j;Lcom/bumptech/glide/load/m;Landroid/graphics/Bitmap;)V

    return-void
.end method

.method constructor <init>(Lcom/bumptech/glide/load/n/a0/e;Lcom/bumptech/glide/k;Lcom/bumptech/glide/n/a;Landroid/os/Handler;Lcom/bumptech/glide/j;Lcom/bumptech/glide/load/m;Landroid/graphics/Bitmap;)V
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/load/n/a0/e;",
            "Lcom/bumptech/glide/k;",
            "Lcom/bumptech/glide/n/a;",
            "Landroid/os/Handler;",
            "Lcom/bumptech/glide/j<",
            "Landroid/graphics/Bitmap;",
            ">;",
            "Lcom/bumptech/glide/load/m<",
            "Landroid/graphics/Bitmap;",
            ">;",
            "Landroid/graphics/Bitmap;",
            ")V"
        }
    .end annotation

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

    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->c:Ljava/util/List;

    iput-object p2, p0, Lcom/bumptech/glide/load/p/h/g;->d:Lcom/bumptech/glide/k;

    if-nez p4, :cond_1c

    new-instance p4, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object p2

    new-instance v0, Lcom/bumptech/glide/load/p/h/g$c;

    invoke-direct {v0, p0}, Lcom/bumptech/glide/load/p/h/g$c;-><init>(Lcom/bumptech/glide/load/p/h/g;)V

    invoke-direct {p4, p2, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V

    :cond_1c
    iput-object p1, p0, Lcom/bumptech/glide/load/p/h/g;->e:Lcom/bumptech/glide/load/n/a0/e;

    iput-object p4, p0, Lcom/bumptech/glide/load/p/h/g;->b:Landroid/os/Handler;

    iput-object p5, p0, Lcom/bumptech/glide/load/p/h/g;->i:Lcom/bumptech/glide/j;

    iput-object p3, p0, Lcom/bumptech/glide/load/p/h/g;->a:Lcom/bumptech/glide/n/a;

    invoke-virtual {p0, p6, p7}, Lcom/bumptech/glide/load/p/h/g;->o(Lcom/bumptech/glide/load/m;Landroid/graphics/Bitmap;)V

    return-void
.end method

.method private static g()Lcom/bumptech/glide/load/g;
    .registers 3

    new-instance v0, Lcom/bumptech/glide/s/b;

    invoke-static {}, Ljava/lang/Math;->random()D

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/bumptech/glide/s/b;-><init>(Ljava/lang/Object;)V

    return-object v0
.end method

.method private static i(Lcom/bumptech/glide/k;II)Lcom/bumptech/glide/j;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/k;",
            "II)",
            "Lcom/bumptech/glide/j<",
            "Landroid/graphics/Bitmap;",
            ">;"
        }
    .end annotation

    invoke-virtual {p0}, Lcom/bumptech/glide/k;->j()Lcom/bumptech/glide/j;

    move-result-object p0

    sget-object v0, Lcom/bumptech/glide/load/n/j;->a:Lcom/bumptech/glide/load/n/j;

    invoke-static {v0}, Lcom/bumptech/glide/r/f;->j0(Lcom/bumptech/glide/load/n/j;)Lcom/bumptech/glide/r/f;

    move-result-object v0

    const/4 v1, 0x1

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

    move-result-object v0

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

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

    move-result-object v0

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

    invoke-virtual {v0, p1, p2}, Lcom/bumptech/glide/r/a;->S(II)Lcom/bumptech/glide/r/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/bumptech/glide/j;->j0(Lcom/bumptech/glide/r/a;)Lcom/bumptech/glide/j;

    move-result-object p0

    return-object p0
.end method

.method private l()V
    .registers 6

    iget-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->f:Z

    if-eqz v0, :cond_68

    iget-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->g:Z

    if-eqz v0, :cond_9

    goto :goto_68

    :cond_9
    iget-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->h:Z

    const/4 v1, 0x1

    if-eqz v0, :cond_22

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->o:Lcom/bumptech/glide/load/p/h/g$a;

    const/4 v2, 0x0

    if-nez v0, :cond_15

    const/4 v0, 0x1

    goto :goto_16

    :cond_15
    const/4 v0, 0x0

    :goto_16
    const-string v3, "Pending target must be null when starting from the first frame"

    invoke-static {v0, v3}, Lcom/bumptech/glide/t/j;->a(ZLjava/lang/String;)V

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->a:Lcom/bumptech/glide/n/a;

    invoke-interface {v0}, Lcom/bumptech/glide/n/a;->g()V

    iput-boolean v2, p0, Lcom/bumptech/glide/load/p/h/g;->h:Z

    :cond_22
    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->o:Lcom/bumptech/glide/load/p/h/g$a;

    if-eqz v0, :cond_2d

    const/4 v1, 0x0

    iput-object v1, p0, Lcom/bumptech/glide/load/p/h/g;->o:Lcom/bumptech/glide/load/p/h/g$a;

    invoke-virtual {p0, v0}, Lcom/bumptech/glide/load/p/h/g;->m(Lcom/bumptech/glide/load/p/h/g$a;)V

    return-void

    :cond_2d
    iput-boolean v1, p0, Lcom/bumptech/glide/load/p/h/g;->g:Z

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->a:Lcom/bumptech/glide/n/a;

    invoke-interface {v0}, Lcom/bumptech/glide/n/a;->d()I

    move-result v0

    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v1

    int-to-long v3, v0

    add-long/2addr v1, v3

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->a:Lcom/bumptech/glide/n/a;

    invoke-interface {v0}, Lcom/bumptech/glide/n/a;->b()V

    new-instance v0, Lcom/bumptech/glide/load/p/h/g$a;

    iget-object v3, p0, Lcom/bumptech/glide/load/p/h/g;->b:Landroid/os/Handler;

    iget-object v4, p0, Lcom/bumptech/glide/load/p/h/g;->a:Lcom/bumptech/glide/n/a;

    invoke-interface {v4}, Lcom/bumptech/glide/n/a;->h()I

    move-result v4

    invoke-direct {v0, v3, v4, v1, v2}, Lcom/bumptech/glide/load/p/h/g$a;-><init>(Landroid/os/Handler;IJ)V

    iput-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->l:Lcom/bumptech/glide/load/p/h/g$a;

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->i:Lcom/bumptech/glide/j;

    invoke-static {}, Lcom/bumptech/glide/load/p/h/g;->g()Lcom/bumptech/glide/load/g;

    move-result-object v1

    invoke-static {v1}, Lcom/bumptech/glide/r/f;->k0(Lcom/bumptech/glide/load/g;)Lcom/bumptech/glide/r/f;

    move-result-object v1

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

    move-result-object v0

    iget-object v1, p0, Lcom/bumptech/glide/load/p/h/g;->a:Lcom/bumptech/glide/n/a;

    invoke-virtual {v0, v1}, Lcom/bumptech/glide/j;->v0(Ljava/lang/Object;)Lcom/bumptech/glide/j;

    move-result-object v0

    iget-object v1, p0, Lcom/bumptech/glide/load/p/h/g;->l:Lcom/bumptech/glide/load/p/h/g$a;

    invoke-virtual {v0, v1}, Lcom/bumptech/glide/j;->q0(Lcom/bumptech/glide/r/j/h;)Lcom/bumptech/glide/r/j/h;

    :cond_68
    :goto_68
    return-void
.end method

.method private n()V
    .registers 3

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->m:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_c

    iget-object v1, p0, Lcom/bumptech/glide/load/p/h/g;->e:Lcom/bumptech/glide/load/n/a0/e;

    invoke-interface {v1, v0}, Lcom/bumptech/glide/load/n/a0/e;->c(Landroid/graphics/Bitmap;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->m:Landroid/graphics/Bitmap;

    :cond_c
    return-void
.end method

.method private p()V
    .registers 2

    iget-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->f:Z

    if-eqz v0, :cond_5

    return-void

    :cond_5
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->f:Z

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->k:Z

    invoke-direct {p0}, Lcom/bumptech/glide/load/p/h/g;->l()V

    return-void
.end method

.method private q()V
    .registers 2

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->f:Z

    return-void
.end method


# virtual methods
.method a()V
    .registers 4

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->c:Ljava/util/List;

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

    invoke-direct {p0}, Lcom/bumptech/glide/load/p/h/g;->n()V

    invoke-direct {p0}, Lcom/bumptech/glide/load/p/h/g;->q()V

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->j:Lcom/bumptech/glide/load/p/h/g$a;

    const/4 v1, 0x0

    if-eqz v0, :cond_17

    iget-object v2, p0, Lcom/bumptech/glide/load/p/h/g;->d:Lcom/bumptech/glide/k;

    invoke-virtual {v2, v0}, Lcom/bumptech/glide/k;->l(Lcom/bumptech/glide/r/j/h;)V

    iput-object v1, p0, Lcom/bumptech/glide/load/p/h/g;->j:Lcom/bumptech/glide/load/p/h/g$a;

    :cond_17
    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->l:Lcom/bumptech/glide/load/p/h/g$a;

    if-eqz v0, :cond_22

    iget-object v2, p0, Lcom/bumptech/glide/load/p/h/g;->d:Lcom/bumptech/glide/k;

    invoke-virtual {v2, v0}, Lcom/bumptech/glide/k;->l(Lcom/bumptech/glide/r/j/h;)V

    iput-object v1, p0, Lcom/bumptech/glide/load/p/h/g;->l:Lcom/bumptech/glide/load/p/h/g$a;

    :cond_22
    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->o:Lcom/bumptech/glide/load/p/h/g$a;

    if-eqz v0, :cond_2d

    iget-object v2, p0, Lcom/bumptech/glide/load/p/h/g;->d:Lcom/bumptech/glide/k;

    invoke-virtual {v2, v0}, Lcom/bumptech/glide/k;->l(Lcom/bumptech/glide/r/j/h;)V

    iput-object v1, p0, Lcom/bumptech/glide/load/p/h/g;->o:Lcom/bumptech/glide/load/p/h/g$a;

    :cond_2d
    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->a:Lcom/bumptech/glide/n/a;

    invoke-interface {v0}, Lcom/bumptech/glide/n/a;->clear()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->k:Z

    return-void
.end method

.method b()Ljava/nio/ByteBuffer;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->a:Lcom/bumptech/glide/n/a;

    invoke-interface {v0}, Lcom/bumptech/glide/n/a;->f()Ljava/nio/ByteBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asReadOnlyBuffer()Ljava/nio/ByteBuffer;

    move-result-object v0

    return-object v0
.end method

.method c()Landroid/graphics/Bitmap;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->j:Lcom/bumptech/glide/load/p/h/g$a;

    if-eqz v0, :cond_9

    invoke-virtual {v0}, Lcom/bumptech/glide/load/p/h/g$a;->i()Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_b

    :cond_9
    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->m:Landroid/graphics/Bitmap;

    :goto_b
    return-object v0
.end method

.method d()I
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->j:Lcom/bumptech/glide/load/p/h/g$a;

    if-eqz v0, :cond_7

    iget v0, v0, Lcom/bumptech/glide/load/p/h/g$a;->i:I

    goto :goto_8

    :cond_7
    const/4 v0, -0x1

    :goto_8
    return v0
.end method

.method e()Landroid/graphics/Bitmap;
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->m:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method f()I
    .registers 2

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->a:Lcom/bumptech/glide/n/a;

    invoke-interface {v0}, Lcom/bumptech/glide/n/a;->c()I

    move-result v0

    return v0
.end method

.method h()I
    .registers 2

    iget v0, p0, Lcom/bumptech/glide/load/p/h/g;->s:I

    return v0
.end method

.method j()I
    .registers 3

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->a:Lcom/bumptech/glide/n/a;

    invoke-interface {v0}, Lcom/bumptech/glide/n/a;->i()I

    move-result v0

    iget v1, p0, Lcom/bumptech/glide/load/p/h/g;->q:I

    add-int/2addr v0, v1

    return v0
.end method

.method k()I
    .registers 2

    iget v0, p0, Lcom/bumptech/glide/load/p/h/g;->r:I

    return v0
.end method

.method m(Lcom/bumptech/glide/load/p/h/g$a;)V
    .registers 5

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->p:Lcom/bumptech/glide/load/p/h/g$d;

    if-eqz v0, :cond_7

    invoke-interface {v0}, Lcom/bumptech/glide/load/p/h/g$d;->a()V

    :cond_7
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->g:Z

    iget-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->k:Z

    const/4 v1, 0x2

    if-eqz v0, :cond_19

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->b:Landroid/os/Handler;

    invoke-virtual {v0, v1, p1}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V

    return-void

    :cond_19
    iget-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->f:Z

    if-nez v0, :cond_2e

    iget-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->h:Z

    if-eqz v0, :cond_2b

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->b:Landroid/os/Handler;

    invoke-virtual {v0, v1, p1}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V

    goto :goto_2d

    :cond_2b
    iput-object p1, p0, Lcom/bumptech/glide/load/p/h/g;->o:Lcom/bumptech/glide/load/p/h/g$a;

    :goto_2d
    return-void

    :cond_2e
    invoke-virtual {p1}, Lcom/bumptech/glide/load/p/h/g$a;->i()Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_5e

    invoke-direct {p0}, Lcom/bumptech/glide/load/p/h/g;->n()V

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->j:Lcom/bumptech/glide/load/p/h/g$a;

    iput-object p1, p0, Lcom/bumptech/glide/load/p/h/g;->j:Lcom/bumptech/glide/load/p/h/g$a;

    iget-object p1, p0, Lcom/bumptech/glide/load/p/h/g;->c:Ljava/util/List;

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

    move-result p1

    add-int/lit8 p1, p1, -0x1

    :goto_43
    if-ltz p1, :cond_53

    iget-object v2, p0, Lcom/bumptech/glide/load/p/h/g;->c:Ljava/util/List;

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

    move-result-object v2

    check-cast v2, Lcom/bumptech/glide/load/p/h/g$b;

    invoke-interface {v2}, Lcom/bumptech/glide/load/p/h/g$b;->a()V

    add-int/lit8 p1, p1, -0x1

    goto :goto_43

    :cond_53
    if-eqz v0, :cond_5e

    iget-object p1, p0, Lcom/bumptech/glide/load/p/h/g;->b:Landroid/os/Handler;

    invoke-virtual {p1, v1, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V

    :cond_5e
    invoke-direct {p0}, Lcom/bumptech/glide/load/p/h/g;->l()V

    return-void
.end method

.method o(Lcom/bumptech/glide/load/m;Landroid/graphics/Bitmap;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/load/m<",
            "Landroid/graphics/Bitmap;",
            ">;",
            "Landroid/graphics/Bitmap;",
            ")V"
        }
    .end annotation

    invoke-static {p1}, Lcom/bumptech/glide/t/j;->d(Ljava/lang/Object;)Ljava/lang/Object;

    move-object v0, p1

    check-cast v0, Lcom/bumptech/glide/load/m;

    iput-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->n:Lcom/bumptech/glide/load/m;

    invoke-static {p2}, Lcom/bumptech/glide/t/j;->d(Ljava/lang/Object;)Ljava/lang/Object;

    move-object v0, p2

    check-cast v0, Landroid/graphics/Bitmap;

    iput-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->m:Landroid/graphics/Bitmap;

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->i:Lcom/bumptech/glide/j;

    new-instance v1, Lcom/bumptech/glide/r/f;

    invoke-direct {v1}, Lcom/bumptech/glide/r/f;-><init>()V

    invoke-virtual {v1, p1}, Lcom/bumptech/glide/r/a;->d0(Lcom/bumptech/glide/load/m;)Lcom/bumptech/glide/r/a;

    move-result-object p1

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

    move-result-object p1

    iput-object p1, p0, Lcom/bumptech/glide/load/p/h/g;->i:Lcom/bumptech/glide/j;

    invoke-static {p2}, Lcom/bumptech/glide/t/k;->g(Landroid/graphics/Bitmap;)I

    move-result p1

    iput p1, p0, Lcom/bumptech/glide/load/p/h/g;->q:I

    invoke-virtual {p2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result p1

    iput p1, p0, Lcom/bumptech/glide/load/p/h/g;->r:I

    invoke-virtual {p2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result p1

    iput p1, p0, Lcom/bumptech/glide/load/p/h/g;->s:I

    return-void
.end method

.method r(Lcom/bumptech/glide/load/p/h/g$b;)V
    .registers 4

    iget-boolean v0, p0, Lcom/bumptech/glide/load/p/h/g;->k:Z

    if-nez v0, :cond_25

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->c:Ljava/util/List;

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

    move-result v0

    if-nez v0, :cond_1d

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->c:Ljava/util/List;

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

    move-result v0

    iget-object v1, p0, Lcom/bumptech/glide/load/p/h/g;->c:Ljava/util/List;

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

    if-eqz v0, :cond_1c

    invoke-direct {p0}, Lcom/bumptech/glide/load/p/h/g;->p()V

    :cond_1c
    return-void

    :cond_1d
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string v0, "Cannot subscribe twice in a row"

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

    throw p1

    :cond_25
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string v0, "Cannot subscribe to a cleared frame loader"

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

    throw p1
.end method

.method s(Lcom/bumptech/glide/load/p/h/g$b;)V
    .registers 3

    iget-object v0, p0, Lcom/bumptech/glide/load/p/h/g;->c:Ljava/util/List;

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

    iget-object p1, p0, Lcom/bumptech/glide/load/p/h/g;->c:Ljava/util/List;

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

    move-result p1

    if-eqz p1, :cond_10

    invoke-direct {p0}, Lcom/bumptech/glide/load/p/h/g;->q()V

    :cond_10
    return-void
.end method