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.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 defpackage.AbstractC0203;
import defpackage.AbstractC0330;
import defpackage.AbstractC0585;
import defpackage.AbstractC0915;
import defpackage.AbstractC0931;
import defpackage.AbstractC1307;
import defpackage.AbstractC1327;
import defpackage.AbstractC1935;
import defpackage.AbstractC2002;
import defpackage.AbstractC2003;
import defpackage.AbstractC2240;
import defpackage.AbstractC2313;
import defpackage.AbstractC2495;
import defpackage.AbstractC2873;
import defpackage.AbstractC4163;
import defpackage.AbstractC4618;
import defpackage.C0190;
import defpackage.C0485;
import defpackage.C0553;
import defpackage.C0723;
import defpackage.C0830;
import defpackage.C0910;
import defpackage.C1196;
import defpackage.C1529;
import defpackage.C1611;
import defpackage.C1676;
import defpackage.C1923;
import defpackage.C1943;
import defpackage.C2033;
import defpackage.C2166;
import defpackage.C2582;
import defpackage.C2669;
import defpackage.C2771;
import defpackage.C3003;
import defpackage.C3064;
import defpackage.C3096;
import defpackage.C3293;
import defpackage.C3837;
import defpackage.C3839;
import defpackage.C4116;
import defpackage.C4276;
import defpackage.C4697;
import defpackage.C4972;
import defpackage.C5234;
import defpackage.InterfaceC1911;
import defpackage.InterfaceC3852;
import defpackage.InterpolatorC2722;
import defpackage.RunnableC4157;
import defpackage.RunnableC4822;
import defpackage.RunnableC5060;
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;

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

    /* renamed from: ʾᵵᵯ, reason: contains not printable characters */
    public static final C4116 f843;

    /* renamed from: ˉʽʾ, reason: contains not printable characters */
    public static final Class[] f845;

    /* renamed from: ᐧʼ, reason: contains not printable characters */
    public static final InterpolatorC2722 f846;

    /* renamed from: ᵲᵰⁱ, reason: contains not printable characters */
    public static boolean f849;

    /* renamed from: ᵲᵳ, reason: contains not printable characters */
    public static boolean f850;
    final Runnable mUpdateChildViewsRunnable;

    /* renamed from: ʽᵙᵕ, reason: contains not printable characters */
    public int f852;

    /* renamed from: ʽᵢˊ, reason: contains not printable characters */
    public int f853;

    /* renamed from: ʾˋˊᵽ, reason: contains not printable characters */
    public final float f854;

    /* renamed from: ʾᵻᵭٴ, reason: contains not printable characters */
    public EdgeEffect f855;

    /* renamed from: ʿᵘˆ, reason: contains not printable characters */
    public final int f856;

    /* renamed from: ˀˁᵨ, reason: contains not printable characters */
    public int f857;

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final C0553 f858;

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public int f859;

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public final ArrayList f860;

    /* renamed from: ˁᵳˉ, reason: contains not printable characters */
    public final ArrayList f861;

    /* renamed from: ˆʕ, reason: contains not printable characters */
    public boolean f862;

    /* renamed from: ˆᵪᵵ, reason: contains not printable characters */
    public C2582 f863;

    /* renamed from: ˆᵴᵜˏ, reason: contains not printable characters */
    public int f864;

    /* renamed from: ˆᵼᵷˊ, reason: contains not printable characters */
    public boolean f865;

    /* renamed from: ˉᵴﹶ, reason: contains not printable characters */
    public RunnableC4822 f866;

    /* renamed from: ˊʽˎ, reason: contains not printable characters */
    public final AccessibilityManager f867;

    /* renamed from: ˊʾˊ, reason: contains not printable characters */
    public AbstractC0931 f868;

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public boolean f869;

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public boolean f870;

    /* renamed from: ˌᵹᵨˑ, reason: contains not printable characters */
    public EdgeEffect f871;

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public final Rect f872;

    /* renamed from: ˎᵬˀ, reason: contains not printable characters */
    public boolean f873;

    /* renamed from: ˎᵶᵹ, reason: contains not printable characters */
    public boolean f874;

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public boolean f875;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public final Rect f876;

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public InterfaceC1911 f877;

    /* renamed from: ᵎʾ, reason: contains not printable characters */
    public boolean f878;

    /* renamed from: ᵔᵨ, reason: contains not printable characters */
    public final int[] f879;

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public C0485 f880;

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public boolean f881;

    /* renamed from: ᵛˎ, reason: contains not printable characters */
    public boolean f882;

    /* renamed from: ᵠᵪˀᵻ, reason: contains not printable characters */
    public AbstractC0330 f883;

    /* renamed from: ᵠᵳ, reason: contains not printable characters */
    public final boolean f884;

    /* renamed from: ᵠᵿː, reason: contains not printable characters */
    public EdgeEffect f885;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public boolean f886;

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public boolean f887;

    /* renamed from: ᵡᵶᵡ, reason: contains not printable characters */
    public boolean f888;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final C0723 f889;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final C0015 f890;

    /* renamed from: ᵣᵟᵔ, reason: contains not printable characters */
    public int f891;

    /* renamed from: ᵤʟᵟ, reason: contains not printable characters */
    public int f892;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final C1611 f893;

    /* renamed from: ᵤᵼˑʠ, reason: contains not printable characters */
    public int f894;

    /* renamed from: ᵥʩᵩˑ, reason: contains not printable characters */
    public int f895;

    /* renamed from: ᵦᵳˎ, reason: contains not printable characters */
    public AbstractC0585 f896;

    /* renamed from: ᵦᵽᵢ, reason: contains not printable characters */
    public final int[] f897;

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public AbstractC1307 f898;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final float f899;

    /* renamed from: ᵨٴ, reason: contains not printable characters */
    public int f900;

    /* renamed from: ᵪᵛʿ, reason: contains not printable characters */
    public final C1529 f901;

    /* renamed from: ᵫᵮʾ, reason: contains not printable characters */
    public boolean f902;

    /* renamed from: ᵮᴵˊ, reason: contains not printable characters */
    public boolean f903;

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public final RectF f904;

    /* renamed from: ᵯᵽ, reason: contains not printable characters */
    public final C0830 f905;

    /* renamed from: ᵰʖʢ, reason: contains not printable characters */
    public final int f906;

    /* renamed from: ᵰᵷᵹˆ, reason: contains not printable characters */
    public C3096 f907;

    /* renamed from: ᵱˑᵲ, reason: contains not printable characters */
    public final int[] f908;

    /* renamed from: ᵲʟᵹ, reason: contains not printable characters */
    public final int[] f909;

    /* renamed from: ᵲᵟ, reason: contains not printable characters */
    public int f910;

    /* renamed from: ᵳʼ, reason: contains not printable characters */
    public final C3064 f911;

    /* renamed from: ᵳᵮᵸ, reason: contains not printable characters */
    public ArrayList f912;

    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public int f913;

    /* renamed from: ᵴᵯᵴⁱ, reason: contains not printable characters */
    public final C1943 f914;

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public final ArrayList f915;

    /* renamed from: ᵷʚᵶᵿ, reason: contains not printable characters */
    public final C5234 f916;

    /* renamed from: ᵷᵦﹳ, reason: contains not printable characters */
    public final RunnableC4157 f917;

    /* renamed from: ᵷᵱ, reason: contains not printable characters */
    public EdgeEffect f918;

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public AbstractC1935 f919;

    /* renamed from: ᵺᵜᵰ, reason: contains not printable characters */
    public final float f920;

    /* renamed from: ᵺᵠ, reason: contains not printable characters */
    public AbstractC2495 f921;

    /* renamed from: ᵺᵫ, reason: contains not printable characters */
    public final RunnableC5060 f922;

    /* renamed from: ᵽʛ, reason: contains not printable characters */
    public int f923;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public C2033 f924;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final C4276 f925;

    /* renamed from: ﹶـ, reason: contains not printable characters */
    public VelocityTracker f926;

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public final ArrayList f927;

    /* renamed from: ᵭˇʾ, reason: contains not printable characters */
    public static final int[] f848 = {R.attr.nestedScrollingEnabled};

    /* renamed from: ˈᵫˊˉ, reason: contains not printable characters */
    public static final float f844 = (float) (Math.log(0.78d) / Math.log(0.9d));

    /* renamed from: ᵳᵮ, reason: contains not printable characters */
    public static final boolean f851 = true;

    /* renamed from: ᵖᵖˊ, reason: contains not printable characters */
    public static final boolean f847 = true;

    static {
        Class cls = Integer.TYPE;
        f845 = new Class[]{Context.class, AttributeSet.class, cls, cls};
        f846 = new InterpolatorC2722();
        f843 = new C4116();
    }

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

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

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r19v0 */
    /* JADX WARN: Type inference failed for: r19v1 */
    /* JADX WARN: Type inference failed for: r19v2 */
    /* JADX WARN: Type inference failed for: r4v6, types: [java.lang.Class] */
    /* JADX WARN: Type inference failed for: r6v2, types: [java.lang.Class[]] */
    public RecyclerView(Context context, AttributeSet attributeSet, int i) throws Throwable {
        float fM5521;
        char c;
        int i2;
        boolean z;
        char c2;
        Throwable th;
        int i3;
        TypedArray typedArray;
        ClassLoader classLoader;
        Constructor constructor;
        Object[] objArr;
        super(context, attributeSet, i);
        this.f890 = new C0015(this);
        this.f925 = new C4276(this);
        this.f858 = new C0553(0);
        this.mUpdateChildViewsRunnable = new RunnableC5060(this, 0);
        this.f876 = new Rect();
        this.f872 = new Rect();
        this.f904 = new RectF();
        this.f915 = new ArrayList();
        this.f860 = new ArrayList();
        this.f927 = new ArrayList();
        this.f859 = 0;
        this.f873 = false;
        this.f902 = false;
        this.f923 = 0;
        this.f857 = 0;
        this.f868 = f843;
        this.f921 = new C2669(0);
        this.f894 = 0;
        this.f864 = -1;
        this.f854 = Float.MIN_VALUE;
        this.f920 = Float.MIN_VALUE;
        int i4 = 1;
        this.f878 = true;
        this.f917 = new RunnableC4157(this);
        this.f914 = f847 ? new C1943() : null;
        C1529 c1529 = new C1529();
        c1529.f6125 = -1;
        c1529.f6129 = 0;
        c1529.f6123 = 0;
        c1529.f6133 = 1;
        c1529.f6118 = 0;
        c1529.f6122 = false;
        c1529.f6121 = false;
        c1529.f6132 = false;
        c1529.f6124 = false;
        c1529.f6130 = false;
        c1529.f6131 = false;
        this.f901 = c1529;
        this.f862 = false;
        this.f874 = false;
        C0830 c0830 = new C0830(this);
        this.f905 = c0830;
        this.f903 = false;
        this.f909 = new int[2];
        this.f879 = new int[2];
        this.f897 = new int[2];
        this.f908 = new int[2];
        this.f861 = new ArrayList();
        this.f922 = new RunnableC5060(this, i4);
        this.f892 = 0;
        this.f852 = 0;
        this.f916 = new C5234(this);
        this.f911 = new C3064(getContext(), new C0830(this));
        setScrollContainer(true);
        setFocusableInTouchMode(true);
        ViewConfiguration viewConfiguration = ViewConfiguration.get(context);
        this.f853 = viewConfiguration.getScaledTouchSlop();
        int i5 = Build.VERSION.SDK_INT;
        if (i5 >= 26) {
            Method method = AbstractC2002.f8044;
            fM5521 = AbstractC4618.m9808(viewConfiguration);
        } else {
            fM5521 = AbstractC2002.m5521(viewConfiguration, context);
        }
        this.f854 = fM5521;
        this.f920 = i5 >= 26 ? AbstractC4618.m9784(viewConfiguration) : AbstractC2002.m5521(viewConfiguration, context);
        this.f856 = viewConfiguration.getScaledMinimumFlingVelocity();
        this.f906 = viewConfiguration.getScaledMaximumFlingVelocity();
        this.f899 = context.getResources().getDisplayMetrics().density * 160.0f * 386.0878f * 0.84f;
        setWillNotDraw(getOverScrollMode() == 2);
        this.f921.f9741 = c0830;
        this.f893 = new C1611(new C5234(this));
        this.f889 = new C0723(new ˊʘ(13, this));
        WeakHashMap weakHashMap = AbstractC2873.f11133;
        if ((i5 >= 26 ? AbstractC0915.m3141(this) : 0) == 0 && i5 >= 26) {
            AbstractC0915.m3142(this, 8);
        }
        if (getImportantForAccessibility() == 0) {
            setImportantForAccessibility(1);
        }
        this.f867 = (AccessibilityManager) getContext().getSystemService("accessibility");
        setAccessibilityDelegateCompat(new C2582(this));
        int[] iArr = AbstractC0203.f1676;
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, iArr, i, 0);
        AbstractC2873.m7025(this, context, iArr, attributeSet, typedArrayObtainStyledAttributes, i);
        String string = typedArrayObtainStyledAttributes.getString(8);
        if (typedArrayObtainStyledAttributes.getInt(2, -1) == -1) {
            setDescendantFocusability(262144);
        }
        this.f886 = 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(m576()));
                throw null;
            }
            Resources resources = getContext().getResources();
            c2 = 2;
            z = 1;
            typedArray = typedArrayObtainStyledAttributes;
            i3 = i;
            c = 3;
            i2 = 4;
            th = null;
            new C0485(this, stateListDrawable, drawable, stateListDrawable2, drawable2, resources.getDimensionPixelSize(ar.tvplayer.tv.R.dimen._11_res_0x7f0700c6), resources.getDimensionPixelSize(ar.tvplayer.tv.R.dimen._11_res_0x7f0700c8), resources.getDimensionPixelOffset(ar.tvplayer.tv.R.dimen._11_res_0x7f0700c7));
        } else {
            c = 3;
            i2 = 4;
            z = 1;
            c2 = 2;
            th = null;
            i3 = i;
            typedArray = typedArrayObtainStyledAttributes;
        }
        typedArray.recycle();
        this.f884 = 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 {
                    try {
                        if (isInEditMode()) {
                            classLoader = getClass().getClassLoader();
                        } else {
                            try {
                                classLoader = context.getClassLoader();
                            } catch (ClassNotFoundException e) {
                                e = e;
                                th = null;
                                ᵨᴵᵺ.ᵶᵷᵕ(attributeSet.getPositionDescription(), ": Unable to find LayoutManager ", str, e);
                                throw th;
                            } catch (IllegalAccessException e2) {
                                e = e2;
                                th = null;
                                ᵨᴵᵺ.ᵶᵷᵕ(attributeSet.getPositionDescription(), ": Cannot access non-public constructor ", str, e);
                                throw th;
                            } catch (InstantiationException e3) {
                                e = e3;
                                th = null;
                                ᵨᴵᵺ.ᵶᵷᵕ(attributeSet.getPositionDescription(), ": Could not instantiate the LayoutManager: ", str, e);
                                throw th;
                            } catch (InvocationTargetException e4) {
                                e = e4;
                                th = null;
                                ᵨᴵᵺ.ᵶᵷᵕ(attributeSet.getPositionDescription(), ": Could not instantiate the LayoutManager: ", str, e);
                                throw th;
                            }
                        }
                        ?? AsSubclass = Class.forName(str, false, classLoader).asSubclass(AbstractC1935.class);
                        try {
                            constructor = AsSubclass.getConstructor(f845);
                            objArr = new Object[i2];
                            objArr[0] = context;
                            objArr[z] = attributeSet;
                            objArr[c2] = Integer.valueOf(i3);
                            objArr[c] = 0;
                        } catch (NoSuchMethodException e5) {
                            try {
                                constructor = AsSubclass.getConstructor(th);
                                objArr = null;
                            } catch (NoSuchMethodException e6) {
                                e6.initCause(e5);
                                throw new IllegalStateException(attributeSet.getPositionDescription() + ": Error creating LayoutManager " + str, e6);
                            }
                        }
                        constructor.setAccessible(z);
                        setLayoutManager((AbstractC1935) constructor.newInstance(objArr));
                    } catch (ClassCastException e7) {
                        ᵨᴵᵺ.ᵶᵷᵕ(attributeSet.getPositionDescription(), ": Class is not a LayoutManager ", str, e7);
                        throw null;
                    }
                } catch (ClassNotFoundException e8) {
                    e = e8;
                } catch (IllegalAccessException e9) {
                    e = e9;
                } catch (InstantiationException e10) {
                    e = e10;
                } catch (InvocationTargetException e11) {
                    e = e11;
                }
            }
        }
        int[] iArr2 = f848;
        TypedArray typedArrayObtainStyledAttributes2 = context.obtainStyledAttributes(attributeSet, iArr2, i3, 0);
        AbstractC2873.m7025(this, context, iArr2, attributeSet, typedArrayObtainStyledAttributes2, i3);
        boolean z2 = typedArrayObtainStyledAttributes2.getBoolean(0, true);
        typedArrayObtainStyledAttributes2.recycle();
        setNestedScrollingEnabled(z2);
        setTag(ar.tvplayer.tv.R.id._11_res_0x7f0b020e, Boolean.TRUE);
    }

    private C3096 getScrollingChildHelper() {
        if (this.f907 == null) {
            this.f907 = new C3096(this);
        }
        return this.f907;
    }

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

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

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public static AbstractC2313 m535(View view) {
        if (view == null) {
            return null;
        }
        return ((C1923) view.getLayoutParams()).f7733;
    }

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public static int m537(int i, EdgeEffect edgeEffect, EdgeEffect edgeEffect2, int i2) {
        if (i > 0 && edgeEffect != null && ᵭʝʜ.ᵡʠ(edgeEffect) != 0.0f) {
            int iRound = Math.round(ᵭʝʜ.ᵿʗᵝʽ(edgeEffect, ((-i) * 4.0f) / i2, 0.5f) * ((-i2) / 4.0f));
            if (iRound != i) {
                edgeEffect.finish();
            }
            return i - iRound;
        }
        if (i >= 0 || edgeEffect2 == null || ᵭʝʜ.ᵡʠ(edgeEffect2) == 0.0f) {
            return i;
        }
        float f = i2;
        int iRound2 = Math.round(ᵭʝʜ.ᵿʗᵝʽ(edgeEffect2, (i * 4.0f) / f, 0.5f) * (f / 4.0f));
        if (iRound2 != i) {
            edgeEffect2.finish();
        }
        return i - iRound2;
    }

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public static RecyclerView m538(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 recyclerViewM538 = m538(viewGroup.getChildAt(i));
            if (recyclerViewM538 != null) {
                return recyclerViewM538;
            }
        }
        return null;
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public static void m540(AbstractC2313 abstractC2313) {
        WeakReference weakReference = abstractC2313.f9068;
        if (weakReference != null) {
            View view = (View) weakReference.get();
            while (view != null) {
                if (view == abstractC2313.f9071) {
                    return;
                }
                Object parent = view.getParent();
                view = parent instanceof View ? (View) parent : null;
            }
            abstractC2313.f9068 = null;
        }
    }

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public static int m542(View view) {
        AbstractC2313 abstractC2313M535 = m535(view);
        if (abstractC2313M535 != null) {
            return abstractC2313M535.m6030();
        }
        return -1;
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void addFocusables(ArrayList arrayList, int i, int i2) {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 == null || !abstractC1935.mo264(this, arrayList, i, i2)) {
            super.addFocusables(arrayList, i, i2);
        }
    }

    @Override // android.view.ViewGroup
    public final boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
        return (layoutParams instanceof C1923) && this.f919.mo281((C1923) layoutParams);
    }

    @Override // android.view.View
    public final int computeHorizontalScrollExtent() {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null && abstractC1935.mo271()) {
            return this.f919.mo531(this.f901);
        }
        return 0;
    }

    @Override // android.view.View
    public final int computeHorizontalScrollOffset() {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null && abstractC1935.mo271()) {
            return this.f919.mo482(this.f901);
        }
        return 0;
    }

    @Override // android.view.View
    public final int computeHorizontalScrollRange() {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null && abstractC1935.mo271()) {
            return this.f919.mo493(this.f901);
        }
        return 0;
    }

    @Override // android.view.View
    public final int computeVerticalScrollExtent() {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null && abstractC1935.mo282()) {
            return this.f919.mo524(this.f901);
        }
        return 0;
    }

    @Override // android.view.View
    public final int computeVerticalScrollOffset() {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null && abstractC1935.mo282()) {
            return this.f919.mo496(this.f901);
        }
        return 0;
    }

    @Override // android.view.View
    public final int computeVerticalScrollRange() {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null && abstractC1935.mo282()) {
            return this.f919.mo481(this.f901);
        }
        return 0;
    }

    @Override // android.view.ViewGroup, android.view.View
    public boolean dispatchKeyEvent(KeyEvent keyEvent) {
        if (super.dispatchKeyEvent(keyEvent)) {
            return true;
        }
        AbstractC1935 layoutManager = getLayoutManager();
        int iMo2536 = 0;
        if (layoutManager != null) {
            if (layoutManager.mo282()) {
                int keyCode = keyEvent.getKeyCode();
                if (keyCode == 92 || keyCode == 93) {
                    int measuredHeight = getMeasuredHeight();
                    if (keyCode == 93) {
                        m589(0, measuredHeight, false);
                        return true;
                    }
                    m589(0, -measuredHeight, false);
                    return true;
                }
                if (keyCode == 122 || keyCode == 123) {
                    boolean zMo517 = layoutManager.mo517();
                    if (keyCode == 122) {
                        if (zMo517) {
                            iMo2536 = getAdapter().mo2536();
                        }
                    } else if (!zMo517) {
                        iMo2536 = getAdapter().mo2536();
                    }
                    mo543(iMo2536);
                    return true;
                }
            } else if (layoutManager.mo271()) {
                int keyCode2 = keyEvent.getKeyCode();
                if (keyCode2 == 92 || keyCode2 == 93) {
                    int measuredWidth = getMeasuredWidth();
                    if (keyCode2 == 93) {
                        m589(measuredWidth, 0, false);
                        return true;
                    }
                    m589(-measuredWidth, 0, false);
                    return true;
                }
                if (keyCode2 == 122 || keyCode2 == 123) {
                    boolean zMo5172 = layoutManager.mo517();
                    if (keyCode2 == 122) {
                        if (zMo5172) {
                            iMo2536 = getAdapter().mo2536();
                        }
                    } else if (!zMo5172) {
                        iMo2536 = getAdapter().mo2536();
                    }
                    mo543(iMo2536);
                    return true;
                }
            }
        }
        return false;
    }

    @Override // android.view.View
    public final boolean dispatchNestedFling(float f, float f2, boolean z) {
        ViewParent viewParentM7432;
        C3096 scrollingChildHelper = getScrollingChildHelper();
        if (scrollingChildHelper.f11806 && (viewParentM7432 = scrollingChildHelper.m7432(0)) != null) {
            try {
                return viewParentM7432.onNestedFling(scrollingChildHelper.f11803, f, f2, z);
            } catch (AbstractMethodError unused) {
                Objects.toString(viewParentM7432);
            }
        }
        return false;
    }

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

    @Override // android.view.View
    public final boolean dispatchNestedPreScroll(int i, int i2, int[] iArr, int[] iArr2) {
        return getScrollingChildHelper().m7431(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().m7429(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.f860;
        int size = arrayList.size();
        boolean z2 = false;
        for (int i = 0; i < size; i++) {
            ((AbstractC2003) arrayList.get(i)).mo2111(canvas, this);
        }
        EdgeEffect edgeEffect = this.f918;
        if (edgeEffect == null || edgeEffect.isFinished()) {
            z = false;
        } else {
            int iSave = canvas.save();
            int paddingBottom = this.f886 ? getPaddingBottom() : 0;
            canvas.rotate(270.0f);
            canvas.translate((-getHeight()) + paddingBottom, 0.0f);
            EdgeEffect edgeEffect2 = this.f918;
            z = edgeEffect2 != null && edgeEffect2.draw(canvas);
            canvas.restoreToCount(iSave);
        }
        EdgeEffect edgeEffect3 = this.f871;
        if (edgeEffect3 != null && !edgeEffect3.isFinished()) {
            int iSave2 = canvas.save();
            if (this.f886) {
                canvas.translate(getPaddingLeft(), getPaddingTop());
            }
            EdgeEffect edgeEffect4 = this.f871;
            z |= edgeEffect4 != null && edgeEffect4.draw(canvas);
            canvas.restoreToCount(iSave2);
        }
        EdgeEffect edgeEffect5 = this.f885;
        if (edgeEffect5 != null && !edgeEffect5.isFinished()) {
            int iSave3 = canvas.save();
            int width = getWidth();
            int paddingTop = this.f886 ? getPaddingTop() : 0;
            canvas.rotate(90.0f);
            canvas.translate(paddingTop, -width);
            EdgeEffect edgeEffect6 = this.f885;
            z |= edgeEffect6 != null && edgeEffect6.draw(canvas);
            canvas.restoreToCount(iSave3);
        }
        EdgeEffect edgeEffect7 = this.f855;
        if (edgeEffect7 != null && !edgeEffect7.isFinished()) {
            int iSave4 = canvas.save();
            canvas.rotate(180.0f);
            if (this.f886) {
                canvas.translate(getPaddingRight() + (-getWidth()), getPaddingBottom() + (-getHeight()));
            } else {
                canvas.translate(-getWidth(), -getHeight());
            }
            EdgeEffect edgeEffect8 = this.f855;
            if (edgeEffect8 != null && edgeEffect8.draw(canvas)) {
                z2 = true;
            }
            z |= z2;
            canvas.restoreToCount(iSave4);
        }
        if ((z || this.f921 == null || arrayList.size() <= 0 || !this.f921.mo6340()) ? 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.
        To view partially-correct add '--show-bad-code' argument
    */
    public final android.view.View focusSearch(android.view.View r19, int r20) {
        /*
            Method dump skipped, instructions count: 407
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.focusSearch(android.view.View, int):android.view.View");
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateDefaultLayoutParams() {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null) {
            return abstractC1935.mo310();
        }
        ᵹˉᵞ.ᵳٴᵶ("RecyclerView has no LayoutManager".concat(m576()));
        return null;
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null) {
            return abstractC1935.mo285(getContext(), attributeSet);
        }
        ᵹˉᵞ.ᵳٴᵶ("RecyclerView has no LayoutManager".concat(m576()));
        return null;
    }

    @Override // android.view.ViewGroup
    public final ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null) {
            return abstractC1935.mo308(layoutParams);
        }
        ᵹˉᵞ.ᵳٴᵶ("RecyclerView has no LayoutManager".concat(m576()));
        return null;
    }

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

    public AbstractC1307 getAdapter() {
        return this.f898;
    }

    @Override // android.view.View
    public int getBaseline() {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 == null) {
            return super.getBaseline();
        }
        abstractC1935.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.f886;
    }

    public C2582 getCompatAccessibilityDelegate() {
        return this.f863;
    }

    public AbstractC0931 getEdgeEffectFactory() {
        return this.f868;
    }

    public AbstractC2495 getItemAnimator() {
        return this.f921;
    }

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

    public AbstractC1935 getLayoutManager() {
        return this.f919;
    }

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

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

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

    public AbstractC0330 getOnFlingListener() {
        return this.f883;
    }

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

    public C4972 getRecycledViewPool() {
        return this.f925.m9251();
    }

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

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

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

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

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

    /* 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.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void onAttachedToWindow() {
        /*
            r5 = this;
            super.onAttachedToWindow()
            r0 = 0
            r5.f923 = r0
            r1 = 1
            r5.f887 = r1
            boolean r2 = r5.f869
            if (r2 == 0) goto L15
            boolean r2 = r5.isLayoutRequested()
            if (r2 != 0) goto L15
            r2 = r1
            goto L16
        L15:
            r2 = r0
        L16:
            r5.f869 = r2
            ᵯˑᵰ r2 = r5.f925
            r2.m9247()
            ːʓˊﹳ r2 = r5.f919
            if (r2 == 0) goto L26
            r2.f7777 = r1
            r2.mo817(r5)
        L26:
            r5.f903 = r0
            boolean r0 = androidx.recyclerview.widget.RecyclerView.f847
            if (r0 == 0) goto L7e
            java.lang.ThreadLocal r0 = defpackage.RunnableC4822.f17896
            java.lang.Object r1 = r0.get()
            ᵶᵤᵹ r1 = (defpackage.RunnableC4822) r1
            r5.f866 = r1
            if (r1 != 0) goto L66
            ᵶᵤᵹ r1 = new ᵶᵤᵹ
            r1.<init>()
            r5.f866 = r1
            java.util.WeakHashMap r1 = defpackage.AbstractC2873.f11133
            android.view.Display r1 = r5.getDisplay()
            boolean r2 = r5.isInEditMode()
            if (r2 != 0) goto L58
            if (r1 == 0) goto L58
            float r1 = r1.getRefreshRate()
            r2 = 1106247680(0x41f00000, float:30.0)
            int r2 = (r1 > r2 ? 1 : (r1 == r2 ? 0 : -1))
            if (r2 < 0) goto L58
            goto L5a
        L58:
            r1 = 1114636288(0x42700000, float:60.0)
        L5a:
            ᵶᵤᵹ r2 = r5.f866
            r3 = 1315859240(0x4e6e6b28, float:1.0E9)
            float r3 = r3 / r1
            long r3 = (long) r3
            r2.f17900 = r3
            r0.set(r2)
        L66:
            ᵶᵤᵹ r0 = r5.f866
            java.util.ArrayList r0 = r0.f17898
            boolean r1 = androidx.recyclerview.widget.RecyclerView.f850
            if (r1 == 0) goto L7b
            boolean r1 = r0.contains(r5)
            if (r1 != 0) goto L75
            goto L7b
        L75:
            java.lang.String r5 = "RecyclerView already present in worker list!"
            ᵹˉᵞ.ᵳٴᵶ(r5)
            return
        L7b:
            r0.add(r5)
        L7e:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.onAttachedToWindow():void");
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onDetachedFromWindow() {
        RunnableC4822 runnableC4822;
        super.onDetachedFromWindow();
        AbstractC2495 abstractC2495 = this.f921;
        if (abstractC2495 != null) {
            abstractC2495.mo6341();
        }
        m598();
        int i = 0;
        this.f887 = false;
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null) {
            abstractC1935.f7777 = false;
            abstractC1935.mo530(this);
        }
        this.f861.clear();
        removeCallbacks(this.f922);
        this.f858.getClass();
        while (C3837.f14270.mo8275() != null) {
        }
        C4276 c4276 = this.f925;
        ArrayList arrayList = c4276.f16043;
        for (int i2 = 0; i2 < arrayList.size(); i2++) {
            ᵸᵡˋʧ.ᵴᵳ(((AbstractC2313) arrayList.get(i2)).f9071);
        }
        c4276.m9250(c4276.f16046.f898, false);
        while (i < getChildCount()) {
            int i3 = i + 1;
            View childAt = getChildAt(i);
            if (childAt == null) {
                C0190.m1431();
                return;
            }
            C1676 c1676 = (C1676) childAt.getTag(ar.tvplayer.tv.R.id._11_res_0x7f0b0317);
            if (c1676 == null) {
                c1676 = new C1676();
                childAt.setTag(ar.tvplayer.tv.R.id._11_res_0x7f0b0317, c1676);
            }
            ArrayList arrayList2 = c1676.f6685;
            int iM5908 = AbstractC2240.m5908(arrayList2);
            if (-1 < iM5908) {
                arrayList2.get(iM5908).getClass();
                C0910.m3050();
                return;
            }
            i = i3;
        }
        if (!f847 || (runnableC4822 = this.f866) == null) {
            return;
        }
        boolean zRemove = runnableC4822.f17898.remove(this);
        if (!f850 || zRemove) {
            this.f866 = null;
        } else {
            ᵹˉᵞ.ᵳٴᵶ("RecyclerView removal failed!");
        }
    }

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

    @Override // android.view.View
    public boolean onGenericMotionEvent(MotionEvent motionEvent) {
        float axisValue;
        int i;
        boolean z;
        if (this.f919 != null && !this.f881 && motionEvent.getAction() == 8) {
            if ((motionEvent.getSource() & 2) != 0) {
                float f = this.f919.mo282() ? -motionEvent.getAxisValue(9) : 0.0f;
                axisValue = this.f919.mo271() ? motionEvent.getAxisValue(10) : 0.0f;
                i = 0;
                z = false;
                f = f;
            } else if ((motionEvent.getSource() & 4194304) != 0) {
                axisValue = motionEvent.getAxisValue(26);
                if (this.f919.mo282()) {
                    float f2 = -axisValue;
                    axisValue = 0.0f;
                    f = f2;
                } else if (!this.f919.mo271()) {
                    axisValue = 0.0f;
                }
                i = 26;
                z = this.f884;
            } else {
                axisValue = 0.0f;
                i = 0;
                z = false;
            }
            int i2 = (int) (f * this.f920);
            int i3 = (int) (axisValue * this.f854);
            if (z) {
                OverScroller overScroller = this.f917.f15536;
                m589((overScroller.getFinalX() - overScroller.getCurrX()) + i3, (overScroller.getFinalY() - overScroller.getCurrY()) + i2, true);
            } else {
                AbstractC1935 abstractC1935 = this.f919;
                if (abstractC1935 != null && !this.f881) {
                    int[] iArr = this.f908;
                    iArr[0] = 0;
                    iArr[1] = 0;
                    boolean zMo271 = abstractC1935.mo271();
                    boolean zMo282 = this.f919.mo282();
                    int i4 = zMo282 ? (zMo271 ? 1 : 0) | 2 : zMo271 ? 1 : 0;
                    float y = motionEvent.getY();
                    float x = motionEvent.getX();
                    int iM572 = i3 - m572(i3, y);
                    int iM545 = i2 - m545(i2, x);
                    getScrollingChildHelper().m7428(i4, 1);
                    if (m585(zMo271 ? iM572 : 0, zMo282 ? iM545 : 0, 1, this.f908, this.f879)) {
                        iM572 -= iArr[0];
                        iM545 -= iArr[1];
                    }
                    m580(zMo271 ? iM572 : 0, zMo282 ? iM545 : 0, motionEvent, 1);
                    RunnableC4822 runnableC4822 = this.f866;
                    if (runnableC4822 != null && (iM572 != 0 || iM545 != 0)) {
                        runnableC4822.m10153(this, iM572, iM545);
                    }
                    m544(1);
                }
            }
            if (i != 0 && !z) {
                this.f911.m7389(motionEvent, i);
            }
        }
        return false;
    }

    @Override // android.view.ViewGroup
    public final boolean onInterceptTouchEvent(MotionEvent motionEvent) {
        boolean z;
        boolean z2;
        if (!this.f881) {
            this.f880 = null;
            if (m564(motionEvent)) {
                VelocityTracker velocityTracker = this.f926;
                if (velocityTracker != null) {
                    velocityTracker.clear();
                }
                m544(0);
                m559();
                setScrollState(0);
                return true;
            }
            AbstractC1935 abstractC1935 = this.f919;
            if (abstractC1935 != null) {
                boolean zMo271 = abstractC1935.mo271();
                boolean zMo282 = this.f919.mo282();
                if (this.f926 == null) {
                    this.f926 = VelocityTracker.obtain();
                }
                this.f926.addMovement(motionEvent);
                int actionMasked = motionEvent.getActionMasked();
                int actionIndex = motionEvent.getActionIndex();
                if (actionMasked == 0) {
                    if (this.f870) {
                        this.f870 = false;
                    }
                    this.f864 = motionEvent.getPointerId(0);
                    int x = (int) (motionEvent.getX() + 0.5f);
                    this.f910 = x;
                    this.f891 = x;
                    int y = (int) (motionEvent.getY() + 0.5f);
                    this.f900 = y;
                    this.f895 = y;
                    EdgeEffect edgeEffect = this.f918;
                    if (edgeEffect == null || ᵭʝʜ.ᵡʠ(edgeEffect) == 0.0f || canScrollHorizontally(-1)) {
                        z = false;
                    } else {
                        ᵭʝʜ.ᵿʗᵝʽ(this.f918, 0.0f, 1.0f - (motionEvent.getY() / getHeight()));
                        z = true;
                    }
                    EdgeEffect edgeEffect2 = this.f885;
                    if (edgeEffect2 != null && ᵭʝʜ.ᵡʠ(edgeEffect2) != 0.0f && !canScrollHorizontally(1)) {
                        ᵭʝʜ.ᵿʗᵝʽ(this.f885, 0.0f, motionEvent.getY() / getHeight());
                        z = true;
                    }
                    EdgeEffect edgeEffect3 = this.f871;
                    if (edgeEffect3 != null && ᵭʝʜ.ᵡʠ(edgeEffect3) != 0.0f && !canScrollVertically(-1)) {
                        ᵭʝʜ.ᵿʗᵝʽ(this.f871, 0.0f, motionEvent.getX() / getWidth());
                        z = true;
                    }
                    EdgeEffect edgeEffect4 = this.f855;
                    if (edgeEffect4 != null && ᵭʝʜ.ᵡʠ(edgeEffect4) != 0.0f && !canScrollVertically(1)) {
                        ᵭʝʜ.ᵿʗᵝʽ(this.f855, 0.0f, 1.0f - (motionEvent.getX() / getWidth()));
                        z = true;
                    }
                    if (z || this.f894 == 2) {
                        getParent().requestDisallowInterceptTouchEvent(true);
                        setScrollState(1);
                        m544(1);
                    }
                    int[] iArr = this.f897;
                    iArr[1] = 0;
                    iArr[0] = 0;
                    m546(0);
                } else if (actionMasked == 1) {
                    this.f926.clear();
                    m544(0);
                } else if (actionMasked == 2) {
                    int iFindPointerIndex = motionEvent.findPointerIndex(this.f864);
                    if (iFindPointerIndex >= 0) {
                        int x2 = (int) (motionEvent.getX(iFindPointerIndex) + 0.5f);
                        int y2 = (int) (motionEvent.getY(iFindPointerIndex) + 0.5f);
                        if (this.f894 != 1) {
                            int i = x2 - this.f891;
                            int i2 = y2 - this.f895;
                            if (!zMo271 || Math.abs(i) <= this.f853) {
                                z2 = false;
                            } else {
                                this.f910 = x2;
                                z2 = true;
                            }
                            if (zMo282 && Math.abs(i2) > this.f853) {
                                this.f900 = y2;
                                z2 = true;
                            }
                            if (z2) {
                                setScrollState(1);
                            }
                        }
                    }
                } else if (actionMasked == 3) {
                    VelocityTracker velocityTracker2 = this.f926;
                    if (velocityTracker2 != null) {
                        velocityTracker2.clear();
                    }
                    m544(0);
                    m559();
                    setScrollState(0);
                } else if (actionMasked == 5) {
                    this.f864 = motionEvent.getPointerId(actionIndex);
                    int x3 = (int) (motionEvent.getX(actionIndex) + 0.5f);
                    this.f910 = x3;
                    this.f891 = x3;
                    int y3 = (int) (motionEvent.getY(actionIndex) + 0.5f);
                    this.f900 = y3;
                    this.f895 = y3;
                } else if (actionMasked == 6) {
                    m562(motionEvent);
                }
                if (this.f894 == 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");
        m573();
        Trace.endSection();
        this.f869 = true;
    }

    @Override // android.view.View
    public final void onMeasure(int i, int i2) {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 == null) {
            m556(i, i2);
            return;
        }
        boolean zMo504 = abstractC1935.mo504();
        C4276 c4276 = this.f925;
        boolean z = false;
        C1529 c1529 = this.f901;
        if (zMo504) {
            int mode = View.MeasureSpec.getMode(i);
            int mode2 = View.MeasureSpec.getMode(i2);
            this.f919.mo317(c4276, c1529, i, i2);
            if (mode == 1073741824 && mode2 == 1073741824) {
                z = true;
            }
            this.f882 = z;
            if (z || this.f898 == null) {
                return;
            }
            if (c1529.f6133 == 1) {
                m595();
            }
            this.f919.m5444(i, i2);
            c1529.f6124 = true;
            m570();
            this.f919.m5432(i, i2);
            if (this.f919.mo529()) {
                this.f919.m5444(View.MeasureSpec.makeMeasureSpec(getMeasuredWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(getMeasuredHeight(), 1073741824));
                c1529.f6124 = true;
                m570();
                this.f919.m5432(i, i2);
            }
            this.f892 = getMeasuredWidth();
            this.f852 = getMeasuredHeight();
            return;
        }
        if (this.f875) {
            this.f919.mo317(c4276, c1529, i, i2);
            return;
        }
        if (this.f888) {
            m571();
            m575();
            m547();
            m553(true);
            if (c1529.f6131) {
                c1529.f6121 = true;
            } else {
                this.f893.m4601();
                c1529.f6121 = false;
            }
            this.f888 = false;
            m588(false);
        } else if (c1529.f6131) {
            setMeasuredDimension(getMeasuredWidth(), getMeasuredHeight());
            return;
        }
        AbstractC1307 abstractC1307 = this.f898;
        if (abstractC1307 != null) {
            c1529.f6118 = abstractC1307.mo2536();
        } else {
            c1529.f6118 = 0;
        }
        m571();
        this.f919.mo317(c4276, c1529, i, i2);
        m588(false);
        c1529.f6121 = false;
    }

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

    @Override // android.view.View
    public void onRestoreInstanceState(Parcelable parcelable) {
        if (!(parcelable instanceof C2033)) {
            super.onRestoreInstanceState(parcelable);
            return;
        }
        C2033 c2033 = (C2033) parcelable;
        this.f924 = c2033;
        super.onRestoreInstanceState(c2033.f7157);
        requestLayout();
    }

    @Override // android.view.View
    public Parcelable onSaveInstanceState() {
        C2033 c2033 = new C2033(super.onSaveInstanceState());
        C2033 c20332 = this.f924;
        if (c20332 != null) {
            c2033.f8159 = c20332.f8159;
            return c2033;
        }
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null) {
            c2033.f8159 = abstractC1935.mo286();
            return c2033;
        }
        c2033.f8159 = null;
        return c2033;
    }

    @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.f855 = null;
        this.f871 = null;
        this.f885 = null;
        this.f918 = 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.
        To view partially-correct add '--show-bad-code' argument
    */
    public boolean onTouchEvent(android.view.MotionEvent r19) {
        /*
            Method dump skipped, instructions count: 770
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.onTouchEvent(android.view.MotionEvent):boolean");
    }

    @Override // android.view.ViewGroup
    public final void removeDetachedView(View view, boolean z) {
        AbstractC2313 abstractC2313M535 = m535(view);
        if (abstractC2313M535 != null) {
            if (abstractC2313M535.m6020()) {
                abstractC2313M535.f9061 &= -257;
            } else if (!abstractC2313M535.m6025()) {
                StringBuilder sb = new StringBuilder("Called removeDetachedView with a view which is not flagged as tmp detached.");
                sb.append(abstractC2313M535);
                ᵹˉᵞ.ᵪʩ(sb, m576());
                return;
            }
        } else if (f850) {
            StringBuilder sb2 = new StringBuilder("No ViewHolder found for child: ");
            sb2.append(view);
            ᵹˉᵞ.ᵪʩ(sb2, m576());
            return;
        }
        view.clearAnimation();
        AbstractC2313 abstractC2313M5352 = m535(view);
        AbstractC1307 abstractC1307 = this.f898;
        if (abstractC1307 != null && abstractC2313M5352 != null) {
            abstractC1307.m4027(abstractC2313M5352);
        }
        super.removeDetachedView(view, z);
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public void requestChildFocus(View view, View view2) {
        if (!this.f919.mo259(this, view, view2) && view2 != null) {
            m599(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.f919.mo316(this, view, rect, z);
    }

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

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

    @Override // android.view.View
    public final void scrollBy(int i, int i2) {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 == null || this.f881) {
            return;
        }
        boolean zMo271 = abstractC1935.mo271();
        boolean zMo282 = this.f919.mo282();
        if (zMo271 || zMo282) {
            if (!zMo271) {
                i = 0;
            }
            if (!zMo282) {
                i2 = 0;
            }
            m580(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 (!m552()) {
            super.sendAccessibilityEventUnchecked(accessibilityEvent);
        } else {
            int contentChangeTypes = accessibilityEvent != null ? accessibilityEvent.getContentChangeTypes() : 0;
            this.f913 |= contentChangeTypes != 0 ? contentChangeTypes : 0;
        }
    }

    public void setAccessibilityDelegateCompat(C2582 c2582) {
        this.f863 = c2582;
        AbstractC2873.m7026(this, c2582);
    }

    public void setAdapter(AbstractC1307 abstractC1307) {
        setLayoutFrozen(false);
        AbstractC1307 abstractC13072 = this.f898;
        C0015 c0015 = this.f890;
        if (abstractC13072 != null) {
            abstractC13072.f5396.unregisterObserver(c0015);
            this.f898.getClass();
        }
        AbstractC2495 abstractC2495 = this.f921;
        if (abstractC2495 != null) {
            abstractC2495.mo6341();
        }
        AbstractC1935 abstractC1935 = this.f919;
        C4276 c4276 = this.f925;
        if (abstractC1935 != null) {
            abstractC1935.mo313(c4276);
            this.f919.m5434(c4276);
        }
        c4276.f16044.clear();
        c4276.m9249();
        C1611 c1611 = this.f893;
        c1611.m4609((ArrayList) c1611.f6400);
        c1611.m4609((ArrayList) c1611.f6403);
        c1611.f6401 = 0;
        AbstractC1307 abstractC13073 = this.f898;
        this.f898 = abstractC1307;
        if (abstractC1307 != null) {
            abstractC1307.f5396.registerObserver(c0015);
        }
        AbstractC1935 abstractC19352 = this.f919;
        if (abstractC19352 != null) {
            abstractC19352.mo333(abstractC13073, this.f898);
        }
        AbstractC1307 abstractC13074 = this.f898;
        c4276.f16044.clear();
        c4276.m9249();
        c4276.m9250(abstractC13073, true);
        C4972 c4972M9251 = c4276.m9251();
        if (abstractC13073 != null) {
            c4972M9251.f18467--;
        }
        if (c4972M9251.f18467 == 0) {
            SparseArray sparseArray = c4972M9251.f18466;
            for (int i = 0; i < sparseArray.size(); i++) {
                C3003 c3003 = (C3003) sparseArray.valueAt(i);
                ArrayList arrayList = c3003.f11583;
                int size = arrayList.size();
                int i2 = 0;
                while (i2 < size) {
                    Object obj = arrayList.get(i2);
                    i2++;
                    ᵸᵡˋʧ.ᵴᵳ(((AbstractC2313) obj).f9071);
                }
                c3003.f11583.clear();
            }
        }
        if (abstractC13074 != null) {
            c4972M9251.f18467++;
        }
        c4276.m9247();
        this.f901.f6122 = true;
        m554(false);
        requestLayout();
    }

    public void setChildDrawingOrderCallback(InterfaceC3852 interfaceC3852) {
        if (interfaceC3852 == null) {
            return;
        }
        setChildrenDrawingOrderEnabled(false);
    }

    @Override // android.view.ViewGroup
    public void setClipToPadding(boolean z) {
        if (z != this.f886) {
            this.f855 = null;
            this.f871 = null;
            this.f885 = null;
            this.f918 = null;
        }
        this.f886 = z;
        super.setClipToPadding(z);
        if (this.f869) {
            requestLayout();
        }
    }

    public void setEdgeEffectFactory(AbstractC0931 abstractC0931) {
        abstractC0931.getClass();
        this.f868 = abstractC0931;
        this.f855 = null;
        this.f871 = null;
        this.f885 = null;
        this.f918 = null;
    }

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

    public void setItemAnimator(AbstractC2495 abstractC2495) {
        AbstractC2495 abstractC24952 = this.f921;
        if (abstractC24952 != null) {
            abstractC24952.mo6341();
            this.f921.f9741 = null;
        }
        this.f921 = abstractC2495;
        if (abstractC2495 != null) {
            abstractC2495.f9741 = this.f905;
        }
    }

    public void setItemViewCacheSize(int i) {
        C4276 c4276 = this.f925;
        c4276.f16040 = i;
        c4276.m9254();
    }

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

    public void setLayoutManager(AbstractC1935 abstractC1935) {
        RecyclerView recyclerView;
        if (abstractC1935 == this.f919) {
            return;
        }
        m598();
        AbstractC1935 abstractC19352 = this.f919;
        C4276 c4276 = this.f925;
        if (abstractC19352 != null) {
            AbstractC2495 abstractC2495 = this.f921;
            if (abstractC2495 != null) {
                abstractC2495.mo6341();
            }
            this.f919.mo313(c4276);
            this.f919.m5434(c4276);
            c4276.f16044.clear();
            c4276.m9249();
            if (this.f887) {
                AbstractC1935 abstractC19353 = this.f919;
                abstractC19353.f7777 = false;
                abstractC19353.mo530(this);
            }
            this.f919.m5420(null);
            this.f919 = null;
        } else {
            c4276.f16044.clear();
            c4276.m9249();
        }
        C0723 c0723 = this.f889;
        ((C3293) c0723.f3480).m7677();
        ArrayList arrayList = (ArrayList) c0723.f3478;
        int size = arrayList.size() - 1;
        while (true) {
            recyclerView = (RecyclerView) ((ˊʘ) c0723.f3481).ᵢˇᵭ;
            if (size < 0) {
                break;
            }
            AbstractC2313 abstractC2313M535 = m535((View) arrayList.get(size));
            if (abstractC2313M535 != null) {
                int i = abstractC2313M535.f9060;
                if (recyclerView.m552()) {
                    abstractC2313M535.f9077 = i;
                    recyclerView.f861.add(abstractC2313M535);
                } else {
                    abstractC2313M535.f9071.setImportantForAccessibility(i);
                }
                abstractC2313M535.f9060 = 0;
            }
            arrayList.remove(size);
            size--;
        }
        int childCount = recyclerView.getChildCount();
        for (int i2 = 0; i2 < childCount; i2++) {
            View childAt = recyclerView.getChildAt(i2);
            AbstractC2313 abstractC2313M5352 = m535(childAt);
            AbstractC1307 abstractC1307 = recyclerView.f898;
            if (abstractC1307 != null && abstractC2313M5352 != null) {
                abstractC1307.m4027(abstractC2313M5352);
            }
            childAt.clearAnimation();
        }
        recyclerView.removeAllViews();
        this.f919 = abstractC1935;
        if (abstractC1935 != null) {
            if (abstractC1935.f7785 != null) {
                StringBuilder sb = new StringBuilder("LayoutManager ");
                sb.append(abstractC1935);
                C0190.m1430(sb, " is already attached to a RecyclerView:", abstractC1935.f7785.m576());
                return;
            } else {
                abstractC1935.m5420(this);
                if (this.f887) {
                    AbstractC1935 abstractC19354 = this.f919;
                    abstractC19354.f7777 = true;
                    abstractC19354.mo817(this);
                }
            }
        }
        c4276.m9254();
        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) {
        C3096 scrollingChildHelper = getScrollingChildHelper();
        if (scrollingChildHelper.f11806) {
            ViewGroup viewGroup = scrollingChildHelper.f11803;
            WeakHashMap weakHashMap = AbstractC2873.f11133;
            viewGroup.stopNestedScroll();
        }
        scrollingChildHelper.f11806 = z;
    }

    public void setOnFlingListener(AbstractC0330 abstractC0330) {
        this.f883 = abstractC0330;
    }

    @Deprecated
    public void setOnScrollListener(AbstractC0585 abstractC0585) {
        this.f896 = abstractC0585;
    }

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

    public void setRecycledViewPool(C4972 c4972) {
        C4276 c4276 = this.f925;
        RecyclerView recyclerView = c4276.f16046;
        c4276.m9250(recyclerView.f898, false);
        if (c4276.f16041 != null) {
            r1.f18467--;
        }
        c4276.f16041 = c4972;
        if (c4972 != null && recyclerView.getAdapter() != null) {
            c4276.f16041.f18467++;
        }
        c4276.m9247();
    }

    @Deprecated
    public void setRecyclerListener(InterfaceC1911 interfaceC1911) {
        this.f877 = interfaceC1911;
    }

    public void setScrollState(int i) {
        C3839 c3839;
        if (i == this.f894) {
            return;
        }
        if (f849) {
            new Exception();
        }
        this.f894 = i;
        if (i != 2) {
            RunnableC4157 runnableC4157 = this.f917;
            runnableC4157.f15530.removeCallbacks(runnableC4157);
            runnableC4157.f15536.abortAnimation();
            AbstractC1935 abstractC1935 = this.f919;
            if (abstractC1935 != null && (c3839 = abstractC1935.f7775) != null) {
                c3839.m8486();
            }
        }
        AbstractC1935 abstractC19352 = this.f919;
        if (abstractC19352 != null) {
            abstractC19352.mo330(i);
        }
        AbstractC0585 abstractC0585 = this.f896;
        if (abstractC0585 != null) {
            abstractC0585.mo2463(i);
        }
        ArrayList arrayList = this.f912;
        if (arrayList != null) {
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                ((AbstractC0585) this.f912.get(size)).mo2463(i);
            }
        }
    }

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

    public void setViewCacheExtension(AbstractC4163 abstractC4163) {
        this.f925.getClass();
    }

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

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

    @Override // android.view.ViewGroup
    public final void suppressLayout(boolean z) {
        if (z != this.f881) {
            m593("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.f881 = true;
                this.f870 = true;
                m598();
                return;
            }
            this.f881 = false;
            if (this.f865 && this.f919 != null && this.f898 != null) {
                requestLayout();
            }
            this.f865 = false;
        }
    }

    /* renamed from: ʽᵢˊ, reason: contains not printable characters */
    public void mo543(int i) {
        AbstractC1935 abstractC1935;
        if (this.f881 || (abstractC1935 = this.f919) == null) {
            return;
        }
        abstractC1935.mo323(this, i);
    }

    /* renamed from: ʾˋˊᵽ, reason: contains not printable characters */
    public final void m544(int i) {
        getScrollingChildHelper().m7427(i);
    }

    /* renamed from: ʾᵻᵭٴ, reason: contains not printable characters */
    public final int m545(int i, float f) {
        float width = f / getWidth();
        float height = i / getHeight();
        EdgeEffect edgeEffect = this.f871;
        float f2 = 0.0f;
        if (edgeEffect == null || ᵭʝʜ.ᵡʠ(edgeEffect) == 0.0f) {
            EdgeEffect edgeEffect2 = this.f855;
            if (edgeEffect2 != null && ᵭʝʜ.ᵡʠ(edgeEffect2) != 0.0f) {
                boolean zCanScrollVertically = canScrollVertically(1);
                EdgeEffect edgeEffect3 = this.f855;
                if (zCanScrollVertically) {
                    edgeEffect3.onRelease();
                } else {
                    float f3 = ᵭʝʜ.ᵿʗᵝʽ(edgeEffect3, height, 1.0f - width);
                    if (ᵭʝʜ.ᵡʠ(this.f855) == 0.0f) {
                        this.f855.onRelease();
                    }
                    f2 = f3;
                }
                invalidate();
            }
        } else {
            boolean zCanScrollVertically2 = canScrollVertically(-1);
            EdgeEffect edgeEffect4 = this.f871;
            if (zCanScrollVertically2) {
                edgeEffect4.onRelease();
            } else {
                float f4 = -ᵭʝʜ.ᵿʗᵝʽ(edgeEffect4, -height, width);
                if (ᵭʝʜ.ᵡʠ(this.f871) == 0.0f) {
                    this.f871.onRelease();
                }
                f2 = f4;
            }
            invalidate();
        }
        return Math.round(f2 * getHeight());
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* renamed from: ʿᵘˆ, reason: contains not printable characters */
    public final void m546(int i) {
        boolean zMo271 = this.f919.mo271();
        int i2 = zMo271;
        if (this.f919.mo282()) {
            i2 = (zMo271 ? 1 : 0) | 2;
        }
        getScrollingChildHelper().m7428(i2, i);
    }

    /* renamed from: ˀˁᵨ, reason: contains not printable characters */
    public final void m547() {
        boolean z;
        boolean z2 = this.f873;
        C1611 c1611 = this.f893;
        boolean z3 = false;
        if (z2) {
            c1611.m4609((ArrayList) c1611.f6400);
            c1611.m4609((ArrayList) c1611.f6403);
            c1611.f6401 = 0;
            if (this.f902) {
                this.f919.mo301();
            }
        }
        if (this.f921 != null && this.f919.mo492()) {
            c1611.m4621();
        } else {
            c1611.m4601();
        }
        boolean z4 = this.f862 || this.f874;
        boolean z5 = this.f869 && this.f921 != null && ((z = this.f873) || z4 || this.f919.f7778) && (!z || this.f898.f5397);
        C1529 c1529 = this.f901;
        c1529.f6130 = z5;
        if (z5 && z4 && !this.f873 && this.f921 != null && this.f919.mo492()) {
            z3 = true;
        }
        c1529.f6131 = z3;
    }

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final void m548(C1529 c1529) {
        if (getScrollState() != 2) {
            c1529.f6128 = 0;
            c1529.f6119 = 0;
        } else {
            OverScroller overScroller = this.f917.f15536;
            c1529.f6128 = overScroller.getFinalX() - overScroller.getCurrX();
            c1529.f6119 = overScroller.getFinalY() - overScroller.getCurrY();
        }
    }

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public boolean m549() {
        return isChildrenDrawingOrderEnabled();
    }

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public final long m550(AbstractC2313 abstractC2313) {
        return this.f898.f5397 ? abstractC2313.f9069 : abstractC2313.f9076;
    }

    /* renamed from: ˆᵴᵜˏ, reason: contains not printable characters */
    public final void m551(int[] iArr, int i, int i2) {
        AbstractC2313 abstractC2313;
        m571();
        m575();
        Trace.beginSection("RV Scroll");
        C1529 c1529 = this.f901;
        m548(c1529);
        C4276 c4276 = this.f925;
        int iMo318 = i != 0 ? this.f919.mo318(i, c4276, c1529) : 0;
        int iMo306 = i2 != 0 ? this.f919.mo306(i2, c4276, c1529) : 0;
        Trace.endSection();
        C0723 c0723 = this.f889;
        int iM2781 = c0723.m2781();
        for (int i3 = 0; i3 < iM2781; i3++) {
            View viewM2768 = c0723.m2768(i3);
            AbstractC2313 abstractC2313M567 = m567(viewM2768);
            if (abstractC2313M567 != null && (abstractC2313 = abstractC2313M567.f9062) != null) {
                View view = abstractC2313.f9071;
                int left = viewM2768.getLeft();
                int top = viewM2768.getTop();
                if (left != view.getLeft() || top != view.getTop()) {
                    view.layout(left, top, view.getWidth() + left, view.getHeight() + top);
                }
            }
        }
        m553(true);
        m588(false);
        if (iArr != null) {
            iArr[0] = iMo318;
            iArr[1] = iMo306;
        }
    }

    /* renamed from: ˆᵼᵷˊ, reason: contains not printable characters */
    public final boolean m552() {
        return this.f923 > 0;
    }

    /* renamed from: ˊʽˎ, reason: contains not printable characters */
    public final void m553(boolean z) {
        int i;
        AccessibilityManager accessibilityManager;
        int i2 = this.f923 - 1;
        this.f923 = i2;
        if (i2 < 1) {
            if (f850 && i2 < 0) {
                ᵹˉᵞ.ᵳٴᵶ("layout or scroll counter cannot go below zero.Some calls are not matching".concat(m576()));
                return;
            }
            this.f923 = 0;
            if (z) {
                int i3 = this.f913;
                this.f913 = 0;
                if (i3 != 0 && (accessibilityManager = this.f867) != null && accessibilityManager.isEnabled()) {
                    AccessibilityEvent accessibilityEventObtain = AccessibilityEvent.obtain();
                    accessibilityEventObtain.setEventType(2048);
                    accessibilityEventObtain.setContentChangeTypes(i3);
                    sendAccessibilityEventUnchecked(accessibilityEventObtain);
                }
                ArrayList arrayList = this.f861;
                for (int size = arrayList.size() - 1; size >= 0; size--) {
                    AbstractC2313 abstractC2313 = (AbstractC2313) arrayList.get(size);
                    if (abstractC2313.f9071.getParent() == this && !abstractC2313.m6025() && (i = abstractC2313.f9077) != -1) {
                        abstractC2313.f9071.setImportantForAccessibility(i);
                        abstractC2313.f9077 = -1;
                    }
                }
                arrayList.clear();
            }
        }
    }

    /* renamed from: ˊʾˊ, reason: contains not printable characters */
    public final void m554(boolean z) {
        this.f902 = z | this.f902;
        this.f873 = true;
        C0723 c0723 = this.f889;
        int iM2744 = c0723.m2744();
        for (int i = 0; i < iM2744; i++) {
            AbstractC2313 abstractC2313M535 = m535(c0723.m2776(i));
            if (abstractC2313M535 != null && !abstractC2313M535.m6025()) {
                abstractC2313M535.m6026(6);
            }
        }
        m558();
        C4276 c4276 = this.f925;
        ArrayList arrayList = c4276.f16043;
        int size = arrayList.size();
        for (int i2 = 0; i2 < size; i2++) {
            AbstractC2313 abstractC2313 = (AbstractC2313) arrayList.get(i2);
            if (abstractC2313 != null) {
                abstractC2313.m6026(6);
                abstractC2313.m6026(1024);
            }
        }
        AbstractC1307 abstractC1307 = c4276.f16046.f898;
        if (abstractC1307 == null || !abstractC1307.f5397) {
            c4276.m9249();
        }
    }

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public final boolean m555() {
        return !this.f869 || this.f873 || this.f893.m4603();
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public final void m556(int i, int i2) {
        int paddingRight = getPaddingRight() + getPaddingLeft();
        WeakHashMap weakHashMap = AbstractC2873.f11133;
        setMeasuredDimension(AbstractC1935.m5418(i, paddingRight, getMinimumWidth()), AbstractC1935.m5418(i2, getPaddingBottom() + getPaddingTop(), getMinimumHeight()));
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final void m557() {
        C0723 c0723 = this.f889;
        int iM2744 = c0723.m2744();
        for (int i = 0; i < iM2744; i++) {
            AbstractC2313 abstractC2313M535 = m535(c0723.m2776(i));
            if (!abstractC2313M535.m6025()) {
                abstractC2313M535.f9075 = -1;
                abstractC2313M535.f9059 = -1;
            }
        }
        C4276 c4276 = this.f925;
        ArrayList arrayList = c4276.f16044;
        ArrayList arrayList2 = c4276.f16043;
        int size = arrayList2.size();
        for (int i2 = 0; i2 < size; i2++) {
            AbstractC2313 abstractC2313 = (AbstractC2313) arrayList2.get(i2);
            abstractC2313.f9075 = -1;
            abstractC2313.f9059 = -1;
        }
        int size2 = arrayList.size();
        for (int i3 = 0; i3 < size2; i3++) {
            AbstractC2313 abstractC23132 = (AbstractC2313) arrayList.get(i3);
            abstractC23132.f9075 = -1;
            abstractC23132.f9059 = -1;
        }
        ArrayList arrayList3 = c4276.f16045;
        if (arrayList3 != null) {
            int size3 = arrayList3.size();
            for (int i4 = 0; i4 < size3; i4++) {
                AbstractC2313 abstractC23133 = (AbstractC2313) c4276.f16045.get(i4);
                abstractC23133.f9075 = -1;
                abstractC23133.f9059 = -1;
            }
        }
    }

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public final void m558() {
        C0723 c0723 = this.f889;
        int iM2744 = c0723.m2744();
        for (int i = 0; i < iM2744; i++) {
            ((C1923) c0723.m2776(i).getLayoutParams()).f7732 = true;
        }
        ArrayList arrayList = this.f925.f16043;
        int size = arrayList.size();
        for (int i2 = 0; i2 < size; i2++) {
            C1923 c1923 = (C1923) ((AbstractC2313) arrayList.get(i2)).f9071.getLayoutParams();
            if (c1923 != null) {
                c1923.f7732 = true;
            }
        }
    }

    /* renamed from: ˌᵹᵨˑ, reason: contains not printable characters */
    public final void m559() {
        boolean zIsFinished;
        EdgeEffect edgeEffect = this.f918;
        if (edgeEffect != null) {
            edgeEffect.onRelease();
            zIsFinished = this.f918.isFinished();
        } else {
            zIsFinished = false;
        }
        EdgeEffect edgeEffect2 = this.f871;
        if (edgeEffect2 != null) {
            edgeEffect2.onRelease();
            zIsFinished |= this.f871.isFinished();
        }
        EdgeEffect edgeEffect3 = this.f885;
        if (edgeEffect3 != null) {
            edgeEffect3.onRelease();
            zIsFinished |= this.f885.isFinished();
        }
        EdgeEffect edgeEffect4 = this.f855;
        if (edgeEffect4 != null) {
            edgeEffect4.onRelease();
            zIsFinished |= this.f855.isFinished();
        }
        if (zIsFinished) {
            postInvalidateOnAnimation();
        }
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final void m560(AbstractC2313 abstractC2313) {
        View view = abstractC2313.f9071;
        boolean z = view.getParent() == this;
        this.f925.m9255(m567(view));
        boolean zM6020 = abstractC2313.m6020();
        C0723 c0723 = this.f889;
        if (zM6020) {
            c0723.m2753(view, -1, view.getLayoutParams(), true);
            return;
        }
        if (!z) {
            c0723.m2782(-1, view, true);
            return;
        }
        int iIndexOfChild = ((RecyclerView) ((ˊʘ) c0723.f3481).ᵢˇᵭ).indexOfChild(view);
        if (iIndexOfChild < 0) {
            ᵨᴵᵺ.ᵨᵳʝ(view, "view is not a child, cannot hide ");
        } else {
            ((C3293) c0723.f3480).m7674(iIndexOfChild);
            c0723.m2785(view);
        }
    }

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public final void m561(int[] iArr) {
        C0723 c0723 = this.f889;
        int iM2781 = c0723.m2781();
        if (iM2781 == 0) {
            iArr[0] = -1;
            iArr[1] = -1;
            return;
        }
        int i = Integer.MAX_VALUE;
        int i2 = Integer.MIN_VALUE;
        for (int i3 = 0; i3 < iM2781; i3++) {
            AbstractC2313 abstractC2313M535 = m535(c0723.m2768(i3));
            if (!abstractC2313M535.m6025()) {
                int iM6035 = abstractC2313M535.m6035();
                if (iM6035 < i) {
                    i = iM6035;
                }
                if (iM6035 > i2) {
                    i2 = iM6035;
                }
            }
        }
        iArr[0] = i;
        iArr[1] = i2;
    }

    /* renamed from: ˎᵬˀ, reason: contains not printable characters */
    public final void m562(MotionEvent motionEvent) {
        int actionIndex = motionEvent.getActionIndex();
        if (motionEvent.getPointerId(actionIndex) == this.f864) {
            int i = actionIndex == 0 ? 1 : 0;
            this.f864 = motionEvent.getPointerId(i);
            int x = (int) (motionEvent.getX(i) + 0.5f);
            this.f910 = x;
            this.f891 = x;
            int y = (int) (motionEvent.getY(i) + 0.5f);
            this.f900 = y;
            this.f895 = y;
        }
    }

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public final Rect m563(View view) {
        C1923 c1923 = (C1923) view.getLayoutParams();
        boolean z = c1923.f7732;
        Rect rect = c1923.f7734;
        if (!z || (this.f901.f6121 && (c1923.f7733.m6028() || c1923.f7733.m6034()))) {
            return rect;
        }
        rect.set(0, 0, 0, 0);
        ArrayList arrayList = this.f860;
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            Rect rect2 = this.f876;
            rect2.set(0, 0, 0, 0);
            ((AbstractC2003) arrayList.get(i)).mo5522(rect2, view, this);
            rect.left += rect2.left;
            rect.top += rect2.top;
            rect.right += rect2.right;
            rect.bottom += rect2.bottom;
        }
        c1923.f7732 = false;
        return rect;
    }

    /* JADX WARN: Removed duplicated region for block: B:23:0x005e A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:27:0x0061 A[SYNTHETIC] */
    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final boolean m564(android.view.MotionEvent r12) {
        /*
            r11 = this;
            int r0 = r12.getAction()
            java.util.ArrayList r1 = r11.f927
            int r2 = r1.size()
            r3 = 0
            r4 = r3
        Lc:
            if (r4 >= r2) goto L64
            java.lang.Object r5 = r1.get(r4)
            ʿᵾ r5 = (defpackage.C0485) r5
            int r6 = r5.f2573
            r7 = 1
            r8 = 2
            if (r6 != r7) goto L59
            float r6 = r12.getX()
            float r9 = r12.getY()
            boolean r6 = r5.m2112(r6, r9)
            float r9 = r12.getX()
            float r10 = r12.getY()
            boolean r9 = r5.m2110(r9, r10)
            int r10 = r12.getAction()
            if (r10 != 0) goto L61
            if (r6 != 0) goto L3c
            if (r9 == 0) goto L61
        L3c:
            if (r9 == 0) goto L49
            r5.f2570 = r7
            float r6 = r12.getX()
            int r6 = (int) r6
            float r6 = (float) r6
            r5.f2560 = r6
            goto L55
        L49:
            if (r6 == 0) goto L55
            r5.f2570 = r8
            float r6 = r12.getY()
            int r6 = (int) r6
            float r6 = (float) r6
            r5.f2576 = r6
        L55:
            r5.m2109(r8)
            goto L5b
        L59:
            if (r6 != r8) goto L61
        L5b:
            r6 = 3
            if (r0 == r6) goto L61
            r11.f880 = r5
            return r7
        L61:
            int r4 = r4 + 1
            goto Lc
        L64:
            return r3
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.m564(android.view.MotionEvent):boolean");
    }

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public final void m565(int i, int i2, int i3, int i4, int[] iArr, int i5, int[] iArr2) {
        getScrollingChildHelper().m7429(i, i2, i3, i4, iArr, i5, iArr2);
    }

    /* JADX WARN: Removed duplicated region for block: B:91:0x012a  */
    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final boolean m566(int r22, int r23, int r24, int r25) {
        /*
            Method dump skipped, instructions count: 463
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.m566(int, int, int, int):boolean");
    }

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public AbstractC2313 m567(View view) {
        ViewParent parent = view.getParent();
        if (parent == null || parent == this) {
            return m535(view);
        }
        C0190.m1426("View ", view, " is not a direct child of ", this);
        return null;
    }

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public final void m568(int i) {
        if (this.f919 == null) {
            return;
        }
        setScrollState(2);
        this.f919.mo288(i);
        awakenScrollBars();
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final void m569(AbstractC0585 abstractC0585) {
        if (this.f912 == null) {
            this.f912 = new ArrayList();
        }
        this.f912.add(abstractC0585);
    }

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public final void m570() {
        m571();
        m575();
        C1529 c1529 = this.f901;
        c1529.m4453(6);
        this.f893.m4601();
        c1529.f6118 = this.f898.mo2536();
        c1529.f6123 = 0;
        if (this.f924 != null) {
            AbstractC1307 abstractC1307 = this.f898;
            int iM4088 = AbstractC1327.m4088(abstractC1307.f5395);
            if (iM4088 == 1 ? abstractC1307.mo2536() > 0 : iM4088 != 2) {
                Parcelable parcelable = this.f924.f8159;
                if (parcelable != null) {
                    this.f919.mo331(parcelable);
                }
                this.f924 = null;
            }
        }
        c1529.f6121 = false;
        this.f919.mo297(this.f925, c1529);
        c1529.f6122 = false;
        c1529.f6130 = c1529.f6130 && this.f921 != null;
        c1529.f6133 = 4;
        m553(true);
        m588(false);
    }

    /* renamed from: ᵠᵪˀᵻ, reason: contains not printable characters */
    public final void m571() {
        int i = this.f859 + 1;
        this.f859 = i;
        if (i != 1 || this.f881) {
            return;
        }
        this.f865 = false;
    }

    /* renamed from: ᵠᵿː, reason: contains not printable characters */
    public final int m572(int i, float f) {
        float height = f / getHeight();
        float width = i / getWidth();
        EdgeEffect edgeEffect = this.f918;
        float f2 = 0.0f;
        if (edgeEffect == null || ᵭʝʜ.ᵡʠ(edgeEffect) == 0.0f) {
            EdgeEffect edgeEffect2 = this.f885;
            if (edgeEffect2 != null && ᵭʝʜ.ᵡʠ(edgeEffect2) != 0.0f) {
                boolean zCanScrollHorizontally = canScrollHorizontally(1);
                EdgeEffect edgeEffect3 = this.f885;
                if (zCanScrollHorizontally) {
                    edgeEffect3.onRelease();
                } else {
                    float f3 = ᵭʝʜ.ᵿʗᵝʽ(edgeEffect3, width, height);
                    if (ᵭʝʜ.ᵡʠ(this.f885) == 0.0f) {
                        this.f885.onRelease();
                    }
                    f2 = f3;
                }
                invalidate();
            }
        } else {
            boolean zCanScrollHorizontally2 = canScrollHorizontally(-1);
            EdgeEffect edgeEffect4 = this.f918;
            if (zCanScrollHorizontally2) {
                edgeEffect4.onRelease();
            } else {
                float f4 = -ᵭʝʜ.ᵿʗᵝʽ(edgeEffect4, -width, 1.0f - height);
                if (ᵭʝʜ.ᵡʠ(this.f918) == 0.0f) {
                    this.f918.onRelease();
                }
                f2 = f4;
            }
            invalidate();
        }
        return Math.round(f2 * getWidth());
    }

    /* 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 */
    /* renamed from: ᵡʠ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void m573() {
        /*
            Method dump skipped, instructions count: 1044
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.m573():void");
    }

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public final View m574(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;
    }

    /* renamed from: ᵡᵶᵡ, reason: contains not printable characters */
    public final void m575() {
        this.f923++;
    }

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final String m576() {
        return " " + super.toString() + ", adapter:" + this.f898 + ", layout:" + this.f919 + ", context:" + getContext();
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final void m577() {
        if (this.f855 != null) {
            return;
        }
        ((C4116) this.f868).getClass();
        EdgeEffect edgeEffect = new EdgeEffect(getContext());
        this.f855 = edgeEffect;
        if (this.f886) {
            edgeEffect.setSize((getMeasuredWidth() - getPaddingLeft()) - getPaddingRight(), (getMeasuredHeight() - getPaddingTop()) - getPaddingBottom());
        } else {
            edgeEffect.setSize(getMeasuredWidth(), getMeasuredHeight());
        }
    }

    /* renamed from: ᵣᵟᵔ, reason: contains not printable characters */
    public final boolean m578(EdgeEffect edgeEffect, int i, int i2) {
        if (i > 0) {
            return true;
        }
        float f = ᵭʝʜ.ᵡʠ(edgeEffect) * i2;
        float fAbs = Math.abs(-i) * 0.35f;
        float f2 = this.f899 * 0.015f;
        double dLog = Math.log(fAbs / f2);
        double d = f844;
        return ((float) (Math.exp((d / (d - 1.0d)) * dLog) * ((double) f2))) < f;
    }

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final void m579() {
        if (this.f871 != null) {
            return;
        }
        ((C4116) this.f868).getClass();
        EdgeEffect edgeEffect = new EdgeEffect(getContext());
        this.f871 = edgeEffect;
        if (this.f886) {
            edgeEffect.setSize((getMeasuredWidth() - getPaddingLeft()) - getPaddingRight(), (getMeasuredHeight() - getPaddingTop()) - getPaddingBottom());
        } else {
            edgeEffect.setSize(getMeasuredWidth(), getMeasuredHeight());
        }
    }

    /* 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  */
    /* renamed from: ᵤᵼˑʠ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final boolean m580(int r19, int r20, android.view.MotionEvent r21, int r22) {
        /*
            Method dump skipped, instructions count: 322
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.m580(int, int, android.view.MotionEvent, int):boolean");
    }

    /* renamed from: ᵥʩᵩˑ, reason: contains not printable characters */
    public void mo581(int i, int i2) {
        mo584(i, i2);
    }

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public final AbstractC2313 m582(int i) {
        AbstractC2313 abstractC2313 = null;
        if (this.f873) {
            return null;
        }
        C0723 c0723 = this.f889;
        int iM2744 = c0723.m2744();
        for (int i2 = 0; i2 < iM2744; i2++) {
            AbstractC2313 abstractC2313M535 = m535(c0723.m2776(i2));
            if (abstractC2313M535 != null && !abstractC2313M535.m6031() && m592(abstractC2313M535) == i) {
                if (!((ArrayList) c0723.f3478).contains(abstractC2313M535.f9071)) {
                    return abstractC2313M535;
                }
                abstractC2313 = abstractC2313M535;
            }
        }
        return abstractC2313;
    }

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final void m583(int i, int i2) {
        this.f857++;
        int scrollX = getScrollX();
        int scrollY = getScrollY();
        onScrollChanged(scrollX, scrollY, scrollX - i, scrollY - i2);
        m586(i, i2);
        AbstractC0585 abstractC0585 = this.f896;
        if (abstractC0585 != null) {
            abstractC0585.mo2464(this);
        }
        ArrayList arrayList = this.f912;
        if (arrayList != null) {
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                ((AbstractC0585) this.f912.get(size)).mo2464(this);
            }
        }
        this.f857--;
    }

    /* renamed from: ᵨٴ, reason: contains not printable characters */
    public void mo584(int i, int i2) {
        m589(i, i2, false);
    }

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public final boolean m585(int i, int i2, int i3, int[] iArr, int[] iArr2) {
        return getScrollingChildHelper().m7431(i, i2, i3, iArr, iArr2);
    }

    /* renamed from: ᵫᵮʾ, reason: contains not printable characters */
    public void m586(int i, int i2) {
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public final void m587(int i, int i2) {
        boolean zIsFinished;
        EdgeEffect edgeEffect = this.f918;
        if (edgeEffect == null || edgeEffect.isFinished() || i <= 0) {
            zIsFinished = false;
        } else {
            this.f918.onRelease();
            zIsFinished = this.f918.isFinished();
        }
        EdgeEffect edgeEffect2 = this.f885;
        if (edgeEffect2 != null && !edgeEffect2.isFinished() && i < 0) {
            this.f885.onRelease();
            zIsFinished |= this.f885.isFinished();
        }
        EdgeEffect edgeEffect3 = this.f871;
        if (edgeEffect3 != null && !edgeEffect3.isFinished() && i2 > 0) {
            this.f871.onRelease();
            zIsFinished |= this.f871.isFinished();
        }
        EdgeEffect edgeEffect4 = this.f855;
        if (edgeEffect4 != null && !edgeEffect4.isFinished() && i2 < 0) {
            this.f855.onRelease();
            zIsFinished |= this.f855.isFinished();
        }
        if (zIsFinished) {
            postInvalidateOnAnimation();
        }
    }

    /* renamed from: ᵰʖʢ, reason: contains not printable characters */
    public final void m588(boolean z) {
        if (this.f859 < 1) {
            if (f850) {
                ᵹˉᵞ.ᵳٴᵶ("stopInterceptRequestLayout was called more times than startInterceptRequestLayout.".concat(m576()));
                return;
            }
            this.f859 = 1;
        }
        if (!z && !this.f881) {
            this.f865 = false;
        }
        if (this.f859 == 1) {
            if (z && this.f865 && !this.f881 && this.f919 != null && this.f898 != null) {
                m573();
            }
            if (!this.f881) {
                this.f865 = false;
            }
        }
        this.f859--;
    }

    /* renamed from: ᵲᵟ, reason: contains not printable characters */
    public final void m589(int i, int i2, boolean z) {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 == null || this.f881) {
            return;
        }
        if (!abstractC1935.mo271()) {
            i = 0;
        }
        if (!this.f919.mo282()) {
            i2 = 0;
        }
        if (i == 0 && i2 == 0) {
            return;
        }
        if (z) {
            int i3 = i != 0 ? 1 : 0;
            if (i2 != 0) {
                i3 |= 2;
            }
            getScrollingChildHelper().m7428(i3, 1);
        }
        this.f917.m9061(i, i2, Integer.MIN_VALUE, null);
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public final void m590() {
        if (!this.f869 || this.f873) {
            Trace.beginSection("RV FullInvalidate");
            m573();
            Trace.endSection();
            return;
        }
        C1611 c1611 = this.f893;
        if (c1611.m4603()) {
            int i = c1611.f6401;
            if ((i & 4) == 0 || (i & 11) != 0) {
                if (c1611.m4603()) {
                    Trace.beginSection("RV FullInvalidate");
                    m573();
                    Trace.endSection();
                    return;
                }
                return;
            }
            Trace.beginSection("RV PartialInvalidate");
            m571();
            m575();
            c1611.m4621();
            if (!this.f865) {
                C0723 c0723 = this.f889;
                int iM2781 = c0723.m2781();
                int i2 = 0;
                while (true) {
                    if (i2 < iM2781) {
                        AbstractC2313 abstractC2313M535 = m535(c0723.m2768(i2));
                        if (abstractC2313M535 != null && !abstractC2313M535.m6025() && abstractC2313M535.m6028()) {
                            m573();
                            break;
                        }
                        i2++;
                    } else {
                        c1611.m4624();
                        break;
                    }
                }
            }
            m588(true);
            m553(true);
            Trace.endSection();
        }
    }

    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public final void m591(int i, int i2, boolean z) {
        int i3 = i + i2;
        C0723 c0723 = this.f889;
        int iM2744 = c0723.m2744();
        for (int i4 = 0; i4 < iM2744; i4++) {
            AbstractC2313 abstractC2313M535 = m535(c0723.m2776(i4));
            if (abstractC2313M535 != null && !abstractC2313M535.m6025()) {
                int i5 = abstractC2313M535.f9076;
                C1529 c1529 = this.f901;
                if (i5 >= i3) {
                    if (f849) {
                        abstractC2313M535.toString();
                    }
                    abstractC2313M535.m6027(-i2, z);
                    c1529.f6122 = true;
                } else if (i5 >= i) {
                    if (f849) {
                        abstractC2313M535.toString();
                    }
                    abstractC2313M535.m6026(8);
                    abstractC2313M535.m6027(-i2, z);
                    abstractC2313M535.f9076 = i - 1;
                    c1529.f6122 = true;
                }
            }
        }
        C4276 c4276 = this.f925;
        ArrayList arrayList = c4276.f16043;
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            AbstractC2313 abstractC2313 = (AbstractC2313) arrayList.get(size);
            if (abstractC2313 != null) {
                int i6 = abstractC2313.f9076;
                if (i6 >= i3) {
                    if (f849) {
                        abstractC2313.toString();
                    }
                    abstractC2313.m6027(-i2, z);
                } else if (i6 >= i) {
                    abstractC2313.m6026(8);
                    c4276.m9259(size);
                }
            }
        }
        requestLayout();
    }

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public final int m592(AbstractC2313 abstractC2313) {
        if ((abstractC2313.f9061 & 524) == 0 && abstractC2313.m6021()) {
            int i = abstractC2313.f9076;
            ArrayList arrayList = (ArrayList) this.f893.f6400;
            int size = arrayList.size();
            for (int i2 = 0; i2 < size; i2++) {
                C2166 c2166 = (C2166) arrayList.get(i2);
                int i3 = c2166.f8556;
                if (i3 != 1) {
                    if (i3 == 2) {
                        int i4 = c2166.f8557;
                        if (i4 <= i) {
                            int i5 = c2166.f8558;
                            if (i4 + i5 <= i) {
                                i -= i5;
                            }
                        } else {
                            continue;
                        }
                    } else if (i3 == 8) {
                        int i6 = c2166.f8557;
                        if (i6 == i) {
                            i = c2166.f8558;
                        } else {
                            if (i6 < i) {
                                i--;
                            }
                            if (c2166.f8558 <= i) {
                                i++;
                            }
                        }
                    }
                } else if (c2166.f8557 <= i) {
                    i += c2166.f8558;
                }
            }
            return i;
        }
        return -1;
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final void m593(String str) {
        if (!m552()) {
            if (this.f857 > 0) {
                new IllegalStateException(m576());
            }
        } else if (str == null) {
            ᵹˉᵞ.ᵳٴᵶ("Cannot call this method while RecyclerView is computing a layout or scrolling".concat(m576()));
        } else {
            ᵹˉᵞ.ᵳٴᵶ(str);
        }
    }

    /* renamed from: ᵷᵱ, reason: contains not printable characters */
    public final void m594(AbstractC2313 abstractC2313, C4697 c4697) {
        abstractC2313.f9061 &= -8193;
        boolean z = this.f901.f6132;
        C0553 c0553 = this.f858;
        if (z && abstractC2313.m6028() && !abstractC2313.m6031() && !abstractC2313.m6025()) {
            ((C1196) c0553.f2894).m3728(m550(abstractC2313), abstractC2313);
        }
        C2771 c2771 = (C2771) c0553.f2892;
        C3837 c3837M8481 = (C3837) c2771.get(abstractC2313);
        if (c3837M8481 == null) {
            c3837M8481 = C3837.m8481();
            c2771.put(abstractC2313, c3837M8481);
        }
        c3837M8481.f14273 = c4697;
        c3837M8481.f14272 |= 4;
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public final void m595() {
        C3837 c3837;
        View viewM574;
        C1529 c1529 = this.f901;
        c1529.m4453(1);
        m548(c1529);
        byte b = 0;
        c1529.f6124 = false;
        m571();
        C0553 c0553 = this.f858;
        C2771 c2771 = (C2771) c0553.f2892;
        C2771 c27712 = (C2771) c0553.f2892;
        c2771.clear();
        C1196 c1196 = (C1196) c0553.f2894;
        c1196.m3733();
        m575();
        m547();
        AbstractC2313 abstractC2313M567 = null;
        View focusedChild = (this.f878 && hasFocus() && this.f898 != null) ? getFocusedChild() : null;
        if (focusedChild != null && (viewM574 = m574(focusedChild)) != null) {
            abstractC2313M567 = m567(viewM574);
        }
        if (abstractC2313M567 == null) {
            c1529.f6127 = -1L;
            c1529.f6120 = -1;
            c1529.f6126 = -1;
        } else {
            c1529.f6127 = this.f898.f5397 ? abstractC2313M567.f9069 : -1L;
            c1529.f6120 = this.f873 ? -1 : abstractC2313M567.m6031() ? abstractC2313M567.f9075 : abstractC2313M567.m6030();
            View focusedChild2 = abstractC2313M567.f9071;
            int id = focusedChild2.getId();
            while (!focusedChild2.isFocused() && (focusedChild2 instanceof ViewGroup) && focusedChild2.hasFocus()) {
                focusedChild2 = ((ViewGroup) focusedChild2).getFocusedChild();
                if (focusedChild2.getId() != -1) {
                    id = focusedChild2.getId();
                }
            }
            c1529.f6126 = id;
        }
        c1529.f6132 = c1529.f6130 && this.f874;
        this.f874 = false;
        this.f862 = false;
        c1529.f6121 = c1529.f6131;
        c1529.f6118 = this.f898.mo2536();
        m561(this.f909);
        boolean z = c1529.f6130;
        int i = 5;
        C0723 c0723 = this.f889;
        if (z) {
            int iM2781 = c0723.m2781();
            for (int i2 = 0; i2 < iM2781; i2++) {
                AbstractC2313 abstractC2313M535 = m535(c0723.m2768(i2));
                if (!abstractC2313M535.m6025() && (!abstractC2313M535.m6034() || this.f898.f5397)) {
                    AbstractC2495 abstractC2495 = this.f921;
                    AbstractC2495.m6338(abstractC2313M535);
                    abstractC2313M535.m6018();
                    abstractC2495.getClass();
                    C4697 c4697 = new C4697(b, i);
                    c4697.m9876(abstractC2313M535);
                    C3837 c3837M8481 = (C3837) c27712.get(abstractC2313M535);
                    if (c3837M8481 == null) {
                        c3837M8481 = C3837.m8481();
                        c27712.put(abstractC2313M535, c3837M8481);
                    }
                    c3837M8481.f14273 = c4697;
                    c3837M8481.f14272 |= 4;
                    if (c1529.f6132 && abstractC2313M535.m6028() && !abstractC2313M535.m6031() && !abstractC2313M535.m6025() && !abstractC2313M535.m6034()) {
                        c1196.m3728(m550(abstractC2313M535), abstractC2313M535);
                    }
                }
            }
        }
        if (c1529.f6131) {
            int iM2744 = c0723.m2744();
            for (int i3 = 0; i3 < iM2744; i3++) {
                AbstractC2313 abstractC2313M5352 = m535(c0723.m2776(i3));
                if (f850 && abstractC2313M5352.f9076 == -1 && !abstractC2313M5352.m6031()) {
                    ᵹˉᵞ.ᵳٴᵶ("view holder cannot have position -1 unless it is removed".concat(m576()));
                    return;
                }
                if (!abstractC2313M5352.m6025() && abstractC2313M5352.f9075 == -1) {
                    abstractC2313M5352.f9075 = abstractC2313M5352.f9076;
                }
            }
            boolean z2 = c1529.f6122;
            c1529.f6122 = false;
            this.f919.mo297(this.f925, c1529);
            c1529.f6122 = z2;
            for (int i4 = 0; i4 < c0723.m2781(); i4++) {
                AbstractC2313 abstractC2313M5353 = m535(c0723.m2768(i4));
                if (!abstractC2313M5353.m6025() && ((c3837 = (C3837) c27712.get(abstractC2313M5353)) == null || (c3837.f14272 & 4) == 0)) {
                    AbstractC2495.m6338(abstractC2313M5353);
                    boolean z3 = (abstractC2313M5353.f9061 & 8192) != 0;
                    AbstractC2495 abstractC24952 = this.f921;
                    abstractC2313M5353.m6018();
                    abstractC24952.getClass();
                    C4697 c46972 = new C4697(b, i);
                    c46972.m9876(abstractC2313M5353);
                    if (z3) {
                        m594(abstractC2313M5353, c46972);
                    } else {
                        C3837 c3837M84812 = (C3837) c27712.get(abstractC2313M5353);
                        if (c3837M84812 == null) {
                            c3837M84812 = C3837.m8481();
                            c27712.put(abstractC2313M5353, c3837M84812);
                        }
                        c3837M84812.f14272 |= 2;
                        c3837M84812.f14273 = c46972;
                    }
                }
            }
            m557();
        } else {
            m557();
        }
        m553(true);
        m588(false);
        c1529.f6133 = 2;
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final void m596(AbstractC2003 abstractC2003) {
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 != null) {
            abstractC1935.mo510("Cannot add item decoration during a scroll  or layout");
        }
        ArrayList arrayList = this.f860;
        if (arrayList.isEmpty()) {
            setWillNotDraw(false);
        }
        arrayList.add(abstractC2003);
        m558();
        requestLayout();
    }

    /* JADX WARN: Removed duplicated region for block: B:15:0x0028  */
    /* renamed from: ᵺʙ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final defpackage.AbstractC2313 m597(int r6, boolean r7) {
        /*
            r5 = this;
            ˁᵤ r5 = r5.f889
            int r0 = r5.m2744()
            r1 = 0
            r2 = 0
        L8:
            if (r2 >= r0) goto L3a
            android.view.View r3 = r5.m2776(r2)
            ᵕᵲᵝ r3 = m535(r3)
            if (r3 == 0) goto L37
            boolean r4 = r3.m6031()
            if (r4 != 0) goto L37
            if (r7 == 0) goto L21
            int r4 = r3.f9076
            if (r4 == r6) goto L28
            goto L37
        L21:
            int r4 = r3.m6035()
            if (r4 == r6) goto L28
            goto L37
        L28:
            android.view.View r1 = r3.f9071
            java.lang.Object r4 = r5.f3478
            java.util.ArrayList r4 = (java.util.ArrayList) r4
            boolean r1 = r4.contains(r1)
            if (r1 == 0) goto L36
            r1 = r3
            goto L37
        L36:
            return r3
        L37:
            int r2 = r2 + 1
            goto L8
        L3a:
            return r1
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.RecyclerView.m597(int, boolean):ᵕᵲᵝ");
    }

    /* renamed from: ᵺᵜᵰ, reason: contains not printable characters */
    public final void m598() {
        C3839 c3839;
        setScrollState(0);
        RunnableC4157 runnableC4157 = this.f917;
        runnableC4157.f15530.removeCallbacks(runnableC4157);
        runnableC4157.f15536.abortAnimation();
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 == null || (c3839 = abstractC1935.f7775) == null) {
            return;
        }
        c3839.m8486();
    }

    /* renamed from: ᵺᵠ, reason: contains not printable characters */
    public final void m599(View view, View view2) {
        View view3 = view2 != null ? view2 : view;
        int width = view3.getWidth();
        int height = view3.getHeight();
        Rect rect = this.f876;
        rect.set(0, 0, width, height);
        ViewGroup.LayoutParams layoutParams = view3.getLayoutParams();
        if (layoutParams instanceof C1923) {
            C1923 c1923 = (C1923) layoutParams;
            if (!c1923.f7732) {
                Rect rect2 = c1923.f7734;
                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.f919.mo819(this, view, this.f876, !this.f869, view2 == null);
    }

    /* renamed from: ᵽʛ, reason: contains not printable characters */
    public final void m600() {
        if (this.f903 || !this.f887) {
            return;
        }
        WeakHashMap weakHashMap = AbstractC2873.f11133;
        postOnAnimation(this.f922);
        this.f903 = true;
    }

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final void m601() {
        if (this.f885 != null) {
            return;
        }
        ((C4116) this.f868).getClass();
        EdgeEffect edgeEffect = new EdgeEffect(getContext());
        this.f885 = edgeEffect;
        if (this.f886) {
            edgeEffect.setSize((getMeasuredHeight() - getPaddingTop()) - getPaddingBottom(), (getMeasuredWidth() - getPaddingLeft()) - getPaddingRight());
        } else {
            edgeEffect.setSize(getMeasuredHeight(), getMeasuredWidth());
        }
    }

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final void m602() {
        if (this.f918 != null) {
            return;
        }
        ((C4116) this.f868).getClass();
        EdgeEffect edgeEffect = new EdgeEffect(getContext());
        this.f918 = edgeEffect;
        if (this.f886) {
            edgeEffect.setSize((getMeasuredHeight() - getPaddingTop()) - getPaddingBottom(), (getMeasuredWidth() - getPaddingLeft()) - getPaddingRight());
        } else {
            edgeEffect.setSize(getMeasuredHeight(), getMeasuredWidth());
        }
    }

    /* renamed from: ﹶـ, reason: contains not printable characters */
    public void mo603(int i) {
        if (this.f881) {
            return;
        }
        m598();
        AbstractC1935 abstractC1935 = this.f919;
        if (abstractC1935 == null) {
            return;
        }
        abstractC1935.mo288(i);
        awakenScrollBars();
    }
}
