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

# interfaces
.implements Lm3/g;
.implements Lcom/bumptech/glide/load/data/d$a;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lm3/g;",
        "Lcom/bumptech/glide/load/data/d$a<",
        "Ljava/lang/Object;",
        ">;"
    }
.end annotation


# instance fields
.field public A:Lm3/y;

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

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

.field public t:I

.field public u:I

.field public v:Lk3/c;

.field public w:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lq3/m<",
            "Ljava/io/File;",
            "*>;>;"
        }
    .end annotation
.end field

.field public x:I

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

.field public z:Ljava/io/File;


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

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

    const/4 v0, -0x1

    iput v0, p0, Lm3/x;->u:I

    iput-object p1, p0, Lm3/x;->s:Lm3/h;

    iput-object p2, p0, Lm3/x;->r:Lm3/g$a;

    return-void
.end method


# virtual methods
.method public c(Ljava/lang/Exception;)V
    .registers 6

    iget-object v0, p0, Lm3/x;->r:Lm3/g$a;

    iget-object v1, p0, Lm3/x;->A:Lm3/y;

    iget-object v2, p0, Lm3/x;->y:Lq3/m$a;

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

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

    invoke-interface {v0, v1, p1, v2, v3}, 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/x;->y: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 d(Ljava/lang/Object;)V
    .registers 8

    iget-object v0, p0, Lm3/x;->r:Lm3/g$a;

    iget-object v1, p0, Lm3/x;->v:Lk3/c;

    iget-object v2, p0, Lm3/x;->y:Lq3/m$a;

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

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

    iget-object v5, p0, Lm3/x;->A:Lm3/y;

    move-object v2, 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 e()Z
    .registers 22

    move-object/from16 v1, p0

    iget-object v0, v1, Lm3/x;->s:Lm3/h;

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

    move-result-object v0

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

    move-result v2

    const/4 v3, 0x0

    if-eqz v2, :cond_10

    return v3

    :cond_10
    iget-object v2, v1, Lm3/x;->s:Lm3/h;

    .line 1
    iget-object v4, v2, Lm3/h;->c:Lcom/bumptech/glide/d;

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

    .line 3
    iget-object v5, v2, Lm3/h;->d:Ljava/lang/Object;

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

    move-result-object v5

    iget-object v6, v2, Lm3/h;->g:Ljava/lang/Class;

    iget-object v2, v2, Lm3/h;->k:Ljava/lang/Class;

    .line 4
    iget-object v7, v4, Lcom/bumptech/glide/g;->h:Landroidx/appcompat/widget/n;

    .line 5
    iget-object v8, v7, Landroidx/appcompat/widget/n;->s:Ljava/lang/Object;

    check-cast v8, Ljava/util/concurrent/atomic/AtomicReference;

    const/4 v9, 0x0

    invoke-virtual {v8, v9}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lg4/i;

    if-nez v8, :cond_35

    new-instance v8, Lg4/i;

    invoke-direct {v8, v5, v6, v2}, Lg4/i;-><init>(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)V

    goto :goto_3b

    .line 6
    :cond_35
    iput-object v5, v8, Lg4/i;->a:Ljava/lang/Class;

    iput-object v6, v8, Lg4/i;->b:Ljava/lang/Class;

    iput-object v2, v8, Lg4/i;->c:Ljava/lang/Class;

    .line 7
    :goto_3b
    iget-object v10, v7, Landroidx/appcompat/widget/n;->t:Ljava/lang/Object;

    check-cast v10, Lr/a;

    monitor-enter v10

    :try_start_40
    iget-object v11, v7, Landroidx/appcompat/widget/n;->t:Ljava/lang/Object;

    check-cast v11, Lr/a;

    .line 8
    invoke-virtual {v11, v8, v9}, Lr/h;->getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    .line 9
    check-cast v11, Ljava/util/List;

    monitor-exit v10
    :try_end_4b
    .catchall {:try_start_40 .. :try_end_4b} :catchall_1d3

    iget-object v7, v7, Landroidx/appcompat/widget/n;->s:Ljava/lang/Object;

    check-cast v7, Ljava/util/concurrent/atomic/AtomicReference;

    invoke-virtual {v7, v8}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V

    if-nez v11, :cond_c4

    .line 10
    new-instance v11, Ljava/util/ArrayList;

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

    iget-object v7, v4, Lcom/bumptech/glide/g;->a:Lq3/o;

    .line 11
    monitor-enter v7

    :try_start_5c
    iget-object v8, v7, Lq3/o;->a:Lq3/q;

    invoke-virtual {v8, v5}, Lq3/q;->d(Ljava/lang/Class;)Ljava/util/List;

    move-result-object v8
    :try_end_62
    .catchall {:try_start_5c .. :try_end_62} :catchall_c1

    monitor-exit v7

    .line 12
    check-cast v8, Ljava/util/ArrayList;

    invoke-virtual {v8}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v7

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

    move-result v8

    if-eqz v8, :cond_a5

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

    move-result-object v8

    check-cast v8, Ljava/lang/Class;

    iget-object v10, v4, Lcom/bumptech/glide/g;->c:Lb4/c;

    invoke-virtual {v10, v8, v6}, Lb4/c;->b(Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List;

    move-result-object v8

    check-cast v8, Ljava/util/ArrayList;

    invoke-virtual {v8}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v8

    :cond_81
    :goto_81
    invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z

    move-result v10

    if-eqz v10, :cond_69

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

    move-result-object v10

    check-cast v10, Ljava/lang/Class;

    iget-object v12, v4, Lcom/bumptech/glide/g;->f:Ly3/d;

    invoke-virtual {v12, v10, v2}, Ly3/d;->a(Ljava/lang/Class;Ljava/lang/Class;)Ljava/util/List;

    move-result-object v12

    check-cast v12, Ljava/util/ArrayList;

    invoke-virtual {v12}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v12

    if-nez v12, :cond_81

    invoke-virtual {v11, v10}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v12

    if-nez v12, :cond_81

    invoke-virtual {v11, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_81

    :cond_a5
    iget-object v4, v4, Lcom/bumptech/glide/g;->h:Landroidx/appcompat/widget/n;

    invoke-static {v11}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;

    move-result-object v7

    .line 13
    iget-object v8, v4, Landroidx/appcompat/widget/n;->t:Ljava/lang/Object;

    check-cast v8, Lr/a;

    monitor-enter v8

    :try_start_b0
    iget-object v4, v4, Landroidx/appcompat/widget/n;->t:Ljava/lang/Object;

    check-cast v4, Lr/a;

    new-instance v10, Lg4/i;

    invoke-direct {v10, v5, v6, v2}, Lg4/i;-><init>(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)V

    invoke-virtual {v4, v10, v7}, Lr/h;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    monitor-exit v8

    goto :goto_c4

    :catchall_be
    move-exception v0

    monitor-exit v8
    :try_end_c0
    .catchall {:try_start_b0 .. :try_end_c0} :catchall_be

    throw v0

    :catchall_c1
    move-exception v0

    .line 14
    monitor-exit v7

    throw v0

    .line 15
    :cond_c4
    :goto_c4
    invoke-interface {v11}, Ljava/util/List;->isEmpty()Z

    move-result v2

    if-eqz v2, :cond_fe

    const-class v0, Ljava/io/File;

    iget-object v2, v1, Lm3/x;->s:Lm3/h;

    .line 16
    iget-object v2, v2, Lm3/h;->k:Ljava/lang/Class;

    .line 17
    invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_d7

    return v3

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

    const-string v2, "Failed to find any load path from "

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

    move-result-object v2

    iget-object v3, v1, Lm3/x;->s:Lm3/h;

    .line 18
    iget-object v3, v3, Lm3/h;->d:Ljava/lang/Object;

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

    move-result-object v3

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

    const-string v3, " to "

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

    iget-object v3, v1, Lm3/x;->s:Lm3/h;

    .line 20
    iget-object v3, v3, Lm3/h;->k:Ljava/lang/Class;

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

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

    move-result-object v2

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

    throw v0

    :cond_fe
    :goto_fe
    iget-object v2, v1, Lm3/x;->w:Ljava/util/List;

    const/4 v4, 0x1

    if-eqz v2, :cond_165

    .line 22
    iget v5, v1, Lm3/x;->x:I

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

    move-result v2

    if-ge v5, v2, :cond_10d

    move v2, v4

    goto :goto_10e

    :cond_10d
    move v2, v3

    :goto_10e
    if-nez v2, :cond_111

    goto :goto_165

    .line 23
    :cond_111
    iput-object v9, v1, Lm3/x;->y:Lq3/m$a;

    move v0, v3

    :cond_114
    :goto_114
    if-nez v0, :cond_164

    .line 24
    iget v2, v1, Lm3/x;->x:I

    iget-object v5, v1, Lm3/x;->w:Ljava/util/List;

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

    move-result v5

    if-ge v2, v5, :cond_122

    move v2, v4

    goto :goto_123

    :cond_122
    move v2, v3

    :goto_123
    if-eqz v2, :cond_164

    .line 25
    iget-object v2, v1, Lm3/x;->w:Ljava/util/List;

    iget v5, v1, Lm3/x;->x:I

    add-int/lit8 v6, v5, 0x1

    iput v6, v1, Lm3/x;->x:I

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

    move-result-object v2

    check-cast v2, Lq3/m;

    iget-object v5, v1, Lm3/x;->z:Ljava/io/File;

    iget-object v6, v1, Lm3/x;->s:Lm3/h;

    .line 26
    iget v7, v6, Lm3/h;->e:I

    .line 27
    iget v8, v6, Lm3/h;->f:I

    .line 28
    iget-object v6, v6, Lm3/h;->i:Lk3/e;

    .line 29
    invoke-interface {v2, v5, v7, v8, v6}, Lq3/m;->a(Ljava/lang/Object;IILk3/e;)Lq3/m$a;

    move-result-object v2

    iput-object v2, v1, Lm3/x;->y:Lq3/m$a;

    iget-object v2, v1, Lm3/x;->y:Lq3/m$a;

    if-eqz v2, :cond_114

    iget-object v2, v1, Lm3/x;->s:Lm3/h;

    iget-object v5, v1, Lm3/x;->y:Lq3/m$a;

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

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

    move-result-object v5

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

    move-result v2

    if-eqz v2, :cond_114

    iget-object v0, v1, Lm3/x;->y:Lq3/m$a;

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

    iget-object v2, v1, Lm3/x;->s:Lm3/h;

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

    .line 31
    invoke-interface {v0, v2, v1}, Lcom/bumptech/glide/load/data/d;->f(Lcom/bumptech/glide/f;Lcom/bumptech/glide/load/data/d$a;)V

    move v0, v4

    goto :goto_114

    :cond_164
    return v0

    :cond_165
    :goto_165
    iget v2, v1, Lm3/x;->u:I

    add-int/2addr v2, v4

    iput v2, v1, Lm3/x;->u:I

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

    move-result v5

    if-lt v2, v5, :cond_17e

    iget v2, v1, Lm3/x;->t:I

    add-int/2addr v2, v4

    iput v2, v1, Lm3/x;->t:I

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

    move-result v4

    if-lt v2, v4, :cond_17c

    return v3

    :cond_17c
    iput v3, v1, Lm3/x;->u:I

    :cond_17e
    iget v2, v1, Lm3/x;->t:I

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

    move-result-object v2

    check-cast v2, Lk3/c;

    iget v4, v1, Lm3/x;->u:I

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

    move-result-object v4

    check-cast v4, Ljava/lang/Class;

    iget-object v5, v1, Lm3/x;->s:Lm3/h;

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

    move-result-object v18

    new-instance v5, Lm3/y;

    iget-object v6, v1, Lm3/x;->s:Lm3/h;

    .line 32
    iget-object v7, v6, Lm3/h;->c:Lcom/bumptech/glide/d;

    .line 33
    iget-object v13, v7, Lcom/bumptech/glide/d;->a:Ln3/b;

    .line 34
    iget-object v15, v6, Lm3/h;->n:Lk3/c;

    .line 35
    iget v7, v6, Lm3/h;->e:I

    .line 36
    iget v8, v6, Lm3/h;->f:I

    .line 37
    iget-object v10, v6, Lm3/h;->i:Lk3/e;

    move-object v12, v5

    move-object v14, v2

    move/from16 v16, v7

    move/from16 v17, v8

    move-object/from16 v19, v4

    move-object/from16 v20, v10

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

    iput-object v5, v1, Lm3/x;->A:Lm3/y;

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

    move-result-object v4

    iget-object v5, v1, Lm3/x;->A:Lm3/y;

    invoke-interface {v4, v5}, Lo3/a;->b(Lk3/c;)Ljava/io/File;

    move-result-object v4

    iput-object v4, v1, Lm3/x;->z:Ljava/io/File;

    if-eqz v4, :cond_fe

    iput-object v2, v1, Lm3/x;->v:Lk3/c;

    iget-object v2, v1, Lm3/x;->s:Lm3/h;

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

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

    .line 41
    invoke-virtual {v2, v4}, Lcom/bumptech/glide/g;->f(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v2

    .line 42
    iput-object v2, v1, Lm3/x;->w:Ljava/util/List;

    iput v3, v1, Lm3/x;->x:I

    goto/16 :goto_fe

    :catchall_1d3
    move-exception v0

    .line 43
    :try_start_1d4
    monitor-exit v10
    :try_end_1d5
    .catchall {:try_start_1d4 .. :try_end_1d5} :catchall_1d3

    throw v0
.end method
