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


# instance fields
.field public final a:Landroid/widget/CompoundButton;

.field public b:Landroid/content/res/ColorStateList;

.field public c:Landroid/graphics/PorterDuff$Mode;

.field public d:Z

.field public e:Z

.field public f:Z


# direct methods
.method public constructor <init>(Landroid/widget/CompoundButton;)V
    .registers 3

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

    const/4 v0, 0x0

    iput-object v0, p0, Landroidx/appcompat/widget/k;->b:Landroid/content/res/ColorStateList;

    iput-object v0, p0, Landroidx/appcompat/widget/k;->c:Landroid/graphics/PorterDuff$Mode;

    const/4 v0, 0x0

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

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

    iput-object p1, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/CompoundButton;

    return-void
.end method


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

    iget-object v0, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/CompoundButton;

    .line 1
    invoke-virtual {v0}, Landroid/widget/CompoundButton;->getButtonDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    if-eqz v0, :cond_3a

    .line 2
    iget-boolean v1, p0, Landroidx/appcompat/widget/k;->d:Z

    if-nez v1, :cond_10

    iget-boolean v1, p0, Landroidx/appcompat/widget/k;->e:Z

    if-eqz v1, :cond_3a

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

    move-result-object v0

    iget-boolean v1, p0, Landroidx/appcompat/widget/k;->d:Z

    if-eqz v1, :cond_1d

    iget-object v1, p0, Landroidx/appcompat/widget/k;->b:Landroid/content/res/ColorStateList;

    .line 3
    invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setTintList(Landroid/content/res/ColorStateList;)V

    .line 4
    :cond_1d
    iget-boolean v1, p0, Landroidx/appcompat/widget/k;->e:Z

    if-eqz v1, :cond_26

    iget-object v1, p0, Landroidx/appcompat/widget/k;->c:Landroid/graphics/PorterDuff$Mode;

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

    .line 6
    :cond_26
    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->isStateful()Z

    move-result v1

    if-eqz v1, :cond_35

    iget-object v1, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/CompoundButton;

    invoke-virtual {v1}, Landroid/widget/CompoundButton;->getDrawableState()[I

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setState([I)Z

    :cond_35
    iget-object v1, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/CompoundButton;

    invoke-virtual {v1, v0}, Landroid/widget/CompoundButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V

    :cond_3a
    return-void
.end method

.method public b(Landroid/util/AttributeSet;I)V
    .registers 12

    iget-object v0, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/CompoundButton;

    invoke-virtual {v0}, Landroid/widget/CompoundButton;->getContext()Landroid/content/Context;

    move-result-object v0

    sget-object v3, Le/m;->m:[I

    const/4 v8, 0x0

    invoke-static {v0, p1, v3, p2, v8}, Landroidx/appcompat/widget/h1;->q(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/h1;

    move-result-object v0

    iget-object v1, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/CompoundButton;

    invoke-virtual {v1}, Landroid/widget/CompoundButton;->getContext()Landroid/content/Context;

    move-result-object v2

    .line 1
    iget-object v5, v0, Landroidx/appcompat/widget/h1;->b:Landroid/content/res/TypedArray;

    const/4 v7, 0x0

    move-object v4, p1

    move v6, p2

    .line 2
    invoke-static/range {v1 .. v7}, Ll0/u;->o(Landroid/view/View;Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V

    const/4 p1, 0x1

    :try_start_1c
    invoke-virtual {v0, p1}, Landroidx/appcompat/widget/h1;->o(I)Z

    move-result p2

    if-eqz p2, :cond_36

    invoke-virtual {v0, p1, v8}, Landroidx/appcompat/widget/h1;->l(II)I

    move-result p2
    :try_end_26
    .catchall {:try_start_1c .. :try_end_26} :catchall_63

    if-eqz p2, :cond_36

    :try_start_28
    iget-object v1, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/CompoundButton;

    invoke-virtual {v1}, Landroid/widget/CompoundButton;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2, p2}, Lg/a;->b(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-virtual {v1, p2}, Landroid/widget/CompoundButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V
    :try_end_35
    .catch Landroid/content/res/Resources$NotFoundException; {:try_start_28 .. :try_end_35} :catch_36
    .catchall {:try_start_28 .. :try_end_35} :catchall_63

    goto :goto_37

    :catch_36
    :cond_36
    move p1, v8

    :goto_37
    if-nez p1, :cond_52

    :try_start_39
    invoke-virtual {v0, v8}, Landroidx/appcompat/widget/h1;->o(I)Z

    move-result p1

    if-eqz p1, :cond_52

    invoke-virtual {v0, v8, v8}, Landroidx/appcompat/widget/h1;->l(II)I

    move-result p1

    if-eqz p1, :cond_52

    iget-object p2, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/CompoundButton;

    invoke-virtual {p2}, Landroid/widget/CompoundButton;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, p1}, Lg/a;->b(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {p2, p1}, Landroid/widget/CompoundButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V

    :cond_52
    const/4 p1, 0x2

    invoke-virtual {v0, p1}, Landroidx/appcompat/widget/h1;->o(I)Z

    move-result p2

    if-eqz p2, :cond_65

    iget-object p2, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/CompoundButton;

    invoke-virtual {v0, p1}, Landroidx/appcompat/widget/h1;->c(I)Landroid/content/res/ColorStateList;

    move-result-object p1

    .line 3
    invoke-virtual {p2, p1}, Landroid/widget/CompoundButton;->setButtonTintList(Landroid/content/res/ColorStateList;)V

    goto :goto_65

    :catchall_63
    move-exception p1

    goto :goto_81

    :cond_65
    :goto_65
    const/4 p1, 0x3

    .line 4
    invoke-virtual {v0, p1}, Landroidx/appcompat/widget/h1;->o(I)Z

    move-result p2

    if-eqz p2, :cond_7b

    iget-object p2, p0, Landroidx/appcompat/widget/k;->a:Landroid/widget/CompoundButton;

    const/4 v1, -0x1

    invoke-virtual {v0, p1, v1}, Landroidx/appcompat/widget/h1;->j(II)I

    move-result p1

    const/4 v1, 0x0

    invoke-static {p1, v1}, Landroidx/appcompat/widget/m0;->d(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;

    move-result-object p1

    .line 5
    invoke-virtual {p2, p1}, Landroid/widget/CompoundButton;->setButtonTintMode(Landroid/graphics/PorterDuff$Mode;)V
    :try_end_7b
    .catchall {:try_start_39 .. :try_end_7b} :catchall_63

    .line 6
    :cond_7b
    iget-object p1, v0, Landroidx/appcompat/widget/h1;->b:Landroid/content/res/TypedArray;

    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    return-void

    :goto_81
    iget-object p2, v0, Landroidx/appcompat/widget/h1;->b:Landroid/content/res/TypedArray;

    invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V

    .line 7
    throw p1
.end method
