package androidx.recyclerview.widget;

import android.R;
import android.animation.LayoutTransition;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.StateListDrawable;
import android.os.Build;
import android.os.Parcelable;
import android.os.SystemClock;
import android.os.Trace;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.view.Display;
import android.view.FocusFinder;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityManager;
import android.widget.EdgeEffect;
import android.widget.OverScroller;
import android.widget.Scroller;
import defpackage.AbstractC0090;
import defpackage.AbstractC0421;
import defpackage.AbstractC0483;
import defpackage.AbstractC0650;
import defpackage.AbstractC0892;
import defpackage.AbstractC1554;
import defpackage.AbstractC1958;
import defpackage.AbstractC2126;
import defpackage.AbstractC2416;
import defpackage.AbstractC2746;
import defpackage.AbstractC3263;
import defpackage.AbstractC3481;
import defpackage.AbstractC3653;
import defpackage.AbstractC3732;
import defpackage.AbstractC4793;
import defpackage.AbstractC5035;
import defpackage.AbstractC5290;
import defpackage.AbstractC5320;
import defpackage.C0303;
import defpackage.C0551;
import defpackage.C0807;
import defpackage.C0856;
import defpackage.C1407;
import defpackage.C1499;
import defpackage.C1531;
import defpackage.C1553;
import defpackage.C1571;
import defpackage.C1612;
import defpackage.C1685;
import defpackage.C1705;
import defpackage.C2084;
import defpackage.C2112;
import defpackage.C2196;
import defpackage.C2522;
import defpackage.C2772;
import defpackage.C3129;
import defpackage.C3162;
import defpackage.C4045;
import defpackage.C4053;
import defpackage.C4132;
import defpackage.C4240;
import defpackage.C4468;
import defpackage.C4747;
import defpackage.C5085;
import defpackage.C5236;
import defpackage.C5319;
import defpackage.InterfaceC2496;
import defpackage.InterfaceC4762;
import defpackage.InterpolatorC0724;
import defpackage.RunnableC0329;
import defpackage.RunnableC3139;
import defpackage.RunnableC4854;
import j$.util.Objects;
import java.lang.ref.WeakReference;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.WeakHashMap;

/* JADX INFO: loaded from: classes3.dex */
public class RecyclerView extends ViewGroup {

    /* JADX INFO: renamed from: ˆˌˁ, reason: contains not printable characters */
    public static boolean f843;

    /* JADX INFO: renamed from: ˋʿᵥᵔ, reason: contains not printable characters */
    public static final InterpolatorC0724 f845;

    /* JADX INFO: renamed from: ˑˀˉᵲ, reason: contains not printable characters */
    public static final C2084 f846;

    /* JADX INFO: renamed from: ᵕˁːᵚ, reason: contains not printable characters */
    public static boolean f848;

    /* JADX INFO: renamed from: ᵠᐧ, reason: contains not printable characters */
    public static final Class[] f849;
    final Runnable mUpdateChildViewsRunnable;

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

    /* JADX INFO: renamed from: ʿٴˇ, reason: contains not printable characters */
    public final RectF f853;

    /* JADX INFO: renamed from: ʿᵯᴵ, reason: contains not printable characters */
    public RunnableC0329 f854;

    /* JADX INFO: renamed from: ʿᵿʽᵞ, reason: contains not printable characters */
    public boolean f855;

    /* JADX INFO: renamed from: ˀᵗ, reason: contains not printable characters */
    public boolean f856;

    /* JADX INFO: renamed from: ˀᵛᵟ, reason: contains not printable characters */
    public boolean f857;

    /* JADX INFO: renamed from: ˀᵝᵙᵛ, reason: contains not printable characters */
    public final C5085 f858;

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

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

    /* JADX INFO: renamed from: ˁˌᵩ, reason: contains not printable characters */
    public InterfaceC2496 f861;

    /* JADX INFO: renamed from: ˁᵺˈ, reason: contains not printable characters */
    public EdgeEffect f862;

    /* JADX INFO: renamed from: ˆʤᵳ, reason: contains not printable characters */
    public int f863;

    /* JADX INFO: renamed from: ˆˀᵯ, reason: contains not printable characters */
    public final float f864;

    /* JADX INFO: renamed from: ˆᵱʣ, reason: contains not printable characters */
    public final int[] f865;

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public final ʽᵺᴵ f866;

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

    /* JADX INFO: renamed from: ˉˆᵗ, reason: contains not printable characters */
    public EdgeEffect f868;

    /* JADX INFO: renamed from: ˉᵵᵜ, reason: contains not printable characters */
    public AbstractC0421 f869;

    /* JADX INFO: renamed from: ˊʧᵖ, reason: contains not printable characters */
    public C1407 f870;

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

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

    /* JADX INFO: renamed from: ˊᵶᵕᵛ, reason: contains not printable characters */
    public final int[] f873;

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

    /* JADX INFO: renamed from: ˋʿᐧ, reason: contains not printable characters */
    public AbstractC0483 f875;

    /* JADX INFO: renamed from: ˋᵤᵦ, reason: contains not printable characters */
    public final int[] f876;

    /* JADX INFO: renamed from: ˋᵯᵩ, reason: contains not printable characters */
    public EdgeEffect f877;

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final float f878;

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

    /* JADX INFO: renamed from: ˎʞ, reason: contains not printable characters */
    public int f880;

    /* JADX INFO: renamed from: ˏʜᵪ, reason: contains not printable characters */
    public int f881;

    /* JADX INFO: renamed from: ˏʽˊᵰ, reason: contains not printable characters */
    public final int f882;

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

    /* JADX INFO: renamed from: ːᵝٴᵶ, reason: contains not printable characters */
    public AbstractC0090 f884;

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

    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public final Rect f886;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final C2772 f887;

    /* JADX INFO: renamed from: ᵔﹳ, reason: contains not printable characters */
    public final boolean f888;

    /* JADX INFO: renamed from: ᵕᵜʽᵰ, reason: contains not printable characters */
    public final C0807 f889;

    /* JADX INFO: renamed from: ᵗᵭ, reason: contains not printable characters */
    public int f890;

    /* JADX INFO: renamed from: ᵘᵝ, reason: contains not printable characters */
    public int f891;

    /* JADX INFO: renamed from: ᵘᵫᵡ, reason: contains not printable characters */
    public C4045 f892;

    /* JADX INFO: renamed from: ᵚᵹᵔᵜ, reason: contains not printable characters */
    public boolean f893;

    /* JADX INFO: renamed from: ᵛˀˊ, reason: contains not printable characters */
    public boolean f894;

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

    /* JADX INFO: renamed from: ᵜᵤ, reason: contains not printable characters */
    public EdgeEffect f896;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final C0015 f897;

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

    /* JADX INFO: renamed from: ᵟᵴᵥ, reason: contains not printable characters */
    public final C1499 f899;

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

    /* JADX INFO: renamed from: ᵠᵚˀᵫ, reason: contains not printable characters */
    public boolean f901;

    /* JADX INFO: renamed from: ᵠᵲˁ, reason: contains not printable characters */
    public ArrayList f902;

    /* JADX INFO: renamed from: ᵡᵶ, reason: contains not printable characters */
    public int f903;

    /* JADX INFO: renamed from: ᵡᵶᵬʤ, reason: contains not printable characters */
    public int f904;

    /* JADX INFO: renamed from: ᵣʚʿ, reason: contains not printable characters */
    public boolean f905;

    /* JADX INFO: renamed from: ᵥﹶ, reason: contains not printable characters */
    public final RunnableC3139 f906;

    /* JADX INFO: renamed from: ᵧᵠᵾ, reason: contains not printable characters */
    public final int[] f907;

    /* JADX INFO: renamed from: ᵧᵢᵴᵸ, reason: contains not printable characters */
    public final float f908;

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

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

    /* JADX INFO: renamed from: ᵪʚᵯʝ, reason: contains not printable characters */
    public int f911;

    /* JADX INFO: renamed from: ᵪᵳˀ, reason: contains not printable characters */
    public final C3129 f912;

    /* JADX INFO: renamed from: ᵫˈᵹ, reason: contains not printable characters */
    public int f913;

    /* JADX INFO: renamed from: ᵬᵦˋ, reason: contains not printable characters */
    public int f914;

    /* JADX INFO: renamed from: ᵭᵬ, reason: contains not printable characters */
    public final C1553 f915;

    /* JADX INFO: renamed from: ᵮᵟᵡ, reason: contains not printable characters */
    public AbstractC1958 f916;

    /* JADX INFO: renamed from: ᵯˇ, reason: contains not printable characters */
    public final int f917;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final C4132 f918;

    /* JADX INFO: renamed from: ᵰʜ, reason: contains not printable characters */
    public final ArrayList f919;

    /* JADX INFO: renamed from: ᵱʢᵢ, reason: contains not printable characters */
    public boolean f920;

    /* JADX INFO: renamed from: ᵱᵭ, reason: contains not printable characters */
    public final RunnableC4854 f921;

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

    /* JADX INFO: renamed from: ᵵᵸᵕᵸ, reason: contains not printable characters */
    public VelocityTracker f923;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public final C2196 f924;

    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    public final Rect f925;

    /* JADX INFO: renamed from: ᵹʾᵢᵯ, reason: contains not printable characters */
    public int f926;

    /* JADX INFO: renamed from: ᵽˀᵥ, reason: contains not printable characters */
    public AbstractC3732 f927;

    /* JADX INFO: renamed from: ᵾᵻﹳᵮ, reason: contains not printable characters */
    public static final int[] f851 = {R.attr.nestedScrollingEnabled};

    /* JADX INFO: renamed from: ᵴˀᵰʒ, reason: contains not printable characters */
    public static final float f850 = (float) (Math.log(0.78d) / Math.log(0.9d));

    /* JADX INFO: renamed from: ˈˊˑˑ, reason: contains not printable characters */
    public static final boolean f844 = true;

    /* JADX INFO: renamed from: ᵕʢ, reason: contains not printable characters */
    public static final boolean f847 = true;

    static {
        Class cls = Integer.TYPE;
        f849 = new Class[]{Context.class, AttributeSet.class, cls, cls};
        f845 = new InterpolatorC0724();
        f846 = new C2084();
    }

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

    public RecyclerView(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, ar.tvplayer.tv.R.attr.h);
    }

    /* JADX WARN: Multi-variable type inference failed */
    public RecyclerView(Context context, AttributeSet attributeSet, int i) throws NoSuchMethodException {
        float fM7492;
        TypedArray typedArray;
        char c;
        char c2;
        char c3;
        AttributeSet attributeSet2;
        int i2;
        int i3;
        Object[] objArr;
        Constructor constructor;
        super(context, attributeSet, i);
        this.f897 = new C0015(this);
        this.f887 = new C2772(this);
        this.f866 = new ʽᵺᴵ(3);
        this.mUpdateChildViewsRunnable = new RunnableC3139(this, 0);
        this.f925 = new Rect();
        this.f886 = new Rect();
        this.f853 = new RectF();
        this.f859 = new ArrayList();
        this.f874 = new ArrayList();
        this.f872 = new ArrayList();
        this.f867 = 0;
        this.f894 = false;
        this.f855 = false;
        this.f903 = 0;
        this.f904 = 0;
        this.f875 = f846;
        this.f884 = new C1571(0);
        this.f890 = 0;
        this.f913 = -1;
        this.f908 = Float.MIN_VALUE;
        this.f864 = Float.MIN_VALUE;
        int i4 = 1;
        this.f893 = true;
        this.f921 = new RunnableC4854(this);
        this.f889 = f847 ? new C0807() : null;
        C1499 c1499 = new C1499();
        c1499.f6054 = -1;
        c1499.f6044 = 0;
        c1499.f6047 = 0;
        c1499.f6057 = 1;
        c1499.f6050 = 0;
        c1499.f6059 = false;
        c1499.f6055 = false;
        c1499.f6045 = false;
        c1499.f6058 = false;
        c1499.f6053 = false;
        c1499.f6056 = false;
        this.f899 = c1499;
        this.f901 = false;
        this.f857 = false;
        C5085 c5085 = new C5085(this);
        this.f858 = c5085;
        this.f905 = false;
        this.f907 = new int[2];
        this.f873 = new int[2];
        this.f865 = new int[2];
        this.f876 = new int[2];
        this.f919 = new ArrayList();
        this.f906 = new RunnableC3139(this, i4);
        this.f880 = 0;
        this.f911 = 0;
        this.f912 = new C3129(this);
        this.f915 = new C1553(getContext(), new C5085(this));
        setScrollContainer(true);
        setFocusableInTouchMode(true);
        ViewConfiguration viewConfiguration = ViewConfiguration.get(context);
        this.f926 = viewConfiguration.getScaledTouchSlop();
        int i5 = Build.VERSION.SDK_INT;
        if (i5 >= 26) {
            Method method = AbstractC3263.f12482;
            fM7492 = AbstractC1554.m4389(viewConfiguration);
        } else {
            fM7492 = AbstractC3263.m7492(viewConfiguration, context);
        }
        this.f908 = fM7492;
        this.f864 = i5 >= 26 ? AbstractC1554.m4399(viewConfiguration) : AbstractC3263.m7492(viewConfiguration, context);
        this.f882 = viewConfiguration.getScaledMinimumFlingVelocity();
        this.f917 = viewConfiguration.getScaledMaximumFlingVelocity();
        this.f878 = context.getResources().getDisplayMetrics().density * 160.0f * 386.0878f * 0.84f;
        setWillNotDraw(getOverScrollMode() == 2);
        this.f884.f1308 = c5085;
        this.f918 = new C4132(new C3129(this));
        this.f924 = new C2196(new ᵢʒʡᵟ(18, this));
        WeakHashMap weakHashMap = AbstractC2746.f10556;
        if ((i5 >= 26 ? AbstractC5035.m10369(this) : 0) == 0 && i5 >= 26) {
            AbstractC5035.m10368(this, 8);
        }
        if (getImportantForAccessibility() == 0) {
            setImportantForAccessibility(1);
        }
        this.f883 = (AccessibilityManager) getContext().getSystemService("accessibility");
        setAccessibilityDelegateCompat(new C1407(this));
        int[] iArr = AbstractC2126.f8441;
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, iArr, i, 0);
        AbstractC2746.m6646(this, context, iArr, attributeSet, typedArrayObtainStyledAttributes, i);
        String string = typedArrayObtainStyledAttributes.getString(8);
        if (typedArrayObtainStyledAttributes.getInt(2, -1) == -1) {
            setDescendantFocusability(262144);
        }
        this.f879 = typedArrayObtainStyledAttributes.getBoolean(1, true);
        if (typedArrayObtainStyledAttributes.getBoolean(3, false)) {
            StateListDrawable stateListDrawable = (StateListDrawable) typedArrayObtainStyledAttributes.getDrawable(6);
            Drawable drawable = typedArrayObtainStyledAttributes.getDrawable(7);
            StateListDrawable stateListDrawable2 = (StateListDrawable) typedArrayObtainStyledAttributes.getDrawable(4);
            Drawable drawable2 = typedArrayObtainStyledAttributes.getDrawable(5);
            if (stateListDrawable == null || drawable == null || stateListDrawable2 == null || drawable2 == null) {
                ᵕᵩʽᵲ.ᵮᵣᵗˈ("Trying to set fast scroller without both required drawables.".concat(m600()));
                throw null;
            }
            Resources resources = getContext().getResources();
            c = 3;
            c3 = 2;
            i2 = i;
            typedArray = typedArrayObtainStyledAttributes;
            c2 = 1;
            i3 = 4;
            attributeSet2 = attributeSet;
            new C0856(this, stateListDrawable, drawable, stateListDrawable2, drawable2, resources.getDimensionPixelSize(ar.tvplayer.tv.R.dimen.h), resources.getDimensionPixelSize(ar.tvplayer.tv.R.dimen.h), resources.getDimensionPixelOffset(ar.tvplayer.tv.R.dimen.h));
        } else {
            typedArray = typedArrayObtainStyledAttributes;
            c = 3;
            c2 = 1;
            c3 = 2;
            attributeSet2 = attributeSet;
            i2 = i;
            i3 = 4;
        }
        typedArray.recycle();
        this.f888 = context.getPackageManager().hasSystemFeature("android.hardware.rotaryencoder.lowres");
        if (string != null) {
            String strTrim = string.trim();
            if (!strTrim.isEmpty()) {
                if (strTrim.charAt(0) == '.') {
                    strTrim = context.getPackageName() + strTrim;
                } else if (!strTrim.contains(".")) {
                    strTrim = RecyclerView.class.getPackage().getName() + '.' + strTrim;
                }
                String str = strTrim;
                try {
                    Class<? extends U> clsAsSubclass = Class.forName(str, false, isInEditMode() ? getClass().getClassLoader() : context.getClassLoader()).asSubclass(AbstractC0421.class);
                    try {
                        Constructor constructor2 = clsAsSubclass.getConstructor(f849);
                        objArr = new Object[i3];
                        objArr[0] = context;
                        objArr[c2] = attributeSet2;
                        objArr[c3] = Integer.valueOf(i2);
                        objArr[c] = 0;
                        constructor = constructor2;
                    } catch (NoSuchMethodException e) {
                        try {
                            objArr = null;
                            constructor = clsAsSubclass.getConstructor(null);
                        } catch (NoSuchMethodException e2) {
                            e2.initCause(e);
                            throw new IllegalStateException(attributeSet2.getPositionDescription() + ": Error creating LayoutManager " + str, e2);
                        }
                    }
                    constructor.setAccessible(c2);
                    setLayoutManager((AbstractC0421) constructor.newInstance(objArr));
                } catch (ClassCastException e3) {
                    ᵷᵝˎ.ᵱᵽʡᵚ(attributeSet2.getPositionDescription(), ": Class is not a LayoutManager ", str, e3);
                    throw null;
                } catch (ClassNotFoundException e4) {
                    ᵷᵝˎ.ᵱᵽʡᵚ(attributeSet2.getPositionDescription(), ": Unable to find LayoutManager ", str, e4);
                    throw null;
                } catch (IllegalAccessException e5) {
                    ᵷᵝˎ.ᵱᵽʡᵚ(attributeSet2.getPositionDescription(), ": Cannot access non-public constructor ", str, e5);
                    throw null;
                } catch (InstantiationException e6) {
                    ᵷᵝˎ.ᵱᵽʡᵚ(attributeSet2.getPositionDescription(), ": Could not instantiate the LayoutManager: ", str, e6);
                    throw null;
                } catch (InvocationTargetException e7) {
                    ᵷᵝˎ.ᵱᵽʡᵚ(attributeSet2.getPositionDescription(), ": Could not instantiate the LayoutManager: ", str, e7);
                    throw null;
                }
            }
        }
        int[] iArr2 = f851;
        TypedArray typedArrayObtainStyledAttributes2 = context.obtainStyledAttributes(attributeSet2, iArr2, i2, 0);
        AbstractC2746.m6646(this, context, iArr2, attributeSet2, typedArrayObtainStyledAttributes2, i2);
        boolean z = typedArrayObtainStyledAttributes2.getBoolean(0, true);
        typedArrayObtainStyledAttributes2.recycle();
        setNestedScrollingEnabled(z);
        setTag(ar.tvplayer.tv.R.id.h, Boolean.TRUE);
    }

    private C4045 getScrollingChildHelper() {
        if (this.f892 == null) {
            this.f892 = new C4045(this);
        }
        return this.f892;
    }

    public static void setDebugAssertionsEnabled(boolean z) {
        f848 = z;
    }

    public static void setVerboseLoggingEnabled(boolean z) {
        f843 = z;
    }

    /* JADX INFO: renamed from: ʿٴˇ, reason: contains not printable characters */
    public static RecyclerView m533(View view) {
        if (!(view instanceof ViewGroup)) {
            return null;
        }
        if (view instanceof RecyclerView) {
            return (RecyclerView) view;
        }
        ViewGroup viewGroup = (ViewGroup) view;
        int childCount = viewGroup.getChildCount();
        for (int i = 0; i < childCount; i++) {
            RecyclerView recyclerViewM533 = m533(viewGroup.getChildAt(i));
            if (recyclerViewM533 != null) {
                return recyclerViewM533;
            }
        }
        return null;
    }

    /* JADX INFO: renamed from: ˊᵡᵗʨ, reason: contains not printable characters */
    public static int m534(View view) {
        AbstractC4793 abstractC4793M539 = m539(view);
        if (abstractC4793M539 != null) {
            return abstractC4793M539.m9984();
        }
        return -1;
    }

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public static int m535(int i, EdgeEffect edgeEffect, EdgeEffect edgeEffect2, int i2) {
        if (i > 0 && edgeEffect != null && AbstractC3481.m7927(edgeEffect) != 0.0f) {
            int iRound = Math.round(AbstractC3481.m7921(edgeEffect, ((-i) * 4.0f) / i2, 0.5f) * ((-i2) / 4.0f));
            if (iRound != i) {
                edgeEffect.finish();
            }
            return i - iRound;
        }
        if (i >= 0 || edgeEffect2 == null || AbstractC3481.m7927(edgeEffect2) == 0.0f) {
            return i;
        }
        float f = i2;
        int iRound2 = Math.round(AbstractC3481.m7921(edgeEffect2, (i * 4.0f) / f, 0.5f) * (f / 4.0f));
        if (iRound2 != i) {
            edgeEffect2.finish();
        }
        return i - iRound2;
    }

    /* JADX INFO: renamed from: ᵵᵬᵽ, reason: contains not printable characters */
    public static AbstractC4793 m539(View view) {
        if (view == null) {
            return null;
        }
        return ((C5319) view.getLayoutParams()).f20074;
    }

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public static void m540(AbstractC4793 abstractC4793) {
        WeakReference weakReference = abstractC4793.f18241;
        if (weakReference != null) {
            View view = (View) weakReference.get();
            while (view != null) {
                if (view == abstractC4793.f18236) {
                    return;
                }
                Object parent = view.getParent();
                view = parent instanceof View ? (View) parent : null;
            }
            abstractC4793.f18241 = null;
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void addFocusables(ArrayList arrayList, int i, int i2) {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 == null || !abstractC0421.mo304(this, arrayList, i, i2)) {
            super.addFocusables(arrayList, i, i2);
        }
    }

    @Override // android.view.ViewGroup
    public final boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return (layoutParams instanceof C5319) && this.f869.mo328((C5319) layoutParams);
    }

    @Override // android.view.View
    public final int computeHorizontalScrollExtent() {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null && abstractC0421.mo312()) {
            return this.f869.mo529(this.f899);
        }
        return 0;
    }

    @Override // android.view.View
    public final int computeHorizontalScrollOffset() {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null && abstractC0421.mo312()) {
            return this.f869.mo491(this.f899);
        }
        return 0;
    }

    @Override // android.view.View
    public final int computeHorizontalScrollRange() {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null && abstractC0421.mo312()) {
            return this.f869.mo483(this.f899);
        }
        return 0;
    }

    @Override // android.view.View
    public final int computeVerticalScrollExtent() {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null && abstractC0421.mo333()) {
            return this.f869.mo508(this.f899);
        }
        return 0;
    }

    @Override // android.view.View
    public final int computeVerticalScrollOffset() {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null && abstractC0421.mo333()) {
            return this.f869.mo490(this.f899);
        }
        return 0;
    }

    @Override // android.view.View
    public final int computeVerticalScrollRange() {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null && abstractC0421.mo333()) {
            return this.f869.mo484(this.f899);
        }
        return 0;
    }

    @Override // android.view.ViewGroup, android.view.View
    public boolean dispatchKeyEvent(KeyEvent keyEvent) {
        if (super.dispatchKeyEvent(keyEvent)) {
            return true;
        }
        AbstractC0421 layoutManager = getLayoutManager();
        int iMo4258 = 0;
        if (layoutManager != null) {
            if (layoutManager.mo333()) {
                int keyCode = keyEvent.getKeyCode();
                if (keyCode == 92 || keyCode == 93) {
                    int measuredHeight = getMeasuredHeight();
                    if (keyCode == 93) {
                        m575(0, measuredHeight, false);
                        return true;
                    }
                    m575(0, -measuredHeight, false);
                    return true;
                }
                if (keyCode == 122 || keyCode == 123) {
                    boolean zMo516 = layoutManager.mo516();
                    if (keyCode == 122) {
                        if (zMo516) {
                            iMo4258 = getAdapter().mo4258();
                        }
                    } else if (!zMo516) {
                        iMo4258 = getAdapter().mo4258();
                    }
                    mo602(iMo4258);
                    return true;
                }
            } else if (layoutManager.mo312()) {
                int keyCode2 = keyEvent.getKeyCode();
                if (keyCode2 == 92 || keyCode2 == 93) {
                    int measuredWidth = getMeasuredWidth();
                    if (keyCode2 == 93) {
                        m575(measuredWidth, 0, false);
                        return true;
                    }
                    m575(-measuredWidth, 0, false);
                    return true;
                }
                if (keyCode2 == 122 || keyCode2 == 123) {
                    boolean zMo5162 = layoutManager.mo516();
                    if (keyCode2 == 122) {
                        if (zMo5162) {
                            iMo4258 = getAdapter().mo4258();
                        }
                    } else if (!zMo5162) {
                        iMo4258 = getAdapter().mo4258();
                    }
                    mo602(iMo4258);
                    return true;
                }
            }
        }
        return false;
    }

    @Override // android.view.View
    public final boolean dispatchNestedFling(float f, float f2, boolean z) {
        ViewParent viewParentM8850;
        C4045 scrollingChildHelper = getScrollingChildHelper();
        if (scrollingChildHelper.f15524 && (viewParentM8850 = scrollingChildHelper.m8850(0)) != null) {
            try {
                return viewParentM8850.onNestedFling(scrollingChildHelper.f15521, f, f2, z);
            } catch (AbstractMethodError unused) {
                Objects.toString(viewParentM8850);
            }
        }
        return false;
    }

    @Override // android.view.View
    public final boolean dispatchNestedPreFling(float f, float f2) {
        return getScrollingChildHelper().m8848(f, f2);
    }

    @Override // android.view.View
    public final boolean dispatchNestedPreScroll(int i, int i2, int[] iArr, int[] iArr2) {
        return getScrollingChildHelper().m8845(i, i2, 0, iArr, iArr2);
    }

    @Override // android.view.View
    public final boolean dispatchNestedScroll(int i, int i2, int i3, int i4, int[] iArr) {
        return getScrollingChildHelper().m8846(i, i2, i3, i4, iArr, 0, null);
    }

    @Override // android.view.View
    public final boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent accessibilityEvent) {
        onPopulateAccessibilityEvent(accessibilityEvent);
        return true;
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void dispatchRestoreInstanceState(SparseArray sparseArray) {
        dispatchThawSelfOnly(sparseArray);
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void dispatchSaveInstanceState(SparseArray sparseArray) {
        dispatchFreezeSelfOnly(sparseArray);
    }

    @Override // android.view.View
    public void draw(Canvas canvas) {
        boolean z;
        super.draw(canvas);
        ArrayList arrayList = this.f874;
        int size = arrayList.size();
        boolean z2 = false;
        for (int i = 0; i < size; i++) {
            ((AbstractC5290) arrayList.get(i)).mo3018(canvas, this);
        }
        EdgeEffect edgeEffect = this.f868;
        if (edgeEffect == null || edgeEffect.isFinished()) {
            z = false;
        } else {
            int iSave = canvas.save();
            int paddingBottom = this.f879 ? getPaddingBottom() : 0;
            canvas.rotate(270.0f);
            canvas.translate((-getHeight()) + paddingBottom, 0.0f);
            EdgeEffect edgeEffect2 = this.f868;
            z = edgeEffect2 != null && edgeEffect2.draw(canvas);
            canvas.restoreToCount(iSave);
        }
        EdgeEffect edgeEffect3 = this.f862;
        if (edgeEffect3 != null && !edgeEffect3.isFinished()) {
            int iSave2 = canvas.save();
            if (this.f879) {
                canvas.translate(getPaddingLeft(), getPaddingTop());
            }
            EdgeEffect edgeEffect4 = this.f862;
            z |= edgeEffect4 != null && edgeEffect4.draw(canvas);
            canvas.restoreToCount(iSave2);
        }
        EdgeEffect edgeEffect5 = this.f877;
        if (edgeEffect5 != null && !edgeEffect5.isFinished()) {
            int iSave3 = canvas.save();
            int width = getWidth();
            int paddingTop = this.f879 ? getPaddingTop() : 0;
            canvas.rotate(90.0f);
            canvas.translate(paddingTop, -width);
            EdgeEffect edgeEffect6 = this.f877;
            z |= edgeEffect6 != null && edgeEffect6.draw(canvas);
            canvas.restoreToCount(iSave3);
        }
        EdgeEffect edgeEffect7 = this.f896;
        if (edgeEffect7 != null && !edgeEffect7.isFinished()) {
            int iSave4 = canvas.save();
            canvas.rotate(180.0f);
            if (this.f879) {
                canvas.translate(getPaddingRight() + (-getWidth()), getPaddingBottom() + (-getHeight()));
            } else {
                canvas.translate(-getWidth(), -getHeight());
            }
            EdgeEffect edgeEffect8 = this.f896;
            if (edgeEffect8 != null && edgeEffect8.draw(canvas)) {
                z2 = true;
            }
            z |= z2;
            canvas.restoreToCount(iSave4);
        }
        if ((z || this.f884 == null || arrayList.size() <= 0 || !this.f884.mo1150()) ? z : true) {
            postInvalidateOnAnimation();
        }
    }

    @Override // android.view.ViewGroup
    public final boolean drawChild(Canvas canvas, View view, long j) {
        return super.drawChild(canvas, view, j);
    }

    /* JADX WARN: Code restructure failed: missing block: B:119:0x016c, code lost:
    
        if (r16 > 0) goto L138;
     */
    /* JADX WARN: Code restructure failed: missing block: B:123:0x0179, code lost:
    
        if (r5 > 0) goto L138;
     */
    /* JADX WARN: Code restructure failed: missing block: B:125:0x017c, code lost:
    
        if (r16 < 0) goto L138;
     */
    /* JADX WARN: Code restructure failed: missing block: B:127:0x017f, code lost:
    
        if (r5 < 0) goto L138;
     */
    /* JADX WARN: Code restructure failed: missing block: B:132:0x0187, code lost:
    
        if ((r5 * r6) <= 0) goto L139;
     */
    /* JADX WARN: Code restructure failed: missing block: B:137:0x018f, code lost:
    
        if ((r5 * r6) >= 0) goto L139;
     */
    /* JADX WARN: Removed duplicated region for block: B:112:0x015e  */
    /* JADX WARN: Removed duplicated region for block: B:134:0x018a  */
    /* JADX WARN: Removed duplicated region for block: B:33:0x0065  */
    /* JADX WARN: Removed duplicated region for block: B:34:0x0067  */
    /* JADX WARN: Removed duplicated region for block: B:36:0x006a  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x006c  */
    /* JADX WARN: Removed duplicated region for block: B:40:0x0070  */
    /* JADX WARN: Removed duplicated region for block: B:41:0x0073  */
    /* JADX WARN: Removed duplicated region for block: B:44:0x007a  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x007c  */
    /* JADX WARN: Removed duplicated region for block: B:47:0x007f  */
    /* JADX WARN: Removed duplicated region for block: B:61:0x00bb  */
    /* JADX WARN: Removed duplicated region for block: B:70:0x00d2 A[ADDED_TO_REGION] */
    /* JADX WARN: Removed duplicated region for block: B:83:0x0116  */
    /* JADX WARN: Removed duplicated region for block: B:84:0x0118  */
    @Override // android.view.ViewGroup, android.view.ViewParent
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final View focusSearch(View view, int i) {
        View viewMo475;
        int i2;
        int i3;
        int i4;
        int i5;
        int i6;
        byte b;
        boolean z;
        View viewMo314 = this.f869.mo314(view, i);
        if (viewMo314 != null) {
            return viewMo314;
        }
        boolean z2 = (this.f900 == null || this.f869 == null || m587() || this.f898) ? false : true;
        FocusFinder focusFinder = FocusFinder.getInstance();
        C1499 c1499 = this.f899;
        C2772 c2772 = this.f887;
        if (z2 && (i == 2 || i == 1)) {
            if (this.f869.mo333()) {
                if (focusFinder.findNextFocus(this, view, i == 2 ? 130 : 33) == null) {
                    z = true;
                }
                if (!z && this.f869.mo312()) {
                    z = focusFinder.findNextFocus(this, view, !((this.f869.f2347.getLayoutDirection() != 1) ^ (i != 2)) ? 66 : 17) != null;
                }
                if (z) {
                    m589();
                    if (m565(view) != null) {
                        m592();
                        this.f869.mo475(view, i, c2772, c1499);
                        m594(false);
                    }
                    return null;
                }
                viewMo475 = focusFinder.findNextFocus(this, view, i);
                if (viewMo475 == null) {
                }
                if (viewMo475 != null) {
                    if (view != null) {
                        int width = view.getWidth();
                        int height = view.getHeight();
                        Rect rect = this.f925;
                        rect.set(0, 0, width, height);
                        int width2 = viewMo475.getWidth();
                        int height2 = viewMo475.getHeight();
                        Rect rect2 = this.f886;
                        rect2.set(0, 0, width2, height2);
                        offsetDescendantRectToMyCoords(view, rect);
                        offsetDescendantRectToMyCoords(viewMo475, rect2);
                        if (this.f869.f2347.getLayoutDirection() != 1) {
                        }
                        i2 = rect.left;
                        i3 = rect2.left;
                        if (i2 >= i3) {
                        }
                        i4 = 1;
                        i5 = rect.top;
                        i6 = rect2.top;
                        if (i5 >= i6) {
                        }
                        b = 1;
                        if (i == 1) {
                        }
                    }
                    return viewMo475;
                }
                return super.focusSearch(view, i);
            }
            z = false;
            if (!z) {
                if (focusFinder.findNextFocus(this, view, !((this.f869.f2347.getLayoutDirection() != 1) ^ (i != 2)) ? 66 : 17) != null) {
                }
            }
            if (z) {
            }
            viewMo475 = focusFinder.findNextFocus(this, view, i);
            if (viewMo475 == null) {
            }
            if (viewMo475 != null) {
            }
            return super.focusSearch(view, i);
        }
        View viewFindNextFocus = focusFinder.findNextFocus(this, view, i);
        if (viewFindNextFocus == null && z2) {
            m589();
            if (m565(view) != null) {
                m592();
                viewMo475 = this.f869.mo475(view, i, c2772, c1499);
                m594(false);
            }
            return null;
        }
        viewMo475 = viewFindNextFocus;
        if (viewMo475 == null && !viewMo475.hasFocusable()) {
            if (getFocusedChild() == null) {
                return super.focusSearch(view, i);
            }
            m570(viewMo475, null);
            return view;
        }
        if (viewMo475 != null && viewMo475 != this && viewMo475 != view && m565(viewMo475) != null) {
            if (view != null && m565(view) != null) {
                int width3 = view.getWidth();
                int height3 = view.getHeight();
                Rect rect3 = this.f925;
                rect3.set(0, 0, width3, height3);
                int width22 = viewMo475.getWidth();
                int height22 = viewMo475.getHeight();
                Rect rect22 = this.f886;
                rect22.set(0, 0, width22, height22);
                offsetDescendantRectToMyCoords(view, rect3);
                offsetDescendantRectToMyCoords(viewMo475, rect22);
                int i7 = this.f869.f2347.getLayoutDirection() != 1 ? -1 : 1;
                i2 = rect3.left;
                i3 = rect22.left;
                if ((i2 >= i3 || rect3.right <= i3) && rect3.right < rect22.right) {
                    i4 = 1;
                } else {
                    int i8 = rect3.right;
                    int i9 = rect22.right;
                    i4 = ((i8 > i9 || i2 >= i9) && i2 > i3) ? -1 : 0;
                }
                i5 = rect3.top;
                i6 = rect22.top;
                if ((i5 >= i6 || rect3.bottom <= i6) && rect3.bottom < rect22.bottom) {
                    b = 1;
                } else {
                    int i10 = rect3.bottom;
                    int i11 = rect22.bottom;
                    b = ((i10 > i11 || i5 >= i11) && i5 > i6) ? (byte) -1 : (byte) 0;
                }
                if (i == 1) {
                    if (i != 2) {
                        if (i != 17) {
                            if (i != 33) {
                                if (i != 66) {
                                    if (i != 130) {
                                        ᵕᵩʽᵲ.ᵝᵶ("Invalid direction: ", i, m600());
                                        return null;
                                    }
                                }
                            }
                        }
                    } else if (b <= 0) {
                        if (b == 0) {
                        }
                    }
                } else if (b >= 0) {
                    if (b == 0) {
                    }
                }
            }
            return viewMo475;
        }
        return super.focusSearch(view, i);
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateDefaultLayoutParams() {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null) {
            return abstractC0421.mo284();
        }
        ᵕᵩʽᵲ.ᵪᵹᵥᵻ("RecyclerView has no LayoutManager".concat(m600()));
        return null;
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null) {
            return abstractC0421.mo277(getContext(), attributeSet);
        }
        ᵕᵩʽᵲ.ᵪᵹᵥᵻ("RecyclerView has no LayoutManager".concat(m600()));
        return null;
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null) {
            return abstractC0421.mo279(layoutParams);
        }
        ᵕᵩʽᵲ.ᵪᵹᵥᵻ("RecyclerView has no LayoutManager".concat(m600()));
        return null;
    }

    @Override // android.view.ViewGroup, android.view.View
    public CharSequence getAccessibilityClassName() {
        return "androidx.recyclerview.widget.RecyclerView";
    }

    public AbstractC2416 getAdapter() {
        return this.f900;
    }

    @Override // android.view.View
    public int getBaseline() {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 == null) {
            return super.getBaseline();
        }
        abstractC0421.getClass();
        return -1;
    }

    @Override // android.view.ViewGroup
    public int getChildDrawingOrder(int i, int i2) {
        return super.getChildDrawingOrder(i, i2);
    }

    @Override // android.view.ViewGroup
    public boolean getClipToPadding() {
        return this.f879;
    }

    public C1407 getCompatAccessibilityDelegate() {
        return this.f870;
    }

    public AbstractC0483 getEdgeEffectFactory() {
        return this.f875;
    }

    public AbstractC0090 getItemAnimator() {
        return this.f884;
    }

    public int getItemDecorationCount() {
        return this.f874.size();
    }

    public AbstractC0421 getLayoutManager() {
        return this.f869;
    }

    public int getMaxFlingVelocity() {
        return this.f917;
    }

    public int getMinFlingVelocity() {
        return this.f882;
    }

    public long getNanoTime() {
        if (f847) {
            return System.nanoTime();
        }
        return 0L;
    }

    public AbstractC1958 getOnFlingListener() {
        return this.f916;
    }

    public boolean getPreserveFocusAfterLayout() {
        return this.f893;
    }

    public C4747 getRecycledViewPool() {
        return this.f887.m6685();
    }

    public int getScrollState() {
        return this.f890;
    }

    @Override // android.view.View
    public final boolean hasNestedScrollingParent() {
        return getScrollingChildHelper().m8847(0);
    }

    @Override // android.view.View
    public final boolean isAttachedToWindow() {
        return this.f922;
    }

    @Override // android.view.ViewGroup
    public final boolean isLayoutSuppressed() {
        return this.f898;
    }

    @Override // android.view.View
    public final boolean isNestedScrollingEnabled() {
        return getScrollingChildHelper().f15524;
    }

    /* JADX WARN: Removed duplicated region for block: B:21:0x0058  */
    @Override // android.view.ViewGroup, android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void onAttachedToWindow() {
        float refreshRate;
        super.onAttachedToWindow();
        this.f903 = 0;
        this.f922 = true;
        this.f852 = this.f852 && !isLayoutRequested();
        this.f887.m6687();
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null) {
            abstractC0421.f2357 = true;
            abstractC0421.mo817(this);
        }
        this.f905 = false;
        if (f847) {
            ThreadLocal threadLocal = RunnableC0329.f2046;
            RunnableC0329 runnableC0329 = (RunnableC0329) threadLocal.get();
            this.f854 = runnableC0329;
            if (runnableC0329 == null) {
                this.f854 = new RunnableC0329();
                WeakHashMap weakHashMap = AbstractC2746.f10556;
                Display display = getDisplay();
                if (isInEditMode() || display == null) {
                    refreshRate = 60.0f;
                    RunnableC0329 runnableC03292 = this.f854;
                    runnableC03292.f2049 = (long) (1.0E9f / refreshRate);
                    threadLocal.set(runnableC03292);
                } else {
                    refreshRate = display.getRefreshRate();
                    if (refreshRate < 30.0f) {
                    }
                    RunnableC0329 runnableC032922 = this.f854;
                    runnableC032922.f2049 = (long) (1.0E9f / refreshRate);
                    threadLocal.set(runnableC032922);
                }
            }
            ArrayList arrayList = this.f854.f2048;
            if (f848 && arrayList.contains(this)) {
                ᵕᵩʽᵲ.ᵪᵹᵥᵻ("RecyclerView already present in worker list!");
            } else {
                arrayList.add(this);
            }
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onDetachedFromWindow() {
        RunnableC0329 runnableC0329;
        super.onDetachedFromWindow();
        AbstractC0090 abstractC0090 = this.f884;
        if (abstractC0090 != null) {
            abstractC0090.mo1152();
        }
        m551();
        int i = 0;
        this.f922 = false;
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null) {
            abstractC0421.f2357 = false;
            abstractC0421.mo503(this);
        }
        this.f919.clear();
        removeCallbacks(this.f906);
        this.f866.getClass();
        while (C2522.f9735.mo8914() != null) {
        }
        C2772 c2772 = this.f887;
        ArrayList arrayList = c2772.f10658;
        for (int i2 = 0; i2 < arrayList.size(); i2++) {
            ᵹˊᵫˋ.ːˏᵟᵯ(((AbstractC4793) arrayList.get(i2)).f18236);
        }
        c2772.m6695(c2772.f10657.f900, false);
        while (i < getChildCount()) {
            int i3 = i + 1;
            View childAt = getChildAt(i);
            if (childAt == null) {
                C4468.m9514();
                return;
            }
            C0551 c0551 = (C0551) childAt.getTag(ar.tvplayer.tv.R.id.h);
            if (c0551 == null) {
                c0551 = new C0551();
                childAt.setTag(ar.tvplayer.tv.R.id.h, c0551);
            }
            ArrayList arrayList2 = c0551.f2800;
            int iM3128 = AbstractC0892.m3128(arrayList2);
            if (-1 < iM3128) {
                arrayList2.get(iM3128).getClass();
                C1685.m4560();
                return;
            }
            i = i3;
        }
        if (!f847 || (runnableC0329 = this.f854) == null) {
            return;
        }
        boolean zRemove = runnableC0329.f2048.remove(this);
        if (!f848 || zRemove) {
            this.f854 = null;
        } else {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("RecyclerView removal failed!");
        }
    }

    @Override // android.view.View
    public void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        ArrayList arrayList = this.f874;
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC5290) arrayList.get(i)).getClass();
        }
    }

    @Override // android.view.View
    public boolean onGenericMotionEvent(MotionEvent motionEvent) {
        float axisValue;
        int i;
        boolean z;
        if (this.f869 != null && !this.f898 && motionEvent.getAction() == 8) {
            if ((motionEvent.getSource() & 2) != 0) {
                float f = this.f869.mo333() ? -motionEvent.getAxisValue(9) : 0.0f;
                axisValue = this.f869.mo312() ? motionEvent.getAxisValue(10) : 0.0f;
                i = 0;
                z = false;
                f = f;
            } else if ((motionEvent.getSource() & 4194304) != 0) {
                axisValue = motionEvent.getAxisValue(26);
                if (this.f869.mo333()) {
                    float f2 = -axisValue;
                    axisValue = 0.0f;
                    f = f2;
                } else if (!this.f869.mo312()) {
                    axisValue = 0.0f;
                }
                i = 26;
                z = this.f888;
            } else {
                axisValue = 0.0f;
                i = 0;
                z = false;
            }
            int i2 = (int) (f * this.f864);
            int i3 = (int) (axisValue * this.f908);
            if (z) {
                OverScroller overScroller = this.f921.f18517;
                m575((overScroller.getFinalX() - overScroller.getCurrX()) + i3, (overScroller.getFinalY() - overScroller.getCurrY()) + i2, true);
            } else {
                AbstractC0421 abstractC0421 = this.f869;
                if (abstractC0421 != null && !this.f898) {
                    int[] iArr = this.f876;
                    iArr[0] = 0;
                    iArr[1] = 0;
                    boolean zMo312 = abstractC0421.mo312();
                    boolean zMo333 = this.f869.mo333();
                    int i4 = zMo333 ? (zMo312 ? 1 : 0) | 2 : zMo312 ? 1 : 0;
                    float y = motionEvent.getY();
                    float x = motionEvent.getX();
                    int iM563 = i3 - m563(i3, y);
                    int iM578 = i2 - m578(i2, x);
                    getScrollingChildHelper().m8851(i4, 1);
                    if (m568(zMo312 ? iM563 : 0, zMo333 ? iM578 : 0, 1, this.f876, this.f873)) {
                        iM563 -= iArr[0];
                        iM578 -= iArr[1];
                    }
                    m574(zMo312 ? iM563 : 0, zMo333 ? iM578 : 0, motionEvent, 1);
                    RunnableC0329 runnableC0329 = this.f854;
                    if (runnableC0329 != null && (iM563 != 0 || iM578 != 0)) {
                        runnableC0329.m1583(this, iM563, iM578);
                    }
                    m586(1);
                }
            }
            if (i != 0 && !z) {
                this.f915.m4381(motionEvent, i);
            }
        }
        return false;
    }

    @Override // android.view.ViewGroup
    public final boolean onInterceptTouchEvent(MotionEvent motionEvent) {
        boolean z;
        boolean z2;
        if (!this.f898) {
            this.f895 = null;
            if (m601(motionEvent)) {
                VelocityTracker velocityTracker = this.f923;
                if (velocityTracker != null) {
                    velocityTracker.clear();
                }
                m586(0);
                m549();
                setScrollState(0);
                return true;
            }
            AbstractC0421 abstractC0421 = this.f869;
            if (abstractC0421 != null) {
                boolean zMo312 = abstractC0421.mo312();
                boolean zMo333 = this.f869.mo333();
                if (this.f923 == null) {
                    this.f923 = VelocityTracker.obtain();
                }
                this.f923.addMovement(motionEvent);
                int actionMasked = motionEvent.getActionMasked();
                int actionIndex = motionEvent.getActionIndex();
                if (actionMasked == 0) {
                    if (this.f871) {
                        this.f871 = false;
                    }
                    this.f913 = motionEvent.getPointerId(0);
                    int x = (int) (motionEvent.getX() + 0.5f);
                    this.f891 = x;
                    this.f914 = x;
                    int y = (int) (motionEvent.getY() + 0.5f);
                    this.f863 = y;
                    this.f881 = y;
                    EdgeEffect edgeEffect = this.f868;
                    if (edgeEffect == null || AbstractC3481.m7927(edgeEffect) == 0.0f || canScrollHorizontally(-1)) {
                        z = false;
                    } else {
                        AbstractC3481.m7921(this.f868, 0.0f, 1.0f - (motionEvent.getY() / getHeight()));
                        z = true;
                    }
                    EdgeEffect edgeEffect2 = this.f877;
                    if (edgeEffect2 != null && AbstractC3481.m7927(edgeEffect2) != 0.0f && !canScrollHorizontally(1)) {
                        AbstractC3481.m7921(this.f877, 0.0f, motionEvent.getY() / getHeight());
                        z = true;
                    }
                    EdgeEffect edgeEffect3 = this.f862;
                    if (edgeEffect3 != null && AbstractC3481.m7927(edgeEffect3) != 0.0f && !canScrollVertically(-1)) {
                        AbstractC3481.m7921(this.f862, 0.0f, motionEvent.getX() / getWidth());
                        z = true;
                    }
                    EdgeEffect edgeEffect4 = this.f896;
                    if (edgeEffect4 != null && AbstractC3481.m7927(edgeEffect4) != 0.0f && !canScrollVertically(1)) {
                        AbstractC3481.m7921(this.f896, 0.0f, 1.0f - (motionEvent.getX() / getWidth()));
                        z = true;
                    }
                    if (z || this.f890 == 2) {
                        getParent().requestDisallowInterceptTouchEvent(true);
                        setScrollState(1);
                        m586(1);
                    }
                    int[] iArr = this.f865;
                    iArr[1] = 0;
                    iArr[0] = 0;
                    m567(0);
                } else if (actionMasked == 1) {
                    this.f923.clear();
                    m586(0);
                } else if (actionMasked == 2) {
                    int iFindPointerIndex = motionEvent.findPointerIndex(this.f913);
                    if (iFindPointerIndex >= 0) {
                        int x2 = (int) (motionEvent.getX(iFindPointerIndex) + 0.5f);
                        int y2 = (int) (motionEvent.getY(iFindPointerIndex) + 0.5f);
                        if (this.f890 != 1) {
                            int i = x2 - this.f914;
                            int i2 = y2 - this.f881;
                            if (!zMo312 || Math.abs(i) <= this.f926) {
                                z2 = false;
                            } else {
                                this.f891 = x2;
                                z2 = true;
                            }
                            if (zMo333 && Math.abs(i2) > this.f926) {
                                this.f863 = y2;
                                z2 = true;
                            }
                            if (z2) {
                                setScrollState(1);
                            }
                        }
                    }
                } else if (actionMasked == 3) {
                    VelocityTracker velocityTracker2 = this.f923;
                    if (velocityTracker2 != null) {
                        velocityTracker2.clear();
                    }
                    m586(0);
                    m549();
                    setScrollState(0);
                } else if (actionMasked == 5) {
                    this.f913 = motionEvent.getPointerId(actionIndex);
                    int x3 = (int) (motionEvent.getX(actionIndex) + 0.5f);
                    this.f891 = x3;
                    this.f914 = x3;
                    int y3 = (int) (motionEvent.getY(actionIndex) + 0.5f);
                    this.f863 = y3;
                    this.f881 = y3;
                } else if (actionMasked == 6) {
                    m576(motionEvent);
                }
                if (this.f890 == 1) {
                    return true;
                }
            }
        }
        return false;
    }

    @Override // android.view.ViewGroup, android.view.View
    public void onLayout(boolean z, int i, int i2, int i3, int i4) {
        Trace.beginSection("RV OnLayout");
        m596();
        Trace.endSection();
        this.f852 = true;
    }

    @Override // android.view.View
    public final void onMeasure(int i, int i2) {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 == null) {
            m582(i, i2);
            return;
        }
        boolean zMo521 = abstractC0421.mo521();
        C2772 c2772 = this.f887;
        boolean z = false;
        C1499 c1499 = this.f899;
        if (zMo521) {
            int mode = View.MeasureSpec.getMode(i);
            int mode2 = View.MeasureSpec.getMode(i2);
            this.f869.mo317(c2772, c1499, i, i2);
            if (mode == 1073741824 && mode2 == 1073741824) {
                z = true;
            }
            this.f920 = z;
            if (z || this.f900 == null) {
                return;
            }
            if (c1499.f6057 == 1) {
                m558();
            }
            this.f869.m1801(i, i2);
            c1499.f6058 = true;
            m555();
            this.f869.m1794(i, i2);
            if (this.f869.mo523()) {
                this.f869.m1801(View.MeasureSpec.makeMeasureSpec(getMeasuredWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(getMeasuredHeight(), 1073741824));
                c1499.f6058 = true;
                m555();
                this.f869.m1794(i, i2);
            }
            this.f880 = getMeasuredWidth();
            this.f911 = getMeasuredHeight();
            return;
        }
        if (this.f885) {
            this.f869.mo317(c2772, c1499, i, i2);
            return;
        }
        if (this.f856) {
            m592();
            m545();
            m585();
            m569(true);
            if (c1499.f6056) {
                c1499.f6055 = true;
            } else {
                this.f918.m9049();
                c1499.f6055 = false;
            }
            this.f856 = false;
            m594(false);
        } else if (c1499.f6056) {
            setMeasuredDimension(getMeasuredWidth(), getMeasuredHeight());
            return;
        }
        AbstractC2416 abstractC2416 = this.f900;
        if (abstractC2416 != null) {
            c1499.f6050 = abstractC2416.mo4258();
        } else {
            c1499.f6050 = 0;
        }
        m592();
        this.f869.mo317(c2772, c1499, i, i2);
        m594(false);
        c1499.f6055 = false;
    }

    @Override // android.view.ViewGroup
    public boolean onRequestFocusInDescendants(int i, Rect rect) {
        if (m587()) {
            return false;
        }
        return super.onRequestFocusInDescendants(i, rect);
    }

    @Override // android.view.View
    public void onRestoreInstanceState(Parcelable parcelable) {
        if (!(parcelable instanceof C0303)) {
            super.onRestoreInstanceState(parcelable);
            return;
        }
        C0303 c0303 = (C0303) parcelable;
        this.f910 = c0303;
        super.onRestoreInstanceState(c0303.f10655);
        requestLayout();
    }

    @Override // android.view.View
    public Parcelable onSaveInstanceState() {
        C0303 c0303 = new C0303(super.onSaveInstanceState());
        C0303 c03032 = this.f910;
        if (c03032 != null) {
            c0303.f1976 = c03032.f1976;
            return c0303;
        }
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null) {
            c0303.f1976 = abstractC0421.mo297();
            return c0303;
        }
        c0303.f1976 = null;
        return c0303;
    }

    @Override // android.view.View
    public void onSizeChanged(int i, int i2, int i3, int i4) {
        super.onSizeChanged(i, i2, i3, i4);
        if (i == i3 && i2 == i4) {
            return;
        }
        this.f896 = null;
        this.f862 = null;
        this.f877 = null;
        this.f868 = null;
    }

    /* JADX WARN: Removed duplicated region for block: B:101:0x01f0 A[PHI: r1
      0x01f0: PHI (r1v49 int) = (r1v33 int), (r1v53 int) binds: [B:94:0x01db, B:99:0x01ec] A[DONT_GENERATE, DONT_INLINE]] */
    @Override // android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public boolean onTouchEvent(MotionEvent motionEvent) {
        boolean zM601;
        if (!this.f898 && !this.f871) {
            C0856 c0856 = this.f895;
            if (c0856 == null) {
                zM601 = motionEvent.getAction() == 0 ? false : m601(motionEvent);
            } else {
                int i = c0856.f3770;
                if (c0856.f3777 != 0) {
                    if (motionEvent.getAction() == 0) {
                        boolean zM3021 = c0856.m3021(motionEvent.getX(), motionEvent.getY());
                        boolean zM3019 = c0856.m3019(motionEvent.getX(), motionEvent.getY());
                        if (zM3021 || zM3019) {
                            if (zM3019) {
                                c0856.f3781 = 1;
                                c0856.f3783 = (int) motionEvent.getX();
                            } else if (zM3021) {
                                c0856.f3781 = 2;
                                c0856.f3782 = (int) motionEvent.getY();
                            }
                            c0856.m3022(2);
                        }
                    } else if (motionEvent.getAction() == 1 && c0856.f3777 == 2) {
                        c0856.f3782 = 0.0f;
                        c0856.f3783 = 0.0f;
                        c0856.m3022(1);
                        c0856.f3781 = 0;
                    } else if (motionEvent.getAction() == 2 && c0856.f3777 == 2) {
                        c0856.m3020();
                        if (c0856.f3781 == 1) {
                            float x = motionEvent.getX();
                            int[] iArr = c0856.f3785;
                            iArr[0] = i;
                            int i2 = c0856.f3789 - i;
                            iArr[1] = i2;
                            float fMax = Math.max(i, Math.min(i2, x));
                            if (Math.abs(c0856.f3786 - fMax) >= 2.0f) {
                                int iM3017 = C0856.m3017(c0856.f3783, fMax, iArr, c0856.f3772.computeHorizontalScrollRange(), c0856.f3772.computeHorizontalScrollOffset(), c0856.f3789);
                                if (iM3017 != 0) {
                                    c0856.f3772.scrollBy(iM3017, 0);
                                }
                                c0856.f3783 = fMax;
                            }
                        }
                        if (c0856.f3781 == 2) {
                            float y = motionEvent.getY();
                            int[] iArr2 = c0856.f3780;
                            iArr2[0] = i;
                            int i3 = c0856.f3773 - i;
                            iArr2[1] = i3;
                            float fMax2 = Math.max(i, Math.min(i3, y));
                            if (Math.abs(c0856.f3787 - fMax2) >= 2.0f) {
                                int iM30172 = C0856.m3017(c0856.f3782, fMax2, iArr2, c0856.f3772.computeVerticalScrollRange(), c0856.f3772.computeVerticalScrollOffset(), c0856.f3773);
                                if (iM30172 != 0) {
                                    c0856.f3772.scrollBy(0, iM30172);
                                }
                                c0856.f3782 = fMax2;
                            }
                        }
                    }
                }
                int action = motionEvent.getAction();
                if (action == 3 || action == 1) {
                    this.f895 = null;
                }
                zM601 = true;
            }
            if (zM601) {
                VelocityTracker velocityTracker = this.f923;
                if (velocityTracker != null) {
                    velocityTracker.clear();
                }
                m586(0);
                m549();
                setScrollState(0);
                return true;
            }
            AbstractC0421 abstractC0421 = this.f869;
            if (abstractC0421 != null) {
                boolean zMo312 = abstractC0421.mo312();
                boolean zMo333 = this.f869.mo333();
                if (this.f923 == null) {
                    this.f923 = VelocityTracker.obtain();
                }
                int actionMasked = motionEvent.getActionMasked();
                int actionIndex = motionEvent.getActionIndex();
                int[] iArr3 = this.f865;
                if (actionMasked == 0) {
                    iArr3[1] = 0;
                    iArr3[0] = 0;
                }
                MotionEvent motionEventObtain = MotionEvent.obtain(motionEvent);
                motionEventObtain.offsetLocation(iArr3[0], iArr3[1]);
                if (actionMasked == 0) {
                    this.f913 = motionEvent.getPointerId(0);
                    int x2 = (int) (motionEvent.getX() + 0.5f);
                    this.f891 = x2;
                    this.f914 = x2;
                    int y2 = (int) (motionEvent.getY() + 0.5f);
                    this.f863 = y2;
                    this.f881 = y2;
                    m567(0);
                } else {
                    if (actionMasked == 1) {
                        this.f923.addMovement(motionEventObtain);
                        VelocityTracker velocityTracker2 = this.f923;
                        int i4 = this.f917;
                        velocityTracker2.computeCurrentVelocity(1000, i4);
                        float f = zMo312 ? -this.f923.getXVelocity(this.f913) : 0.0f;
                        float f2 = zMo333 ? -this.f923.getYVelocity(this.f913) : 0.0f;
                        if ((f == 0.0f && f2 == 0.0f) || !m548((int) f, (int) f2, this.f882, i4)) {
                            setScrollState(0);
                        }
                        VelocityTracker velocityTracker3 = this.f923;
                        if (velocityTracker3 != null) {
                            velocityTracker3.clear();
                        }
                        m586(0);
                        m549();
                        motionEventObtain.recycle();
                        return true;
                    }
                    if (actionMasked == 2) {
                        int iFindPointerIndex = motionEvent.findPointerIndex(this.f913);
                        if (iFindPointerIndex >= 0) {
                            int x3 = (int) (motionEvent.getX(iFindPointerIndex) + 0.5f);
                            int y3 = (int) (motionEvent.getY(iFindPointerIndex) + 0.5f);
                            int iMax = this.f891 - x3;
                            int iMax2 = this.f863 - y3;
                            if (this.f890 != 1) {
                                if (zMo312) {
                                    int i5 = this.f926;
                                    iMax = iMax > 0 ? Math.max(0, iMax - i5) : Math.min(0, iMax + i5);
                                    boolean z = iMax != 0;
                                    if (zMo333) {
                                        int i6 = this.f926;
                                        iMax2 = iMax2 > 0 ? Math.max(0, iMax2 - i6) : Math.min(0, iMax2 + i6);
                                        if (iMax2 != 0) {
                                            z = true;
                                        }
                                    }
                                    if (z) {
                                        setScrollState(1);
                                    }
                                }
                                motionEventObtain.recycle();
                                return true;
                            }
                            if (this.f890 == 1) {
                                int[] iArr4 = this.f876;
                                iArr4[0] = 0;
                                iArr4[1] = 0;
                                int iM563 = iMax - m563(iMax, motionEvent.getY());
                                int iM578 = iMax2 - m578(iMax2, motionEvent.getX());
                                boolean zM568 = m568(zMo312 ? iM563 : 0, zMo333 ? iM578 : 0, 0, this.f876, this.f873);
                                int[] iArr5 = this.f873;
                                if (zM568) {
                                    iM563 -= iArr4[0];
                                    iM578 -= iArr4[1];
                                    iArr3[0] = iArr3[0] + iArr5[0];
                                    iArr3[1] = iArr3[1] + iArr5[1];
                                    getParent().requestDisallowInterceptTouchEvent(true);
                                }
                                int i7 = iM563;
                                int i8 = iM578;
                                this.f891 = x3 - iArr5[0];
                                this.f863 = y3 - iArr5[1];
                                if (m574(zMo312 ? i7 : 0, zMo333 ? i8 : 0, motionEvent, 0)) {
                                    getParent().requestDisallowInterceptTouchEvent(true);
                                }
                                RunnableC0329 runnableC0329 = this.f854;
                                if (runnableC0329 != null && (i7 != 0 || i8 != 0)) {
                                    runnableC0329.m1583(this, i7, i8);
                                }
                            }
                        }
                    } else if (actionMasked == 3) {
                        VelocityTracker velocityTracker4 = this.f923;
                        if (velocityTracker4 != null) {
                            velocityTracker4.clear();
                        }
                        m586(0);
                        m549();
                        setScrollState(0);
                    } else if (actionMasked == 5) {
                        this.f913 = motionEvent.getPointerId(actionIndex);
                        int x4 = (int) (motionEvent.getX(actionIndex) + 0.5f);
                        this.f891 = x4;
                        this.f914 = x4;
                        int y4 = (int) (motionEvent.getY(actionIndex) + 0.5f);
                        this.f863 = y4;
                        this.f881 = y4;
                    } else if (actionMasked == 6) {
                        m576(motionEvent);
                    }
                }
                this.f923.addMovement(motionEventObtain);
                motionEventObtain.recycle();
                return true;
            }
        }
        return false;
    }

    @Override // android.view.ViewGroup
    public final void removeDetachedView(View view, boolean z) {
        AbstractC4793 abstractC4793M539 = m539(view);
        if (abstractC4793M539 != null) {
            if (abstractC4793M539.m9993()) {
                abstractC4793M539.f18238 &= -257;
            } else if (!abstractC4793M539.m9994()) {
                StringBuilder sb = new StringBuilder("Called removeDetachedView with a view which is not flagged as tmp detached.");
                sb.append(abstractC4793M539);
                ᵕᵩʽᵲ.ˋˈ(sb, m600());
                return;
            }
        } else if (f848) {
            StringBuilder sb2 = new StringBuilder("No ViewHolder found for child: ");
            sb2.append(view);
            ᵕᵩʽᵲ.ˋˈ(sb2, m600());
            return;
        }
        view.clearAnimation();
        AbstractC4793 abstractC4793M5392 = m539(view);
        AbstractC2416 abstractC2416 = this.f900;
        if (abstractC2416 != null && abstractC4793M5392 != null) {
            abstractC2416.m6136(abstractC4793M5392);
        }
        super.removeDetachedView(view, z);
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public void requestChildFocus(View view, View view2) {
        if (!this.f869.mo311(this, view, view2) && view2 != null) {
            m570(view, view2);
        }
        super.requestChildFocus(view, view2);
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final boolean requestChildRectangleOnScreen(View view, Rect rect, boolean z) {
        return this.f869.mo263(this, view, rect, z);
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final void requestDisallowInterceptTouchEvent(boolean z) {
        ArrayList arrayList = this.f872;
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            ((C0856) arrayList.get(i)).getClass();
        }
        super.requestDisallowInterceptTouchEvent(z);
    }

    @Override // android.view.View, android.view.ViewParent
    public final void requestLayout() {
        if (this.f867 != 0 || this.f898) {
            this.f909 = true;
        } else {
            super.requestLayout();
        }
    }

    @Override // android.view.View
    public final void scrollBy(int i, int i2) {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 == null || this.f898) {
            return;
        }
        boolean zMo312 = abstractC0421.mo312();
        boolean zMo333 = this.f869.mo333();
        if (zMo312 || zMo333) {
            if (!zMo312) {
                i = 0;
            }
            if (!zMo333) {
                i2 = 0;
            }
            m574(i, i2, null, 0);
        }
    }

    @Override // android.view.View
    public final void scrollTo(int i, int i2) {
    }

    @Override // android.view.View, android.view.accessibility.AccessibilityEventSource
    public final void sendAccessibilityEventUnchecked(AccessibilityEvent accessibilityEvent) {
        if (!m587()) {
            super.sendAccessibilityEventUnchecked(accessibilityEvent);
        } else {
            int contentChangeTypes = accessibilityEvent != null ? accessibilityEvent.getContentChangeTypes() : 0;
            this.f860 |= contentChangeTypes != 0 ? contentChangeTypes : 0;
        }
    }

    public void setAccessibilityDelegateCompat(C1407 c1407) {
        this.f870 = c1407;
        AbstractC2746.m6649(this, c1407);
    }

    public void setAdapter(AbstractC2416 abstractC2416) {
        setLayoutFrozen(false);
        AbstractC2416 abstractC24162 = this.f900;
        C0015 c0015 = this.f897;
        if (abstractC24162 != null) {
            abstractC24162.f9416.unregisterObserver(c0015);
            this.f900.mo6142(this);
        }
        AbstractC0090 abstractC0090 = this.f884;
        if (abstractC0090 != null) {
            abstractC0090.mo1152();
        }
        AbstractC0421 abstractC0421 = this.f869;
        C2772 c2772 = this.f887;
        if (abstractC0421 != null) {
            abstractC0421.mo299(c2772);
            this.f869.m1808(c2772);
        }
        c2772.f10660.clear();
        c2772.m6691();
        C4132 c4132 = this.f918;
        c4132.m9037((ArrayList) c4132.f15793);
        c4132.m9037((ArrayList) c4132.f15796);
        c4132.f15795 = 0;
        AbstractC2416 abstractC24163 = this.f900;
        this.f900 = abstractC2416;
        if (abstractC2416 != null) {
            abstractC2416.f9416.registerObserver(c0015);
            abstractC2416.mo6141(this);
        }
        AbstractC0421 abstractC04212 = this.f869;
        if (abstractC04212 != null) {
            abstractC04212.mo303(abstractC24163, this.f900);
        }
        AbstractC2416 abstractC24164 = this.f900;
        c2772.f10660.clear();
        c2772.m6691();
        c2772.m6695(abstractC24163, true);
        C4747 c4747M6685 = c2772.m6685();
        if (abstractC24163 != null) {
            c4747M6685.f18052--;
        }
        if (c4747M6685.f18052 == 0) {
            SparseArray sparseArray = c4747M6685.f18054;
            for (int i = 0; i < sparseArray.size(); i++) {
                C5236 c5236 = (C5236) sparseArray.valueAt(i);
                ArrayList arrayList = c5236.f19745;
                int size = arrayList.size();
                int i2 = 0;
                while (i2 < size) {
                    Object obj = arrayList.get(i2);
                    i2++;
                    ᵹˊᵫˋ.ːˏᵟᵯ(((AbstractC4793) obj).f18236);
                }
                c5236.f19745.clear();
            }
        }
        if (abstractC24164 != null) {
            c4747M6685.f18052++;
        }
        c2772.m6687();
        this.f899.f6059 = true;
        m562(false);
        requestLayout();
    }

    public void setChildDrawingOrderCallback(InterfaceC4762 interfaceC4762) {
        if (interfaceC4762 == null) {
            return;
        }
        setChildrenDrawingOrderEnabled(false);
    }

    @Override // android.view.ViewGroup
    public void setClipToPadding(boolean z) {
        if (z != this.f879) {
            this.f896 = null;
            this.f862 = null;
            this.f877 = null;
            this.f868 = null;
        }
        this.f879 = z;
        super.setClipToPadding(z);
        if (this.f852) {
            requestLayout();
        }
    }

    public void setEdgeEffectFactory(AbstractC0483 abstractC0483) {
        abstractC0483.getClass();
        this.f875 = abstractC0483;
        this.f896 = null;
        this.f862 = null;
        this.f877 = null;
        this.f868 = null;
    }

    public void setHasFixedSize(boolean z) {
        this.f885 = z;
    }

    public void setItemAnimator(AbstractC0090 abstractC0090) {
        AbstractC0090 abstractC00902 = this.f884;
        if (abstractC00902 != null) {
            abstractC00902.mo1152();
            this.f884.f1308 = null;
        }
        this.f884 = abstractC0090;
        if (abstractC0090 != null) {
            abstractC0090.f1308 = this.f858;
        }
    }

    public void setItemViewCacheSize(int i) {
        C2772 c2772 = this.f887;
        c2772.f10659 = i;
        c2772.m6684();
    }

    @Deprecated
    public void setLayoutFrozen(boolean z) {
        suppressLayout(z);
    }

    public void setLayoutManager(AbstractC0421 abstractC0421) {
        RecyclerView recyclerView;
        if (abstractC0421 == this.f869) {
            return;
        }
        m551();
        AbstractC0421 abstractC04212 = this.f869;
        C2772 c2772 = this.f887;
        if (abstractC04212 != null) {
            AbstractC0090 abstractC0090 = this.f884;
            if (abstractC0090 != null) {
                abstractC0090.mo1152();
            }
            this.f869.mo299(c2772);
            this.f869.m1808(c2772);
            c2772.f10660.clear();
            c2772.m6691();
            if (this.f922) {
                AbstractC0421 abstractC04213 = this.f869;
                abstractC04213.f2357 = false;
                abstractC04213.mo503(this);
            }
            this.f869.m1803(null);
            this.f869 = null;
        } else {
            c2772.f10660.clear();
            c2772.m6691();
        }
        C2196 c2196 = this.f924;
        ((C1705) c2196.f8725).m4709();
        ArrayList arrayList = (ArrayList) c2196.f8726;
        int size = arrayList.size() - 1;
        while (true) {
            recyclerView = (RecyclerView) ((ᵢʒʡᵟ) c2196.f8723).ᵜᵪʾ;
            if (size < 0) {
                break;
            }
            AbstractC4793 abstractC4793M539 = m539((View) arrayList.get(size));
            if (abstractC4793M539 != null) {
                int i = abstractC4793M539.f18235;
                if (recyclerView.m587()) {
                    abstractC4793M539.f18234 = i;
                    recyclerView.f919.add(abstractC4793M539);
                } else {
                    abstractC4793M539.f18236.setImportantForAccessibility(i);
                }
                abstractC4793M539.f18235 = 0;
            }
            arrayList.remove(size);
            size--;
        }
        int childCount = recyclerView.getChildCount();
        for (int i2 = 0; i2 < childCount; i2++) {
            View childAt = recyclerView.getChildAt(i2);
            AbstractC4793 abstractC4793M5392 = m539(childAt);
            AbstractC2416 abstractC2416 = recyclerView.f900;
            if (abstractC2416 != null && abstractC4793M5392 != null) {
                abstractC2416.m6136(abstractC4793M5392);
            }
            childAt.clearAnimation();
        }
        recyclerView.removeAllViews();
        this.f869 = abstractC0421;
        if (abstractC0421 != null) {
            if (abstractC0421.f2347 != null) {
                StringBuilder sb = new StringBuilder("LayoutManager ");
                sb.append(abstractC0421);
                C4468.m9513(sb, " is already attached to a RecyclerView:", abstractC0421.f2347.m600());
                return;
            } else {
                abstractC0421.m1803(this);
                if (this.f922) {
                    AbstractC0421 abstractC04214 = this.f869;
                    abstractC04214.f2357 = true;
                    abstractC04214.mo817(this);
                }
            }
        }
        c2772.m6684();
        requestLayout();
    }

    @Override // android.view.ViewGroup
    @Deprecated
    public void setLayoutTransition(LayoutTransition layoutTransition) {
        if (layoutTransition == null) {
            super.setLayoutTransition(null);
        } else {
            ᵕᵩʽᵲ.ᵮᵣᵗˈ("Providing a LayoutTransition into RecyclerView is not supported. Please use setItemAnimator() instead for animating changes to the items in this RecyclerView");
        }
    }

    @Override // android.view.View
    public void setNestedScrollingEnabled(boolean z) {
        C4045 scrollingChildHelper = getScrollingChildHelper();
        if (scrollingChildHelper.f15524) {
            ViewGroup viewGroup = scrollingChildHelper.f15521;
            WeakHashMap weakHashMap = AbstractC2746.f10556;
            viewGroup.stopNestedScroll();
        }
        scrollingChildHelper.f15524 = z;
    }

    public void setOnFlingListener(AbstractC1958 abstractC1958) {
        this.f916 = abstractC1958;
    }

    @Deprecated
    public void setOnScrollListener(AbstractC3732 abstractC3732) {
        this.f927 = abstractC3732;
    }

    public void setPreserveFocusAfterLayout(boolean z) {
        this.f893 = z;
    }

    public void setRecycledViewPool(C4747 c4747) {
        C2772 c2772 = this.f887;
        RecyclerView recyclerView = c2772.f10657;
        c2772.m6695(recyclerView.f900, false);
        if (c2772.f10661 != null) {
            r1.f18052--;
        }
        c2772.f10661 = c4747;
        if (c4747 != null && recyclerView.getAdapter() != null) {
            c2772.f10661.f18052++;
        }
        c2772.m6687();
    }

    @Deprecated
    public void setRecyclerListener(InterfaceC2496 interfaceC2496) {
        this.f861 = interfaceC2496;
    }

    public void setScrollState(int i) {
        C1531 c1531;
        if (i == this.f890) {
            return;
        }
        if (f843) {
            new Exception();
        }
        this.f890 = i;
        if (i != 2) {
            RunnableC4854 runnableC4854 = this.f921;
            runnableC4854.f18515.removeCallbacks(runnableC4854);
            runnableC4854.f18517.abortAnimation();
            AbstractC0421 abstractC0421 = this.f869;
            if (abstractC0421 != null && (c1531 = abstractC0421.f2352) != null) {
                c1531.m4336();
            }
        }
        AbstractC0421 abstractC04212 = this.f869;
        if (abstractC04212 != null) {
            abstractC04212.mo321(i);
        }
        AbstractC3732 abstractC3732 = this.f927;
        if (abstractC3732 != null) {
            abstractC3732.mo8398(i);
        }
        ArrayList arrayList = this.f902;
        if (arrayList != null) {
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                ((AbstractC3732) this.f902.get(size)).mo8398(i);
            }
        }
    }

    public void setScrollingTouchSlop(int i) {
        ViewConfiguration viewConfiguration = ViewConfiguration.get(getContext());
        if (i != 1) {
            this.f926 = viewConfiguration.getScaledTouchSlop();
        } else {
            this.f926 = viewConfiguration.getScaledPagingTouchSlop();
        }
    }

    public void setViewCacheExtension(AbstractC5320 abstractC5320) {
        this.f887.getClass();
    }

    @Override // android.view.View
    public final boolean startNestedScroll(int i) {
        return getScrollingChildHelper().m8851(i, 0);
    }

    @Override // android.view.View
    public final void stopNestedScroll() {
        getScrollingChildHelper().m8849(0);
    }

    @Override // android.view.ViewGroup
    public final void suppressLayout(boolean z) {
        if (z != this.f898) {
            m597("Do not suppressLayout in layout or scroll");
            if (z) {
                long jUptimeMillis = SystemClock.uptimeMillis();
                onTouchEvent(MotionEvent.obtain(jUptimeMillis, jUptimeMillis, 3, 0.0f, 0.0f, 0));
                this.f898 = true;
                this.f871 = true;
                m551();
                return;
            }
            this.f898 = false;
            if (this.f909 && this.f869 != null && this.f900 != null) {
                requestLayout();
            }
            this.f909 = false;
        }
    }

    /* JADX INFO: renamed from: ʽᵡᵢᵾ, reason: contains not printable characters */
    public final boolean m543() {
        return !this.f852 || this.f894 || this.f918.m9052();
    }

    /* JADX INFO: renamed from: ʿᵿʽᵞ, reason: contains not printable characters */
    public void m544(int i, int i2) {
    }

    /* JADX INFO: renamed from: ˀᵗ, reason: contains not printable characters */
    public final void m545() {
        this.f903++;
    }

    /* JADX INFO: renamed from: ˀᵭ, reason: contains not printable characters */
    public final int m546(AbstractC4793 abstractC4793) {
        if ((abstractC4793.f18238 & 524) == 0 && abstractC4793.m9997()) {
            int i = abstractC4793.f18239;
            ArrayList arrayList = (ArrayList) this.f918.f15793;
            int size = arrayList.size();
            for (int i2 = 0; i2 < size; i2++) {
                C2112 c2112 = (C2112) arrayList.get(i2);
                int i3 = c2112.f8409;
                if (i3 != 1) {
                    if (i3 == 2) {
                        int i4 = c2112.f8407;
                        if (i4 <= i) {
                            int i5 = c2112.f8410;
                            if (i4 + i5 <= i) {
                                i -= i5;
                            }
                        } else {
                            continue;
                        }
                    } else if (i3 == 8) {
                        int i6 = c2112.f8407;
                        if (i6 == i) {
                            i = c2112.f8410;
                        } else {
                            if (i6 < i) {
                                i--;
                            }
                            if (c2112.f8410 <= i) {
                                i++;
                            }
                        }
                    }
                } else if (c2112.f8407 <= i) {
                    i += c2112.f8410;
                }
            }
            return i;
        }
        return -1;
    }

    /* JADX INFO: renamed from: ˁʢᵛ, reason: contains not printable characters */
    public final void m547(int i, int i2, boolean z) {
        int i3 = i + i2;
        C2196 c2196 = this.f924;
        int iM5722 = c2196.m5722();
        for (int i4 = 0; i4 < iM5722; i4++) {
            AbstractC4793 abstractC4793M539 = m539(c2196.m5711(i4));
            if (abstractC4793M539 != null && !abstractC4793M539.m9994()) {
                int i5 = abstractC4793M539.f18239;
                C1499 c1499 = this.f899;
                if (i5 >= i3) {
                    if (f843) {
                        abstractC4793M539.toString();
                    }
                    abstractC4793M539.m9987(-i2, z);
                    c1499.f6059 = true;
                } else if (i5 >= i) {
                    if (f843) {
                        abstractC4793M539.toString();
                    }
                    abstractC4793M539.m9996(8);
                    abstractC4793M539.m9987(-i2, z);
                    abstractC4793M539.f18239 = i - 1;
                    c1499.f6059 = true;
                }
            }
        }
        C2772 c2772 = this.f887;
        ArrayList arrayList = c2772.f10658;
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            AbstractC4793 abstractC4793 = (AbstractC4793) arrayList.get(size);
            if (abstractC4793 != null) {
                int i6 = abstractC4793.f18239;
                if (i6 >= i3) {
                    if (f843) {
                        abstractC4793.toString();
                    }
                    abstractC4793.m9987(-i2, z);
                } else if (i6 >= i) {
                    abstractC4793.m9996(8);
                    c2772.m6683(size);
                }
            }
        }
        requestLayout();
    }

    /* JADX WARN: Code restructure failed: missing block: B:139:0x01c8, code lost:
    
        if (r5 == false) goto L141;
     */
    /* JADX WARN: Removed duplicated region for block: B:130:0x01ad  */
    /* JADX WARN: Removed duplicated region for block: B:131:0x01af  */
    /* JADX INFO: renamed from: ˁˌᵩ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean m548(int i, int i2, int i3, int i4) {
        int iMax;
        int i5;
        C1612 c1612;
        AbstractC0650 abstractC0650;
        androidx.leanback.widget.GridLayoutManager gridLayoutManager;
        int minFlingVelocity;
        AbstractC0650 abstractC06502;
        int iMo1221;
        boolean z;
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 == null || this.f898) {
            return false;
        }
        boolean zMo312 = abstractC0421.mo312();
        boolean zMo333 = this.f869.mo333();
        int i6 = (!zMo312 || Math.abs(i) < i3) ? 0 : i;
        int iMax2 = (!zMo333 || Math.abs(i2) < i3) ? 0 : i2;
        if (i6 == 0 && iMax2 == 0) {
            return false;
        }
        if (i6 == 0) {
            iMax = 0;
        } else {
            EdgeEffect edgeEffect = this.f868;
            if (edgeEffect == null || AbstractC3481.m7927(edgeEffect) == 0.0f) {
                EdgeEffect edgeEffect2 = this.f877;
                if (edgeEffect2 != null && AbstractC3481.m7927(edgeEffect2) != 0.0f) {
                    if (m591(this.f877, i6, getWidth())) {
                        this.f877.onAbsorb(i6);
                        i6 = 0;
                    }
                    iMax = i6;
                    i6 = 0;
                }
                iMax = 0;
            } else {
                int i7 = -i6;
                if (m591(this.f868, i7, getWidth())) {
                    this.f868.onAbsorb(i7);
                    i6 = 0;
                }
                iMax = i6;
                i6 = 0;
            }
        }
        if (iMax2 == 0) {
            i5 = iMax2;
            iMax2 = 0;
        } else {
            EdgeEffect edgeEffect3 = this.f862;
            if (edgeEffect3 == null || AbstractC3481.m7927(edgeEffect3) == 0.0f) {
                EdgeEffect edgeEffect4 = this.f896;
                if (edgeEffect4 != null && AbstractC3481.m7927(edgeEffect4) != 0.0f) {
                    if (m591(this.f896, iMax2, getHeight())) {
                        this.f896.onAbsorb(iMax2);
                        iMax2 = 0;
                    }
                    i5 = 0;
                }
                i5 = iMax2;
                iMax2 = 0;
            } else {
                int i8 = -iMax2;
                if (m591(this.f862, i8, getHeight())) {
                    this.f862.onAbsorb(i8);
                    iMax2 = 0;
                }
                i5 = 0;
            }
        }
        RunnableC4854 runnableC4854 = this.f921;
        if (iMax != 0 || iMax2 != 0) {
            int i9 = -i4;
            iMax = Math.max(i9, Math.min(iMax, i4));
            iMax2 = Math.max(i9, Math.min(iMax2, i4));
            m567(1);
            runnableC4854.m10094(iMax, iMax2);
        }
        if (i6 != 0 || i5 != 0) {
            float f = i6;
            float f2 = i5;
            if (dispatchNestedPreFling(f, f2)) {
                return false;
            }
            boolean z2 = zMo312 || zMo333;
            dispatchNestedFling(f, f2, z2);
            AbstractC1958 abstractC1958 = this.f916;
            if (abstractC1958 != null && (gridLayoutManager = (abstractC0650 = (c1612 = (C1612) abstractC1958).f6457).f3040) != null && abstractC0650.getAdapter() != null && (Math.abs(i5) > (minFlingVelocity = c1612.f6457.getMinFlingVelocity()) || Math.abs(i6) > minFlingVelocity)) {
                if (gridLayoutManager.f393 >= 0 && c1612.f6457.getChildCount() != 0) {
                    boolean z3 = gridLayoutManager.f403 == 0;
                    c1612.f6454.fling(0, 0, z3 ? i6 : 0, z3 ? 0 : i5, Integer.MIN_VALUE, Integer.MAX_VALUE, Integer.MIN_VALUE, Integer.MAX_VALUE);
                    Scroller scroller = c1612.f6454;
                    int finalX = z3 ? scroller.getFinalX() : scroller.getFinalY();
                    if (finalX != 0) {
                        int i10 = finalX > 0 ? finalX : -finalX;
                        int i11 = 0;
                        int iM334 = 0;
                        while (true) {
                            int childCount = c1612.f6457.getChildCount();
                            abstractC06502 = c1612.f6457;
                            if (i11 >= childCount) {
                                break;
                            }
                            iM334 += gridLayoutManager.m334(abstractC06502.getChildAt(i11));
                            i11++;
                        }
                        int childCount2 = iM334 / abstractC06502.getChildCount();
                        int iRound = childCount2 == 0 ? 1 : Math.round(i10 / childCount2);
                        if (iRound == 0) {
                            iRound = 1;
                        }
                        if (finalX <= 0) {
                            iRound = -iRound;
                        }
                        iMo1221 = gridLayoutManager.f421.mo1221(gridLayoutManager.f393, gridLayoutManager.m1788(), iRound);
                    }
                    if (iMo1221 != -1) {
                        z = false;
                    } else {
                        gridLayoutManager.m292(iMo1221, 0, true);
                        z = c1612.f6457.getScrollState() == 2 || gridLayoutManager.m1785();
                        c1612.f6455 = z;
                    }
                }
                iMo1221 = -1;
                if (iMo1221 != -1) {
                }
            }
            if (!z2) {
                return false;
            }
            m567(1);
            int i12 = -i4;
            runnableC4854.m10094(Math.max(i12, Math.min(i6, i4)), Math.max(i12, Math.min(i5, i4)));
            return true;
        }
        if (iMax == 0 && iMax2 == 0) {
            return false;
        }
        return true;
    }

    /* JADX INFO: renamed from: ˁᵺˈ, reason: contains not printable characters */
    public final void m549() {
        boolean zIsFinished;
        EdgeEffect edgeEffect = this.f868;
        if (edgeEffect != null) {
            edgeEffect.onRelease();
            zIsFinished = this.f868.isFinished();
        } else {
            zIsFinished = false;
        }
        EdgeEffect edgeEffect2 = this.f862;
        if (edgeEffect2 != null) {
            edgeEffect2.onRelease();
            zIsFinished |= this.f862.isFinished();
        }
        EdgeEffect edgeEffect3 = this.f877;
        if (edgeEffect3 != null) {
            edgeEffect3.onRelease();
            zIsFinished |= this.f877.isFinished();
        }
        EdgeEffect edgeEffect4 = this.f896;
        if (edgeEffect4 != null) {
            edgeEffect4.onRelease();
            zIsFinished |= this.f896.isFinished();
        }
        if (zIsFinished) {
            postInvalidateOnAnimation();
        }
    }

    /* JADX INFO: renamed from: ˆʤᵳ, reason: contains not printable characters */
    public void mo550(int i, int i2) {
        m575(i, i2, false);
    }

    /* JADX INFO: renamed from: ˆˀᵯ, reason: contains not printable characters */
    public final void m551() {
        C1531 c1531;
        setScrollState(0);
        RunnableC4854 runnableC4854 = this.f921;
        runnableC4854.f18515.removeCallbacks(runnableC4854);
        runnableC4854.f18517.abortAnimation();
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 == null || (c1531 = abstractC0421.f2352) == null) {
            return;
        }
        c1531.m4336();
    }

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public final void m552(C1499 c1499) {
        if (getScrollState() != 2) {
            c1499.f6051 = 0;
            c1499.f6049 = 0;
        } else {
            OverScroller overScroller = this.f921.f18517;
            c1499.f6051 = overScroller.getFinalX() - overScroller.getCurrX();
            c1499.f6049 = overScroller.getFinalY() - overScroller.getCurrY();
        }
    }

    /* JADX INFO: renamed from: ˈⁱᵡ, reason: contains not printable characters */
    public boolean m553() {
        return isChildrenDrawingOrderEnabled();
    }

    /* JADX INFO: renamed from: ˉˆᵗ, reason: contains not printable characters */
    public final void m554(AbstractC4793 abstractC4793, C4240 c4240) {
        abstractC4793.f18238 &= -8193;
        boolean z = this.f899.f6045;
        ʽᵺᴵ r1 = this.f866;
        if (z && abstractC4793.m9989() && !abstractC4793.m9995() && !abstractC4793.m9994()) {
            ((C3162) r1.ᵔᵖᵹᵫ).m7272(m561(abstractC4793), abstractC4793);
        }
        C4053 c4053 = (C4053) r1.ᵜᵪʾ;
        C2522 c2522M6239 = (C2522) c4053.get(abstractC4793);
        if (c2522M6239 == null) {
            c2522M6239 = C2522.m6239();
            c4053.put(abstractC4793, c2522M6239);
        }
        c2522M6239.f9736 = c4240;
        c2522M6239.f9738 |= 4;
    }

    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public final void m555() {
        m592();
        m545();
        C1499 c1499 = this.f899;
        c1499.m4297(6);
        this.f918.m9049();
        c1499.f6050 = this.f900.mo4258();
        c1499.f6047 = 0;
        if (this.f910 != null) {
            AbstractC2416 abstractC2416 = this.f900;
            int iM8218 = AbstractC3653.m8218(abstractC2416.f9415);
            if (iM8218 == 1 ? abstractC2416.mo4258() > 0 : iM8218 != 2) {
                Parcelable parcelable = this.f910.f1976;
                if (parcelable != null) {
                    this.f869.mo266(parcelable);
                }
                this.f910 = null;
            }
        }
        c1499.f6055 = false;
        this.f869.mo316(this.f887, c1499);
        c1499.f6059 = false;
        c1499.f6053 = c1499.f6053 && this.f884 != null;
        c1499.f6057 = 4;
        m569(true);
        m594(false);
    }

    /* JADX WARN: Removed duplicated region for block: B:15:0x0028  */
    /* JADX INFO: renamed from: ˉᵵᵜ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final AbstractC4793 m556(int i, boolean z) {
        C2196 c2196 = this.f924;
        int iM5722 = c2196.m5722();
        AbstractC4793 abstractC4793 = null;
        for (int i2 = 0; i2 < iM5722; i2++) {
            AbstractC4793 abstractC4793M539 = m539(c2196.m5711(i2));
            if (abstractC4793M539 != null && !abstractC4793M539.m9995()) {
                if (z) {
                    if (abstractC4793M539.f18239 != i) {
                        continue;
                    } else {
                        if (!((ArrayList) c2196.f8726).contains(abstractC4793M539.f18236)) {
                            return abstractC4793M539;
                        }
                        abstractC4793 = abstractC4793M539;
                    }
                } else if (abstractC4793M539.m9999() != i) {
                    continue;
                }
            }
        }
        return abstractC4793;
    }

    /* JADX INFO: renamed from: ˊˌˊ, reason: contains not printable characters */
    public final void m557() {
        C2196 c2196 = this.f924;
        int iM5722 = c2196.m5722();
        for (int i = 0; i < iM5722; i++) {
            ((C5319) c2196.m5711(i).getLayoutParams()).f20073 = true;
        }
        ArrayList arrayList = this.f887.f10658;
        int size = arrayList.size();
        for (int i2 = 0; i2 < size; i2++) {
            C5319 c5319 = (C5319) ((AbstractC4793) arrayList.get(i2)).f18236.getLayoutParams();
            if (c5319 != null) {
                c5319.f20073 = true;
            }
        }
    }

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public final void m558() {
        C2522 c2522;
        View viewM565;
        C1499 c1499 = this.f899;
        c1499.m4297(1);
        m552(c1499);
        byte b = 0;
        c1499.f6058 = false;
        m592();
        ʽᵺᴵ r3 = this.f866;
        C4053 c4053 = (C4053) r3.ᵜᵪʾ;
        C4053 c40532 = (C4053) r3.ᵜᵪʾ;
        c4053.clear();
        C3162 c3162 = (C3162) r3.ᵔᵖᵹᵫ;
        c3162.m7271();
        m545();
        m585();
        AbstractC4793 abstractC4793M577 = null;
        View focusedChild = (this.f893 && hasFocus() && this.f900 != null) ? getFocusedChild() : null;
        if (focusedChild != null && (viewM565 = m565(focusedChild)) != null) {
            abstractC4793M577 = m577(viewM565);
        }
        if (abstractC4793M577 == null) {
            c1499.f6048 = -1L;
            c1499.f6052 = -1;
            c1499.f6046 = -1;
        } else {
            c1499.f6048 = this.f900.f9414 ? abstractC4793M577.f18244 : -1L;
            c1499.f6052 = this.f894 ? -1 : abstractC4793M577.m9995() ? abstractC4793M577.f18243 : abstractC4793M577.m9984();
            View focusedChild2 = abstractC4793M577.f18236;
            int id = focusedChild2.getId();
            while (!focusedChild2.isFocused() && (focusedChild2 instanceof ViewGroup) && focusedChild2.hasFocus()) {
                focusedChild2 = ((ViewGroup) focusedChild2).getFocusedChild();
                if (focusedChild2.getId() != -1) {
                    id = focusedChild2.getId();
                }
            }
            c1499.f6046 = id;
        }
        c1499.f6045 = c1499.f6053 && this.f857;
        this.f857 = false;
        this.f901 = false;
        c1499.f6055 = c1499.f6056;
        c1499.f6050 = this.f900.mo4258();
        m572(this.f907);
        boolean z = c1499.f6053;
        int i = 5;
        C2196 c2196 = this.f924;
        if (z) {
            int iM5716 = c2196.m5716();
            for (int i2 = 0; i2 < iM5716; i2++) {
                AbstractC4793 abstractC4793M539 = m539(c2196.m5734(i2));
                if (!abstractC4793M539.m9994() && (!abstractC4793M539.m9986() || this.f900.f9414)) {
                    AbstractC0090 abstractC0090 = this.f884;
                    AbstractC0090.m1145(abstractC4793M539);
                    abstractC4793M539.m9991();
                    abstractC0090.getClass();
                    C4240 c4240 = new C4240(b, i);
                    c4240.m9211(abstractC4793M539);
                    C2522 c2522M6239 = (C2522) c40532.get(abstractC4793M539);
                    if (c2522M6239 == null) {
                        c2522M6239 = C2522.m6239();
                        c40532.put(abstractC4793M539, c2522M6239);
                    }
                    c2522M6239.f9736 = c4240;
                    c2522M6239.f9738 |= 4;
                    if (c1499.f6045 && abstractC4793M539.m9989() && !abstractC4793M539.m9995() && !abstractC4793M539.m9994() && !abstractC4793M539.m9986()) {
                        c3162.m7272(m561(abstractC4793M539), abstractC4793M539);
                    }
                }
            }
        }
        if (c1499.f6056) {
            int iM5722 = c2196.m5722();
            for (int i3 = 0; i3 < iM5722; i3++) {
                AbstractC4793 abstractC4793M5392 = m539(c2196.m5711(i3));
                if (f848 && abstractC4793M5392.f18239 == -1 && !abstractC4793M5392.m9995()) {
                    ᵕᵩʽᵲ.ᵪᵹᵥᵻ("view holder cannot have position -1 unless it is removed".concat(m600()));
                    return;
                }
                if (!abstractC4793M5392.m9994() && abstractC4793M5392.f18243 == -1) {
                    abstractC4793M5392.f18243 = abstractC4793M5392.f18239;
                }
            }
            boolean z2 = c1499.f6059;
            c1499.f6059 = false;
            this.f869.mo316(this.f887, c1499);
            c1499.f6059 = z2;
            for (int i4 = 0; i4 < c2196.m5716(); i4++) {
                AbstractC4793 abstractC4793M5393 = m539(c2196.m5734(i4));
                if (!abstractC4793M5393.m9994() && ((c2522 = (C2522) c40532.get(abstractC4793M5393)) == null || (c2522.f9738 & 4) == 0)) {
                    AbstractC0090.m1145(abstractC4793M5393);
                    boolean z3 = (abstractC4793M5393.f18238 & 8192) != 0;
                    AbstractC0090 abstractC00902 = this.f884;
                    abstractC4793M5393.m9991();
                    abstractC00902.getClass();
                    C4240 c42402 = new C4240(b, i);
                    c42402.m9211(abstractC4793M5393);
                    if (z3) {
                        m554(abstractC4793M5393, c42402);
                    } else {
                        C2522 c2522M62392 = (C2522) c40532.get(abstractC4793M5393);
                        if (c2522M62392 == null) {
                            c2522M62392 = C2522.m6239();
                            c40532.put(abstractC4793M5393, c2522M62392);
                        }
                        c2522M62392.f9738 |= 2;
                        c2522M62392.f9736 = c42402;
                    }
                }
            }
            m593();
        } else {
            m593();
        }
        m569(true);
        m594(false);
        c1499.f6057 = 2;
    }

    /* JADX INFO: renamed from: ˊᵨᵧ, reason: contains not printable characters */
    public final void m559(int i, int i2, int i3, int i4, int[] iArr, int i5, int[] iArr2) {
        getScrollingChildHelper().m8846(i, i2, i3, i4, iArr, i5, iArr2);
    }

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final void m560(AbstractC5290 abstractC5290) {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 != null) {
            abstractC0421.mo510("Cannot add item decoration during a scroll  or layout");
        }
        ArrayList arrayList = this.f874;
        if (arrayList.isEmpty()) {
            setWillNotDraw(false);
        }
        arrayList.add(abstractC5290);
        m557();
        requestLayout();
    }

    /* JADX INFO: renamed from: ˊᵾʽʼ, reason: contains not printable characters */
    public final long m561(AbstractC4793 abstractC4793) {
        return this.f900.f9414 ? abstractC4793.f18244 : abstractC4793.f18239;
    }

    /* JADX INFO: renamed from: ˋʿᐧ, reason: contains not printable characters */
    public final void m562(boolean z) {
        this.f855 = z | this.f855;
        this.f894 = true;
        C2196 c2196 = this.f924;
        int iM5722 = c2196.m5722();
        for (int i = 0; i < iM5722; i++) {
            AbstractC4793 abstractC4793M539 = m539(c2196.m5711(i));
            if (abstractC4793M539 != null && !abstractC4793M539.m9994()) {
                abstractC4793M539.m9996(6);
            }
        }
        m557();
        C2772 c2772 = this.f887;
        ArrayList arrayList = c2772.f10658;
        int size = arrayList.size();
        for (int i2 = 0; i2 < size; i2++) {
            AbstractC4793 abstractC4793 = (AbstractC4793) arrayList.get(i2);
            if (abstractC4793 != null) {
                abstractC4793.m9996(6);
                abstractC4793.m9996(1024);
            }
        }
        AbstractC2416 abstractC2416 = c2772.f10657.f900;
        if (abstractC2416 == null || !abstractC2416.f9414) {
            c2772.m6691();
        }
    }

    /* JADX INFO: renamed from: ˋᵯᵩ, reason: contains not printable characters */
    public final int m563(int i, float f) {
        float height = f / getHeight();
        float width = i / getWidth();
        EdgeEffect edgeEffect = this.f868;
        float f2 = 0.0f;
        if (edgeEffect == null || AbstractC3481.m7927(edgeEffect) == 0.0f) {
            EdgeEffect edgeEffect2 = this.f877;
            if (edgeEffect2 != null && AbstractC3481.m7927(edgeEffect2) != 0.0f) {
                boolean zCanScrollHorizontally = canScrollHorizontally(1);
                EdgeEffect edgeEffect3 = this.f877;
                if (zCanScrollHorizontally) {
                    edgeEffect3.onRelease();
                } else {
                    float fM7921 = AbstractC3481.m7921(edgeEffect3, width, height);
                    if (AbstractC3481.m7927(this.f877) == 0.0f) {
                        this.f877.onRelease();
                    }
                    f2 = fM7921;
                }
                invalidate();
            }
        } else {
            boolean zCanScrollHorizontally2 = canScrollHorizontally(-1);
            EdgeEffect edgeEffect4 = this.f868;
            if (zCanScrollHorizontally2) {
                edgeEffect4.onRelease();
            } else {
                float f3 = -AbstractC3481.m7921(edgeEffect4, -width, 1.0f - height);
                if (AbstractC3481.m7927(this.f868) == 0.0f) {
                    this.f868.onRelease();
                }
                f2 = f3;
            }
            invalidate();
        }
        return Math.round(f2 * getWidth());
    }

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final void m564(int i, int i2) {
        this.f904++;
        int scrollX = getScrollX();
        int scrollY = getScrollY();
        onScrollChanged(scrollX, scrollY, scrollX - i, scrollY - i2);
        m544(i, i2);
        AbstractC3732 abstractC3732 = this.f927;
        if (abstractC3732 != null) {
            abstractC3732.mo8397(this);
        }
        ArrayList arrayList = this.f902;
        if (arrayList != null) {
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                ((AbstractC3732) this.f902.get(size)).mo8397(this);
            }
        }
        this.f904--;
    }

    /* JADX INFO: renamed from: ˌᵨʠᵫ, reason: contains not printable characters */
    public final View m565(View view) {
        ViewParent parent = view.getParent();
        while (parent != null && parent != this && (parent instanceof View)) {
            view = parent;
            parent = view.getParent();
        }
        if (parent == this) {
            return view;
        }
        return null;
    }

    /* JADX INFO: renamed from: ˏʜᵪ, reason: contains not printable characters */
    public void mo566(int i, int i2) {
        mo550(i, i2);
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: ˏʽˊᵰ, reason: contains not printable characters */
    public final void m567(int i) {
        boolean zMo312 = this.f869.mo312();
        int i2 = zMo312;
        if (this.f869.mo333()) {
            i2 = (zMo312 ? 1 : 0) | 2;
        }
        getScrollingChildHelper().m8851(i2, i);
    }

    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public final boolean m568(int i, int i2, int i3, int[] iArr, int[] iArr2) {
        return getScrollingChildHelper().m8845(i, i2, i3, iArr, iArr2);
    }

    /* JADX INFO: renamed from: ˏᵩʨ, reason: contains not printable characters */
    public final void m569(boolean z) {
        int i;
        AccessibilityManager accessibilityManager;
        int i2 = this.f903 - 1;
        this.f903 = i2;
        if (i2 < 1) {
            if (f848 && i2 < 0) {
                ᵕᵩʽᵲ.ᵪᵹᵥᵻ("layout or scroll counter cannot go below zero.Some calls are not matching".concat(m600()));
                return;
            }
            this.f903 = 0;
            if (z) {
                int i3 = this.f860;
                this.f860 = 0;
                if (i3 != 0 && (accessibilityManager = this.f883) != null && accessibilityManager.isEnabled()) {
                    AccessibilityEvent accessibilityEventObtain = AccessibilityEvent.obtain();
                    accessibilityEventObtain.setEventType(2048);
                    accessibilityEventObtain.setContentChangeTypes(i3);
                    sendAccessibilityEventUnchecked(accessibilityEventObtain);
                }
                ArrayList arrayList = this.f919;
                for (int size = arrayList.size() - 1; size >= 0; size--) {
                    AbstractC4793 abstractC4793 = (AbstractC4793) arrayList.get(size);
                    if (abstractC4793.f18236.getParent() == this && !abstractC4793.m9994() && (i = abstractC4793.f18234) != -1) {
                        abstractC4793.f18236.setImportantForAccessibility(i);
                        abstractC4793.f18234 = -1;
                    }
                }
                arrayList.clear();
            }
        }
    }

    /* JADX INFO: renamed from: ːᵝٴᵶ, reason: contains not printable characters */
    public final void m570(View view, View view2) {
        View view3 = view2 != null ? view2 : view;
        int width = view3.getWidth();
        int height = view3.getHeight();
        Rect rect = this.f925;
        rect.set(0, 0, width, height);
        ViewGroup.LayoutParams layoutParams = view3.getLayoutParams();
        if (layoutParams instanceof C5319) {
            C5319 c5319 = (C5319) layoutParams;
            if (!c5319.f20073) {
                Rect rect2 = c5319.f20072;
                rect.left -= rect2.left;
                rect.right += rect2.right;
                rect.top -= rect2.top;
                rect.bottom += rect2.bottom;
            }
        }
        if (view2 != null) {
            offsetDescendantRectToMyCoords(view2, rect);
            offsetRectIntoDescendantCoords(view, rect);
        }
        this.f869.mo820(this, view, this.f925, !this.f852, view2 == null);
    }

    /* JADX INFO: renamed from: ˑʢ, reason: contains not printable characters */
    public final Rect m571(View view) {
        C5319 c5319 = (C5319) view.getLayoutParams();
        boolean z = c5319.f20073;
        Rect rect = c5319.f20072;
        if (!z || (this.f899.f6055 && (c5319.f20074.m9989() || c5319.f20074.m9986()))) {
            return rect;
        }
        rect.set(0, 0, 0, 0);
        ArrayList arrayList = this.f874;
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            Rect rect2 = this.f925;
            rect2.set(0, 0, 0, 0);
            ((AbstractC5290) arrayList.get(i)).mo5450(rect2, view, this);
            rect.left += rect2.left;
            rect.top += rect2.top;
            rect.right += rect2.right;
            rect.bottom += rect2.bottom;
        }
        c5319.f20073 = false;
        return rect;
    }

    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public final void m572(int[] iArr) {
        C2196 c2196 = this.f924;
        int iM5716 = c2196.m5716();
        if (iM5716 == 0) {
            iArr[0] = -1;
            iArr[1] = -1;
            return;
        }
        int i = Integer.MAX_VALUE;
        int i2 = Integer.MIN_VALUE;
        for (int i3 = 0; i3 < iM5716; i3++) {
            AbstractC4793 abstractC4793M539 = m539(c2196.m5734(i3));
            if (!abstractC4793M539.m9994()) {
                int iM9999 = abstractC4793M539.m9999();
                if (iM9999 < i) {
                    i = iM9999;
                }
                if (iM9999 > i2) {
                    i2 = iM9999;
                }
            }
        }
        iArr[0] = i;
        iArr[1] = i2;
    }

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final void m573() {
        if (this.f868 != null) {
            return;
        }
        ((C2084) this.f875).getClass();
        EdgeEffect edgeEffect = new EdgeEffect(getContext());
        this.f868 = edgeEffect;
        if (this.f879) {
            edgeEffect.setSize((getMeasuredHeight() - getPaddingTop()) - getPaddingBottom(), (getMeasuredWidth() - getPaddingLeft()) - getPaddingRight());
        } else {
            edgeEffect.setSize(getMeasuredHeight(), getMeasuredWidth());
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:30:0x00cb  */
    /* JADX WARN: Removed duplicated region for block: B:32:0x00e3  */
    /* JADX WARN: Removed duplicated region for block: B:36:0x0100  */
    /* JADX WARN: Removed duplicated region for block: B:40:0x0108  */
    /* JADX INFO: renamed from: ᵗᵭ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean m574(int i, int i2, MotionEvent motionEvent, int i3) {
        int i4;
        int i5;
        int i6;
        int i7;
        boolean z;
        boolean z2;
        boolean z3;
        m589();
        AbstractC2416 abstractC2416 = this.f900;
        int[] iArr = this.f876;
        if (abstractC2416 != null) {
            iArr[0] = 0;
            iArr[1] = 0;
            m590(iArr, i, i2);
            i4 = iArr[0];
            i5 = iArr[1];
            i6 = i - i4;
            i7 = i2 - i5;
        } else {
            i4 = 0;
            i5 = 0;
            i6 = 0;
            i7 = 0;
        }
        if (!this.f874.isEmpty()) {
            invalidate();
        }
        iArr[0] = 0;
        iArr[1] = 0;
        m559(i4, i5, i6, i7, this.f873, i3, iArr);
        int i8 = iArr[0];
        int i9 = i6 - i8;
        int i10 = iArr[1];
        int i11 = i7 - i10;
        boolean z4 = (i8 == 0 && i10 == 0) ? false : true;
        int i12 = this.f891;
        int[] iArr2 = this.f873;
        int i13 = iArr2[0];
        this.f891 = i12 - i13;
        int i14 = this.f863;
        int i15 = iArr2[1];
        this.f863 = i14 - i15;
        int[] iArr3 = this.f865;
        iArr3[0] = iArr3[0] + i13;
        iArr3[1] = iArr3[1] + i15;
        if (getOverScrollMode() != 2) {
            if (motionEvent == null || ᵫﾞˌ.ᵟᵹᵙ(motionEvent, 8194)) {
                z = true;
                z2 = false;
            } else {
                float x = motionEvent.getX();
                float f = i9;
                float y = motionEvent.getY();
                float f2 = i11;
                if (f < 0.0f) {
                    m573();
                    z = true;
                    z2 = false;
                    AbstractC3481.m7921(this.f868, (-f) / getWidth(), 1.0f - (y / getHeight()));
                } else {
                    z = true;
                    z2 = false;
                    if (f > 0.0f) {
                        m588();
                        AbstractC3481.m7921(this.f877, f / getWidth(), y / getHeight());
                    } else {
                        z3 = false;
                        if (f2 >= 0.0f) {
                            m595();
                            AbstractC3481.m7921(this.f862, (-f2) / getHeight(), x / getWidth());
                        } else {
                            if (f2 > 0.0f) {
                                m579();
                                AbstractC3481.m7921(this.f896, f2 / getHeight(), 1.0f - (x / getWidth()));
                            }
                            if (z3 || f != 0.0f || f2 != 0.0f) {
                                postInvalidateOnAnimation();
                            }
                            if (Build.VERSION.SDK_INT >= 31 && ᵫﾞˌ.ᵟᵹᵙ(motionEvent, 4194304)) {
                                m549();
                            }
                        }
                        z3 = z;
                        if (z3) {
                            postInvalidateOnAnimation();
                            if (Build.VERSION.SDK_INT >= 31) {
                                m549();
                            }
                        }
                    }
                }
                z3 = z;
                if (f2 >= 0.0f) {
                }
                z3 = z;
                if (z3) {
                }
            }
            m580(i, i2);
        } else {
            z = true;
            z2 = false;
        }
        if (i4 != 0 || i5 != 0) {
            m564(i4, i5);
        }
        if (!awakenScrollBars()) {
            invalidate();
        }
        return (!z4 && i4 == 0 && i5 == 0) ? z2 : z;
    }

    /* JADX INFO: renamed from: ᵘᵝ, reason: contains not printable characters */
    public final void m575(int i, int i2, boolean z) {
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 == null || this.f898) {
            return;
        }
        if (!abstractC0421.mo312()) {
            i = 0;
        }
        if (!this.f869.mo333()) {
            i2 = 0;
        }
        if (i == 0 && i2 == 0) {
            return;
        }
        if (z) {
            int i3 = i != 0 ? 1 : 0;
            if (i2 != 0) {
                i3 |= 2;
            }
            getScrollingChildHelper().m8851(i3, 1);
        }
        this.f921.m10093(i, i2, Integer.MIN_VALUE, null);
    }

    /* JADX INFO: renamed from: ᵛˀˊ, reason: contains not printable characters */
    public final void m576(MotionEvent motionEvent) {
        int actionIndex = motionEvent.getActionIndex();
        if (motionEvent.getPointerId(actionIndex) == this.f913) {
            int i = actionIndex == 0 ? 1 : 0;
            this.f913 = motionEvent.getPointerId(i);
            int x = (int) (motionEvent.getX(i) + 0.5f);
            this.f891 = x;
            this.f914 = x;
            int y = (int) (motionEvent.getY(i) + 0.5f);
            this.f863 = y;
            this.f881 = y;
        }
    }

    /* JADX INFO: renamed from: ᵛˑﹳ, reason: contains not printable characters */
    public AbstractC4793 m577(View view) {
        ViewParent parent = view.getParent();
        if (parent == null || parent == this) {
            return m539(view);
        }
        C4468.m9510("View ", view, " is not a direct child of ", this);
        return null;
    }

    /* JADX INFO: renamed from: ᵜᵤ, reason: contains not printable characters */
    public final int m578(int i, float f) {
        float width = f / getWidth();
        float height = i / getHeight();
        EdgeEffect edgeEffect = this.f862;
        float f2 = 0.0f;
        if (edgeEffect == null || AbstractC3481.m7927(edgeEffect) == 0.0f) {
            EdgeEffect edgeEffect2 = this.f896;
            if (edgeEffect2 != null && AbstractC3481.m7927(edgeEffect2) != 0.0f) {
                boolean zCanScrollVertically = canScrollVertically(1);
                EdgeEffect edgeEffect3 = this.f896;
                if (zCanScrollVertically) {
                    edgeEffect3.onRelease();
                } else {
                    float fM7921 = AbstractC3481.m7921(edgeEffect3, height, 1.0f - width);
                    if (AbstractC3481.m7927(this.f896) == 0.0f) {
                        this.f896.onRelease();
                    }
                    f2 = fM7921;
                }
                invalidate();
            }
        } else {
            boolean zCanScrollVertically2 = canScrollVertically(-1);
            EdgeEffect edgeEffect4 = this.f862;
            if (zCanScrollVertically2) {
                edgeEffect4.onRelease();
            } else {
                float f3 = -AbstractC3481.m7921(edgeEffect4, -height, width);
                if (AbstractC3481.m7927(this.f862) == 0.0f) {
                    this.f862.onRelease();
                }
                f2 = f3;
            }
            invalidate();
        }
        return Math.round(f2 * getHeight());
    }

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final void m579() {
        if (this.f896 != null) {
            return;
        }
        ((C2084) this.f875).getClass();
        EdgeEffect edgeEffect = new EdgeEffect(getContext());
        this.f896 = edgeEffect;
        if (this.f879) {
            edgeEffect.setSize((getMeasuredWidth() - getPaddingLeft()) - getPaddingRight(), (getMeasuredHeight() - getPaddingTop()) - getPaddingBottom());
        } else {
            edgeEffect.setSize(getMeasuredWidth(), getMeasuredHeight());
        }
    }

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public final void m580(int i, int i2) {
        boolean zIsFinished;
        EdgeEffect edgeEffect = this.f868;
        if (edgeEffect == null || edgeEffect.isFinished() || i <= 0) {
            zIsFinished = false;
        } else {
            this.f868.onRelease();
            zIsFinished = this.f868.isFinished();
        }
        EdgeEffect edgeEffect2 = this.f877;
        if (edgeEffect2 != null && !edgeEffect2.isFinished() && i < 0) {
            this.f877.onRelease();
            zIsFinished |= this.f877.isFinished();
        }
        EdgeEffect edgeEffect3 = this.f862;
        if (edgeEffect3 != null && !edgeEffect3.isFinished() && i2 > 0) {
            this.f862.onRelease();
            zIsFinished |= this.f862.isFinished();
        }
        EdgeEffect edgeEffect4 = this.f896;
        if (edgeEffect4 != null && !edgeEffect4.isFinished() && i2 < 0) {
            this.f896.onRelease();
            zIsFinished |= this.f896.isFinished();
        }
        if (zIsFinished) {
            postInvalidateOnAnimation();
        }
    }

    /* JADX INFO: renamed from: ᵞᵛᵘ, reason: contains not printable characters */
    public final void m581(int i) {
        if (this.f869 == null) {
            return;
        }
        setScrollState(2);
        this.f869.mo278(i);
        awakenScrollBars();
    }

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public final void m582(int i, int i2) {
        int paddingRight = getPaddingRight() + getPaddingLeft();
        WeakHashMap weakHashMap = AbstractC2746.f10556;
        setMeasuredDimension(AbstractC0421.m1774(i, paddingRight, getMinimumWidth()), AbstractC0421.m1774(i2, getPaddingBottom() + getPaddingTop(), getMinimumHeight()));
    }

    /* JADX INFO: renamed from: ᵠˏˏ, reason: contains not printable characters */
    public final AbstractC4793 m583(int i) {
        AbstractC4793 abstractC4793 = null;
        if (this.f894) {
            return null;
        }
        C2196 c2196 = this.f924;
        int iM5722 = c2196.m5722();
        for (int i2 = 0; i2 < iM5722; i2++) {
            AbstractC4793 abstractC4793M539 = m539(c2196.m5711(i2));
            if (abstractC4793M539 != null && !abstractC4793M539.m9995() && m546(abstractC4793M539) == i) {
                if (!((ArrayList) c2196.f8726).contains(abstractC4793M539.f18236)) {
                    return abstractC4793M539;
                }
                abstractC4793 = abstractC4793M539;
            }
        }
        return abstractC4793;
    }

    /* JADX INFO: renamed from: ᵡᵶ, reason: contains not printable characters */
    public final void m584() {
        if (this.f905 || !this.f922) {
            return;
        }
        WeakHashMap weakHashMap = AbstractC2746.f10556;
        postOnAnimation(this.f906);
        this.f905 = true;
    }

    /* JADX INFO: renamed from: ᵡᵶᵬʤ, reason: contains not printable characters */
    public final void m585() {
        boolean z;
        boolean z2 = this.f894;
        C4132 c4132 = this.f918;
        boolean z3 = false;
        if (z2) {
            c4132.m9037((ArrayList) c4132.f15793);
            c4132.m9037((ArrayList) c4132.f15796);
            c4132.f15795 = 0;
            if (this.f855) {
                this.f869.mo315();
            }
        }
        if (this.f884 != null && this.f869.mo498()) {
            c4132.m9038();
        } else {
            c4132.m9049();
        }
        boolean z4 = this.f901 || this.f857;
        boolean z5 = this.f852 && this.f884 != null && ((z = this.f894) || z4 || this.f869.f2361) && (!z || this.f900.f9414);
        C1499 c1499 = this.f899;
        c1499.f6053 = z5;
        if (z5 && z4 && !this.f894 && this.f884 != null && this.f869.mo498()) {
            z3 = true;
        }
        c1499.f6056 = z3;
    }

    /* JADX INFO: renamed from: ᵧᵢᵴᵸ, reason: contains not printable characters */
    public final void m586(int i) {
        getScrollingChildHelper().m8849(i);
    }

    /* JADX INFO: renamed from: ᵨˈʼﹶ, reason: contains not printable characters */
    public final boolean m587() {
        return this.f903 > 0;
    }

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final void m588() {
        if (this.f877 != null) {
            return;
        }
        ((C2084) this.f875).getClass();
        EdgeEffect edgeEffect = new EdgeEffect(getContext());
        this.f877 = edgeEffect;
        if (this.f879) {
            edgeEffect.setSize((getMeasuredHeight() - getPaddingTop()) - getPaddingBottom(), (getMeasuredWidth() - getPaddingLeft()) - getPaddingRight());
        } else {
            edgeEffect.setSize(getMeasuredHeight(), getMeasuredWidth());
        }
    }

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public final void m589() {
        if (!this.f852 || this.f894) {
            Trace.beginSection("RV FullInvalidate");
            m596();
            Trace.endSection();
            return;
        }
        C4132 c4132 = this.f918;
        if (c4132.m9052()) {
            int i = c4132.f15795;
            if ((i & 4) == 0 || (i & 11) != 0) {
                if (c4132.m9052()) {
                    Trace.beginSection("RV FullInvalidate");
                    m596();
                    Trace.endSection();
                    return;
                }
                return;
            }
            Trace.beginSection("RV PartialInvalidate");
            m592();
            m545();
            c4132.m9038();
            if (!this.f909) {
                C2196 c2196 = this.f924;
                int iM5716 = c2196.m5716();
                int i2 = 0;
                while (true) {
                    if (i2 < iM5716) {
                        AbstractC4793 abstractC4793M539 = m539(c2196.m5734(i2));
                        if (abstractC4793M539 != null && !abstractC4793M539.m9994() && abstractC4793M539.m9989()) {
                            m596();
                            break;
                        }
                        i2++;
                    } else {
                        c4132.m9059();
                        break;
                    }
                }
            }
            m594(true);
            m569(true);
            Trace.endSection();
        }
    }

    /* JADX INFO: renamed from: ᵫˈᵹ, reason: contains not printable characters */
    public final void m590(int[] iArr, int i, int i2) {
        AbstractC4793 abstractC4793;
        m592();
        m545();
        Trace.beginSection("RV Scroll");
        C1499 c1499 = this.f899;
        m552(c1499);
        C2772 c2772 = this.f887;
        int iMo294 = i != 0 ? this.f869.mo294(i, c2772, c1499) : 0;
        int iMo268 = i2 != 0 ? this.f869.mo268(i2, c2772, c1499) : 0;
        Trace.endSection();
        C2196 c2196 = this.f924;
        int iM5716 = c2196.m5716();
        for (int i3 = 0; i3 < iM5716; i3++) {
            View viewM5734 = c2196.m5734(i3);
            AbstractC4793 abstractC4793M577 = m577(viewM5734);
            if (abstractC4793M577 != null && (abstractC4793 = abstractC4793M577.f18247) != null) {
                View view = abstractC4793.f18236;
                int left = viewM5734.getLeft();
                int top = viewM5734.getTop();
                if (left != view.getLeft() || top != view.getTop()) {
                    view.layout(left, top, view.getWidth() + left, view.getHeight() + top);
                }
            }
        }
        m569(true);
        m594(false);
        if (iArr != null) {
            iArr[0] = iMo294;
            iArr[1] = iMo268;
        }
    }

    /* JADX INFO: renamed from: ᵬᵦˋ, reason: contains not printable characters */
    public final boolean m591(EdgeEffect edgeEffect, int i, int i2) {
        if (i > 0) {
            return true;
        }
        float fM7927 = AbstractC3481.m7927(edgeEffect) * i2;
        float fAbs = Math.abs(-i) * 0.35f;
        float f = this.f878 * 0.015f;
        double dLog = Math.log(fAbs / f);
        double d = f850;
        return ((float) (Math.exp((d / (d - 1.0d)) * dLog) * ((double) f))) < fM7927;
    }

    /* JADX INFO: renamed from: ᵮᵟᵡ, reason: contains not printable characters */
    public final void m592() {
        int i = this.f867 + 1;
        this.f867 = i;
        if (i != 1 || this.f898) {
            return;
        }
        this.f909 = false;
    }

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final void m593() {
        C2196 c2196 = this.f924;
        int iM5722 = c2196.m5722();
        for (int i = 0; i < iM5722; i++) {
            AbstractC4793 abstractC4793M539 = m539(c2196.m5711(i));
            if (!abstractC4793M539.m9994()) {
                abstractC4793M539.f18243 = -1;
                abstractC4793M539.f18232 = -1;
            }
        }
        C2772 c2772 = this.f887;
        ArrayList arrayList = c2772.f10660;
        ArrayList arrayList2 = c2772.f10658;
        int size = arrayList2.size();
        for (int i2 = 0; i2 < size; i2++) {
            AbstractC4793 abstractC4793 = (AbstractC4793) arrayList2.get(i2);
            abstractC4793.f18243 = -1;
            abstractC4793.f18232 = -1;
        }
        int size2 = arrayList.size();
        for (int i3 = 0; i3 < size2; i3++) {
            AbstractC4793 abstractC47932 = (AbstractC4793) arrayList.get(i3);
            abstractC47932.f18243 = -1;
            abstractC47932.f18232 = -1;
        }
        ArrayList arrayList3 = c2772.f10656;
        if (arrayList3 != null) {
            int size3 = arrayList3.size();
            for (int i4 = 0; i4 < size3; i4++) {
                AbstractC4793 abstractC47933 = (AbstractC4793) c2772.f10656.get(i4);
                abstractC47933.f18243 = -1;
                abstractC47933.f18232 = -1;
            }
        }
    }

    /* JADX INFO: renamed from: ᵯˇ, reason: contains not printable characters */
    public final void m594(boolean z) {
        if (this.f867 < 1) {
            if (f848) {
                ᵕᵩʽᵲ.ᵪᵹᵥᵻ("stopInterceptRequestLayout was called more times than startInterceptRequestLayout.".concat(m600()));
                return;
            }
            this.f867 = 1;
        }
        if (!z && !this.f898) {
            this.f909 = false;
        }
        if (this.f867 == 1) {
            if (z && this.f909 && !this.f898 && this.f869 != null && this.f900 != null) {
                m596();
            }
            if (!this.f898) {
                this.f909 = false;
            }
        }
        this.f867--;
    }

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final void m595() {
        if (this.f862 != null) {
            return;
        }
        ((C2084) this.f875).getClass();
        EdgeEffect edgeEffect = new EdgeEffect(getContext());
        this.f862 = edgeEffect;
        if (this.f879) {
            edgeEffect.setSize((getMeasuredWidth() - getPaddingLeft()) - getPaddingRight(), (getMeasuredHeight() - getPaddingTop()) - getPaddingBottom());
        } else {
            edgeEffect.setSize(getMeasuredWidth(), getMeasuredHeight());
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:169:0x0359  */
    /* JADX WARN: Removed duplicated region for block: B:196:0x03b1  */
    /* JADX WARN: Removed duplicated region for block: B:220:0x03f6  */
    /* JADX WARN: Type inference failed for: r2v17 */
    /* JADX WARN: Type inference failed for: r2v24 */
    /* JADX WARN: Type inference failed for: r2v25, types: [int] */
    /* JADX WARN: Type inference failed for: r2v28 */
    /* JADX WARN: Type inference failed for: r2v31 */
    /* JADX WARN: Type inference failed for: r2v32 */
    /* JADX WARN: Type inference failed for: r2v33 */
    /* JADX WARN: Type inference failed for: r2v34 */
    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$UnknownArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void m596() {
        boolean z;
        AbstractC4793 abstractC4793;
        View viewFindViewById;
        boolean z2;
        C4240 c4240;
        ?? r2;
        boolean zM4419;
        int i;
        boolean z3;
        int i2;
        if (this.f900 == null || this.f869 == null) {
            return;
        }
        C1499 c1499 = this.f899;
        boolean z4 = false;
        boolean z5 = false;
        c1499.f6058 = false;
        boolean z6 = true;
        boolean z7 = this.f920 && !(this.f880 == getWidth() && this.f911 == getHeight());
        this.f880 = 0;
        this.f911 = 0;
        this.f920 = false;
        if (c1499.f6057 == 1) {
            m558();
            this.f869.m1793(this);
            m555();
        } else {
            C4132 c4132 = this.f918;
            if ((((ArrayList) c4132.f15796).isEmpty() || ((ArrayList) c4132.f15793).isEmpty()) && !z7 && this.f869.f2349 == getWidth() && this.f869.f2353 == getHeight()) {
                this.f869.m1793(this);
            } else {
                this.f869.m1793(this);
                m555();
            }
        }
        c1499.m4297(4);
        m592();
        m545();
        c1499.f6057 = 1;
        boolean z8 = c1499.f6053;
        C2196 c2196 = this.f924;
        C2772 c2772 = this.f887;
        ʽᵺᴵ r9 = this.f866;
        if (z8) {
            int iM5716 = c2196.m5716() - 1;
            while (iM5716 >= 0) {
                AbstractC4793 abstractC4793M539 = m539(c2196.m5734(iM5716));
                if (abstractC4793M539.m9994()) {
                    z3 = z6;
                } else {
                    long jM561 = m561(abstractC4793M539);
                    this.f884.getClass();
                    C4240 c42402 = new C4240(z5 ? 1 : 0, 5);
                    c42402.m9211(abstractC4793M539);
                    C3162 c3162 = (C3162) r9.ᵔᵖᵹᵫ;
                    C4053 c4053 = (C4053) r9.ᵜᵪʾ;
                    AbstractC4793 abstractC47932 = (AbstractC4793) c3162.m7273(jM561);
                    if (abstractC47932 == null || abstractC47932.m9994()) {
                        z3 = z6;
                        r9.ᵶᵥᵝ(abstractC4793M539, c42402);
                    } else {
                        z3 = z6;
                        C2522 c2522 = (C2522) c4053.get(abstractC47932);
                        boolean z9 = (c2522 == null || (c2522.f9738 & 1) == 0) ? false : z3;
                        C2522 c25222 = (C2522) c4053.get(abstractC4793M539);
                        boolean z10 = (c25222 == null || (c25222.f9738 & 1) == 0) ? false : z3;
                        if (z9 && abstractC47932 == abstractC4793M539) {
                            r9.ᵶᵥᵝ(abstractC4793M539, c42402);
                        } else {
                            C4240 c42403 = r9.ᵪᵹᵥᵻ(abstractC47932, 4);
                            r9.ᵶᵥᵝ(abstractC4793M539, c42402);
                            C4240 c42404 = r9.ᵪᵹᵥᵻ(abstractC4793M539, 8);
                            if (c42403 == null) {
                                int iM57162 = c2196.m5716();
                                for (int i3 = 0; i3 < iM57162; i3++) {
                                    AbstractC4793 abstractC4793M5392 = m539(c2196.m5734(i3));
                                    if (abstractC4793M5392 != abstractC4793M539 && m561(abstractC4793M5392) == jM561) {
                                        AbstractC2416 abstractC2416 = this.f900;
                                        if (abstractC2416 == null || !abstractC2416.f9414) {
                                            StringBuilder sb = new StringBuilder("Two different ViewHolders have the same change ID. This might happen due to inconsistent Adapter update events or if the LayoutManager lays out the same View multiple times.\n ViewHolder 1:");
                                            sb.append(abstractC4793M5392);
                                            sb.append(" \n View Holder 2:");
                                            sb.append(abstractC4793M539);
                                            ᵷᵝˎ.ᵟᵹᵙ(sb, m600());
                                            return;
                                        }
                                        StringBuilder sb2 = new StringBuilder("Two different ViewHolders have the same stable ID. Stable IDs in your adapter MUST BE unique and SHOULD NOT change.\n ViewHolder 1:");
                                        sb2.append(abstractC4793M5392);
                                        sb2.append(" \n View Holder 2:");
                                        sb2.append(abstractC4793M539);
                                        ᵷᵝˎ.ᵟᵹᵙ(sb2, m600());
                                        return;
                                    }
                                }
                                Objects.toString(abstractC47932);
                                Objects.toString(abstractC4793M539);
                                m600();
                            } else {
                                abstractC47932.m9990(false);
                                if (z9) {
                                    m599(abstractC47932);
                                }
                                if (abstractC47932 != abstractC4793M539) {
                                    if (z10) {
                                        m599(abstractC4793M539);
                                    }
                                    abstractC47932.f18237 = abstractC4793M539;
                                    m599(abstractC47932);
                                    c2772.m6686(abstractC47932);
                                    abstractC4793M539.m9990(false);
                                    abstractC4793M539.f18247 = abstractC47932;
                                }
                                C1571 c1571 = (C1571) this.f884;
                                c1571.getClass();
                                int i4 = c42403.f16172;
                                int i5 = c42403.f16171;
                                if (abstractC4793M539.m9994()) {
                                    i2 = c42403.f16172;
                                } else {
                                    i2 = c42404.f16172;
                                    c42403 = c42404;
                                }
                                if (c1571.m4421(abstractC47932, abstractC4793M539, i4, i5, i2, c42403.f16171)) {
                                    m584();
                                }
                            }
                        }
                    }
                }
                iM5716--;
                z6 = z3;
            }
            z = z6;
            C4053 c40532 = (C4053) r9.ᵜᵪʾ;
            int i6 = c40532.f15546 - 1;
            while (i6 >= 0) {
                AbstractC4793 abstractC47933 = (AbstractC4793) c40532.m8871(i6);
                C2522 c25223 = (C2522) c40532.mo8863(i6);
                int i7 = c25223.f9738;
                int i8 = i7 & 3;
                C3129 c3129 = this.f912;
                if (i8 == 3) {
                    RecyclerView recyclerView = c3129.f11934;
                    recyclerView.f869.m1800(abstractC47933.f18236, recyclerView.f887);
                    r2 = z4;
                } else if ((i7 & 1) != 0) {
                    C4240 c42405 = c25223.f9736;
                    if (c42405 == null) {
                        RecyclerView recyclerView2 = c3129.f11934;
                        recyclerView2.f869.m1800(abstractC47933.f18236, recyclerView2.f887);
                        r2 = z4;
                    } else {
                        c3129.m7239(abstractC47933, c42405, c25223.f9737);
                        r2 = z4;
                    }
                } else if ((i7 & 14) == 14) {
                    c3129.m7236(abstractC47933, c25223.f9736, c25223.f9737);
                    r2 = z4;
                } else if ((i7 & 12) == 12) {
                    C4240 c42406 = c25223.f9736;
                    C4240 c42407 = c25223.f9737;
                    c3129.getClass();
                    abstractC47933.m9990(z4);
                    RecyclerView recyclerView3 = c3129.f11934;
                    boolean z11 = recyclerView3.f894;
                    AbstractC0090 abstractC0090 = recyclerView3.f884;
                    if (z11) {
                        C1571 c15712 = (C1571) abstractC0090;
                        c15712.getClass();
                        int i9 = c42406.f16172;
                        int i10 = c42406.f16171;
                        if (abstractC47933.m9994()) {
                            i = c42406.f16172;
                        } else {
                            i = c42407.f16172;
                            c42406 = c42407;
                        }
                        if (c15712.m4421(abstractC47933, abstractC47933, i9, i10, i, c42406.f16171)) {
                            recyclerView3.m584();
                        }
                    } else {
                        C1571 c15713 = (C1571) abstractC0090;
                        c15713.getClass();
                        int i11 = c42406.f16172;
                        int i12 = c42407.f16172;
                        if (i11 == i12 && c42406.f16171 == c42407.f16171) {
                            c15713.m1148(abstractC47933);
                            zM4419 = false;
                        } else {
                            zM4419 = c15713.m4419(abstractC47933, i11, c42406.f16171, i12, c42407.f16171);
                        }
                        if (zM4419) {
                            recyclerView3.m584();
                        }
                    }
                    r2 = 0;
                } else {
                    if ((i7 & 4) != 0) {
                        c4240 = null;
                        c3129.m7239(abstractC47933, c25223.f9736, null);
                    } else {
                        c4240 = null;
                        if ((i7 & 8) != 0) {
                            c3129.m7236(abstractC47933, c25223.f9736, c25223.f9737);
                        }
                    }
                    r2 = 0;
                    c25223.f9738 = r2;
                    c25223.f9736 = c4240;
                    c25223.f9737 = c4240;
                    C2522.f9735.mo8915(c25223);
                    i6--;
                    z4 = false;
                }
                c4240 = null;
                c25223.f9738 = r2;
                c25223.f9736 = c4240;
                c25223.f9737 = c4240;
                C2522.f9735.mo8915(c25223);
                i6--;
                z4 = false;
            }
        } else {
            z = true;
        }
        View view = null;
        this.f869.m1808(c2772);
        c1499.f6044 = c1499.f6050;
        this.f894 = false;
        this.f855 = false;
        c1499.f6053 = false;
        c1499.f6056 = false;
        this.f869.f2361 = false;
        ArrayList arrayList = c2772.f10656;
        if (arrayList != null) {
            arrayList.clear();
        }
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421.f2358) {
            abstractC0421.f2355 = 0;
            abstractC0421.f2358 = false;
            c2772.m6684();
        }
        this.f869.mo283(c1499);
        boolean z12 = z;
        m569(z12);
        m594(false);
        ((C4053) r9.ᵜᵪʾ).clear();
        ((C3162) r9.ᵔᵖᵹᵫ).m7271();
        int[] iArr = this.f907;
        int i13 = iArr[0];
        int i14 = iArr[z12 ? 1 : 0];
        m572(iArr);
        if (iArr[0] != i13 || iArr[z12 ? 1 : 0] != i14) {
            m564(0, 0);
        }
        if (this.f893 && this.f900 != null && hasFocus() && getDescendantFocusability() != 393216 && (getDescendantFocusability() != 131072 || !isFocused())) {
            if (!isFocused()) {
                if (((ArrayList) c2196.f8726).contains(getFocusedChild())) {
                    long j = c1499.f6048;
                    if (j != -1 && (z2 = this.f900.f9414) && z2) {
                        int iM5722 = c2196.m5722();
                        int i15 = 0;
                        abstractC4793 = null;
                        while (true) {
                            if (i15 >= iM5722) {
                                break;
                            }
                            AbstractC4793 abstractC4793M5393 = m539(c2196.m5711(i15));
                            if (abstractC4793M5393 != null && !abstractC4793M5393.m9995() && abstractC4793M5393.f18244 == j) {
                                if (!((ArrayList) c2196.f8726).contains(abstractC4793M5393.f18236)) {
                                    abstractC4793 = abstractC4793M5393;
                                    break;
                                }
                                abstractC4793 = abstractC4793M5393;
                            }
                            i15++;
                        }
                    } else {
                        abstractC4793 = null;
                    }
                    if (abstractC4793 != null) {
                        View view2 = abstractC4793.f18236;
                        if (((ArrayList) c2196.f8726).contains(view2) || !view2.hasFocusable()) {
                            if (c2196.m5716() > 0) {
                                int i16 = c1499.f6052;
                                int i17 = i16 != -1 ? i16 : 0;
                                int iM4296 = c1499.m4296();
                                for (int i18 = i17; i18 < iM4296; i18++) {
                                    AbstractC4793 abstractC4793M583 = m583(i18);
                                    if (abstractC4793M583 == null) {
                                        break;
                                    }
                                    View view3 = abstractC4793M583.f18236;
                                    if (view3.hasFocusable()) {
                                        view = view3;
                                        break;
                                    }
                                }
                                for (int iMin = Math.min(iM4296, i17) - 1; iMin >= 0; iMin--) {
                                    AbstractC4793 abstractC4793M5832 = m583(iMin);
                                    if (abstractC4793M5832 == null) {
                                        break;
                                    }
                                    view2 = abstractC4793M5832.f18236;
                                    if (view2.hasFocusable()) {
                                        view = view2;
                                        break;
                                    }
                                }
                            }
                            if (view != null) {
                                int i19 = c1499.f6046;
                                if (i19 != -1 && (viewFindViewById = view.findViewById(i19)) != null && viewFindViewById.isFocusable()) {
                                    view = viewFindViewById;
                                }
                                view.requestFocus();
                            }
                        } else {
                            view = view2;
                            if (view != null) {
                            }
                        }
                    }
                }
            }
        }
        c1499.f6048 = -1L;
        c1499.f6052 = -1;
        c1499.f6046 = -1;
    }

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final void m597(String str) {
        if (!m587()) {
            if (this.f904 > 0) {
                new IllegalStateException(m600());
            }
        } else if (str == null) {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("Cannot call this method while RecyclerView is computing a layout or scrolling".concat(m600()));
        } else {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ(str);
        }
    }

    /* JADX INFO: renamed from: ᵵᵸᵕᵸ, reason: contains not printable characters */
    public void mo598(int i) {
        if (this.f898) {
            return;
        }
        m551();
        AbstractC0421 abstractC0421 = this.f869;
        if (abstractC0421 == null) {
            return;
        }
        abstractC0421.mo278(i);
        awakenScrollBars();
    }

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final void m599(AbstractC4793 abstractC4793) {
        View view = abstractC4793.f18236;
        boolean z = view.getParent() == this;
        this.f887.m6686(m577(view));
        boolean zM9993 = abstractC4793.m9993();
        C2196 c2196 = this.f924;
        if (zM9993) {
            c2196.m5751(view, -1, view.getLayoutParams(), true);
            return;
        }
        if (!z) {
            c2196.m5748(-1, view, true);
            return;
        }
        int iIndexOfChild = ((RecyclerView) ((ᵢʒʡᵟ) c2196.f8723).ᵜᵪʾ).indexOfChild(view);
        if (iIndexOfChild < 0) {
            ᵷᵝˎ.ˉᵲ(view, "view is not a child, cannot hide ");
        } else {
            ((C1705) c2196.f8725).m4702(iIndexOfChild);
            c2196.m5719(view);
        }
    }

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public final String m600() {
        return " " + super.toString() + ", adapter:" + this.f900 + ", layout:" + this.f869 + ", context:" + getContext();
    }

    /* JADX WARN: Removed duplicated region for block: B:23:0x005e A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:27:0x0061 A[SYNTHETIC] */
    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean m601(MotionEvent motionEvent) {
        int action = motionEvent.getAction();
        ArrayList arrayList = this.f872;
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            C0856 c0856 = (C0856) arrayList.get(i);
            int i2 = c0856.f3777;
            if (i2 == 1) {
                boolean zM3021 = c0856.m3021(motionEvent.getX(), motionEvent.getY());
                boolean zM3019 = c0856.m3019(motionEvent.getX(), motionEvent.getY());
                if (motionEvent.getAction() == 0 && (zM3021 || zM3019)) {
                    if (zM3019) {
                        c0856.f3781 = 1;
                        c0856.f3783 = (int) motionEvent.getX();
                    } else if (zM3021) {
                        c0856.f3781 = 2;
                        c0856.f3782 = (int) motionEvent.getY();
                    }
                    c0856.m3022(2);
                    if (action == 3) {
                        this.f895 = c0856;
                        return true;
                    }
                }
            } else if (i2 != 2) {
                continue;
            } else if (action == 3) {
            }
        }
        return false;
    }

    /* JADX INFO: renamed from: ᵹʾᵢᵯ, reason: contains not printable characters */
    public void mo602(int i) {
        AbstractC0421 abstractC0421;
        if (this.f898 || (abstractC0421 = this.f869) == null) {
            return;
        }
        abstractC0421.mo289(this, i);
    }

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final void m603(AbstractC3732 abstractC3732) {
        if (this.f902 == null) {
            this.f902 = new ArrayList();
        }
        this.f902.add(abstractC3732);
    }
}
