package androidx.appcompat.widget;

import android.content.Context;
import android.content.res.Configuration;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewPropertyAnimator;
import android.view.Window;
import android.view.WindowInsets;
import android.widget.OverScroller;
import ar.tvplayer.tv.R;
import defpackage.AbstractC1840;
import defpackage.AbstractC2746;
import defpackage.AbstractC3869;
import defpackage.C0192;
import defpackage.C0523;
import defpackage.C0537;
import defpackage.C1033;
import defpackage.C1761;
import defpackage.C1864;
import defpackage.C1905;
import defpackage.C1992;
import defpackage.C2031;
import defpackage.C2194;
import defpackage.C2401;
import defpackage.C2813;
import defpackage.C2924;
import defpackage.C3246;
import defpackage.C3844;
import defpackage.C4240;
import defpackage.C4508;
import defpackage.C4727;
import defpackage.C5552;
import defpackage.InterfaceC0221;
import defpackage.InterfaceC0575;
import defpackage.InterfaceC3432;
import defpackage.InterfaceC4044;
import defpackage.InterfaceC4782;
import defpackage.MenuC3271;
import defpackage.RunnableC0933;
import java.util.WeakHashMap;

/* JADX INFO: loaded from: classes3.dex */
public class ActionBarOverlayLayout extends ViewGroup implements InterfaceC3432, InterfaceC0221 {

    /* JADX INFO: renamed from: ˉˆᵗ, reason: contains not printable characters */
    public static final Rect f106;

    /* JADX INFO: renamed from: ˋʿᐧ, reason: contains not printable characters */
    public static final C2813 f107;

    /* JADX INFO: renamed from: ᵡᵶᵬʤ, reason: contains not printable characters */
    public static final int[] f108 = {R.attr.h, android.R.attr.windowContentOverlay};

    /* JADX INFO: renamed from: ʽᵡᵢᵾ, reason: contains not printable characters */
    public C2813 f109;

    /* JADX INFO: renamed from: ʿٴˇ, reason: contains not printable characters */
    public int f110;

    /* JADX INFO: renamed from: ʿᵿʽᵞ, reason: contains not printable characters */
    public final C4240 f111;

    /* JADX INFO: renamed from: ˀᵗ, reason: contains not printable characters */
    public final C1033 f112;

    /* JADX INFO: renamed from: ˀᵭ, reason: contains not printable characters */
    public final Rect f113;

    /* JADX INFO: renamed from: ˁʢᵛ, reason: contains not printable characters */
    public ViewPropertyAnimator f114;

    /* JADX INFO: renamed from: ˁˌᵩ, reason: contains not printable characters */
    public final Rect f115;

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public boolean f116;

    /* JADX INFO: renamed from: ˈⁱᵡ, reason: contains not printable characters */
    public C2813 f117;

    /* JADX INFO: renamed from: ˉᵵᵜ, reason: contains not printable characters */
    public final Rect f118;

    /* JADX INFO: renamed from: ˊˌˊ, reason: contains not printable characters */
    public OverScroller f119;

    /* JADX INFO: renamed from: ˊᵡᵗʨ, reason: contains not printable characters */
    public final Rect f120;

    /* JADX INFO: renamed from: ˊᵾʽʼ, reason: contains not printable characters */
    public final Rect f121;

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public int f122;

    /* JADX INFO: renamed from: ˌᵨʠᵫ, reason: contains not printable characters */
    public boolean f123;

    /* JADX INFO: renamed from: ˏᵩʨ, reason: contains not printable characters */
    public final RunnableC0933 f124;

    /* JADX INFO: renamed from: ˑʢ, reason: contains not printable characters */
    public C2813 f125;

    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public boolean f126;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public ContentFrameLayout f127;

    /* JADX INFO: renamed from: ᵛˀˊ, reason: contains not printable characters */
    public final RunnableC0933 f128;

    /* JADX INFO: renamed from: ᵛˑﹳ, reason: contains not printable characters */
    public boolean f129;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public int f130;

    /* JADX INFO: renamed from: ᵞᵛᵘ, reason: contains not printable characters */
    public InterfaceC0575 f131;

    /* JADX INFO: renamed from: ᵠˏˏ, reason: contains not printable characters */
    public int f132;

    /* JADX INFO: renamed from: ᵡᵶ, reason: contains not printable characters */
    public final C0523 f133;

    /* JADX INFO: renamed from: ᵨˈʼﹶ, reason: contains not printable characters */
    public C2813 f134;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public ActionBarContainer f135;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public InterfaceC4782 f136;

    /* JADX INFO: renamed from: ᵵᵬᵽ, reason: contains not printable characters */
    public boolean f137;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public Drawable f138;

    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    public boolean f139;

    static {
        int i = Build.VERSION.SDK_INT;
        AbstractC3869 c5552 = i >= 36 ? new C5552() : i >= 35 ? new C2401() : i >= 34 ? new C2194() : i >= 31 ? new C3246() : i >= 30 ? new C1864() : i >= 29 ? new C0537() : new C2924();
        c5552.mo2078(C2031.m5447(0, 1, 0, 1));
        f107 = c5552.mo2077();
        f106 = new Rect();
    }

    public ActionBarOverlayLayout(Context context) {
        this(context, null);
    }

    public ActionBarOverlayLayout(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.f130 = 0;
        this.f118 = new Rect();
        this.f115 = new Rect();
        this.f113 = new Rect();
        this.f121 = new Rect();
        this.f120 = new Rect();
        this.f129 = true;
        this.f137 = false;
        C2813 c2813 = C2813.f10814;
        this.f125 = c2813;
        this.f109 = c2813;
        this.f117 = c2813;
        this.f134 = c2813;
        this.f112 = new C1033(0, this);
        this.f124 = new RunnableC0933(this, 0);
        this.f128 = new RunnableC0933(this, 1);
        m21(context);
        this.f111 = new C4240((byte) 0, 4);
        C0523 c0523 = new C0523(context);
        c0523.setWillNotDraw(true);
        this.f133 = c0523;
        addView(c0523);
    }

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public static boolean m19(View view, int i, int i2, int i3, int i4) {
        boolean z;
        C4508 c4508 = (C4508) view.getLayoutParams();
        if (((ViewGroup.MarginLayoutParams) c4508).leftMargin != i) {
            ((ViewGroup.MarginLayoutParams) c4508).leftMargin = i;
            z = true;
        } else {
            z = false;
        }
        if (((ViewGroup.MarginLayoutParams) c4508).topMargin != i2) {
            ((ViewGroup.MarginLayoutParams) c4508).topMargin = i2;
            z = true;
        }
        if (((ViewGroup.MarginLayoutParams) c4508).rightMargin != i3) {
            ((ViewGroup.MarginLayoutParams) c4508).rightMargin = i3;
            z = true;
        }
        if (((ViewGroup.MarginLayoutParams) c4508).bottomMargin == i4) {
            return z;
        }
        ((ViewGroup.MarginLayoutParams) c4508).bottomMargin = i4;
        return true;
    }

    @Override // android.view.ViewGroup
    public final boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return layoutParams instanceof C4508;
    }

    @Override // android.view.View
    public final void draw(Canvas canvas) {
        int translationY;
        super.draw(canvas);
        if (this.f138 != null) {
            if (this.f135.getVisibility() == 0) {
                translationY = (int) (this.f135.getTranslationY() + this.f135.getBottom() + 0.5f);
            } else {
                translationY = 0;
            }
            this.f138.setBounds(0, translationY, getWidth(), this.f138.getIntrinsicHeight() + translationY);
            this.f138.draw(canvas);
        }
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateDefaultLayoutParams() {
        return new C4508(-1, -1);
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
        return new C4508(getContext(), attributeSet);
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return new C4508(layoutParams);
    }

    public int getActionBarHideOffset() {
        ActionBarContainer actionBarContainer = this.f135;
        if (actionBarContainer != null) {
            return -((int) actionBarContainer.getTranslationY());
        }
        return 0;
    }

    @Override // android.view.ViewGroup
    public int getNestedScrollAxes() {
        C4240 c4240 = this.f111;
        return c4240.f16171 | c4240.f16172;
    }

    public CharSequence getTitle() {
        m25();
        return ((C3844) this.f136).f14670.getTitle();
    }

    @Override // android.view.View
    public final WindowInsets onApplyWindowInsets(WindowInsets windowInsets) {
        boolean zM19;
        m25();
        int windowSystemUiVisibility = getWindowSystemUiVisibility();
        boolean z = true;
        boolean z2 = (windowSystemUiVisibility & 256) != 0;
        boolean z3 = (windowSystemUiVisibility & 1536) != 0;
        WeakHashMap weakHashMap = AbstractC2746.f10556;
        C0523 c0523 = this.f133;
        C2813 c2813 = f107;
        Rect rect = this.f120;
        AbstractC1840.m5021(c0523, c2813, rect);
        boolean zEquals = rect.equals(f106);
        this.f129 = !zEquals;
        boolean z4 = zEquals || (z2 && z3);
        this.f137 = z4;
        InterfaceC0575 interfaceC0575 = this.f131;
        if (interfaceC0575 != null) {
            ((C1905) interfaceC0575).f7557 = (z2 || z4) ? false : true;
        }
        C2813 c2813M6792 = C2813.m6792(windowInsets, this);
        C4727 c4727 = c2813M6792.f10815;
        C2031 c2031Mo5839 = c4727.mo5839();
        int i = c2031Mo5839.f8073;
        int i2 = c2031Mo5839.f8073;
        int i3 = c2031Mo5839.f8071;
        int i4 = c2031Mo5839.f8072;
        this.f121.set(i, i3, i4, c2031Mo5839.f8074);
        if (this.f137) {
            C2031 c2031Mo5832 = c4727.mo5832(2);
            int i5 = c2031Mo5832.f8073;
            int i6 = c2031Mo5832.f8072;
            this.f135.setPadding(i2 - i5, i3, i4 - i6, 0);
            zM19 = m19(this.f135, c2031Mo5832.f8073, 0, i6, 0);
        } else {
            this.f135.setPadding(0, 0, 0, 0);
            zM19 = m19(this.f135, i2, i3, i4, 0);
        }
        Rect rect2 = this.f118;
        AbstractC1840.m5021(this, c2813M6792, rect2);
        C2813 c2813Mo1062 = c4727.mo1062(rect2.left, rect2.top, rect2.right, rect2.bottom);
        this.f125 = c2813Mo1062;
        if (!this.f109.equals(c2813Mo1062)) {
            this.f109 = this.f125;
            zM19 = true;
        }
        Rect rect3 = this.f115;
        if (rect3.equals(rect2)) {
            z = zM19;
        } else {
            rect3.set(rect2);
        }
        if (z) {
            requestLayout();
        }
        return c4727.mo2296().f10815.mo1952().f10815.mo1951().m6794();
    }

    @Override // android.view.View
    public final void onConfigurationChanged(Configuration configuration) {
        super.onConfigurationChanged(configuration);
        m21(getContext());
        WeakHashMap weakHashMap = AbstractC2746.f10556;
        requestApplyInsets();
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        m27();
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onLayout(boolean z, int i, int i2, int i3, int i4) {
        int childCount = getChildCount();
        int paddingLeft = getPaddingLeft();
        int paddingTop = getPaddingTop();
        for (int i5 = 0; i5 < childCount; i5++) {
            View childAt = getChildAt(i5);
            if (childAt.getVisibility() != 8) {
                C4508 c4508 = (C4508) childAt.getLayoutParams();
                int measuredWidth = childAt.getMeasuredWidth();
                int measuredHeight = childAt.getMeasuredHeight();
                int i6 = ((ViewGroup.MarginLayoutParams) c4508).leftMargin + paddingLeft;
                int i7 = ((ViewGroup.MarginLayoutParams) c4508).topMargin + paddingTop;
                childAt.layout(i6, i7, measuredWidth + i6, measuredHeight + i7);
            }
        }
    }

    @Override // android.view.View
    public final void onMeasure(int i, int i2) {
        int measuredHeight;
        m25();
        measureChildWithMargins(this.f135, i, 0, i2, 0);
        C4508 c4508 = (C4508) this.f135.getLayoutParams();
        int iMax = Math.max(0, this.f135.getMeasuredWidth() + ((ViewGroup.MarginLayoutParams) c4508).leftMargin + ((ViewGroup.MarginLayoutParams) c4508).rightMargin);
        int iMax2 = Math.max(0, this.f135.getMeasuredHeight() + ((ViewGroup.MarginLayoutParams) c4508).topMargin + ((ViewGroup.MarginLayoutParams) c4508).bottomMargin);
        int iCombineMeasuredStates = View.combineMeasuredStates(0, this.f135.getMeasuredState());
        WeakHashMap weakHashMap = AbstractC2746.f10556;
        boolean z = (getWindowSystemUiVisibility() & 256) != 0;
        if (z) {
            measuredHeight = this.f122;
            if (this.f137) {
                measuredHeight += this.f121.top;
            }
            if (this.f123 && this.f135.getTabContainer() != null) {
                measuredHeight += this.f122;
            }
        } else {
            measuredHeight = this.f135.getVisibility() != 8 ? this.f135.getMeasuredHeight() : 0;
        }
        Rect rect = this.f118;
        Rect rect2 = this.f113;
        rect2.set(rect);
        C2813 c2813 = this.f125;
        this.f117 = c2813;
        if (this.f116 || z || !this.f129) {
            C2031 c2031M5447 = this.f137 ? C2031.m5447(c2813.f10815.mo5839().f8073, Math.max(this.f117.f10815.mo5839().f8071, measuredHeight), this.f117.f10815.mo5839().f8072, Math.max(this.f117.f10815.mo5839().f8074, 0)) : C2031.m5447(c2813.f10815.mo5839().f8073, this.f117.f10815.mo5839().f8071 + measuredHeight, this.f117.f10815.mo5839().f8072, this.f117.f10815.mo5839().f8074);
            C2813 c28132 = this.f117;
            int i3 = Build.VERSION.SDK_INT;
            AbstractC3869 c5552 = i3 >= 36 ? new C5552(c28132) : i3 >= 35 ? new C2401(c28132) : i3 >= 34 ? new C2194(c28132) : i3 >= 31 ? new C3246(c28132) : i3 >= 30 ? new C1864(c28132) : i3 >= 29 ? new C0537(c28132) : new C2924(c28132);
            c5552.mo2078(c2031M5447);
            this.f117 = c5552.mo2077();
        } else {
            boolean z2 = this.f137;
            int i4 = rect2.top;
            if (z2) {
                rect2.top = Math.max(i4, measuredHeight);
                rect2.bottom = Math.max(rect2.bottom, 0);
            } else {
                rect2.top = i4 + measuredHeight;
                rect2.bottom = rect2.bottom;
            }
            this.f117 = this.f117.f10815.mo1062(0, measuredHeight, 0, 0);
        }
        m19(this.f127, rect2.left, rect2.top, rect2.right, rect2.bottom);
        if (!this.f134.equals(this.f117)) {
            C2813 c28133 = this.f117;
            this.f134 = c28133;
            AbstractC2746.m6643(this.f127, c28133);
        }
        measureChildWithMargins(this.f127, i, 0, i2, 0);
        C4508 c45082 = (C4508) this.f127.getLayoutParams();
        int iMax3 = Math.max(iMax, this.f127.getMeasuredWidth() + ((ViewGroup.MarginLayoutParams) c45082).leftMargin + ((ViewGroup.MarginLayoutParams) c45082).rightMargin);
        int iMax4 = Math.max(iMax2, this.f127.getMeasuredHeight() + ((ViewGroup.MarginLayoutParams) c45082).topMargin + ((ViewGroup.MarginLayoutParams) c45082).bottomMargin);
        int iCombineMeasuredStates2 = View.combineMeasuredStates(iCombineMeasuredStates, this.f127.getMeasuredState());
        setMeasuredDimension(View.resolveSizeAndState(Math.max(getPaddingRight() + getPaddingLeft() + iMax3, getSuggestedMinimumWidth()), i, iCombineMeasuredStates2), View.resolveSizeAndState(Math.max(getPaddingBottom() + getPaddingTop() + iMax4, getSuggestedMinimumHeight()), i2, iCombineMeasuredStates2 << 16));
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final boolean onNestedFling(View view, float f, float f2, boolean z) {
        if (!this.f139 || !z) {
            return false;
        }
        this.f119.fling(0, 0, 0, (int) f2, 0, 0, Integer.MIN_VALUE, Integer.MAX_VALUE);
        if (this.f119.getFinalY() > this.f135.getHeight()) {
            m27();
            this.f128.run();
        } else {
            m27();
            this.f124.run();
        }
        this.f126 = true;
        return true;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final boolean onNestedPreFling(View view, float f, float f2) {
        return false;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final void onNestedPreScroll(View view, int i, int i2, int[] iArr) {
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final void onNestedScroll(View view, int i, int i2, int i3, int i4) {
        int i5 = this.f110 + i2;
        this.f110 = i5;
        setActionBarHideOffset(i5);
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final void onNestedScrollAccepted(View view, View view2, int i) {
        C1905 c1905;
        C0192 c0192;
        this.f111.f16172 = i;
        this.f110 = getActionBarHideOffset();
        m27();
        InterfaceC0575 interfaceC0575 = this.f131;
        if (interfaceC0575 == null || (c0192 = (c1905 = (C1905) interfaceC0575).f7544) == null) {
            return;
        }
        c0192.m1350();
        c1905.f7544 = null;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final boolean onStartNestedScroll(View view, View view2, int i) {
        if ((i & 2) == 0 || this.f135.getVisibility() != 0) {
            return false;
        }
        return this.f139;
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final void onStopNestedScroll(View view) {
        if (!this.f139 || this.f126) {
            return;
        }
        if (this.f110 <= this.f135.getHeight()) {
            m27();
            postDelayed(this.f124, 600L);
        } else {
            m27();
            postDelayed(this.f128, 600L);
        }
    }

    @Override // android.view.View
    public final void onWindowSystemUiVisibilityChanged(int i) {
        super.onWindowSystemUiVisibilityChanged(i);
        m25();
        int i2 = this.f132 ^ i;
        this.f132 = i;
        boolean z = (i & 4) == 0;
        boolean z2 = (i & 256) != 0;
        InterfaceC0575 interfaceC0575 = this.f131;
        if (interfaceC0575 != null) {
            C1905 c1905 = (C1905) interfaceC0575;
            c1905.f7557 = (z2 || this.f137) ? false : true;
            if (z || !z2) {
                if (c1905.f7555) {
                    c1905.f7555 = false;
                    c1905.m5146(true);
                }
            } else if (!c1905.f7555) {
                c1905.f7555 = true;
                c1905.m5146(true);
            }
        }
        if ((i2 & 256) == 0 || this.f131 == null) {
            return;
        }
        WeakHashMap weakHashMap = AbstractC2746.f10556;
        requestApplyInsets();
    }

    @Override // android.view.View
    public final void onWindowVisibilityChanged(int i) {
        super.onWindowVisibilityChanged(i);
        this.f130 = i;
        InterfaceC0575 interfaceC0575 = this.f131;
        if (interfaceC0575 != null) {
            ((C1905) interfaceC0575).f7548 = i;
        }
    }

    public void setActionBarHideOffset(int i) {
        m27();
        this.f135.setTranslationY(-Math.max(0, Math.min(i, this.f135.getHeight())));
    }

    public void setActionBarVisibilityCallback(InterfaceC0575 interfaceC0575) {
        this.f131 = interfaceC0575;
        if (getWindowToken() != null) {
            ((C1905) this.f131).f7548 = this.f130;
            int i = this.f132;
            if (i != 0) {
                onWindowSystemUiVisibilityChanged(i);
                WeakHashMap weakHashMap = AbstractC2746.f10556;
                requestApplyInsets();
            }
        }
    }

    public void setHasNonEmbeddedTabs(boolean z) {
        this.f123 = z;
    }

    public void setHideOnContentScrollEnabled(boolean z) {
        if (z != this.f139) {
            this.f139 = z;
            if (z) {
                return;
            }
            m27();
            setActionBarHideOffset(0);
        }
    }

    public void setIcon(int i) {
        m25();
        C3844 c3844 = (C3844) this.f136;
        c3844.f14673 = i != 0 ? ᵥˇᵛˎ.ᵶˇᵱ(c3844.f14670.getContext(), i) : null;
        c3844.m8551();
    }

    public void setIcon(Drawable drawable) {
        m25();
        C3844 c3844 = (C3844) this.f136;
        c3844.f14673 = drawable;
        c3844.m8551();
    }

    public void setLogo(int i) {
        m25();
        C3844 c3844 = (C3844) this.f136;
        c3844.f14666 = i != 0 ? ᵥˇᵛˎ.ᵶˇᵱ(c3844.f14670.getContext(), i) : null;
        c3844.m8551();
    }

    public void setOverlayMode(boolean z) {
        this.f116 = z;
    }

    public void setShowingForActionMode(boolean z) {
    }

    public void setUiOptions(int i) {
    }

    public void setWindowCallback(Window.Callback callback) {
        m25();
        ((C3844) this.f136).f14672 = callback;
    }

    public void setWindowTitle(CharSequence charSequence) {
        m25();
        C3844 c3844 = (C3844) this.f136;
        if (c3844.f14671) {
            return;
        }
        Toolbar toolbar = c3844.f14670;
        c3844.f14662 = charSequence;
        if ((c3844.f14661 & 8) != 0) {
            toolbar.setTitle(charSequence);
            if (c3844.f14671) {
                AbstractC2746.m6645(toolbar.getRootView(), charSequence);
            }
        }
    }

    @Override // android.view.ViewGroup
    public final boolean shouldDelayChildPressedState() {
        return false;
    }

    @Override // defpackage.InterfaceC0221
    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final void mo20(ViewGroup viewGroup, int i, int i2, int i3, int i4, int i5, int[] iArr) {
        mo26(viewGroup, i, i2, i3, i4, i5);
    }

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final void m21(Context context) {
        TypedArray typedArrayObtainStyledAttributes = getContext().getTheme().obtainStyledAttributes(f108);
        this.f122 = typedArrayObtainStyledAttributes.getDimensionPixelSize(0, 0);
        Drawable drawable = typedArrayObtainStyledAttributes.getDrawable(1);
        this.f138 = drawable;
        setWillNotDraw(drawable == null);
        typedArrayObtainStyledAttributes.recycle();
        this.f119 = new OverScroller(context);
    }

    @Override // defpackage.InterfaceC3432
    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final void mo22(int i, int i2, int i3, int[] iArr) {
    }

    @Override // defpackage.InterfaceC3432
    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final void mo23(View view, View view2, int i, int i2) {
        if (i2 == 0) {
            onNestedScrollAccepted(view, view2, i);
        }
    }

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final void m24(Menu menu, InterfaceC4044 interfaceC4044) {
        m25();
        C3844 c3844 = (C3844) this.f136;
        Toolbar toolbar = c3844.f14670;
        if (c3844.f14665 == null) {
            c3844.f14665 = new C1992(toolbar.getContext());
        }
        C1992 c1992 = c3844.f14665;
        c1992.f7897 = interfaceC4044;
        MenuC3271 menuC3271 = (MenuC3271) menu;
        if (menuC3271 == null && toolbar.f230 == null) {
            return;
        }
        toolbar.m61();
        MenuC3271 menuC32712 = toolbar.f230.f145;
        if (menuC32712 == menuC3271) {
            return;
        }
        if (menuC32712 != null) {
            menuC32712.m7495(toolbar.f241);
            menuC32712.m7495(toolbar.f234);
        }
        if (toolbar.f234 == null) {
            toolbar.f234 = new C1761(toolbar);
        }
        c1992.f7885 = true;
        Context context = toolbar.f236;
        if (menuC3271 != null) {
            menuC3271.m7493(c1992, context);
            menuC3271.m7493(toolbar.f234, toolbar.f236);
        } else {
            c1992.mo4717(context, null);
            toolbar.f234.mo4717(toolbar.f236, null);
            c1992.mo4719();
            toolbar.f234.mo4719();
        }
        toolbar.f230.setPopupTheme(toolbar.f214);
        toolbar.f230.setPresenter(c1992);
        toolbar.f241 = c1992;
        toolbar.m50();
    }

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final void m25() {
        InterfaceC4782 wrapper;
        if (this.f127 == null) {
            this.f127 = (ContentFrameLayout) findViewById(R.id.h);
            this.f135 = (ActionBarContainer) findViewById(R.id.h);
            KeyEvent.Callback callbackFindViewById = findViewById(R.id.h);
            if (callbackFindViewById instanceof InterfaceC4782) {
                wrapper = (InterfaceC4782) callbackFindViewById;
            } else {
                if (!(callbackFindViewById instanceof Toolbar)) {
                    ᵕᵩʽᵲ.ᵪᵹᵥᵻ("Can't make a decor toolbar out of ".concat(callbackFindViewById.getClass().getSimpleName()));
                    return;
                }
                wrapper = ((Toolbar) callbackFindViewById).getWrapper();
            }
            this.f136 = wrapper;
        }
    }

    @Override // defpackage.InterfaceC3432
    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final void mo26(ViewGroup viewGroup, int i, int i2, int i3, int i4, int i5) {
        if (i5 == 0) {
            onNestedScroll(viewGroup, i, i2, i3, i4);
        }
    }

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final void m27() {
        removeCallbacks(this.f124);
        removeCallbacks(this.f128);
        ViewPropertyAnimator viewPropertyAnimator = this.f114;
        if (viewPropertyAnimator != null) {
            viewPropertyAnimator.cancel();
        }
    }

    @Override // defpackage.InterfaceC3432
    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final boolean mo28(View view, View view2, int i, int i2) {
        return i2 == 0 && onStartNestedScroll(view, view2, i);
    }

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final void m29(int i) {
        m25();
        if (i == 2) {
            this.f136.getClass();
        } else if (i == 5) {
            this.f136.getClass();
        } else {
            if (i != 109) {
                return;
            }
            setOverlayMode(true);
        }
    }

    @Override // defpackage.InterfaceC3432
    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final void mo30(View view, int i) {
        if (i == 0) {
            onStopNestedScroll(view);
        }
    }
}
