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

# interfaces
.implements Landroidx/appcompat/widget/l0;


# instance fields
.field public a:Landroidx/appcompat/widget/Toolbar;

.field public b:I

.field public c:Landroid/view/View;

.field public d:Landroid/view/View;

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

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

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

.field public h:Z

.field public i:Ljava/lang/CharSequence;

.field public j:Ljava/lang/CharSequence;

.field public k:Ljava/lang/CharSequence;

.field public l:Landroid/view/Window$Callback;

.field public m:Z

.field public n:Landroidx/appcompat/widget/c;

.field public o:I

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


# direct methods
.method public constructor <init>(Landroidx/appcompat/widget/Toolbar;Z)V
    .registers 8

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

    const/4 v0, 0x0

    iput v0, p0, Landroidx/appcompat/widget/k1;->o:I

    iput-object p1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {p1}, Landroidx/appcompat/widget/Toolbar;->getTitle()Ljava/lang/CharSequence;

    move-result-object v1

    iput-object v1, p0, Landroidx/appcompat/widget/k1;->i:Ljava/lang/CharSequence;

    invoke-virtual {p1}, Landroidx/appcompat/widget/Toolbar;->getSubtitle()Ljava/lang/CharSequence;

    move-result-object v1

    iput-object v1, p0, Landroidx/appcompat/widget/k1;->j:Ljava/lang/CharSequence;

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->i:Ljava/lang/CharSequence;

    const/4 v2, 0x1

    if-eqz v1, :cond_1b

    move v1, v2

    goto :goto_1c

    :cond_1b
    move v1, v0

    :goto_1c
    iput-boolean v1, p0, Landroidx/appcompat/widget/k1;->h:Z

    invoke-virtual {p1}, Landroidx/appcompat/widget/Toolbar;->getNavigationIcon()Landroid/graphics/drawable/Drawable;

    move-result-object v1

    iput-object v1, p0, Landroidx/appcompat/widget/k1;->g:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object p1

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

    const v3, 0x7f040007

    const/4 v4, 0x0

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

    move-result-object p1

    const/16 v1, 0xf

    invoke-virtual {p1, v1}, Landroidx/appcompat/widget/h1;->g(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    iput-object v3, p0, Landroidx/appcompat/widget/k1;->p:Landroid/graphics/drawable/Drawable;

    if-eqz p2, :cond_145

    const/16 p2, 0x1b

    invoke-virtual {p1, p2}, Landroidx/appcompat/widget/h1;->n(I)Ljava/lang/CharSequence;

    move-result-object p2

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_4d

    .line 2
    iput-boolean v2, p0, Landroidx/appcompat/widget/k1;->h:Z

    invoke-virtual {p0, p2}, Landroidx/appcompat/widget/k1;->u(Ljava/lang/CharSequence;)V

    :cond_4d
    const/16 p2, 0x19

    .line 3
    invoke-virtual {p1, p2}, Landroidx/appcompat/widget/h1;->n(I)Ljava/lang/CharSequence;

    move-result-object p2

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_66

    .line 4
    iput-object p2, p0, Landroidx/appcompat/widget/k1;->j:Ljava/lang/CharSequence;

    iget v1, p0, Landroidx/appcompat/widget/k1;->b:I

    and-int/lit8 v1, v1, 0x8

    if-eqz v1, :cond_66

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v1, p2}, Landroidx/appcompat/widget/Toolbar;->setSubtitle(Ljava/lang/CharSequence;)V

    :cond_66
    const/16 p2, 0x14

    .line 5
    invoke-virtual {p1, p2}, Landroidx/appcompat/widget/h1;->g(I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    if-eqz p2, :cond_73

    .line 6
    iput-object p2, p0, Landroidx/appcompat/widget/k1;->f:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->x()V

    :cond_73
    const/16 p2, 0x11

    .line 7
    invoke-virtual {p1, p2}, Landroidx/appcompat/widget/h1;->g(I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    if-eqz p2, :cond_80

    .line 8
    iput-object p2, p0, Landroidx/appcompat/widget/k1;->e:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->x()V

    .line 9
    :cond_80
    iget-object p2, p0, Landroidx/appcompat/widget/k1;->g:Landroid/graphics/drawable/Drawable;

    if-nez p2, :cond_8d

    iget-object p2, p0, Landroidx/appcompat/widget/k1;->p:Landroid/graphics/drawable/Drawable;

    if-eqz p2, :cond_8d

    .line 10
    iput-object p2, p0, Landroidx/appcompat/widget/k1;->g:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->w()V

    :cond_8d
    const/16 p2, 0xa

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

    move-result p2

    invoke-virtual {p0, p2}, Landroidx/appcompat/widget/k1;->m(I)V

    const/16 p2, 0x9

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

    move-result p2

    if-eqz p2, :cond_d3

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

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

    move-result-object v1

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    iget-object v2, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v1, p2, v2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    .line 12
    iget-object v1, p0, Landroidx/appcompat/widget/k1;->d:Landroid/view/View;

    if-eqz v1, :cond_bd

    iget v2, p0, Landroidx/appcompat/widget/k1;->b:I

    and-int/lit8 v2, v2, 0x10

    if-eqz v2, :cond_bd

    iget-object v2, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v2, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_bd
    iput-object p2, p0, Landroidx/appcompat/widget/k1;->d:Landroid/view/View;

    if-eqz p2, :cond_cc

    iget v1, p0, Landroidx/appcompat/widget/k1;->b:I

    and-int/lit8 v1, v1, 0x10

    if-eqz v1, :cond_cc

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v1, p2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 13
    :cond_cc
    iget p2, p0, Landroidx/appcompat/widget/k1;->b:I

    or-int/lit8 p2, p2, 0x10

    invoke-virtual {p0, p2}, Landroidx/appcompat/widget/k1;->m(I)V

    :cond_d3
    const/16 p2, 0xd

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

    move-result p2

    if-lez p2, :cond_e8

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    iput p2, v1, Landroid/view/ViewGroup$LayoutParams;->height:I

    iget-object p2, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {p2, v1}, Landroid/view/ViewGroup;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_e8
    const/4 p2, 0x7

    const/4 v1, -0x1

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

    move-result p2

    const/4 v2, 0x3

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

    move-result v1

    if-gez p2, :cond_f7

    if-ltz v1, :cond_109

    :cond_f7
    iget-object v2, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-static {p2, v0}, Ljava/lang/Math;->max(II)I

    move-result p2

    invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I

    move-result v1

    .line 14
    invoke-virtual {v2}, Landroidx/appcompat/widget/Toolbar;->d()V

    iget-object v2, v2, Landroidx/appcompat/widget/Toolbar;->K:Landroidx/appcompat/widget/x0;

    invoke-virtual {v2, p2, v1}, Landroidx/appcompat/widget/x0;->a(II)V

    :cond_109
    const/16 p2, 0x1c

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

    move-result p2

    if-eqz p2, :cond_120

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

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

    move-result-object v2

    .line 16
    iput p2, v1, Landroidx/appcompat/widget/Toolbar;->C:I

    iget-object v1, v1, Landroidx/appcompat/widget/Toolbar;->s:Landroid/widget/TextView;

    if-eqz v1, :cond_120

    invoke-virtual {v1, v2, p2}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

    :cond_120
    const/16 p2, 0x1a

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

    move-result p2

    if-eqz p2, :cond_137

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

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

    move-result-object v2

    .line 18
    iput p2, v1, Landroidx/appcompat/widget/Toolbar;->D:I

    iget-object v1, v1, Landroidx/appcompat/widget/Toolbar;->t:Landroid/widget/TextView;

    if-eqz v1, :cond_137

    invoke-virtual {v1, v2, p2}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

    :cond_137
    const/16 p2, 0x16

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

    move-result p2

    if-eqz p2, :cond_15a

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0, p2}, Landroidx/appcompat/widget/Toolbar;->setPopupTheme(I)V

    goto :goto_15a

    .line 20
    :cond_145
    iget-object p2, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {p2}, Landroidx/appcompat/widget/Toolbar;->getNavigationIcon()Landroid/graphics/drawable/Drawable;

    move-result-object p2

    if-eqz p2, :cond_156

    iget-object p2, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {p2}, Landroidx/appcompat/widget/Toolbar;->getNavigationIcon()Landroid/graphics/drawable/Drawable;

    move-result-object p2

    iput-object p2, p0, Landroidx/appcompat/widget/k1;->p:Landroid/graphics/drawable/Drawable;

    goto :goto_158

    :cond_156
    const/16 v1, 0xb

    .line 21
    :goto_158
    iput v1, p0, Landroidx/appcompat/widget/k1;->b:I

    .line 22
    :cond_15a
    :goto_15a
    iget-object p1, p1, Landroidx/appcompat/widget/h1;->b:Landroid/content/res/TypedArray;

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

    .line 23
    iget p1, p0, Landroidx/appcompat/widget/k1;->o:I

    const p2, 0x7f110001

    if-ne p2, p1, :cond_167

    goto :goto_187

    :cond_167
    iput p2, p0, Landroidx/appcompat/widget/k1;->o:I

    iget-object p1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {p1}, Landroidx/appcompat/widget/Toolbar;->getNavigationContentDescription()Ljava/lang/CharSequence;

    move-result-object p1

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_187

    iget p1, p0, Landroidx/appcompat/widget/k1;->o:I

    if-nez p1, :cond_17a

    goto :goto_182

    .line 24
    :cond_17a
    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->getContext()Landroid/content/Context;

    move-result-object p2

    invoke-virtual {p2, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 25
    :goto_182
    iput-object v4, p0, Landroidx/appcompat/widget/k1;->k:Ljava/lang/CharSequence;

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->v()V

    .line 26
    :cond_187
    :goto_187
    iget-object p1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {p1}, Landroidx/appcompat/widget/Toolbar;->getNavigationContentDescription()Ljava/lang/CharSequence;

    move-result-object p1

    iput-object p1, p0, Landroidx/appcompat/widget/k1;->k:Ljava/lang/CharSequence;

    iget-object p1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    new-instance p2, Landroidx/appcompat/widget/j1;

    invoke-direct {p2, p0}, Landroidx/appcompat/widget/j1;-><init>(Landroidx/appcompat/widget/k1;)V

    invoke-virtual {p1, p2}, Landroidx/appcompat/widget/Toolbar;->setNavigationOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public a(Landroid/view/Menu;Landroidx/appcompat/view/menu/i$a;)V
    .registers 8

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->n:Landroidx/appcompat/widget/c;

    if-nez v0, :cond_14

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

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

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

    move-result-object v1

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

    iput-object v0, p0, Landroidx/appcompat/widget/k1;->n:Landroidx/appcompat/widget/c;

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

    :cond_14
    iget-object v0, p0, Landroidx/appcompat/widget/k1;->n:Landroidx/appcompat/widget/c;

    .line 1
    iput-object p2, v0, Landroidx/appcompat/view/menu/a;->v:Landroidx/appcompat/view/menu/i$a;

    .line 2
    iget-object p2, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    check-cast p1, Landroidx/appcompat/view/menu/e;

    if-nez p1, :cond_23

    .line 3
    iget-object v1, p2, Landroidx/appcompat/widget/Toolbar;->r:Landroidx/appcompat/widget/ActionMenuView;

    if-nez v1, :cond_23

    goto :goto_81

    :cond_23
    invoke-virtual {p2}, Landroidx/appcompat/widget/Toolbar;->f()V

    iget-object v1, p2, Landroidx/appcompat/widget/Toolbar;->r:Landroidx/appcompat/widget/ActionMenuView;

    .line 4
    iget-object v1, v1, Landroidx/appcompat/widget/ActionMenuView;->G:Landroidx/appcompat/view/menu/e;

    if-ne v1, p1, :cond_2d

    goto :goto_81

    :cond_2d
    if-eqz v1, :cond_39

    .line 5
    iget-object v2, p2, Landroidx/appcompat/widget/Toolbar;->f0:Landroidx/appcompat/widget/c;

    invoke-virtual {v1, v2}, Landroidx/appcompat/view/menu/e;->t(Landroidx/appcompat/view/menu/i;)V

    iget-object v2, p2, Landroidx/appcompat/widget/Toolbar;->g0:Landroidx/appcompat/widget/Toolbar$d;

    invoke-virtual {v1, v2}, Landroidx/appcompat/view/menu/e;->t(Landroidx/appcompat/view/menu/i;)V

    :cond_39
    iget-object v1, p2, Landroidx/appcompat/widget/Toolbar;->g0:Landroidx/appcompat/widget/Toolbar$d;

    if-nez v1, :cond_44

    new-instance v1, Landroidx/appcompat/widget/Toolbar$d;

    invoke-direct {v1, p2}, Landroidx/appcompat/widget/Toolbar$d;-><init>(Landroidx/appcompat/widget/Toolbar;)V

    iput-object v1, p2, Landroidx/appcompat/widget/Toolbar;->g0:Landroidx/appcompat/widget/Toolbar$d;

    :cond_44
    const/4 v1, 0x1

    .line 6
    iput-boolean v1, v0, Landroidx/appcompat/widget/c;->H:Z

    if-eqz p1, :cond_56

    .line 7
    iget-object v1, p2, Landroidx/appcompat/widget/Toolbar;->A:Landroid/content/Context;

    invoke-virtual {p1, v0, v1}, Landroidx/appcompat/view/menu/e;->b(Landroidx/appcompat/view/menu/i;Landroid/content/Context;)V

    iget-object v1, p2, Landroidx/appcompat/widget/Toolbar;->g0:Landroidx/appcompat/widget/Toolbar$d;

    iget-object v2, p2, Landroidx/appcompat/widget/Toolbar;->A:Landroid/content/Context;

    invoke-virtual {p1, v1, v2}, Landroidx/appcompat/view/menu/e;->b(Landroidx/appcompat/view/menu/i;Landroid/content/Context;)V

    goto :goto_73

    :cond_56
    iget-object p1, p2, Landroidx/appcompat/widget/Toolbar;->A:Landroid/content/Context;

    const/4 v2, 0x0

    invoke-virtual {v0, p1, v2}, Landroidx/appcompat/widget/c;->c(Landroid/content/Context;Landroidx/appcompat/view/menu/e;)V

    iget-object p1, p2, Landroidx/appcompat/widget/Toolbar;->g0:Landroidx/appcompat/widget/Toolbar$d;

    .line 8
    iget-object v3, p1, Landroidx/appcompat/widget/Toolbar$d;->r:Landroidx/appcompat/view/menu/e;

    if-eqz v3, :cond_69

    iget-object v4, p1, Landroidx/appcompat/widget/Toolbar$d;->s:Landroidx/appcompat/view/menu/g;

    if-eqz v4, :cond_69

    invoke-virtual {v3, v4}, Landroidx/appcompat/view/menu/e;->d(Landroidx/appcompat/view/menu/g;)Z

    :cond_69
    iput-object v2, p1, Landroidx/appcompat/widget/Toolbar$d;->r:Landroidx/appcompat/view/menu/e;

    .line 9
    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/c;->e(Z)V

    iget-object p1, p2, Landroidx/appcompat/widget/Toolbar;->g0:Landroidx/appcompat/widget/Toolbar$d;

    invoke-virtual {p1, v1}, Landroidx/appcompat/widget/Toolbar$d;->e(Z)V

    :goto_73
    iget-object p1, p2, Landroidx/appcompat/widget/Toolbar;->r:Landroidx/appcompat/widget/ActionMenuView;

    iget v1, p2, Landroidx/appcompat/widget/Toolbar;->B:I

    invoke-virtual {p1, v1}, Landroidx/appcompat/widget/ActionMenuView;->setPopupTheme(I)V

    iget-object p1, p2, Landroidx/appcompat/widget/Toolbar;->r:Landroidx/appcompat/widget/ActionMenuView;

    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/ActionMenuView;->setPresenter(Landroidx/appcompat/widget/c;)V

    iput-object v0, p2, Landroidx/appcompat/widget/Toolbar;->f0:Landroidx/appcompat/widget/c;

    :goto_81
    return-void
.end method

.method public b()Z
    .registers 2

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0}, Landroidx/appcompat/widget/Toolbar;->q()Z

    move-result v0

    return v0
.end method

.method public c()V
    .registers 2

    const/4 v0, 0x1

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

    return-void
.end method

.method public collapseActionView()V
    .registers 2

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    .line 1
    iget-object v0, v0, Landroidx/appcompat/widget/Toolbar;->g0:Landroidx/appcompat/widget/Toolbar$d;

    if-nez v0, :cond_8

    const/4 v0, 0x0

    goto :goto_a

    :cond_8
    iget-object v0, v0, Landroidx/appcompat/widget/Toolbar$d;->s:Landroidx/appcompat/view/menu/g;

    :goto_a
    if-eqz v0, :cond_f

    invoke-virtual {v0}, Landroidx/appcompat/view/menu/g;->collapseActionView()Z

    :cond_f
    return-void
.end method

.method public d()Z
    .registers 5

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    .line 1
    iget-object v0, v0, Landroidx/appcompat/widget/Toolbar;->r:Landroidx/appcompat/widget/ActionMenuView;

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz v0, :cond_22

    .line 2
    iget-object v0, v0, Landroidx/appcompat/widget/ActionMenuView;->K:Landroidx/appcompat/widget/c;

    if-eqz v0, :cond_1e

    .line 3
    iget-object v3, v0, Landroidx/appcompat/widget/c;->L:Landroidx/appcompat/widget/c$c;

    if-nez v3, :cond_19

    invoke-virtual {v0}, Landroidx/appcompat/widget/c;->m()Z

    move-result v0

    if-eqz v0, :cond_17

    goto :goto_19

    :cond_17
    move v0, v2

    goto :goto_1a

    :cond_19
    :goto_19
    move v0, v1

    :goto_1a
    if-eqz v0, :cond_1e

    move v0, v1

    goto :goto_1f

    :cond_1e
    move v0, v2

    :goto_1f
    if-eqz v0, :cond_22

    goto :goto_23

    :cond_22
    move v1, v2

    :goto_23
    return v1
.end method

.method public e()Z
    .registers 4

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    .line 1
    iget-object v0, v0, Landroidx/appcompat/widget/Toolbar;->r:Landroidx/appcompat/widget/ActionMenuView;

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz v0, :cond_18

    .line 2
    iget-object v0, v0, Landroidx/appcompat/widget/ActionMenuView;->K:Landroidx/appcompat/widget/c;

    if-eqz v0, :cond_14

    invoke-virtual {v0}, Landroidx/appcompat/widget/c;->k()Z

    move-result v0

    if-eqz v0, :cond_14

    move v0, v1

    goto :goto_15

    :cond_14
    move v0, v2

    :goto_15
    if-eqz v0, :cond_18

    goto :goto_19

    :cond_18
    move v1, v2

    :goto_19
    return v1
.end method

.method public f()Z
    .registers 2

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0}, Landroidx/appcompat/widget/Toolbar;->w()Z

    move-result v0

    return v0
.end method

.method public g()Z
    .registers 3

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    .line 1
    invoke-virtual {v0}, Landroid/view/ViewGroup;->getVisibility()I

    move-result v1

    if-nez v1, :cond_12

    iget-object v0, v0, Landroidx/appcompat/widget/Toolbar;->r:Landroidx/appcompat/widget/ActionMenuView;

    if-eqz v0, :cond_12

    .line 2
    iget-boolean v0, v0, Landroidx/appcompat/widget/ActionMenuView;->J:Z

    if-eqz v0, :cond_12

    const/4 v0, 0x1

    goto :goto_13

    :cond_12
    const/4 v0, 0x0

    :goto_13
    return v0
.end method

.method public getContext()Landroid/content/Context;
    .registers 2

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

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

    move-result-object v0

    return-object v0
.end method

.method public getTitle()Ljava/lang/CharSequence;
    .registers 2

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0}, Landroidx/appcompat/widget/Toolbar;->getTitle()Ljava/lang/CharSequence;

    move-result-object v0

    return-object v0
.end method

.method public h()V
    .registers 2

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    .line 1
    iget-object v0, v0, Landroidx/appcompat/widget/Toolbar;->r:Landroidx/appcompat/widget/ActionMenuView;

    if-eqz v0, :cond_d

    .line 2
    iget-object v0, v0, Landroidx/appcompat/widget/ActionMenuView;->K:Landroidx/appcompat/widget/c;

    if-eqz v0, :cond_d

    invoke-virtual {v0}, Landroidx/appcompat/widget/c;->b()Z

    :cond_d
    return-void
.end method

.method public i(I)V
    .registers 3

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->setVisibility(I)V

    return-void
.end method

.method public j(Landroidx/appcompat/widget/y0;)V
    .registers 3

    iget-object p1, p0, Landroidx/appcompat/widget/k1;->c:Landroid/view/View;

    if-eqz p1, :cond_11

    invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    if-ne p1, v0, :cond_11

    iget-object p1, p0, Landroidx/appcompat/widget/k1;->c:Landroid/view/View;

    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_11
    const/4 p1, 0x0

    iput-object p1, p0, Landroidx/appcompat/widget/k1;->c:Landroid/view/View;

    return-void
.end method

.method public k(Z)V
    .registers 2

    return-void
.end method

.method public l()Z
    .registers 2

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    .line 1
    iget-object v0, v0, Landroidx/appcompat/widget/Toolbar;->g0:Landroidx/appcompat/widget/Toolbar$d;

    if-eqz v0, :cond_c

    iget-object v0, v0, Landroidx/appcompat/widget/Toolbar$d;->s:Landroidx/appcompat/view/menu/g;

    if-eqz v0, :cond_c

    const/4 v0, 0x1

    goto :goto_d

    :cond_c
    const/4 v0, 0x0

    :goto_d
    return v0
.end method

.method public m(I)V
    .registers 5

    iget v0, p0, Landroidx/appcompat/widget/k1;->b:I

    xor-int/2addr v0, p1

    iput p1, p0, Landroidx/appcompat/widget/k1;->b:I

    if-eqz v0, :cond_52

    and-int/lit8 v1, v0, 0x4

    if-eqz v1, :cond_15

    and-int/lit8 v1, p1, 0x4

    if-eqz v1, :cond_12

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->v()V

    :cond_12
    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->w()V

    :cond_15
    and-int/lit8 v1, v0, 0x3

    if-eqz v1, :cond_1c

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->x()V

    :cond_1c
    and-int/lit8 v1, v0, 0x8

    if-eqz v1, :cond_3b

    and-int/lit8 v1, p1, 0x8

    if-eqz v1, :cond_30

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    iget-object v2, p0, Landroidx/appcompat/widget/k1;->i:Ljava/lang/CharSequence;

    invoke-virtual {v1, v2}, Landroidx/appcompat/widget/Toolbar;->setTitle(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    iget-object v2, p0, Landroidx/appcompat/widget/k1;->j:Ljava/lang/CharSequence;

    goto :goto_38

    :cond_30
    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroidx/appcompat/widget/Toolbar;->setTitle(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    :goto_38
    invoke-virtual {v1, v2}, Landroidx/appcompat/widget/Toolbar;->setSubtitle(Ljava/lang/CharSequence;)V

    :cond_3b
    and-int/lit8 v0, v0, 0x10

    if-eqz v0, :cond_52

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->d:Landroid/view/View;

    if-eqz v0, :cond_52

    and-int/lit8 p1, p1, 0x10

    if-eqz p1, :cond_4d

    iget-object p1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    goto :goto_52

    :cond_4d
    iget-object p1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_52
    :goto_52
    return-void
.end method

.method public n()I
    .registers 2

    iget v0, p0, Landroidx/appcompat/widget/k1;->b:I

    return v0
.end method

.method public o(I)V
    .registers 3

    if-eqz p1, :cond_b

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->getContext()Landroid/content/Context;

    move-result-object v0

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

    move-result-object p1

    goto :goto_c

    :cond_b
    const/4 p1, 0x0

    .line 1
    :goto_c
    iput-object p1, p0, Landroidx/appcompat/widget/k1;->f:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->x()V

    return-void
.end method

.method public p()I
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public q(IJ)Ll0/x;
    .registers 6

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-static {v0}, Ll0/u;->b(Landroid/view/View;)Ll0/x;

    move-result-object v0

    if-nez p1, :cond_b

    const/high16 v1, 0x3f800000    # 1.0f

    goto :goto_c

    :cond_b
    const/4 v1, 0x0

    :goto_c
    invoke-virtual {v0, v1}, Ll0/x;->a(F)Ll0/x;

    invoke-virtual {v0, p2, p3}, Ll0/x;->c(J)Ll0/x;

    new-instance p2, Landroidx/appcompat/widget/k1$a;

    invoke-direct {p2, p0, p1}, Landroidx/appcompat/widget/k1$a;-><init>(Landroidx/appcompat/widget/k1;I)V

    .line 1
    iget-object p1, v0, Ll0/x;->a:Ljava/lang/ref/WeakReference;

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

    move-result-object p1

    check-cast p1, Landroid/view/View;

    if-eqz p1, :cond_24

    invoke-virtual {v0, p1, p2}, Ll0/x;->e(Landroid/view/View;Ll0/y;)V

    :cond_24
    return-object v0
.end method

.method public r()V
    .registers 3

    const-string v0, "ToolbarWidgetWrapper"

    const-string v1, "Progress display unsupported"

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

    return-void
.end method

.method public s()V
    .registers 3

    const-string v0, "ToolbarWidgetWrapper"

    const-string v1, "Progress display unsupported"

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

    return-void
.end method

.method public setIcon(I)V
    .registers 3

    if-eqz p1, :cond_b

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->getContext()Landroid/content/Context;

    move-result-object v0

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

    move-result-object p1

    goto :goto_c

    :cond_b
    const/4 p1, 0x0

    .line 1
    :goto_c
    iput-object p1, p0, Landroidx/appcompat/widget/k1;->e:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->x()V

    return-void
.end method

.method public setIcon(Landroid/graphics/drawable/Drawable;)V
    .registers 2

    iput-object p1, p0, Landroidx/appcompat/widget/k1;->e:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0}, Landroidx/appcompat/widget/k1;->x()V

    return-void
.end method

.method public setWindowCallback(Landroid/view/Window$Callback;)V
    .registers 2

    iput-object p1, p0, Landroidx/appcompat/widget/k1;->l:Landroid/view/Window$Callback;

    return-void
.end method

.method public setWindowTitle(Ljava/lang/CharSequence;)V
    .registers 3

    iget-boolean v0, p0, Landroidx/appcompat/widget/k1;->h:Z

    if-nez v0, :cond_7

    invoke-virtual {p0, p1}, Landroidx/appcompat/widget/k1;->u(Ljava/lang/CharSequence;)V

    :cond_7
    return-void
.end method

.method public t(Z)V
    .registers 3

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0, p1}, Landroidx/appcompat/widget/Toolbar;->setCollapsible(Z)V

    return-void
.end method

.method public final u(Ljava/lang/CharSequence;)V
    .registers 3

    iput-object p1, p0, Landroidx/appcompat/widget/k1;->i:Ljava/lang/CharSequence;

    iget v0, p0, Landroidx/appcompat/widget/k1;->b:I

    and-int/lit8 v0, v0, 0x8

    if-eqz v0, :cond_1a

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0, p1}, Landroidx/appcompat/widget/Toolbar;->setTitle(Ljava/lang/CharSequence;)V

    iget-boolean v0, p0, Landroidx/appcompat/widget/k1;->h:Z

    if-eqz v0, :cond_1a

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getRootView()Landroid/view/View;

    move-result-object v0

    invoke-static {v0, p1}, Ll0/u;->q(Landroid/view/View;Ljava/lang/CharSequence;)V

    :cond_1a
    return-void
.end method

.method public final v()V
    .registers 3

    iget v0, p0, Landroidx/appcompat/widget/k1;->b:I

    and-int/lit8 v0, v0, 0x4

    if-eqz v0, :cond_1d

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->k:Ljava/lang/CharSequence;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_16

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    iget v1, p0, Landroidx/appcompat/widget/k1;->o:I

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/Toolbar;->setNavigationContentDescription(I)V

    goto :goto_1d

    :cond_16
    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->k:Ljava/lang/CharSequence;

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/Toolbar;->setNavigationContentDescription(Ljava/lang/CharSequence;)V

    :cond_1d
    :goto_1d
    return-void
.end method

.method public final w()V
    .registers 3

    iget v0, p0, Landroidx/appcompat/widget/k1;->b:I

    and-int/lit8 v0, v0, 0x4

    if-eqz v0, :cond_10

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    iget-object v1, p0, Landroidx/appcompat/widget/k1;->g:Landroid/graphics/drawable/Drawable;

    if-eqz v1, :cond_d

    goto :goto_13

    :cond_d
    iget-object v1, p0, Landroidx/appcompat/widget/k1;->p:Landroid/graphics/drawable/Drawable;

    goto :goto_13

    :cond_10
    iget-object v0, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    const/4 v1, 0x0

    :goto_13
    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/Toolbar;->setNavigationIcon(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public final x()V
    .registers 3

    iget v0, p0, Landroidx/appcompat/widget/k1;->b:I

    and-int/lit8 v1, v0, 0x2

    if-eqz v1, :cond_12

    and-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_f

    iget-object v0, p0, Landroidx/appcompat/widget/k1;->f:Landroid/graphics/drawable/Drawable;

    if-eqz v0, :cond_f

    goto :goto_13

    :cond_f
    iget-object v0, p0, Landroidx/appcompat/widget/k1;->e:Landroid/graphics/drawable/Drawable;

    goto :goto_13

    :cond_12
    const/4 v0, 0x0

    :goto_13
    iget-object v1, p0, Landroidx/appcompat/widget/k1;->a:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v1, v0}, Landroidx/appcompat/widget/Toolbar;->setLogo(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method
