package o;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.RectF;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
import java.util.WeakHashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.f10, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC1157f10 {
    public C3126zm0 a;
    public RecyclerView b;
    public final DH c;
    public final DH d;
    public C2896xL e;
    public boolean f;
    public boolean g;
    public final boolean h;
    public final boolean i;
    public int j;
    public boolean k;
    public int l;
    public int m;
    public int n;

    /* renamed from: o, reason: collision with root package name */
    public int f519o;

    public AbstractC1157f10() {
        C0966d10 c0966d10 = new C0966d10(this, 0);
        C0966d10 c0966d102 = new C0966d10(this, 1);
        this.c = new DH(c0966d10);
        this.d = new DH(c0966d102);
        this.f = false;
        this.g = false;
        this.h = true;
        this.i = true;
    }

    public static int A(View view) {
        Rect rect = ((C1253g10) view.getLayoutParams()).b;
        return view.getMeasuredWidth() + rect.left + rect.right;
    }

    public static int H(View view) {
        return ((C1253g10) view.getLayoutParams()).a.b();
    }

    public static C1061e10 I(Context context, AttributeSet attributeSet, int i, int i2) {
        C1061e10 c1061e10 = new C1061e10();
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, VZ.a, i, i2);
        c1061e10.a = typedArrayObtainStyledAttributes.getInt(0, 1);
        c1061e10.b = typedArrayObtainStyledAttributes.getInt(10, 1);
        c1061e10.c = typedArrayObtainStyledAttributes.getBoolean(9, false);
        c1061e10.d = typedArrayObtainStyledAttributes.getBoolean(11, false);
        typedArrayObtainStyledAttributes.recycle();
        return c1061e10;
    }

    public static boolean M(int i, int i2, int i3) {
        int mode = View.MeasureSpec.getMode(i2);
        int size = View.MeasureSpec.getSize(i2);
        if (i3 > 0 && i != i3) {
            return false;
        }
        if (mode == Integer.MIN_VALUE) {
            return size >= i;
        }
        if (mode != 0) {
            return mode == 1073741824 && size == i;
        }
        return true;
    }

    public static void N(View view, int i, int i2, int i3, int i4) {
        C1253g10 c1253g10 = (C1253g10) view.getLayoutParams();
        Rect rect = c1253g10.b;
        view.layout(i + rect.left + ((ViewGroup.MarginLayoutParams) c1253g10).leftMargin, i2 + rect.top + ((ViewGroup.MarginLayoutParams) c1253g10).topMargin, (i3 - rect.right) - ((ViewGroup.MarginLayoutParams) c1253g10).rightMargin, (i4 - rect.bottom) - ((ViewGroup.MarginLayoutParams) c1253g10).bottomMargin);
    }

    public static int g(int i, int i2, int i3) {
        int mode = View.MeasureSpec.getMode(i);
        int size = View.MeasureSpec.getSize(i);
        return mode != Integer.MIN_VALUE ? mode != 1073741824 ? Math.max(i2, i3) : size : Math.min(size, Math.max(i2, i3));
    }

    /* JADX WARN: Removed duplicated region for block: B:10:0x001a  */
    /* JADX WARN: Removed duplicated region for block: B:14:0x0022  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static int w(boolean r4, int r5, int r6, int r7, int r8) {
        /*
            int r5 = r5 - r7
            r7 = 0
            int r5 = java.lang.Math.max(r7, r5)
            r0 = -2
            r1 = -1
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = 1073741824(0x40000000, float:2.0)
            if (r4 == 0) goto L1d
            if (r8 < 0) goto L12
        L10:
            r6 = r3
            goto L30
        L12:
            if (r8 != r1) goto L1a
            if (r6 == r2) goto L22
            if (r6 == 0) goto L1a
            if (r6 == r3) goto L22
        L1a:
            r6 = r7
            r8 = r6
            goto L30
        L1d:
            if (r8 < 0) goto L20
            goto L10
        L20:
            if (r8 != r1) goto L24
        L22:
            r8 = r5
            goto L30
        L24:
            if (r8 != r0) goto L1a
            if (r6 == r2) goto L2e
            if (r6 != r3) goto L2b
            goto L2e
        L2b:
            r8 = r5
            r6 = r7
            goto L30
        L2e:
            r8 = r5
            r6 = r2
        L30:
            int r4 = android.view.View.MeasureSpec.makeMeasureSpec(r8, r6)
            return r4
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC1157f10.w(boolean, int, int, int, int):int");
    }

    public static int z(View view) {
        Rect rect = ((C1253g10) view.getLayoutParams()).b;
        return view.getMeasuredHeight() + rect.top + rect.bottom;
    }

    public final int B() {
        RecyclerView recyclerView = this.b;
        X00 adapter = recyclerView != null ? recyclerView.getAdapter() : null;
        if (adapter != null) {
            return adapter.a();
        }
        return 0;
    }

    public final int C() {
        RecyclerView recyclerView = this.b;
        WeakHashMap weakHashMap = Oj0.a;
        return recyclerView.getLayoutDirection();
    }

    public final int D() {
        RecyclerView recyclerView = this.b;
        if (recyclerView != null) {
            return recyclerView.getPaddingBottom();
        }
        return 0;
    }

    public final int E() {
        RecyclerView recyclerView = this.b;
        if (recyclerView != null) {
            return recyclerView.getPaddingLeft();
        }
        return 0;
    }

    public final int F() {
        RecyclerView recyclerView = this.b;
        if (recyclerView != null) {
            return recyclerView.getPaddingRight();
        }
        return 0;
    }

    public final int G() {
        RecyclerView recyclerView = this.b;
        if (recyclerView != null) {
            return recyclerView.getPaddingTop();
        }
        return 0;
    }

    public int J(C1729l10 c1729l10, C2204q10 c2204q10) {
        RecyclerView recyclerView = this.b;
        if (recyclerView == null || recyclerView.v == null || !e()) {
            return 1;
        }
        return this.b.v.a();
    }

    public final void K(View view, Rect rect) {
        Matrix matrix;
        Rect rect2 = ((C1253g10) view.getLayoutParams()).b;
        rect.set(-rect2.left, -rect2.top, view.getWidth() + rect2.right, view.getHeight() + rect2.bottom);
        if (this.b != null && (matrix = view.getMatrix()) != null && !matrix.isIdentity()) {
            RectF rectF = this.b.u;
            rectF.set(rect);
            matrix.mapRect(rectF);
            rect.set((int) Math.floor(rectF.left), (int) Math.floor(rectF.top), (int) Math.ceil(rectF.right), (int) Math.ceil(rectF.bottom));
        }
        rect.offset(view.getLeft(), view.getTop());
    }

    public abstract boolean L();

    public void O(int i) {
        RecyclerView recyclerView = this.b;
        if (recyclerView != null) {
            int iZ = recyclerView.p.z();
            for (int i2 = 0; i2 < iZ; i2++) {
                recyclerView.p.y(i2).offsetLeftAndRight(i);
            }
        }
    }

    public void P(int i) {
        RecyclerView recyclerView = this.b;
        if (recyclerView != null) {
            int iZ = recyclerView.p.z();
            for (int i2 = 0; i2 < iZ; i2++) {
                recyclerView.p.y(i2).offsetTopAndBottom(i);
            }
        }
    }

    public abstract void R(RecyclerView recyclerView);

    public abstract View S(View view, int i, C1729l10 c1729l10, C2204q10 c2204q10);

    public void T(AccessibilityEvent accessibilityEvent) {
        RecyclerView recyclerView = this.b;
        C1729l10 c1729l10 = recyclerView.m;
        C2204q10 c2204q10 = recyclerView.n0;
        if (recyclerView == null || accessibilityEvent == null) {
            return;
        }
        boolean z = true;
        if (!recyclerView.canScrollVertically(1) && !this.b.canScrollVertically(-1) && !this.b.canScrollHorizontally(-1) && !this.b.canScrollHorizontally(1)) {
            z = false;
        }
        accessibilityEvent.setScrollable(z);
        X00 x00 = this.b.v;
        if (x00 != null) {
            accessibilityEvent.setItemCount(x00.a());
        }
    }

    public final void U(View view, H0 h0) {
        AbstractC2488t10 abstractC2488t10I = RecyclerView.I(view);
        if (abstractC2488t10I == null || abstractC2488t10I.h()) {
            return;
        }
        C3126zm0 c3126zm0 = this.a;
        if (((ArrayList) c3126zm0.f831o).contains(abstractC2488t10I.a)) {
            return;
        }
        RecyclerView recyclerView = this.b;
        V(recyclerView.m, recyclerView.n0, view, h0);
    }

    public void V(C1729l10 c1729l10, C2204q10 c2204q10, View view, H0 h0) {
        h0.k(G0.b(false, e() ? H(view) : 0, 1, d() ? H(view) : 0, 1));
    }

    public final void b(View view, int i, boolean z) {
        AbstractC2488t10 abstractC2488t10I = RecyclerView.I(view);
        if (z || abstractC2488t10I.h()) {
            I80 i80 = (I80) this.b.q.m;
            Xj0 xj0A = (Xj0) i80.get(abstractC2488t10I);
            if (xj0A == null) {
                xj0A = Xj0.a();
                i80.put(abstractC2488t10I, xj0A);
            }
            xj0A.a |= 1;
        } else {
            this.b.q.B(abstractC2488t10I);
        }
        C1253g10 c1253g10 = (C1253g10) view.getLayoutParams();
        if (abstractC2488t10I.p() || abstractC2488t10I.i()) {
            if (abstractC2488t10I.i()) {
                abstractC2488t10I.n.j(abstractC2488t10I);
            } else {
                abstractC2488t10I.j &= -33;
            }
            this.a.l(view, i, view.getLayoutParams(), false);
        } else {
            if (view.getParent() == this.b) {
                C3126zm0 c3126zm0 = this.a;
                C0189Hh c0189Hh = (C0189Hh) c3126zm0.n;
                int iIndexOfChild = ((W00) c3126zm0.m).a.indexOfChild(view);
                int iC = (iIndexOfChild == -1 || c0189Hh.f(iIndexOfChild)) ? -1 : iIndexOfChild - c0189Hh.c(iIndexOfChild);
                if (i == -1) {
                    i = this.a.z();
                }
                if (iC == -1) {
                    throw new IllegalStateException("Added View has RecyclerView as parent but view is not a real child. Unfiltered index:" + this.b.indexOfChild(view) + this.b.y());
                }
                if (iC != i) {
                    AbstractC1157f10 abstractC1157f10 = this.b.w;
                    View viewU = abstractC1157f10.u(iC);
                    if (viewU == null) {
                        throw new IllegalArgumentException("Cannot move a child from non-existing index:" + iC + abstractC1157f10.b.toString());
                    }
                    abstractC1157f10.u(iC);
                    abstractC1157f10.a.s(iC);
                    C1253g10 c1253g102 = (C1253g10) viewU.getLayoutParams();
                    AbstractC2488t10 abstractC2488t10I2 = RecyclerView.I(viewU);
                    if (abstractC2488t10I2.h()) {
                        I80 i802 = (I80) abstractC1157f10.b.q.m;
                        Xj0 xj0A2 = (Xj0) i802.get(abstractC2488t10I2);
                        if (xj0A2 == null) {
                            xj0A2 = Xj0.a();
                            i802.put(abstractC2488t10I2, xj0A2);
                        }
                        xj0A2.a = 1 | xj0A2.a;
                    } else {
                        abstractC1157f10.b.q.B(abstractC2488t10I2);
                    }
                    abstractC1157f10.a.l(viewU, i, c1253g102, abstractC2488t10I2.h());
                }
            } else {
                this.a.k(view, i, false);
                c1253g10.c = true;
                C2896xL c2896xL = this.e;
                if (c2896xL != null && c2896xL.e) {
                    c2896xL.b.getClass();
                    AbstractC2488t10 abstractC2488t10I3 = RecyclerView.I(view);
                    if ((abstractC2488t10I3 != null ? abstractC2488t10I3.b() : -1) == c2896xL.a) {
                        c2896xL.f = view;
                    }
                }
            }
        }
        if (c1253g10.d) {
            abstractC2488t10I.a.invalidate();
            c1253g10.d = false;
        }
    }

    public abstract void b0(C1729l10 c1729l10, C2204q10 c2204q10);

    public void c(String str) {
        RecyclerView recyclerView = this.b;
        if (recyclerView != null) {
            recyclerView.i(str);
        }
    }

    public abstract void c0(C2204q10 c2204q10);

    public abstract boolean d();

    public abstract boolean e();

    public Parcelable e0() {
        return null;
    }

    public boolean f(C1253g10 c1253g10) {
        return c1253g10 != null;
    }

    public final void g0(C1729l10 c1729l10) {
        for (int iV = v() - 1; iV >= 0; iV--) {
            if (!RecyclerView.I(u(iV)).o()) {
                View viewU = u(iV);
                j0(iV);
                c1729l10.f(viewU);
            }
        }
    }

    public final void h0(C1729l10 c1729l10) {
        ArrayList arrayList = c1729l10.a;
        int size = arrayList.size();
        for (int i = size - 1; i >= 0; i--) {
            View view = ((AbstractC2488t10) arrayList.get(i)).a;
            AbstractC2488t10 abstractC2488t10I = RecyclerView.I(view);
            if (!abstractC2488t10I.o()) {
                abstractC2488t10I.n(false);
                if (abstractC2488t10I.j()) {
                    this.b.removeDetachedView(view, false);
                }
                AbstractC0775b10 abstractC0775b10 = this.b.S;
                if (abstractC0775b10 != null) {
                    abstractC0775b10.d(abstractC2488t10I);
                }
                abstractC2488t10I.n(true);
                AbstractC2488t10 abstractC2488t10I2 = RecyclerView.I(view);
                abstractC2488t10I2.n = null;
                abstractC2488t10I2.f724o = false;
                abstractC2488t10I2.j &= -33;
                c1729l10.g(abstractC2488t10I2);
            }
        }
        arrayList.clear();
        ArrayList arrayList2 = c1729l10.b;
        if (arrayList2 != null) {
            arrayList2.clear();
        }
        if (size > 0) {
            this.b.invalidate();
        }
    }

    public final void i0(View view, C1729l10 c1729l10) {
        C3126zm0 c3126zm0 = this.a;
        W00 w00 = (W00) c3126zm0.m;
        int iIndexOfChild = w00.a.indexOfChild(view);
        if (iIndexOfChild >= 0) {
            if (((C0189Hh) c3126zm0.n).j(iIndexOfChild)) {
                c3126zm0.V(view);
            }
            w00.h(iIndexOfChild);
        }
        c1729l10.f(view);
    }

    public abstract int j(C2204q10 c2204q10);

    public final void j0(int i) {
        if (u(i) != null) {
            C3126zm0 c3126zm0 = this.a;
            int iC = c3126zm0.C(i);
            W00 w00 = (W00) c3126zm0.m;
            View childAt = w00.a.getChildAt(iC);
            if (childAt == null) {
                return;
            }
            if (((C0189Hh) c3126zm0.n).j(iC)) {
                c3126zm0.V(childAt);
            }
            w00.h(iC);
        }
    }

    public abstract int k(C2204q10 c2204q10);

    /* JADX WARN: Removed duplicated region for block: B:28:0x00ae  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public boolean k0(androidx.recyclerview.widget.RecyclerView r9, android.view.View r10, android.graphics.Rect r11, boolean r12, boolean r13) {
        /*
            r8 = this;
            int r0 = r8.E()
            int r1 = r8.G()
            int r2 = r8.n
            int r3 = r8.F()
            int r2 = r2 - r3
            int r3 = r8.f519o
            int r4 = r8.D()
            int r3 = r3 - r4
            int r4 = r10.getLeft()
            int r5 = r11.left
            int r4 = r4 + r5
            int r5 = r10.getScrollX()
            int r4 = r4 - r5
            int r5 = r10.getTop()
            int r6 = r11.top
            int r5 = r5 + r6
            int r10 = r10.getScrollY()
            int r5 = r5 - r10
            int r10 = r11.width()
            int r10 = r10 + r4
            int r11 = r11.height()
            int r11 = r11 + r5
            int r4 = r4 - r0
            r0 = 0
            int r6 = java.lang.Math.min(r0, r4)
            int r5 = r5 - r1
            int r1 = java.lang.Math.min(r0, r5)
            int r10 = r10 - r2
            int r2 = java.lang.Math.max(r0, r10)
            int r11 = r11 - r3
            int r11 = java.lang.Math.max(r0, r11)
            int r3 = r8.C()
            r7 = 1
            if (r3 != r7) goto L5c
            if (r2 == 0) goto L57
            goto L64
        L57:
            int r2 = java.lang.Math.max(r6, r10)
            goto L64
        L5c:
            if (r6 == 0) goto L5f
            goto L63
        L5f:
            int r6 = java.lang.Math.min(r4, r2)
        L63:
            r2 = r6
        L64:
            if (r1 == 0) goto L67
            goto L6b
        L67:
            int r1 = java.lang.Math.min(r5, r11)
        L6b:
            int[] r10 = new int[]{r2, r1}
            r11 = r10[r0]
            r10 = r10[r7]
            if (r13 == 0) goto Lae
            android.view.View r13 = r9.getFocusedChild()
            if (r13 != 0) goto L7c
            goto Lb3
        L7c:
            int r1 = r8.E()
            int r2 = r8.G()
            int r3 = r8.n
            int r4 = r8.F()
            int r3 = r3 - r4
            int r4 = r8.f519o
            int r5 = r8.D()
            int r4 = r4 - r5
            androidx.recyclerview.widget.RecyclerView r5 = r8.b
            android.graphics.Rect r5 = r5.s
            r8.y(r13, r5)
            int r13 = r5.left
            int r13 = r13 - r11
            if (r13 >= r3) goto Lb3
            int r13 = r5.right
            int r13 = r13 - r11
            if (r13 <= r1) goto Lb3
            int r13 = r5.top
            int r13 = r13 - r10
            if (r13 >= r4) goto Lb3
            int r13 = r5.bottom
            int r13 = r13 - r10
            if (r13 > r2) goto Lae
            goto Lb3
        Lae:
            if (r11 != 0) goto Lb4
            if (r10 == 0) goto Lb3
            goto Lb4
        Lb3:
            return r0
        Lb4:
            if (r12 == 0) goto Lba
            r9.scrollBy(r11, r10)
            return r7
        Lba:
            r9.Z(r11, r0, r10)
            return r7
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC1157f10.k0(androidx.recyclerview.widget.RecyclerView, android.view.View, android.graphics.Rect, boolean, boolean):boolean");
    }

    public abstract int l(C2204q10 c2204q10);

    public final void l0() {
        RecyclerView recyclerView = this.b;
        if (recyclerView != null) {
            recyclerView.requestLayout();
        }
    }

    public abstract int m(C2204q10 c2204q10);

    public abstract int m0(int i, C1729l10 c1729l10, C2204q10 c2204q10);

    public abstract int n(C2204q10 c2204q10);

    public abstract void n0(int i);

    public abstract int o(C2204q10 c2204q10);

    public abstract int o0(int i, C1729l10 c1729l10, C2204q10 c2204q10);

    public final void p(C1729l10 c1729l10) {
        for (int iV = v() - 1; iV >= 0; iV--) {
            View viewU = u(iV);
            AbstractC2488t10 abstractC2488t10I = RecyclerView.I(viewU);
            if (!abstractC2488t10I.o()) {
                if (!abstractC2488t10I.f() || abstractC2488t10I.h() || this.b.v.b) {
                    u(iV);
                    this.a.s(iV);
                    c1729l10.h(viewU);
                    this.b.q.B(abstractC2488t10I);
                } else {
                    j0(iV);
                    c1729l10.g(abstractC2488t10I);
                }
            }
        }
    }

    public final void p0(RecyclerView recyclerView) {
        q0(View.MeasureSpec.makeMeasureSpec(recyclerView.getWidth(), 1073741824), View.MeasureSpec.makeMeasureSpec(recyclerView.getHeight(), 1073741824));
    }

    public View q(int i) {
        int iV = v();
        for (int i2 = 0; i2 < iV; i2++) {
            View viewU = u(i2);
            AbstractC2488t10 abstractC2488t10I = RecyclerView.I(viewU);
            if (abstractC2488t10I != null && abstractC2488t10I.b() == i && !abstractC2488t10I.o() && (this.b.n0.g || !abstractC2488t10I.h())) {
                return viewU;
            }
        }
        return null;
    }

    public final void q0(int i, int i2) {
        this.n = View.MeasureSpec.getSize(i);
        int mode = View.MeasureSpec.getMode(i);
        this.l = mode;
        if (mode == 0) {
            int[] iArr = RecyclerView.D0;
        }
        this.f519o = View.MeasureSpec.getSize(i2);
        int mode2 = View.MeasureSpec.getMode(i2);
        this.m = mode2;
        if (mode2 == 0) {
            int[] iArr2 = RecyclerView.D0;
        }
    }

    public abstract C1253g10 r();

    public void r0(Rect rect, int i, int i2) {
        int iF = F() + E() + rect.width();
        int iD = D() + G() + rect.height();
        RecyclerView recyclerView = this.b;
        WeakHashMap weakHashMap = Oj0.a;
        this.b.setMeasuredDimension(g(i, iF, recyclerView.getMinimumWidth()), g(i2, iD, this.b.getMinimumHeight()));
    }

    public C1253g10 s(Context context, AttributeSet attributeSet) {
        return new C1253g10(context, attributeSet);
    }

    public final void s0(int i, int i2) {
        int iV = v();
        if (iV == 0) {
            this.b.n(i, i2);
            return;
        }
        int i3 = Integer.MIN_VALUE;
        int i4 = Integer.MAX_VALUE;
        int i5 = Integer.MIN_VALUE;
        int i6 = Integer.MAX_VALUE;
        for (int i7 = 0; i7 < iV; i7++) {
            View viewU = u(i7);
            Rect rect = this.b.s;
            y(viewU, rect);
            int i8 = rect.left;
            if (i8 < i6) {
                i6 = i8;
            }
            int i9 = rect.right;
            if (i9 > i3) {
                i3 = i9;
            }
            int i10 = rect.top;
            if (i10 < i4) {
                i4 = i10;
            }
            int i11 = rect.bottom;
            if (i11 > i5) {
                i5 = i11;
            }
        }
        this.b.s.set(i6, i4, i3, i5);
        r0(this.b.s, i, i2);
    }

    public C1253g10 t(ViewGroup.LayoutParams layoutParams) {
        return layoutParams instanceof C1253g10 ? new C1253g10((C1253g10) layoutParams) : layoutParams instanceof ViewGroup.MarginLayoutParams ? new C1253g10((ViewGroup.MarginLayoutParams) layoutParams) : new C1253g10(layoutParams);
    }

    public final void t0(RecyclerView recyclerView) {
        if (recyclerView == null) {
            this.b = null;
            this.a = null;
            this.n = 0;
            this.f519o = 0;
        } else {
            this.b = recyclerView;
            this.a = recyclerView.p;
            this.n = recyclerView.getWidth();
            this.f519o = recyclerView.getHeight();
        }
        this.l = 1073741824;
        this.m = 1073741824;
    }

    public final View u(int i) {
        C3126zm0 c3126zm0 = this.a;
        if (c3126zm0 != null) {
            return c3126zm0.y(i);
        }
        return null;
    }

    public final boolean u0(View view, int i, int i2, C1253g10 c1253g10) {
        return (!view.isLayoutRequested() && this.h && M(view.getWidth(), i, ((ViewGroup.MarginLayoutParams) c1253g10).width) && M(view.getHeight(), i2, ((ViewGroup.MarginLayoutParams) c1253g10).height)) ? false : true;
    }

    public final int v() {
        C3126zm0 c3126zm0 = this.a;
        if (c3126zm0 != null) {
            return c3126zm0.z();
        }
        return 0;
    }

    public boolean v0() {
        return false;
    }

    public final boolean w0(View view, int i, int i2, C1253g10 c1253g10) {
        return (this.h && M(view.getMeasuredWidth(), i, ((ViewGroup.MarginLayoutParams) c1253g10).width) && M(view.getMeasuredHeight(), i2, ((ViewGroup.MarginLayoutParams) c1253g10).height)) ? false : true;
    }

    public int x(C1729l10 c1729l10, C2204q10 c2204q10) {
        RecyclerView recyclerView = this.b;
        if (recyclerView == null || recyclerView.v == null || !d()) {
            return 1;
        }
        return this.b.v.a();
    }

    public abstract void x0(RecyclerView recyclerView, int i);

    public void y(View view, Rect rect) {
        int[] iArr = RecyclerView.D0;
        C1253g10 c1253g10 = (C1253g10) view.getLayoutParams();
        Rect rect2 = c1253g10.b;
        rect.set((view.getLeft() - rect2.left) - ((ViewGroup.MarginLayoutParams) c1253g10).leftMargin, (view.getTop() - rect2.top) - ((ViewGroup.MarginLayoutParams) c1253g10).topMargin, view.getRight() + rect2.right + ((ViewGroup.MarginLayoutParams) c1253g10).rightMargin, view.getBottom() + rect2.bottom + ((ViewGroup.MarginLayoutParams) c1253g10).bottomMargin);
    }

    public final void y0(C2896xL c2896xL) {
        C2896xL c2896xL2 = this.e;
        if (c2896xL2 != null && c2896xL != c2896xL2 && c2896xL2.e) {
            c2896xL2.i();
        }
        this.e = c2896xL;
        RecyclerView recyclerView = this.b;
        RunnableC2393s10 runnableC2393s10 = recyclerView.k0;
        runnableC2393s10.r.removeCallbacks(runnableC2393s10);
        runnableC2393s10.n.abortAnimation();
        c2896xL.b = recyclerView;
        c2896xL.c = this;
        int i = c2896xL.a;
        if (i == -1) {
            throw new IllegalArgumentException("Invalid target position");
        }
        recyclerView.n0.a = i;
        c2896xL.e = true;
        c2896xL.d = true;
        c2896xL.f = recyclerView.w.q(i);
        c2896xL.b.k0.a();
    }

    public boolean z0() {
        return false;
    }

    public void X() {
    }

    public void Q(RecyclerView recyclerView) {
    }

    public void d0(Parcelable parcelable) {
    }

    public void f0(int i) {
    }

    public void W(int i, int i2) {
    }

    public void Y(int i, int i2) {
    }

    public void Z(int i, int i2) {
    }

    public void a0(int i, int i2) {
    }

    public void i(int i, C2642ui c2642ui) {
    }

    public void h(int i, int i2, C2204q10 c2204q10, C2642ui c2642ui) {
    }
}
