.class public Lu6/a;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public final a:Lcom/google/android/material/button/MaterialButton;

.field public b:Lk7/i;

.field public c:I

.field public d:I

.field public e:I

.field public f:I

.field public g:I

.field public h:I

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

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

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

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

.field public m:Landroid/graphics/drawable/Drawable;

.field public n:Z

.field public o:Z

.field public p:Z

.field public q:Z

.field public r:Landroid/graphics/drawable/LayerDrawable;

.field public s:I


# direct methods
.method public constructor <init>(Lcom/google/android/material/button/MaterialButton;Lk7/i;)V
    .registers 4

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

    const/4 v0, 0x0

    iput-boolean v0, p0, Lu6/a;->n:Z

    iput-boolean v0, p0, Lu6/a;->o:Z

    iput-boolean v0, p0, Lu6/a;->p:Z

    iput-object p1, p0, Lu6/a;->a:Lcom/google/android/material/button/MaterialButton;

    iput-object p2, p0, Lu6/a;->b:Lk7/i;

    return-void
.end method


# virtual methods
.method public a()Lk7/m;
    .registers 4

    iget-object v0, p0, Lu6/a;->r:Landroid/graphics/drawable/LayerDrawable;

    if-eqz v0, :cond_24

    invoke-virtual {v0}, Landroid/graphics/drawable/LayerDrawable;->getNumberOfLayers()I

    move-result v0

    const/4 v1, 0x1

    if-le v0, v1, :cond_24

    iget-object v0, p0, Lu6/a;->r:Landroid/graphics/drawable/LayerDrawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/LayerDrawable;->getNumberOfLayers()I

    move-result v0

    const/4 v2, 0x2

    if-le v0, v2, :cond_1d

    iget-object v0, p0, Lu6/a;->r:Landroid/graphics/drawable/LayerDrawable;

    invoke-virtual {v0, v2}, Landroid/graphics/drawable/LayerDrawable;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    :goto_1a
    check-cast v0, Lk7/m;

    return-object v0

    :cond_1d
    iget-object v0, p0, Lu6/a;->r:Landroid/graphics/drawable/LayerDrawable;

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/LayerDrawable;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    goto :goto_1a

    :cond_24
    const/4 v0, 0x0

    return-object v0
.end method

.method public b()Lk7/f;
    .registers 2

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lu6/a;->c(Z)Lk7/f;

    move-result-object v0

    return-object v0
.end method

.method public final c(Z)Lk7/f;
    .registers 4

    iget-object v0, p0, Lu6/a;->r:Landroid/graphics/drawable/LayerDrawable;

    if-eqz v0, :cond_22

    invoke-virtual {v0}, Landroid/graphics/drawable/LayerDrawable;->getNumberOfLayers()I

    move-result v0

    if-lez v0, :cond_22

    iget-object v0, p0, Lu6/a;->r:Landroid/graphics/drawable/LayerDrawable;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/LayerDrawable;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    check-cast v0, Landroid/graphics/drawable/InsetDrawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/InsetDrawable;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

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

    xor-int/lit8 p1, p1, 0x1

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/LayerDrawable;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    check-cast p1, Lk7/f;

    return-object p1

    :cond_22
    const/4 p1, 0x0

    return-object p1
.end method

.method public final d()Lk7/f;
    .registers 2

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lu6/a;->c(Z)Lk7/f;

    move-result-object v0

    return-object v0
.end method

.method public e(Lk7/i;)V
    .registers 4

    iput-object p1, p0, Lu6/a;->b:Lk7/i;

    .line 1
    invoke-virtual {p0}, Lu6/a;->b()Lk7/f;

    move-result-object v0

    if-eqz v0, :cond_13

    invoke-virtual {p0}, Lu6/a;->b()Lk7/f;

    move-result-object v0

    .line 2
    iget-object v1, v0, Lk7/f;->r:Lk7/f$b;

    iput-object p1, v1, Lk7/f$b;->a:Lk7/i;

    invoke-virtual {v0}, Lk7/f;->invalidateSelf()V

    .line 3
    :cond_13
    invoke-virtual {p0}, Lu6/a;->d()Lk7/f;

    move-result-object v0

    if-eqz v0, :cond_24

    invoke-virtual {p0}, Lu6/a;->d()Lk7/f;

    move-result-object v0

    .line 4
    iget-object v1, v0, Lk7/f;->r:Lk7/f$b;

    iput-object p1, v1, Lk7/f$b;->a:Lk7/i;

    invoke-virtual {v0}, Lk7/f;->invalidateSelf()V

    .line 5
    :cond_24
    invoke-virtual {p0}, Lu6/a;->a()Lk7/m;

    move-result-object v0

    if-eqz v0, :cond_31

    invoke-virtual {p0}, Lu6/a;->a()Lk7/m;

    move-result-object v0

    invoke-interface {v0, p1}, Lk7/m;->setShapeAppearanceModel(Lk7/i;)V

    :cond_31
    return-void
.end method

.method public final f(II)V
    .registers 10

    iget-object v0, p0, Lu6/a;->a:Lcom/google/android/material/button/MaterialButton;

    sget-object v1, Ll0/u;->a:Ljava/util/WeakHashMap;

    .line 1
    invoke-static {v0}, Ll0/u$e;->f(Landroid/view/View;)I

    move-result v0

    .line 2
    iget-object v1, p0, Lu6/a;->a:Lcom/google/android/material/button/MaterialButton;

    invoke-virtual {v1}, Landroid/widget/Button;->getPaddingTop()I

    move-result v1

    iget-object v2, p0, Lu6/a;->a:Lcom/google/android/material/button/MaterialButton;

    .line 3
    invoke-static {v2}, Ll0/u$e;->e(Landroid/view/View;)I

    move-result v2

    .line 4
    iget-object v3, p0, Lu6/a;->a:Lcom/google/android/material/button/MaterialButton;

    invoke-virtual {v3}, Landroid/widget/Button;->getPaddingBottom()I

    move-result v3

    iget v4, p0, Lu6/a;->e:I

    iget v5, p0, Lu6/a;->f:I

    iput p2, p0, Lu6/a;->f:I

    iput p1, p0, Lu6/a;->e:I

    iget-boolean v6, p0, Lu6/a;->o:Z

    if-nez v6, :cond_29

    invoke-virtual {p0}, Lu6/a;->g()V

    :cond_29
    iget-object v6, p0, Lu6/a;->a:Lcom/google/android/material/button/MaterialButton;

    add-int/2addr v1, p1

    sub-int/2addr v1, v4

    add-int/2addr v3, p2

    sub-int/2addr v3, v5

    .line 5
    invoke-static {v6, v0, v1, v2, v3}, Ll0/u$e;->k(Landroid/view/View;IIII)V

    return-void
.end method

.method public final g()V
    .registers 13

    iget-object v0, p0, Lu6/a;->a:Lcom/google/android/material/button/MaterialButton;

    .line 1
    new-instance v1, Lk7/f;

    iget-object v2, p0, Lu6/a;->b:Lk7/i;

    invoke-direct {v1, v2}, Lk7/f;-><init>(Lk7/i;)V

    iget-object v2, p0, Lu6/a;->a:Lcom/google/android/material/button/MaterialButton;

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

    move-result-object v2

    invoke-virtual {v1, v2}, Lk7/f;->n(Landroid/content/Context;)V

    iget-object v2, p0, Lu6/a;->j:Landroid/content/res/ColorStateList;

    .line 2
    invoke-virtual {v1, v2}, Lk7/f;->setTintList(Landroid/content/res/ColorStateList;)V

    .line 3
    iget-object v2, p0, Lu6/a;->i:Landroid/graphics/PorterDuff$Mode;

    if-eqz v2, :cond_1e

    .line 4
    invoke-virtual {v1, v2}, Lk7/f;->setTintMode(Landroid/graphics/PorterDuff$Mode;)V

    .line 5
    :cond_1e
    iget v2, p0, Lu6/a;->h:I

    int-to-float v2, v2

    iget-object v3, p0, Lu6/a;->k:Landroid/content/res/ColorStateList;

    invoke-virtual {v1, v2, v3}, Lk7/f;->s(FLandroid/content/res/ColorStateList;)V

    new-instance v2, Lk7/f;

    iget-object v3, p0, Lu6/a;->b:Lk7/i;

    invoke-direct {v2, v3}, Lk7/f;-><init>(Lk7/i;)V

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lk7/f;->setTint(I)V

    iget v4, p0, Lu6/a;->h:I

    int-to-float v4, v4

    iget-boolean v5, p0, Lu6/a;->n:Z

    if-eqz v5, :cond_42

    iget-object v5, p0, Lu6/a;->a:Lcom/google/android/material/button/MaterialButton;

    const v6, 0x7f0400e8

    invoke-static {v5, v6}, Le/j;->b(Landroid/view/View;I)I

    move-result v5

    goto :goto_43

    :cond_42
    move v5, v3

    :goto_43
    invoke-virtual {v2, v4, v5}, Lk7/f;->r(FI)V

    new-instance v4, Lk7/f;

    iget-object v5, p0, Lu6/a;->b:Lk7/i;

    invoke-direct {v4, v5}, Lk7/f;-><init>(Lk7/i;)V

    iput-object v4, p0, Lu6/a;->m:Landroid/graphics/drawable/Drawable;

    const/4 v5, -0x1

    .line 6
    invoke-virtual {v4, v5}, Lk7/f;->setTint(I)V

    .line 7
    new-instance v4, Landroid/graphics/drawable/RippleDrawable;

    iget-object v5, p0, Lu6/a;->l:Landroid/content/res/ColorStateList;

    invoke-static {v5}, Li7/a;->a(Landroid/content/res/ColorStateList;)Landroid/content/res/ColorStateList;

    move-result-object v5

    new-instance v7, Landroid/graphics/drawable/LayerDrawable;

    const/4 v6, 0x2

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

    aput-object v2, v6, v3

    const/4 v2, 0x1

    aput-object v1, v6, v2

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

    .line 8
    new-instance v1, Landroid/graphics/drawable/InsetDrawable;

    iget v8, p0, Lu6/a;->c:I

    iget v9, p0, Lu6/a;->e:I

    iget v10, p0, Lu6/a;->d:I

    iget v11, p0, Lu6/a;->f:I

    move-object v6, v1

    invoke-direct/range {v6 .. v11}, Landroid/graphics/drawable/InsetDrawable;-><init>(Landroid/graphics/drawable/Drawable;IIII)V

    .line 9
    iget-object v2, p0, Lu6/a;->m:Landroid/graphics/drawable/Drawable;

    invoke-direct {v4, v5, v1, v2}, Landroid/graphics/drawable/RippleDrawable;-><init>(Landroid/content/res/ColorStateList;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    iput-object v4, p0, Lu6/a;->r:Landroid/graphics/drawable/LayerDrawable;

    .line 10
    invoke-virtual {v0, v4}, Lcom/google/android/material/button/MaterialButton;->setInternalBackground(Landroid/graphics/drawable/Drawable;)V

    invoke-virtual {p0}, Lu6/a;->b()Lk7/f;

    move-result-object v0

    if-eqz v0, :cond_8c

    iget v1, p0, Lu6/a;->s:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Lk7/f;->o(F)V

    :cond_8c
    return-void
.end method

.method public final h()V
    .registers 5

    invoke-virtual {p0}, Lu6/a;->b()Lk7/f;

    move-result-object v0

    invoke-virtual {p0}, Lu6/a;->d()Lk7/f;

    move-result-object v1

    if-eqz v0, :cond_29

    iget v2, p0, Lu6/a;->h:I

    int-to-float v2, v2

    iget-object v3, p0, Lu6/a;->k:Landroid/content/res/ColorStateList;

    invoke-virtual {v0, v2, v3}, Lk7/f;->s(FLandroid/content/res/ColorStateList;)V

    if-eqz v1, :cond_29

    iget v0, p0, Lu6/a;->h:I

    int-to-float v0, v0

    iget-boolean v2, p0, Lu6/a;->n:Z

    if-eqz v2, :cond_25

    iget-object v2, p0, Lu6/a;->a:Lcom/google/android/material/button/MaterialButton;

    const v3, 0x7f0400e8

    invoke-static {v2, v3}, Le/j;->b(Landroid/view/View;I)I

    move-result v2

    goto :goto_26

    :cond_25
    const/4 v2, 0x0

    :goto_26
    invoke-virtual {v1, v0, v2}, Lk7/f;->r(FI)V

    :cond_29
    return-void
.end method
