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


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lm3/j$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<DataType:",
        "Ljava/lang/Object;",
        "ResourceType:",
        "Ljava/lang/Object;",
        "Transcode:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;"
    }
.end annotation


# instance fields
.field public final a:Ljava/lang/Class;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/Class<",
            "TDataType;>;"
        }
    .end annotation
.end field

.field public final b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "+",
            "Lk3/f<",
            "TDataType;TResourceType;>;>;"
        }
    .end annotation
.end field

.field public final c:Ly3/c;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ly3/c<",
            "TResourceType;TTranscode;>;"
        }
    .end annotation
.end field

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

.field public final e:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;Ljava/util/List;Ly3/c;Lk0/c;)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class<",
            "TDataType;>;",
            "Ljava/lang/Class<",
            "TResourceType;>;",
            "Ljava/lang/Class<",
            "TTranscode;>;",
            "Ljava/util/List<",
            "+",
            "Lk3/f<",
            "TDataType;TResourceType;>;>;",
            "Ly3/c<",
            "TResourceType;TTranscode;>;",
            "Lk0/c<",
            "Ljava/util/List<",
            "Ljava/lang/Throwable;",
            ">;>;)V"
        }
    .end annotation

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

    iput-object p1, p0, Lm3/j;->a:Ljava/lang/Class;

    iput-object p4, p0, Lm3/j;->b:Ljava/util/List;

    iput-object p5, p0, Lm3/j;->c:Ly3/c;

    iput-object p6, p0, Lm3/j;->d:Lk0/c;

    const-string p4, "Failed DecodePath{"

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

    move-result-object p4

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

    move-result-object p1

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

    const-string p1, "->"

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

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

    move-result-object p2

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

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

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

    move-result-object p1

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

    const-string p1, "}"

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

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

    move-result-object p1

    iput-object p1, p0, Lm3/j;->e:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public a(Lcom/bumptech/glide/load/data/e;IILk3/e;Lm3/j$a;)Lm3/w;
    .registers 16
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/load/data/e<",
            "TDataType;>;II",
            "Lk3/e;",
            "Lm3/j$a<",
            "TResourceType;>;)",
            "Lm3/w<",
            "TTranscode;>;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lm3/j;->d:Lk0/c;

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

    move-result-object v0

    const-string v1, "Argument must not be null"

    .line 2
    invoke-static {v0, v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 3
    check-cast v0, Ljava/util/List;

    move-object v2, p0

    move-object v3, p1

    move v4, p2

    move v5, p3

    move-object v6, p4

    move-object v7, v0

    :try_start_13
    invoke-virtual/range {v2 .. v7}, Lm3/j;->b(Lcom/bumptech/glide/load/data/e;IILk3/e;Ljava/util/List;)Lm3/w;

    move-result-object p1
    :try_end_17
    .catchall {:try_start_13 .. :try_end_17} :catchall_11e

    iget-object p2, p0, Lm3/j;->d:Lk0/c;

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

    .line 4
    check-cast p5, Lm3/i$b;

    .line 5
    iget-object p2, p5, Lm3/i$b;->b:Lm3/i;

    iget-object p3, p5, Lm3/i$b;->a:Lcom/bumptech/glide/load/a;

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

    .line 6
    invoke-interface {p1}, Lm3/w;->get()Ljava/lang/Object;

    move-result-object p5

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

    move-result-object v7

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

    const/4 v0, 0x0

    if-eq p3, p5, :cond_45

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

    invoke-virtual {p5, v7}, Lm3/h;->f(Ljava/lang/Class;)Lk3/h;

    move-result-object p5

    iget-object v1, p2, Lm3/i;->y:Lcom/bumptech/glide/d;

    iget v2, p2, Lm3/i;->C:I

    iget v3, p2, Lm3/i;->D:I

    invoke-interface {p5, v1, p1, v2, v3}, Lk3/h;->b(Landroid/content/Context;Lm3/w;II)Lm3/w;

    move-result-object v1

    move-object v6, p5

    move-object p5, v1

    goto :goto_47

    :cond_45
    move-object p5, p1

    move-object v6, v0

    :goto_47
    invoke-virtual {p1, p5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_50

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

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

    .line 7
    iget-object p1, p1, Lm3/h;->c:Lcom/bumptech/glide/d;

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

    .line 9
    iget-object p1, p1, Lcom/bumptech/glide/g;->d:Lb4/d;

    invoke-interface {p5}, Lm3/w;->b()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {p1, v1}, Lb4/d;->a(Ljava/lang/Class;)Lk3/g;

    move-result-object p1

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz p1, :cond_66

    move p1, v2

    goto :goto_67

    :cond_66
    move p1, v1

    :goto_67
    if-eqz p1, :cond_8c

    .line 10
    iget-object p1, p2, Lm3/i;->r:Lm3/h;

    .line 11
    iget-object p1, p1, Lm3/h;->c:Lcom/bumptech/glide/d;

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

    .line 13
    iget-object p1, p1, Lcom/bumptech/glide/g;->d:Lb4/d;

    invoke-interface {p5}, Lm3/w;->b()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {p1, v0}, Lb4/d;->a(Ljava/lang/Class;)Lk3/g;

    move-result-object v0

    if-eqz v0, :cond_82

    .line 14
    iget-object p1, p2, Lm3/i;->F:Lk3/e;

    invoke-interface {v0, p1}, Lk3/g;->f(Lk3/e;)Lcom/bumptech/glide/load/c;

    move-result-object p1

    goto :goto_8e

    .line 15
    :cond_82
    new-instance p1, Lcom/bumptech/glide/g$d;

    invoke-interface {p5}, Lm3/w;->b()Ljava/lang/Class;

    move-result-object p2

    invoke-direct {p1, p2}, Lcom/bumptech/glide/g$d;-><init>(Ljava/lang/Class;)V

    throw p1

    .line 16
    :cond_8c
    sget-object p1, Lcom/bumptech/glide/load/c;->t:Lcom/bumptech/glide/load/c;

    :goto_8e
    move-object v9, v0

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

    iget-object v3, p2, Lm3/i;->O:Lk3/c;

    .line 17
    invoke-virtual {v0}, Lm3/h;->c()Ljava/util/List;

    move-result-object v0

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

    move-result v4

    move v5, v1

    :goto_9c
    if-ge v5, v4, :cond_b1

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

    move-result-object v8

    check-cast v8, Lq3/m$a;

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

    invoke-interface {v8, v3}, Lk3/c;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_ae

    move v1, v2

    goto :goto_b1

    :cond_ae
    add-int/lit8 v5, v5, 0x1

    goto :goto_9c

    :cond_b1
    :goto_b1
    xor-int/lit8 v0, v1, 0x1

    .line 18
    iget-object v1, p2, Lm3/i;->E:Lm3/k;

    invoke-virtual {v1, v0, p3, p1}, Lm3/k;->d(ZLcom/bumptech/glide/load/a;Lcom/bumptech/glide/load/c;)Z

    move-result p3

    if-eqz p3, :cond_117

    if-eqz v9, :cond_109

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

    move-result p3

    if-eqz p3, :cond_f3

    if-ne p3, v2, :cond_dc

    new-instance p1, Lm3/y;

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

    .line 19
    iget-object p3, p3, Lm3/h;->c:Lcom/bumptech/glide/d;

    .line 20
    iget-object v1, p3, Lcom/bumptech/glide/d;->a:Ln3/b;

    .line 21
    iget-object v2, p2, Lm3/i;->O:Lk3/c;

    iget-object v3, p2, Lm3/i;->z:Lk3/c;

    iget v4, p2, Lm3/i;->C:I

    iget v5, p2, Lm3/i;->D:I

    iget-object v8, p2, Lm3/i;->F:Lk3/e;

    move-object v0, p1

    invoke-direct/range {v0 .. v8}, Lm3/y;-><init>(Ln3/b;Lk3/c;Lk3/c;IILk3/h;Ljava/lang/Class;Lk3/e;)V

    goto :goto_fc

    :cond_dc
    new-instance p2, Ljava/lang/IllegalArgumentException;

    new-instance p3, Ljava/lang/StringBuilder;

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

    const-string p4, "Unknown strategy: "

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

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

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

    move-result-object p1

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

    throw p2

    :cond_f3
    new-instance p1, Lm3/e;

    iget-object p3, p2, Lm3/i;->O:Lk3/c;

    iget-object v0, p2, Lm3/i;->z:Lk3/c;

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

    :goto_fc
    invoke-static {p5}, Lm3/v;->e(Lm3/w;)Lm3/v;

    move-result-object p5

    iget-object p2, p2, Lm3/i;->w:Lm3/i$c;

    .line 22
    iput-object p1, p2, Lm3/i$c;->a:Lk3/c;

    iput-object v9, p2, Lm3/i$c;->b:Lk3/g;

    iput-object p5, p2, Lm3/i$c;->c:Lm3/v;

    goto :goto_117

    .line 23
    :cond_109
    new-instance p1, Lcom/bumptech/glide/g$d;

    invoke-interface {p5}, Lm3/w;->get()Ljava/lang/Object;

    move-result-object p2

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

    move-result-object p2

    invoke-direct {p1, p2}, Lcom/bumptech/glide/g$d;-><init>(Ljava/lang/Class;)V

    throw p1

    .line 24
    :cond_117
    :goto_117
    iget-object p1, p0, Lm3/j;->c:Ly3/c;

    invoke-interface {p1, p5, p4}, Ly3/c;->d(Lm3/w;Lk3/e;)Lm3/w;

    move-result-object p1

    return-object p1

    :catchall_11e
    move-exception p1

    .line 25
    iget-object p2, p0, Lm3/j;->d:Lk0/c;

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

    throw p1
.end method

.method public final b(Lcom/bumptech/glide/load/data/e;IILk3/e;Ljava/util/List;)Lm3/w;
    .registers 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/bumptech/glide/load/data/e<",
            "TDataType;>;II",
            "Lk3/e;",
            "Ljava/util/List<",
            "Ljava/lang/Throwable;",
            ">;)",
            "Lm3/w<",
            "TResourceType;>;"
        }
    .end annotation

    iget-object v0, p0, Lm3/j;->b:Ljava/util/List;

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

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_8
    if-ge v2, v0, :cond_50

    iget-object v3, p0, Lm3/j;->b:Ljava/util/List;

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

    move-result-object v3

    check-cast v3, Lk3/f;

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

    move-result-object v4

    invoke-interface {v3, v4, p4}, Lk3/f;->b(Ljava/lang/Object;Lk3/e;)Z

    move-result v4

    if-eqz v4, :cond_4a

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

    move-result-object v4

    invoke-interface {v3, v4, p2, p3, p4}, Lk3/f;->a(Ljava/lang/Object;IILk3/e;)Lm3/w;

    move-result-object v1
    :try_end_24
    .catch Ljava/io/IOException; {:try_start_12 .. :try_end_24} :catch_29
    .catch Ljava/lang/RuntimeException; {:try_start_12 .. :try_end_24} :catch_27
    .catch Ljava/lang/OutOfMemoryError; {:try_start_12 .. :try_end_24} :catch_25

    goto :goto_4a

    :catch_25
    move-exception v4

    goto :goto_2a

    :catch_27
    move-exception v4

    goto :goto_2a

    :catch_29
    move-exception v4

    :goto_2a
    const/4 v5, 0x2

    const-string v6, "DecodePath"

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

    move-result v5

    if-eqz v5, :cond_47

    new-instance v5, Ljava/lang/StringBuilder;

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

    const-string v7, "Failed to decode data for "

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

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

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

    move-result-object v3

    invoke-static {v6, v3, v4}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :cond_47
    invoke-interface {p5, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_4a
    :goto_4a
    if-eqz v1, :cond_4d

    goto :goto_50

    :cond_4d
    add-int/lit8 v2, v2, 0x1

    goto :goto_8

    :cond_50
    :goto_50
    if-eqz v1, :cond_53

    return-object v1

    :cond_53
    new-instance p1, Lm3/r;

    iget-object p2, p0, Lm3/j;->e:Ljava/lang/String;

    new-instance p3, Ljava/util/ArrayList;

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

    invoke-direct {p1, p2, p3}, Lm3/r;-><init>(Ljava/lang/String;Ljava/util/List;)V

    throw p1
.end method

.method public toString()Ljava/lang/String;
    .registers 3

    const-string v0, "DecodePath{ dataClass="

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

    move-result-object v0

    iget-object v1, p0, Lm3/j;->a:Ljava/lang/Class;

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

    const-string v1, ", decoders="

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

    iget-object v1, p0, Lm3/j;->b:Ljava/util/List;

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

    const-string v1, ", transcoder="

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

    iget-object v1, p0, Lm3/j;->c:Ly3/c;

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

    const/16 v1, 0x7d

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

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

    move-result-object v0

    return-object v0
.end method
