.class public final Landroidx/appcompat/widget/v0;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Landroidx/appcompat/widget/v0$a;,
        Landroidx/appcompat/widget/v0$b;,
        Landroidx/appcompat/widget/v0$c;
    }
.end annotation


# static fields
.field public static final h:Landroid/graphics/PorterDuff$Mode;

.field public static i:Landroidx/appcompat/widget/v0;

.field public static final j:Landroidx/appcompat/widget/v0$a;


# instance fields
.field public a:Ljava/util/WeakHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/WeakHashMap<",
            "Landroid/content/Context;",
            "Lr/i<",
            "Landroid/content/res/ColorStateList;",
            ">;>;"
        }
    .end annotation
.end field

.field public b:Lr/h;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lr/h<",
            "Ljava/lang/String;",
            "Landroidx/appcompat/widget/v0$b;",
            ">;"
        }
    .end annotation
.end field

.field public c:Lr/i;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lr/i<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field public final d:Ljava/util/WeakHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/WeakHashMap<",
            "Landroid/content/Context;",
            "Lr/e<",
            "Ljava/lang/ref/WeakReference<",
            "Landroid/graphics/drawable/Drawable$ConstantState;",
            ">;>;>;"
        }
    .end annotation
.end field

.field public e:Landroid/util/TypedValue;

.field public f:Z

.field public g:Landroidx/appcompat/widget/v0$c;


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

    sget-object v0, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;

    sput-object v0, Landroidx/appcompat/widget/v0;->h:Landroid/graphics/PorterDuff$Mode;

    new-instance v0, Landroidx/appcompat/widget/v0$a;

    const/4 v1, 0x6

    invoke-direct {v0, v1}, Landroidx/appcompat/widget/v0$a;-><init>(I)V

    sput-object v0, Landroidx/appcompat/widget/v0;->j:Landroidx/appcompat/widget/v0$a;

    return-void
.end method

.method public constructor <init>()V
    .registers 3

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

    new-instance v0, Ljava/util/WeakHashMap;

    const/4 v1, 0x0

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

    iput-object v0, p0, Landroidx/appcompat/widget/v0;->d:Ljava/util/WeakHashMap;

    return-void
.end method

.method public static declared-synchronized c()Landroidx/appcompat/widget/v0;
    .registers 2

    const-class v0, Landroidx/appcompat/widget/v0;

    monitor-enter v0

    :try_start_3
    sget-object v1, Landroidx/appcompat/widget/v0;->i:Landroidx/appcompat/widget/v0;

    if-nez v1, :cond_e

    new-instance v1, Landroidx/appcompat/widget/v0;

    invoke-direct {v1}, Landroidx/appcompat/widget/v0;-><init>()V

    sput-object v1, Landroidx/appcompat/widget/v0;->i:Landroidx/appcompat/widget/v0;

    :cond_e
    sget-object v1, Landroidx/appcompat/widget/v0;->i:Landroidx/appcompat/widget/v0;
    :try_end_10
    .catchall {:try_start_3 .. :try_end_10} :catchall_12

    monitor-exit v0

    return-object v1

    :catchall_12
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public static declared-synchronized g(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
    .registers 6

    const-class v0, Landroidx/appcompat/widget/v0;

    monitor-enter v0

    :try_start_3
    sget-object v1, Landroidx/appcompat/widget/v0;->j:Landroidx/appcompat/widget/v0$a;

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

    add-int/lit8 v2, p0, 0x1f

    mul-int/lit8 v2, v2, 0x1f

    .line 1
    invoke-virtual {p1}, Landroid/graphics/PorterDuff$Mode;->hashCode()I

    move-result v3

    add-int/2addr v3, v2

    .line 2
    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v3}, Lr/f;->b(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/graphics/PorterDuffColorFilter;

    if-nez v3, :cond_34

    .line 3
    new-instance v3, Landroid/graphics/PorterDuffColorFilter;

    invoke-direct {v3, p0, p1}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V

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

    .line 4
    invoke-virtual {p1}, Landroid/graphics/PorterDuff$Mode;->hashCode()I

    move-result p0

    add-int/2addr p0, v2

    .line 5
    invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p0

    invoke-virtual {v1, p0, v3}, Lr/f;->c(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/graphics/PorterDuffColorFilter;
    :try_end_34
    .catchall {:try_start_3 .. :try_end_34} :catchall_36

    .line 6
    :cond_34
    monitor-exit v0

    return-object v3

    :catchall_36
    move-exception p0

    monitor-exit v0

    throw p0
.end method


# virtual methods
.method public final declared-synchronized a(Landroid/content/Context;JLandroid/graphics/drawable/Drawable;)Z
    .registers 7

    monitor-enter p0

    :try_start_1
    invoke-virtual {p4}, Landroid/graphics/drawable/Drawable;->getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;

    move-result-object p4

    if-eqz p4, :cond_25

    iget-object v0, p0, Landroidx/appcompat/widget/v0;->d:Ljava/util/WeakHashMap;

    invoke-virtual {v0, p1}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lr/e;

    if-nez v0, :cond_1b

    new-instance v0, Lr/e;

    invoke-direct {v0}, Lr/e;-><init>()V

    iget-object v1, p0, Landroidx/appcompat/widget/v0;->d:Ljava/util/WeakHashMap;

    invoke-virtual {v1, p1, v0}, Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_1b
    new-instance p1, Ljava/lang/ref/WeakReference;

    invoke-direct {p1, p4}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    invoke-virtual {v0, p2, p3, p1}, Lr/e;->h(JLjava/lang/Object;)V
    :try_end_23
    .catchall {:try_start_1 .. :try_end_23} :catchall_28

    const/4 p1, 0x1

    goto :goto_26

    :cond_25
    const/4 p1, 0x0

    :goto_26
    monitor-exit p0

    return p1

    :catchall_28
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public final b(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
    .registers 10

    iget-object v0, p0, Landroidx/appcompat/widget/v0;->e:Landroid/util/TypedValue;

    if-nez v0, :cond_b

    new-instance v0, Landroid/util/TypedValue;

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

    iput-object v0, p0, Landroidx/appcompat/widget/v0;->e:Landroid/util/TypedValue;

    :cond_b
    iget-object v0, p0, Landroidx/appcompat/widget/v0;->e:Landroid/util/TypedValue;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const/4 v2, 0x1

    invoke-virtual {v1, p2, v0, v2}, Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V

    .line 1
    iget v1, v0, Landroid/util/TypedValue;->assetCookie:I

    int-to-long v3, v1

    const/16 v1, 0x20

    shl-long/2addr v3, v1

    iget v1, v0, Landroid/util/TypedValue;->data:I

    int-to-long v5, v1

    or-long/2addr v3, v5

    .line 2
    invoke-virtual {p0, p1, v3, v4}, Landroidx/appcompat/widget/v0;->d(Landroid/content/Context;J)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    if-eqz v1, :cond_26

    return-object v1

    :cond_26
    iget-object v1, p0, Landroidx/appcompat/widget/v0;->g:Landroidx/appcompat/widget/v0$c;

    const/4 v5, 0x0

    if-nez v1, :cond_2c

    goto :goto_6d

    :cond_2c
    check-cast v1, Landroidx/appcompat/widget/l$a;

    const v6, 0x7f08001f

    if-ne p2, v6, :cond_4f

    .line 3
    new-instance v5, Landroid/graphics/drawable/LayerDrawable;

    const/4 p2, 0x2

    new-array p2, p2, [Landroid/graphics/drawable/Drawable;

    const/4 v1, 0x0

    const v6, 0x7f08001e

    invoke-virtual {p0, p1, v6}, Landroidx/appcompat/widget/v0;->e(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    aput-object v6, p2, v1

    const v1, 0x7f080020

    invoke-virtual {p0, p1, v1}, Landroidx/appcompat/widget/v0;->e(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    aput-object v1, p2, v2

    invoke-direct {v5, p2}, Landroid/graphics/drawable/LayerDrawable;-><init>([Landroid/graphics/drawable/Drawable;)V

    goto :goto_6d

    :cond_4f
    const v2, 0x7f080042

    if-ne p2, v2, :cond_58

    const p2, 0x7f07003b

    goto :goto_69

    :cond_58
    const v2, 0x7f080041

    if-ne p2, v2, :cond_61

    const p2, 0x7f07003c

    goto :goto_69

    :cond_61
    const v2, 0x7f080043

    if-ne p2, v2, :cond_6d

    const p2, 0x7f07003d

    :goto_69
    invoke-virtual {v1, p0, p1, p2}, Landroidx/appcompat/widget/l$a;->c(Landroidx/appcompat/widget/v0;Landroid/content/Context;I)Landroid/graphics/drawable/LayerDrawable;

    move-result-object v5

    :cond_6d
    :goto_6d
    if-eqz v5, :cond_77

    .line 4
    iget p2, v0, Landroid/util/TypedValue;->changingConfigurations:I

    invoke-virtual {v5, p2}, Landroid/graphics/drawable/Drawable;->setChangingConfigurations(I)V

    invoke-virtual {p0, p1, v3, v4, v5}, Landroidx/appcompat/widget/v0;->a(Landroid/content/Context;JLandroid/graphics/drawable/Drawable;)Z

    :cond_77
    return-object v5
.end method

.method public final declared-synchronized d(Landroid/content/Context;J)Landroid/graphics/drawable/Drawable;
    .registers 7

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Landroidx/appcompat/widget/v0;->d:Ljava/util/WeakHashMap;

    invoke-virtual {v0, p1}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lr/e;
    :try_end_9
    .catchall {:try_start_1 .. :try_end_9} :catchall_41

    const/4 v1, 0x0

    if-nez v0, :cond_e

    monitor-exit p0

    return-object v1

    .line 1
    :cond_e
    :try_start_e
    invoke-virtual {v0, p2, p3, v1}, Lr/e;->f(JLjava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 2
    check-cast v2, Ljava/lang/ref/WeakReference;

    if-eqz v2, :cond_3f

    invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/graphics/drawable/Drawable$ConstantState;

    if-eqz v2, :cond_28

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable$ConstantState;->newDrawable(Landroid/content/res/Resources;)Landroid/graphics/drawable/Drawable;

    move-result-object p1
    :try_end_26
    .catchall {:try_start_e .. :try_end_26} :catchall_41

    monitor-exit p0

    return-object p1

    .line 3
    :cond_28
    :try_start_28
    iget-object p1, v0, Lr/e;->s:[J

    iget v2, v0, Lr/e;->u:I

    invoke-static {p1, v2, p2, p3}, Lr/d;->b([JIJ)I

    move-result p1

    if-ltz p1, :cond_3f

    iget-object p2, v0, Lr/e;->t:[Ljava/lang/Object;

    aget-object p3, p2, p1

    sget-object v2, Lr/e;->v:Ljava/lang/Object;

    if-eq p3, v2, :cond_3f

    aput-object v2, p2, p1

    const/4 p1, 0x1

    iput-boolean p1, v0, Lr/e;->r:Z
    :try_end_3f
    .catchall {:try_start_28 .. :try_end_3f} :catchall_41

    .line 4
    :cond_3f
    monitor-exit p0

    return-object v1

    :catchall_41
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized e(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
    .registers 4

    monitor-enter p0

    const/4 v0, 0x0

    :try_start_2
    invoke-virtual {p0, p1, p2, v0}, Landroidx/appcompat/widget/v0;->f(Landroid/content/Context;IZ)Landroid/graphics/drawable/Drawable;

    move-result-object p1
    :try_end_6
    .catchall {:try_start_2 .. :try_end_6} :catchall_8

    monitor-exit p0

    return-object p1

    :catchall_8
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized f(Landroid/content/Context;IZ)Landroid/graphics/drawable/Drawable;
    .registers 8

    monitor-enter p0

    .line 1
    :try_start_1
    iget-boolean v0, p0, Landroidx/appcompat/widget/v0;->f:Z

    if-eqz v0, :cond_6

    goto :goto_2b

    :cond_6
    const/4 v0, 0x1

    iput-boolean v0, p0, Landroidx/appcompat/widget/v0;->f:Z

    const v1, 0x7f08005d

    invoke-virtual {p0, p1, v1}, Landroidx/appcompat/widget/v0;->e(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    const/4 v2, 0x0

    if-eqz v1, :cond_4c

    .line 2
    instance-of v3, v1, Lj1/b;

    if-nez v3, :cond_29

    const-string v3, "android.graphics.drawable.VectorDrawable"

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

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_28

    goto :goto_29

    :cond_28
    move v0, v2

    :cond_29
    :goto_29
    if-eqz v0, :cond_4c

    .line 3
    :goto_2b
    invoke-virtual {p0, p1, p2}, Landroidx/appcompat/widget/v0;->i(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    if-nez v0, :cond_35

    invoke-virtual {p0, p1, p2}, Landroidx/appcompat/widget/v0;->b(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    :cond_35
    if-nez v0, :cond_3d

    sget-object v0, Lc0/a;->a:Ljava/lang/Object;

    .line 4
    invoke-static {p1, p2}, Lc0/a$b;->b(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    :cond_3d
    if-eqz v0, :cond_43

    .line 5
    invoke-virtual {p0, p1, p2, p3, v0}, Landroidx/appcompat/widget/v0;->j(Landroid/content/Context;IZLandroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    :cond_43
    if-eqz v0, :cond_48

    invoke-static {v0}, Landroidx/appcompat/widget/m0;->b(Landroid/graphics/drawable/Drawable;)V
    :try_end_48
    .catchall {:try_start_1 .. :try_end_48} :catchall_4a

    :cond_48
    monitor-exit p0

    return-object v0

    :catchall_4a
    move-exception p1

    goto :goto_56

    .line 6
    :cond_4c
    :try_start_4c
    iput-boolean v2, p0, Landroidx/appcompat/widget/v0;->f:Z

    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat."

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

    throw p1
    :try_end_56
    .catchall {:try_start_4c .. :try_end_56} :catchall_4a

    :goto_56
    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized h(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
    .registers 6

    monitor-enter p0

    .line 1
    :try_start_1
    iget-object v0, p0, Landroidx/appcompat/widget/v0;->a:Ljava/util/WeakHashMap;

    const/4 v1, 0x0

    if-eqz v0, :cond_15

    invoke-virtual {v0, p1}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lr/i;

    if-eqz v0, :cond_15

    .line 2
    invoke-virtual {v0, p2, v1}, Lr/i;->d(ILjava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 3
    check-cast v0, Landroid/content/res/ColorStateList;

    goto :goto_16

    :cond_15
    move-object v0, v1

    :goto_16
    if-nez v0, :cond_4b

    .line 4
    iget-object v0, p0, Landroidx/appcompat/widget/v0;->g:Landroidx/appcompat/widget/v0$c;

    if-nez v0, :cond_1d

    goto :goto_23

    :cond_1d
    check-cast v0, Landroidx/appcompat/widget/l$a;

    invoke-virtual {v0, p1, p2}, Landroidx/appcompat/widget/l$a;->d(Landroid/content/Context;I)Landroid/content/res/ColorStateList;

    move-result-object v1

    :goto_23
    if-eqz v1, :cond_47

    .line 5
    iget-object v0, p0, Landroidx/appcompat/widget/v0;->a:Ljava/util/WeakHashMap;

    if-nez v0, :cond_30

    new-instance v0, Ljava/util/WeakHashMap;

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

    iput-object v0, p0, Landroidx/appcompat/widget/v0;->a:Ljava/util/WeakHashMap;

    :cond_30
    iget-object v0, p0, Landroidx/appcompat/widget/v0;->a:Ljava/util/WeakHashMap;

    invoke-virtual {v0, p1}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lr/i;

    if-nez v0, :cond_44

    new-instance v0, Lr/i;

    invoke-direct {v0}, Lr/i;-><init>()V

    iget-object v2, p0, Landroidx/appcompat/widget/v0;->a:Ljava/util/WeakHashMap;

    invoke-virtual {v2, p1, v0}, Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_44
    invoke-virtual {v0, p2, v1}, Lr/i;->a(ILjava/lang/Object;)V
    :try_end_47
    .catchall {:try_start_1 .. :try_end_47} :catchall_49

    :cond_47
    move-object v0, v1

    goto :goto_4b

    :catchall_49
    move-exception p1

    goto :goto_4d

    .line 6
    :cond_4b
    :goto_4b
    monitor-exit p0

    return-object v0

    :goto_4d
    monitor-exit p0

    throw p1
.end method

.method public final i(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
    .registers 13

    iget-object v0, p0, Landroidx/appcompat/widget/v0;->b:Lr/h;

    const/4 v1, 0x0

    if-eqz v0, :cond_b7

    invoke-virtual {v0}, Lr/h;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_b7

    iget-object v0, p0, Landroidx/appcompat/widget/v0;->c:Lr/i;

    const-string v2, "appcompat_skip_skip"

    if-eqz v0, :cond_28

    .line 1
    invoke-virtual {v0, p2, v1}, Lr/i;->d(ILjava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 2
    check-cast v0, Ljava/lang/String;

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

    move-result v3

    if-nez v3, :cond_27

    if-eqz v0, :cond_2f

    iget-object v3, p0, Landroidx/appcompat/widget/v0;->b:Lr/h;

    .line 3
    invoke-virtual {v3, v0, v1}, Lr/h;->getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_2f

    :cond_27
    return-object v1

    .line 4
    :cond_28
    new-instance v0, Lr/i;

    invoke-direct {v0}, Lr/i;-><init>()V

    iput-object v0, p0, Landroidx/appcompat/widget/v0;->c:Lr/i;

    :cond_2f
    iget-object v0, p0, Landroidx/appcompat/widget/v0;->e:Landroid/util/TypedValue;

    if-nez v0, :cond_3a

    new-instance v0, Landroid/util/TypedValue;

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

    iput-object v0, p0, Landroidx/appcompat/widget/v0;->e:Landroid/util/TypedValue;

    :cond_3a
    iget-object v0, p0, Landroidx/appcompat/widget/v0;->e:Landroid/util/TypedValue;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const/4 v3, 0x1

    invoke-virtual {v1, p2, v0, v3}, Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V

    .line 5
    iget v4, v0, Landroid/util/TypedValue;->assetCookie:I

    int-to-long v4, v4

    const/16 v6, 0x20

    shl-long/2addr v4, v6

    iget v6, v0, Landroid/util/TypedValue;->data:I

    int-to-long v6, v6

    or-long/2addr v4, v6

    .line 6
    invoke-virtual {p0, p1, v4, v5}, Landroidx/appcompat/widget/v0;->d(Landroid/content/Context;J)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    if-eqz v6, :cond_55

    return-object v6

    :cond_55
    iget-object v7, v0, Landroid/util/TypedValue;->string:Ljava/lang/CharSequence;

    if-eqz v7, :cond_af

    invoke-interface {v7}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v7

    const-string v8, ".xml"

    invoke-virtual {v7, v8}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_af

    :try_start_65
    invoke-virtual {v1, p2}, Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser;

    move-result-object v1

    invoke-static {v1}, Landroid/util/Xml;->asAttributeSet(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet;

    move-result-object v7

    :goto_6d
    invoke-interface {v1}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result v8

    const/4 v9, 0x2

    if-eq v8, v9, :cond_77

    if-eq v8, v3, :cond_77

    goto :goto_6d

    :cond_77
    if-ne v8, v9, :cond_9f

    invoke-interface {v1}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v3

    iget-object v8, p0, Landroidx/appcompat/widget/v0;->c:Lr/i;

    invoke-virtual {v8, p2, v3}, Lr/i;->a(ILjava/lang/Object;)V

    iget-object v8, p0, Landroidx/appcompat/widget/v0;->b:Lr/h;

    invoke-virtual {v8, v3}, Lr/h;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroidx/appcompat/widget/v0$b;

    if-eqz v3, :cond_94

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

    move-result-object v8

    invoke-interface {v3, p1, v1, v7, v8}, Landroidx/appcompat/widget/v0$b;->a(Landroid/content/Context;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    :cond_94
    if-eqz v6, :cond_af

    iget v0, v0, Landroid/util/TypedValue;->changingConfigurations:I

    invoke-virtual {v6, v0}, Landroid/graphics/drawable/Drawable;->setChangingConfigurations(I)V

    invoke-virtual {p0, p1, v4, v5, v6}, Landroidx/appcompat/widget/v0;->a(Landroid/content/Context;JLandroid/graphics/drawable/Drawable;)Z

    goto :goto_af

    :cond_9f
    new-instance p1, Lorg/xmlpull/v1/XmlPullParserException;

    const-string v0, "No start tag found"

    invoke-direct {p1, v0}, Lorg/xmlpull/v1/XmlPullParserException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_a7
    .catch Ljava/lang/Exception; {:try_start_65 .. :try_end_a7} :catch_a7

    :catch_a7
    move-exception p1

    const-string v0, "ResourceManagerInternal"

    const-string v1, "Exception while inflating drawable"

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

    :cond_af
    :goto_af
    if-nez v6, :cond_b6

    iget-object p1, p0, Landroidx/appcompat/widget/v0;->c:Lr/i;

    invoke-virtual {p1, p2, v2}, Lr/i;->a(ILjava/lang/Object;)V

    :cond_b6
    return-object v6

    :cond_b7
    return-object v1
.end method

.method public final j(Landroid/content/Context;IZLandroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
    .registers 16

    invoke-virtual {p0, p1, p2}, Landroidx/appcompat/widget/v0;->h(Landroid/content/Context;I)Landroid/content/res/ColorStateList;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_29

    invoke-static {p4}, Landroidx/appcompat/widget/m0;->a(Landroid/graphics/drawable/Drawable;)Z

    move-result p1

    if-eqz p1, :cond_11

    invoke-virtual {p4}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

    move-result-object p4

    .line 1
    :cond_11
    invoke-virtual {p4, v0}, Landroid/graphics/drawable/Drawable;->setTintList(Landroid/content/res/ColorStateList;)V

    .line 2
    iget-object p1, p0, Landroidx/appcompat/widget/v0;->g:Landroidx/appcompat/widget/v0$c;

    if-nez p1, :cond_19

    goto :goto_22

    :cond_19
    check-cast p1, Landroidx/appcompat/widget/l$a;

    const p1, 0x7f080050

    if-ne p2, p1, :cond_22

    .line 3
    sget-object v1, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

    :cond_22
    :goto_22
    if-eqz v1, :cond_ae

    .line 4
    invoke-virtual {p4, v1}, Landroid/graphics/drawable/Drawable;->setTintMode(Landroid/graphics/PorterDuff$Mode;)V

    goto/16 :goto_ae

    .line 5
    :cond_29
    iget-object v0, p0, Landroidx/appcompat/widget/v0;->g:Landroidx/appcompat/widget/v0$c;

    if-eqz v0, :cond_a5

    check-cast v0, Landroidx/appcompat/widget/l$a;

    const/4 v2, 0x1

    const v3, 0x102000d

    const v4, 0x102000f

    const/high16 v5, 0x1020000

    const v6, 0x7f0400d7

    const v7, 0x7f0400d9

    const v8, 0x7f08004b

    if-ne p2, v8, :cond_6a

    .line 6
    move-object v8, p4

    check-cast v8, Landroid/graphics/drawable/LayerDrawable;

    invoke-virtual {v8, v5}, Landroid/graphics/drawable/LayerDrawable;->findDrawableByLayerId(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-static {p1, v7}, Landroidx/appcompat/widget/c1;->c(Landroid/content/Context;I)I

    move-result v9

    .line 7
    sget-object v10, Landroidx/appcompat/widget/l;->b:Landroid/graphics/PorterDuff$Mode;

    .line 8
    invoke-virtual {v0, v5, v9, v10}, Landroidx/appcompat/widget/l$a;->e(Landroid/graphics/drawable/Drawable;ILandroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v8, v4}, Landroid/graphics/drawable/LayerDrawable;->findDrawableByLayerId(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-static {p1, v7}, Landroidx/appcompat/widget/c1;->c(Landroid/content/Context;I)I

    move-result v5

    invoke-virtual {v0, v4, v5, v10}, Landroidx/appcompat/widget/l$a;->e(Landroid/graphics/drawable/Drawable;ILandroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v8, v3}, Landroid/graphics/drawable/LayerDrawable;->findDrawableByLayerId(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-static {p1, v6}, Landroidx/appcompat/widget/c1;->c(Landroid/content/Context;I)I

    move-result v4

    invoke-virtual {v0, v3, v4, v10}, Landroidx/appcompat/widget/l$a;->e(Landroid/graphics/drawable/Drawable;ILandroid/graphics/PorterDuff$Mode;)V

    goto :goto_a2

    :cond_6a
    const v8, 0x7f080042

    if-eq p2, v8, :cond_7c

    const v8, 0x7f080041

    if-eq p2, v8, :cond_7c

    const v8, 0x7f080043

    if-ne p2, v8, :cond_7a

    goto :goto_7c

    :cond_7a
    const/4 v2, 0x0

    goto :goto_a2

    :cond_7c
    :goto_7c
    move-object v8, p4

    check-cast v8, Landroid/graphics/drawable/LayerDrawable;

    invoke-virtual {v8, v5}, Landroid/graphics/drawable/LayerDrawable;->findDrawableByLayerId(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-static {p1, v7}, Landroidx/appcompat/widget/c1;->b(Landroid/content/Context;I)I

    move-result v7

    .line 9
    sget-object v9, Landroidx/appcompat/widget/l;->b:Landroid/graphics/PorterDuff$Mode;

    .line 10
    invoke-virtual {v0, v5, v7, v9}, Landroidx/appcompat/widget/l$a;->e(Landroid/graphics/drawable/Drawable;ILandroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v8, v4}, Landroid/graphics/drawable/LayerDrawable;->findDrawableByLayerId(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-static {p1, v6}, Landroidx/appcompat/widget/c1;->c(Landroid/content/Context;I)I

    move-result v5

    invoke-virtual {v0, v4, v5, v9}, Landroidx/appcompat/widget/l$a;->e(Landroid/graphics/drawable/Drawable;ILandroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v8, v3}, Landroid/graphics/drawable/LayerDrawable;->findDrawableByLayerId(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-static {p1, v6}, Landroidx/appcompat/widget/c1;->c(Landroid/content/Context;I)I

    move-result v4

    invoke-virtual {v0, v3, v4, v9}, Landroidx/appcompat/widget/l$a;->e(Landroid/graphics/drawable/Drawable;ILandroid/graphics/PorterDuff$Mode;)V

    :goto_a2
    if-eqz v2, :cond_a5

    goto :goto_ae

    .line 11
    :cond_a5
    invoke-virtual {p0, p1, p2, p4}, Landroidx/appcompat/widget/v0;->k(Landroid/content/Context;ILandroid/graphics/drawable/Drawable;)Z

    move-result p1

    if-nez p1, :cond_ae

    if-eqz p3, :cond_ae

    move-object p4, v1

    :cond_ae
    :goto_ae
    return-object p4
.end method

.method public k(Landroid/content/Context;ILandroid/graphics/drawable/Drawable;)Z
    .registers 11

    iget-object v0, p0, Landroidx/appcompat/widget/v0;->g:Landroidx/appcompat/widget/v0$c;

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz v0, :cond_72

    check-cast v0, Landroidx/appcompat/widget/l$a;

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

    .line 1
    sget-object v3, Landroidx/appcompat/widget/l;->b:Landroid/graphics/PorterDuff$Mode;

    .line 2
    iget-object v4, v0, Landroidx/appcompat/widget/l$a;->a:[I

    invoke-virtual {v0, v4, p2}, Landroidx/appcompat/widget/l$a;->a([II)Z

    move-result v4

    const v5, 0x1010031

    const/4 v6, -0x1

    if-eqz v4, :cond_1d

    const v5, 0x7f0400d9

    goto :goto_49

    :cond_1d
    iget-object v4, v0, Landroidx/appcompat/widget/l$a;->c:[I

    invoke-virtual {v0, v4, p2}, Landroidx/appcompat/widget/l$a;->a([II)Z

    move-result v4

    if-eqz v4, :cond_29

    const v5, 0x7f0400d7

    goto :goto_49

    :cond_29
    iget-object v4, v0, Landroidx/appcompat/widget/l$a;->d:[I

    invoke-virtual {v0, v4, p2}, Landroidx/appcompat/widget/l$a;->a([II)Z

    move-result v0

    if-eqz v0, :cond_34

    sget-object v3, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

    goto :goto_49

    :cond_34
    const v0, 0x7f080034

    if-ne p2, v0, :cond_44

    const p2, 0x1010030

    const v0, 0x42233333    # 40.8f

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

    move-result v0

    goto :goto_4b

    :cond_44
    const v0, 0x7f080022

    if-ne p2, v0, :cond_4d

    :goto_49
    move p2, v5

    move v0, v6

    :goto_4b
    move v4, v1

    goto :goto_50

    :cond_4d
    move p2, v2

    move v4, p2

    move v0, v6

    :goto_50
    if-eqz v4, :cond_6e

    invoke-static {p3}, Landroidx/appcompat/widget/m0;->a(Landroid/graphics/drawable/Drawable;)Z

    move-result v4

    if-eqz v4, :cond_5c

    invoke-virtual {p3}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

    move-result-object p3

    :cond_5c
    invoke-static {p1, p2}, Landroidx/appcompat/widget/c1;->c(Landroid/content/Context;I)I

    move-result p1

    invoke-static {p1, v3}, Landroidx/appcompat/widget/l;->c(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;

    move-result-object p1

    invoke-virtual {p3, p1}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V

    if-eq v0, v6, :cond_6c

    invoke-virtual {p3, v0}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    :cond_6c
    move p1, v1

    goto :goto_6f

    :cond_6e
    move p1, v2

    :goto_6f
    if-eqz p1, :cond_72

    goto :goto_73

    :cond_72
    move v1, v2

    :goto_73
    return v1
.end method
