package androidx.recyclerview.widget;

import android.content.Context;
import android.graphics.PointF;
import android.graphics.Rect;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import o.AbstractC0126Ew;
import o.AbstractC1157f10;
import o.AbstractC1624jv;
import o.C1061e10;
import o.C1253g10;
import o.C1729l10;
import o.C2204q10;
import o.C2516tL;
import o.C2611uL;
import o.C2642ui;
import o.C2706vL;
import o.C2801wL;
import o.C2896xL;
import o.F3;
import o.InterfaceC2109p10;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public class LinearLayoutManager extends AbstractC1157f10 implements InterfaceC2109p10 {
    public final C2516tL A;
    public final C2611uL B;
    public final int C;
    public final int[] D;
    public int p;
    public C2706vL q;
    public AbstractC1624jv r;
    public boolean s;
    public final boolean t;
    public boolean u;
    public boolean v;
    public final boolean w;
    public int x;
    public int y;
    public C2801wL z;

    public LinearLayoutManager(int i) {
        this.p = 1;
        this.t = false;
        this.u = false;
        this.v = false;
        this.w = true;
        this.x = -1;
        this.y = Integer.MIN_VALUE;
        this.z = null;
        this.A = new C2516tL();
        this.B = new C2611uL();
        this.C = 2;
        this.D = new int[2];
        Z0(i);
        c(null);
        if (this.t) {
            this.t = false;
            l0();
        }
    }

    public void A0(C2204q10 c2204q10, int[] iArr) {
        int i;
        int iL = c2204q10.a != -1 ? this.r.l() : 0;
        if (this.q.f == -1) {
            i = 0;
        } else {
            i = iL;
            iL = 0;
        }
        iArr[0] = iL;
        iArr[1] = i;
    }

    public void B0(C2204q10 c2204q10, C2706vL c2706vL, C2642ui c2642ui) {
        int i = c2706vL.d;
        if (i < 0 || i >= c2204q10.b()) {
            return;
        }
        c2642ui.a(i, Math.max(0, c2706vL.g));
    }

    public final int C0(C2204q10 c2204q10) {
        if (v() == 0) {
            return 0;
        }
        G0();
        AbstractC1624jv abstractC1624jv = this.r;
        boolean z = !this.w;
        return F3.o(c2204q10, abstractC1624jv, J0(z), I0(z), this, this.w);
    }

    public final int D0(C2204q10 c2204q10) {
        if (v() == 0) {
            return 0;
        }
        G0();
        AbstractC1624jv abstractC1624jv = this.r;
        boolean z = !this.w;
        return F3.p(c2204q10, abstractC1624jv, J0(z), I0(z), this, this.w, this.u);
    }

    public final int E0(C2204q10 c2204q10) {
        if (v() == 0) {
            return 0;
        }
        G0();
        AbstractC1624jv abstractC1624jv = this.r;
        boolean z = !this.w;
        return F3.q(c2204q10, abstractC1624jv, J0(z), I0(z), this, this.w);
    }

    public final int F0(int i) {
        return i != 1 ? i != 2 ? i != 17 ? i != 33 ? i != 66 ? (i == 130 && this.p == 1) ? 1 : Integer.MIN_VALUE : this.p == 0 ? 1 : Integer.MIN_VALUE : this.p == 1 ? -1 : Integer.MIN_VALUE : this.p == 0 ? -1 : Integer.MIN_VALUE : (this.p != 1 && S0()) ? -1 : 1 : (this.p != 1 && S0()) ? 1 : -1;
    }

    public final void G0() {
        if (this.q == null) {
            C2706vL c2706vL = new C2706vL();
            c2706vL.a = true;
            c2706vL.h = 0;
            c2706vL.i = 0;
            c2706vL.k = null;
            this.q = c2706vL;
        }
    }

    public final int H0(C1729l10 c1729l10, C2706vL c2706vL, C2204q10 c2204q10, boolean z) {
        int i;
        int i2 = c2706vL.c;
        int i3 = c2706vL.g;
        if (i3 != Integer.MIN_VALUE) {
            if (i2 < 0) {
                c2706vL.g = i3 + i2;
            }
            V0(c1729l10, c2706vL);
        }
        int i4 = c2706vL.c + c2706vL.h;
        while (true) {
            if ((!c2706vL.l && i4 <= 0) || (i = c2706vL.d) < 0 || i >= c2204q10.b()) {
                break;
            }
            C2611uL c2611uL = this.B;
            c2611uL.a = 0;
            c2611uL.b = false;
            c2611uL.c = false;
            c2611uL.d = false;
            T0(c1729l10, c2204q10, c2706vL, c2611uL);
            if (!c2611uL.b) {
                int i5 = c2706vL.b;
                int i6 = c2611uL.a;
                c2706vL.b = (c2706vL.f * i6) + i5;
                if (!c2611uL.c || c2706vL.k != null || !c2204q10.g) {
                    c2706vL.c -= i6;
                    i4 -= i6;
                }
                int i7 = c2706vL.g;
                if (i7 != Integer.MIN_VALUE) {
                    int i8 = i7 + i6;
                    c2706vL.g = i8;
                    int i9 = c2706vL.c;
                    if (i9 < 0) {
                        c2706vL.g = i8 + i9;
                    }
                    V0(c1729l10, c2706vL);
                }
                if (z && c2611uL.d) {
                    break;
                }
            } else {
                break;
            }
        }
        return i2 - c2706vL.c;
    }

    public final View I0(boolean z) {
        return this.u ? M0(0, z, v()) : M0(v() - 1, z, -1);
    }

    public final View J0(boolean z) {
        return this.u ? M0(v() - 1, z, -1) : M0(0, z, v());
    }

    public final int K0() {
        View viewM0 = M0(v() - 1, false, -1);
        if (viewM0 == null) {
            return -1;
        }
        return AbstractC1157f10.H(viewM0);
    }

    @Override // o.AbstractC1157f10
    public final boolean L() {
        return true;
    }

    public final View L0(int i, int i2) {
        int i3;
        int i4;
        G0();
        if (i2 <= i && i2 >= i) {
            return u(i);
        }
        if (this.r.e(u(i)) < this.r.k()) {
            i3 = 16644;
            i4 = 16388;
        } else {
            i3 = 4161;
            i4 = 4097;
        }
        return this.p == 0 ? this.c.j(i, i2, i3, i4) : this.d.j(i, i2, i3, i4);
    }

    public final View M0(int i, boolean z, int i2) {
        G0();
        int i3 = z ? 24579 : 320;
        return this.p == 0 ? this.c.j(i, i2, i3, 320) : this.d.j(i, i2, i3, 320);
    }

    public View N0(C1729l10 c1729l10, C2204q10 c2204q10, int i, int i2, int i3) {
        G0();
        int iK = this.r.k();
        int iG = this.r.g();
        int i4 = i2 > i ? 1 : -1;
        View view = null;
        View view2 = null;
        while (i != i2) {
            View viewU = u(i);
            int iH = AbstractC1157f10.H(viewU);
            if (iH >= 0 && iH < i3) {
                if (((C1253g10) viewU.getLayoutParams()).a.h()) {
                    if (view2 == null) {
                        view2 = viewU;
                    }
                } else {
                    if (this.r.e(viewU) < iG && this.r.b(viewU) >= iK) {
                        return viewU;
                    }
                    if (view == null) {
                        view = viewU;
                    }
                }
            }
            i += i4;
        }
        return view != null ? view : view2;
    }

    public final int O0(int i, C1729l10 c1729l10, C2204q10 c2204q10, boolean z) {
        int iG;
        int iG2 = this.r.g() - i;
        if (iG2 <= 0) {
            return 0;
        }
        int i2 = -Y0(-iG2, c1729l10, c2204q10);
        int i3 = i + i2;
        if (!z || (iG = this.r.g() - i3) <= 0) {
            return i2;
        }
        this.r.o(iG);
        return iG + i2;
    }

    public final int P0(int i, C1729l10 c1729l10, C2204q10 c2204q10, boolean z) {
        int iK;
        int iK2 = i - this.r.k();
        if (iK2 <= 0) {
            return 0;
        }
        int i2 = -Y0(iK2, c1729l10, c2204q10);
        int i3 = i + i2;
        if (!z || (iK = i3 - this.r.k()) <= 0) {
            return i2;
        }
        this.r.o(-iK);
        return i2 - iK;
    }

    public final View Q0() {
        return u(this.u ? 0 : v() - 1);
    }

    public final View R0() {
        return u(this.u ? v() - 1 : 0);
    }

    @Override // o.AbstractC1157f10
    public View S(View view, int i, C1729l10 c1729l10, C2204q10 c2204q10) {
        int iF0;
        X0();
        if (v() != 0 && (iF0 = F0(i)) != Integer.MIN_VALUE) {
            G0();
            b1(iF0, (int) (this.r.l() * 0.33333334f), false, c2204q10);
            C2706vL c2706vL = this.q;
            c2706vL.g = Integer.MIN_VALUE;
            c2706vL.a = false;
            H0(c1729l10, c2706vL, c2204q10, true);
            View viewL0 = iF0 == -1 ? this.u ? L0(v() - 1, -1) : L0(0, v()) : this.u ? L0(0, v()) : L0(v() - 1, -1);
            View viewR0 = iF0 == -1 ? R0() : Q0();
            if (!viewR0.hasFocusable()) {
                return viewL0;
            }
            if (viewL0 != null) {
                return viewR0;
            }
        }
        return null;
    }

    public final boolean S0() {
        return C() == 1;
    }

    @Override // o.AbstractC1157f10
    public final void T(AccessibilityEvent accessibilityEvent) {
        super.T(accessibilityEvent);
        if (v() > 0) {
            View viewM0 = M0(0, false, v());
            accessibilityEvent.setFromIndex(viewM0 == null ? -1 : AbstractC1157f10.H(viewM0));
            accessibilityEvent.setToIndex(K0());
        }
    }

    public void T0(C1729l10 c1729l10, C2204q10 c2204q10, C2706vL c2706vL, C2611uL c2611uL) {
        int iE;
        int i;
        int i2;
        int iD;
        View viewB = c2706vL.b(c1729l10);
        if (viewB == null) {
            c2611uL.b = true;
            return;
        }
        C1253g10 c1253g10 = (C1253g10) viewB.getLayoutParams();
        if (c2706vL.k == null) {
            if (this.u == (c2706vL.f == -1)) {
                b(viewB, -1, false);
            } else {
                b(viewB, 0, false);
            }
        } else {
            if (this.u == (c2706vL.f == -1)) {
                b(viewB, -1, true);
            } else {
                b(viewB, 0, true);
            }
        }
        C1253g10 c1253g102 = (C1253g10) viewB.getLayoutParams();
        Rect rectJ = this.b.J(viewB);
        int i3 = rectJ.left + rectJ.right;
        int i4 = rectJ.top + rectJ.bottom;
        int iW = AbstractC1157f10.w(d(), this.n, this.l, F() + E() + ((ViewGroup.MarginLayoutParams) c1253g102).leftMargin + ((ViewGroup.MarginLayoutParams) c1253g102).rightMargin + i3, ((ViewGroup.MarginLayoutParams) c1253g102).width);
        int iW2 = AbstractC1157f10.w(e(), this.f519o, this.m, D() + G() + ((ViewGroup.MarginLayoutParams) c1253g102).topMargin + ((ViewGroup.MarginLayoutParams) c1253g102).bottomMargin + i4, ((ViewGroup.MarginLayoutParams) c1253g102).height);
        if (u0(viewB, iW, iW2, c1253g102)) {
            viewB.measure(iW, iW2);
        }
        c2611uL.a = this.r.c(viewB);
        if (this.p == 1) {
            if (S0()) {
                iD = this.n - F();
                iE = iD - this.r.d(viewB);
            } else {
                iE = E();
                iD = this.r.d(viewB) + iE;
            }
            if (c2706vL.f == -1) {
                i = c2706vL.b;
                i2 = i - c2611uL.a;
            } else {
                i2 = c2706vL.b;
                i = c2611uL.a + i2;
            }
        } else {
            int iG = G();
            int iD2 = this.r.d(viewB) + iG;
            if (c2706vL.f == -1) {
                int i5 = c2706vL.b;
                int i6 = i5 - c2611uL.a;
                iD = i5;
                i = iD2;
                iE = i6;
                i2 = iG;
            } else {
                int i7 = c2706vL.b;
                int i8 = c2611uL.a + i7;
                iE = i7;
                i = iD2;
                i2 = iG;
                iD = i8;
            }
        }
        AbstractC1157f10.N(viewB, iE, i2, iD, i);
        if (c1253g10.a.h() || c1253g10.a.k()) {
            c2611uL.c = true;
        }
        c2611uL.d = viewB.hasFocusable();
    }

    public final void V0(C1729l10 c1729l10, C2706vL c2706vL) {
        if (!c2706vL.a || c2706vL.l) {
            return;
        }
        int i = c2706vL.g;
        int i2 = c2706vL.i;
        if (c2706vL.f == -1) {
            int iV = v();
            if (i < 0) {
                return;
            }
            int iF = (this.r.f() - i) + i2;
            if (this.u) {
                for (int i3 = 0; i3 < iV; i3++) {
                    View viewU = u(i3);
                    if (this.r.e(viewU) < iF || this.r.n(viewU) < iF) {
                        W0(c1729l10, 0, i3);
                        return;
                    }
                }
                return;
            }
            int i4 = iV - 1;
            for (int i5 = i4; i5 >= 0; i5--) {
                View viewU2 = u(i5);
                if (this.r.e(viewU2) < iF || this.r.n(viewU2) < iF) {
                    W0(c1729l10, i4, i5);
                    return;
                }
            }
            return;
        }
        if (i < 0) {
            return;
        }
        int i6 = i - i2;
        int iV2 = v();
        if (!this.u) {
            for (int i7 = 0; i7 < iV2; i7++) {
                View viewU3 = u(i7);
                if (this.r.b(viewU3) > i6 || this.r.m(viewU3) > i6) {
                    W0(c1729l10, 0, i7);
                    return;
                }
            }
            return;
        }
        int i8 = iV2 - 1;
        for (int i9 = i8; i9 >= 0; i9--) {
            View viewU4 = u(i9);
            if (this.r.b(viewU4) > i6 || this.r.m(viewU4) > i6) {
                W0(c1729l10, i8, i9);
                return;
            }
        }
    }

    public final void W0(C1729l10 c1729l10, int i, int i2) {
        if (i == i2) {
            return;
        }
        if (i2 <= i) {
            while (i > i2) {
                View viewU = u(i);
                j0(i);
                c1729l10.f(viewU);
                i--;
            }
            return;
        }
        for (int i3 = i2 - 1; i3 >= i; i3--) {
            View viewU2 = u(i3);
            j0(i3);
            c1729l10.f(viewU2);
        }
    }

    public final void X0() {
        if (this.p == 1 || !S0()) {
            this.u = this.t;
        } else {
            this.u = !this.t;
        }
    }

    public final int Y0(int i, C1729l10 c1729l10, C2204q10 c2204q10) {
        if (v() != 0 && i != 0) {
            G0();
            this.q.a = true;
            int i2 = i > 0 ? 1 : -1;
            int iAbs = Math.abs(i);
            b1(i2, iAbs, true, c2204q10);
            C2706vL c2706vL = this.q;
            int iH0 = H0(c1729l10, c2706vL, c2204q10, false) + c2706vL.g;
            if (iH0 >= 0) {
                if (iAbs > iH0) {
                    i = i2 * iH0;
                }
                this.r.o(-i);
                this.q.j = i;
                return i;
            }
        }
        return 0;
    }

    public final void Z0(int i) {
        if (i != 0 && i != 1) {
            throw new IllegalArgumentException(AbstractC0126Ew.j(i, "invalid orientation:"));
        }
        c(null);
        if (i != this.p || this.r == null) {
            AbstractC1624jv abstractC1624jvA = AbstractC1624jv.a(this, i);
            this.r = abstractC1624jvA;
            this.A.a = abstractC1624jvA;
            this.p = i;
            l0();
        }
    }

    @Override // o.InterfaceC2109p10
    public final PointF a(int i) {
        if (v() == 0) {
            return null;
        }
        int i2 = (i < AbstractC1157f10.H(u(0))) != this.u ? -1 : 1;
        return this.p == 0 ? new PointF(i2, 0.0f) : new PointF(0.0f, i2);
    }

    public void a1(boolean z) {
        c(null);
        if (this.v == z) {
            return;
        }
        this.v = z;
        l0();
    }

    /* JADX WARN: Removed duplicated region for block: B:97:0x0192  */
    /* JADX WARN: Removed duplicated region for block: B:98:0x0196  */
    @Override // o.AbstractC1157f10
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void b0(o.C1729l10 r18, o.C2204q10 r19) {
        /*
            Method dump skipped, instructions count: 1175
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.LinearLayoutManager.b0(o.l10, o.q10):void");
    }

    public final void b1(int i, int i2, boolean z, C2204q10 c2204q10) {
        int iK;
        this.q.l = this.r.i() == 0 && this.r.f() == 0;
        this.q.f = i;
        int[] iArr = this.D;
        iArr[0] = 0;
        iArr[1] = 0;
        A0(c2204q10, iArr);
        int iMax = Math.max(0, iArr[0]);
        int iMax2 = Math.max(0, iArr[1]);
        boolean z2 = i == 1;
        C2706vL c2706vL = this.q;
        int i3 = z2 ? iMax2 : iMax;
        c2706vL.h = i3;
        if (!z2) {
            iMax = iMax2;
        }
        c2706vL.i = iMax;
        if (z2) {
            c2706vL.h = this.r.h() + i3;
            View viewQ0 = Q0();
            C2706vL c2706vL2 = this.q;
            c2706vL2.e = this.u ? -1 : 1;
            int iH = AbstractC1157f10.H(viewQ0);
            C2706vL c2706vL3 = this.q;
            c2706vL2.d = iH + c2706vL3.e;
            c2706vL3.b = this.r.b(viewQ0);
            iK = this.r.b(viewQ0) - this.r.g();
        } else {
            View viewR0 = R0();
            C2706vL c2706vL4 = this.q;
            c2706vL4.h = this.r.k() + c2706vL4.h;
            C2706vL c2706vL5 = this.q;
            c2706vL5.e = this.u ? 1 : -1;
            int iH2 = AbstractC1157f10.H(viewR0);
            C2706vL c2706vL6 = this.q;
            c2706vL5.d = iH2 + c2706vL6.e;
            c2706vL6.b = this.r.e(viewR0);
            iK = (-this.r.e(viewR0)) + this.r.k();
        }
        C2706vL c2706vL7 = this.q;
        c2706vL7.c = i2;
        if (z) {
            c2706vL7.c = i2 - iK;
        }
        c2706vL7.g = iK;
    }

    @Override // o.AbstractC1157f10
    public final void c(String str) {
        if (this.z == null) {
            super.c(str);
        }
    }

    @Override // o.AbstractC1157f10
    public void c0(C2204q10 c2204q10) {
        this.z = null;
        this.x = -1;
        this.y = Integer.MIN_VALUE;
        this.A.d();
    }

    public final void c1(int i, int i2) {
        this.q.c = this.r.g() - i2;
        C2706vL c2706vL = this.q;
        c2706vL.e = this.u ? -1 : 1;
        c2706vL.d = i;
        c2706vL.f = 1;
        c2706vL.b = i2;
        c2706vL.g = Integer.MIN_VALUE;
    }

    @Override // o.AbstractC1157f10
    public final boolean d() {
        return this.p == 0;
    }

    @Override // o.AbstractC1157f10
    public final void d0(Parcelable parcelable) {
        if (parcelable instanceof C2801wL) {
            this.z = (C2801wL) parcelable;
            l0();
        }
    }

    public final void d1(int i, int i2) {
        this.q.c = i2 - this.r.k();
        C2706vL c2706vL = this.q;
        c2706vL.d = i;
        c2706vL.e = this.u ? 1 : -1;
        c2706vL.f = -1;
        c2706vL.b = i2;
        c2706vL.g = Integer.MIN_VALUE;
    }

    @Override // o.AbstractC1157f10
    public final boolean e() {
        return this.p == 1;
    }

    @Override // o.AbstractC1157f10
    public final Parcelable e0() {
        C2801wL c2801wL = this.z;
        if (c2801wL != null) {
            C2801wL c2801wL2 = new C2801wL();
            c2801wL2.l = c2801wL.l;
            c2801wL2.m = c2801wL.m;
            c2801wL2.n = c2801wL.n;
            return c2801wL2;
        }
        C2801wL c2801wL3 = new C2801wL();
        if (v() <= 0) {
            c2801wL3.l = -1;
            return c2801wL3;
        }
        G0();
        boolean z = this.s ^ this.u;
        c2801wL3.n = z;
        if (z) {
            View viewQ0 = Q0();
            c2801wL3.m = this.r.g() - this.r.b(viewQ0);
            c2801wL3.l = AbstractC1157f10.H(viewQ0);
            return c2801wL3;
        }
        View viewR0 = R0();
        c2801wL3.l = AbstractC1157f10.H(viewR0);
        c2801wL3.m = this.r.e(viewR0) - this.r.k();
        return c2801wL3;
    }

    @Override // o.AbstractC1157f10
    public final void h(int i, int i2, C2204q10 c2204q10, C2642ui c2642ui) {
        if (this.p != 0) {
            i = i2;
        }
        if (v() == 0 || i == 0) {
            return;
        }
        G0();
        b1(i > 0 ? 1 : -1, Math.abs(i), true, c2204q10);
        B0(c2204q10, this.q, c2642ui);
    }

    @Override // o.AbstractC1157f10
    public final void i(int i, C2642ui c2642ui) {
        boolean z;
        int i2;
        C2801wL c2801wL = this.z;
        if (c2801wL == null || (i2 = c2801wL.l) < 0) {
            X0();
            z = this.u;
            i2 = this.x;
            if (i2 == -1) {
                i2 = z ? i - 1 : 0;
            }
        } else {
            z = c2801wL.n;
        }
        int i3 = z ? -1 : 1;
        for (int i4 = 0; i4 < this.C && i2 >= 0 && i2 < i; i4++) {
            c2642ui.a(i2, 0);
            i2 += i3;
        }
    }

    @Override // o.AbstractC1157f10
    public final int j(C2204q10 c2204q10) {
        return C0(c2204q10);
    }

    @Override // o.AbstractC1157f10
    public int k(C2204q10 c2204q10) {
        return D0(c2204q10);
    }

    @Override // o.AbstractC1157f10
    public int l(C2204q10 c2204q10) {
        return E0(c2204q10);
    }

    @Override // o.AbstractC1157f10
    public final int m(C2204q10 c2204q10) {
        return C0(c2204q10);
    }

    @Override // o.AbstractC1157f10
    public int m0(int i, C1729l10 c1729l10, C2204q10 c2204q10) {
        if (this.p == 1) {
            return 0;
        }
        return Y0(i, c1729l10, c2204q10);
    }

    @Override // o.AbstractC1157f10
    public int n(C2204q10 c2204q10) {
        return D0(c2204q10);
    }

    @Override // o.AbstractC1157f10
    public final void n0(int i) {
        this.x = i;
        this.y = Integer.MIN_VALUE;
        C2801wL c2801wL = this.z;
        if (c2801wL != null) {
            c2801wL.l = -1;
        }
        l0();
    }

    @Override // o.AbstractC1157f10
    public int o(C2204q10 c2204q10) {
        return E0(c2204q10);
    }

    @Override // o.AbstractC1157f10
    public int o0(int i, C1729l10 c1729l10, C2204q10 c2204q10) {
        if (this.p == 0) {
            return 0;
        }
        return Y0(i, c1729l10, c2204q10);
    }

    @Override // o.AbstractC1157f10
    public final View q(int i) {
        int iV = v();
        if (iV == 0) {
            return null;
        }
        int iH = i - AbstractC1157f10.H(u(0));
        if (iH >= 0 && iH < iV) {
            View viewU = u(iH);
            if (AbstractC1157f10.H(viewU) == i) {
                return viewU;
            }
        }
        return super.q(i);
    }

    @Override // o.AbstractC1157f10
    public C1253g10 r() {
        return new C1253g10(-2, -2);
    }

    @Override // o.AbstractC1157f10
    public final boolean v0() {
        if (this.m != 1073741824 && this.l != 1073741824) {
            int iV = v();
            for (int i = 0; i < iV; i++) {
                ViewGroup.LayoutParams layoutParams = u(i).getLayoutParams();
                if (layoutParams.width < 0 && layoutParams.height < 0) {
                    return true;
                }
            }
        }
        return false;
    }

    @Override // o.AbstractC1157f10
    public void x0(RecyclerView recyclerView, int i) {
        C2896xL c2896xL = new C2896xL(recyclerView.getContext());
        c2896xL.a = i;
        y0(c2896xL);
    }

    @Override // o.AbstractC1157f10
    public boolean z0() {
        return this.z == null && this.s == this.v;
    }

    public LinearLayoutManager(Context context, AttributeSet attributeSet, int i, int i2) {
        this.p = 1;
        this.t = false;
        this.u = false;
        this.v = false;
        this.w = true;
        this.x = -1;
        this.y = Integer.MIN_VALUE;
        this.z = null;
        this.A = new C2516tL();
        this.B = new C2611uL();
        this.C = 2;
        this.D = new int[2];
        C1061e10 c1061e10I = AbstractC1157f10.I(context, attributeSet, i, i2);
        Z0(c1061e10I.a);
        boolean z = c1061e10I.c;
        c(null);
        if (z != this.t) {
            this.t = z;
            l0();
        }
        a1(c1061e10I.d);
    }

    @Override // o.AbstractC1157f10
    public final void R(RecyclerView recyclerView) {
    }

    public void U0(C1729l10 c1729l10, C2204q10 c2204q10, C2516tL c2516tL, int i) {
    }
}
