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

# interfaces
.implements Lm3/g;
.implements Lm3/g$a;


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

.field public final s:Lm3/g$a;

.field public t:I

.field public u:Lm3/d;

.field public v:Ljava/lang/Object;

.field public volatile w:Lq3/m$a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lq3/m$a<",
            "*>;"
        }
    .end annotation
.end field

.field public x:Lm3/e;


# direct methods
.method public constructor <init>(Lm3/h;Lm3/g$a;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lm3/h<",
            "*>;",
            "Lm3/g$a;",
            ")V"
        }
    .end annotation

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

    iput-object p1, p0, Lm3/b0;->r:Lm3/h;

    iput-object p2, p0, Lm3/b0;->s:Lm3/g$a;

    return-void
.end method


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

    new-instance v0, Ljava/lang/UnsupportedOperationException;

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

    throw v0
.end method

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

    iget-object v0, p0, Lm3/b0;->s:Lm3/g$a;

    iget-object p4, p0, Lm3/b0;->w:Lq3/m$a;

    iget-object p4, p4, Lq3/m$a;->c:Lcom/bumptech/glide/load/data/d;

    invoke-interface {p4}, Lcom/bumptech/glide/load/data/d;->e()Lcom/bumptech/glide/load/a;

    move-result-object v4

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v5, p1

    invoke-interface/range {v0 .. v5}, Lm3/g$a;->b(Lk3/c;Ljava/lang/Object;Lcom/bumptech/glide/load/data/d;Lcom/bumptech/glide/load/a;Lk3/c;)V

    return-void
.end method

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

    iget-object p4, p0, Lm3/b0;->s:Lm3/g$a;

    iget-object v0, p0, Lm3/b0;->w:Lq3/m$a;

    iget-object v0, v0, Lq3/m$a;->c:Lcom/bumptech/glide/load/data/d;

    invoke-interface {v0}, Lcom/bumptech/glide/load/data/d;->e()Lcom/bumptech/glide/load/a;

    move-result-object v0

    invoke-interface {p4, p1, p2, p3, v0}, Lm3/g$a;->c(Lk3/c;Ljava/lang/Exception;Lcom/bumptech/glide/load/data/d;Lcom/bumptech/glide/load/a;)V

    return-void
.end method

.method public cancel()V
    .registers 2

    iget-object v0, p0, Lm3/b0;->w:Lq3/m$a;

    if-eqz v0, :cond_9

    iget-object v0, v0, Lq3/m$a;->c:Lcom/bumptech/glide/load/data/d;

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

    :cond_9
    return-void
.end method

.method public e()Z
    .registers 12

    iget-object v0, p0, Lm3/b0;->v:Ljava/lang/Object;

    const/4 v1, 0x0

    if-eqz v0, :cond_91

    iput-object v1, p0, Lm3/b0;->v:Ljava/lang/Object;

    const-string v2, "SourceGenerator"

    .line 1
    sget v3, Lg4/f;->b:I

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

    move-result-wide v3

    .line 3
    :try_start_f
    iget-object v5, p0, Lm3/b0;->r:Lm3/h;

    invoke-virtual {v5, v0}, Lm3/h;->e(Ljava/lang/Object;)Lk3/a;

    move-result-object v5

    new-instance v6, Lm3/f;

    iget-object v7, p0, Lm3/b0;->r:Lm3/h;

    .line 4
    iget-object v7, v7, Lm3/h;->i:Lk3/e;

    .line 5
    invoke-direct {v6, v5, v0, v7}, Lm3/f;-><init>(Lk3/a;Ljava/lang/Object;Lk3/e;)V

    new-instance v7, Lm3/e;

    iget-object v8, p0, Lm3/b0;->w:Lq3/m$a;

    iget-object v8, v8, Lq3/m$a;->a:Lk3/c;

    iget-object v9, p0, Lm3/b0;->r:Lm3/h;

    .line 6
    iget-object v10, v9, Lm3/h;->n:Lk3/c;

    .line 7
    invoke-direct {v7, v8, v10}, Lm3/e;-><init>(Lk3/c;Lk3/c;)V

    iput-object v7, p0, Lm3/b0;->x:Lm3/e;

    invoke-virtual {v9}, Lm3/h;->b()Lo3/a;

    move-result-object v7

    iget-object v8, p0, Lm3/b0;->x:Lm3/e;

    invoke-interface {v7, v8, v6}, Lo3/a;->a(Lk3/c;Lo3/a$b;)V

    const/4 v6, 0x2

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

    move-result v6

    if-eqz v6, :cond_6f

    new-instance v6, Ljava/lang/StringBuilder;

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

    const-string v7, "Finished encoding source to cache, key: "

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

    iget-object v7, p0, Lm3/b0;->x:Lm3/e;

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

    const-string v7, ", data: "

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

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

    const-string v0, ", encoder: "

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

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

    const-string v0, ", duration: "

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

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

    move-result-wide v3

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

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

    move-result-object v0

    invoke-static {v2, v0}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_6f
    .catchall {:try_start_f .. :try_end_6f} :catchall_88

    :cond_6f
    iget-object v0, p0, Lm3/b0;->w:Lq3/m$a;

    iget-object v0, v0, Lq3/m$a;->c:Lcom/bumptech/glide/load/data/d;

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

    new-instance v0, Lm3/d;

    iget-object v2, p0, Lm3/b0;->w:Lq3/m$a;

    iget-object v2, v2, Lq3/m$a;->a:Lk3/c;

    invoke-static {v2}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v2

    iget-object v3, p0, Lm3/b0;->r:Lm3/h;

    invoke-direct {v0, v2, v3, p0}, Lm3/d;-><init>(Ljava/util/List;Lm3/h;Lm3/g$a;)V

    iput-object v0, p0, Lm3/b0;->u:Lm3/d;

    goto :goto_91

    :catchall_88
    move-exception v0

    iget-object v1, p0, Lm3/b0;->w:Lq3/m$a;

    iget-object v1, v1, Lq3/m$a;->c:Lcom/bumptech/glide/load/data/d;

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

    throw v0

    .line 8
    :cond_91
    :goto_91
    iget-object v0, p0, Lm3/b0;->u:Lm3/d;

    const/4 v2, 0x1

    if-eqz v0, :cond_9d

    invoke-virtual {v0}, Lm3/d;->e()Z

    move-result v0

    if-eqz v0, :cond_9d

    return v2

    :cond_9d
    iput-object v1, p0, Lm3/b0;->u:Lm3/d;

    iput-object v1, p0, Lm3/b0;->w:Lq3/m$a;

    const/4 v0, 0x0

    move v1, v0

    :cond_a3
    :goto_a3
    if-nez v1, :cond_106

    .line 9
    iget v3, p0, Lm3/b0;->t:I

    iget-object v4, p0, Lm3/b0;->r:Lm3/h;

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

    move-result-object v4

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

    move-result v4

    if-ge v3, v4, :cond_b5

    move v3, v2

    goto :goto_b6

    :cond_b5
    move v3, v0

    :goto_b6
    if-eqz v3, :cond_106

    .line 10
    iget-object v3, p0, Lm3/b0;->r:Lm3/h;

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

    move-result-object v3

    iget v4, p0, Lm3/b0;->t:I

    add-int/lit8 v5, v4, 0x1

    iput v5, p0, Lm3/b0;->t:I

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

    move-result-object v3

    check-cast v3, Lq3/m$a;

    iput-object v3, p0, Lm3/b0;->w:Lq3/m$a;

    iget-object v3, p0, Lm3/b0;->w:Lq3/m$a;

    if-eqz v3, :cond_a3

    iget-object v3, p0, Lm3/b0;->r:Lm3/h;

    .line 11
    iget-object v3, v3, Lm3/h;->p:Lm3/k;

    .line 12
    iget-object v4, p0, Lm3/b0;->w:Lq3/m$a;

    iget-object v4, v4, Lq3/m$a;->c:Lcom/bumptech/glide/load/data/d;

    invoke-interface {v4}, Lcom/bumptech/glide/load/data/d;->e()Lcom/bumptech/glide/load/a;

    move-result-object v4

    invoke-virtual {v3, v4}, Lm3/k;->c(Lcom/bumptech/glide/load/a;)Z

    move-result v3

    if-nez v3, :cond_f2

    iget-object v3, p0, Lm3/b0;->r:Lm3/h;

    iget-object v4, p0, Lm3/b0;->w:Lq3/m$a;

    iget-object v4, v4, Lq3/m$a;->c:Lcom/bumptech/glide/load/data/d;

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

    move-result-object v4

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

    move-result v3

    if-eqz v3, :cond_a3

    :cond_f2
    iget-object v1, p0, Lm3/b0;->w:Lq3/m$a;

    .line 13
    iget-object v3, p0, Lm3/b0;->w:Lq3/m$a;

    iget-object v3, v3, Lq3/m$a;->c:Lcom/bumptech/glide/load/data/d;

    iget-object v4, p0, Lm3/b0;->r:Lm3/h;

    .line 14
    iget-object v4, v4, Lm3/h;->o:Lcom/bumptech/glide/f;

    .line 15
    new-instance v5, Lm3/a0;

    invoke-direct {v5, p0, v1}, Lm3/a0;-><init>(Lm3/b0;Lq3/m$a;)V

    invoke-interface {v3, v4, v5}, Lcom/bumptech/glide/load/data/d;->f(Lcom/bumptech/glide/f;Lcom/bumptech/glide/load/data/d$a;)V

    move v1, v2

    goto :goto_a3

    :cond_106
    return v1
.end method
