package defpackage;

import androidx.leanback.widget.GridLayoutManager;

/* renamed from: ᵱˑᐧ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4404 extends AbstractC2030 {

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public Object f16478;

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public int f16479;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public C1326 f16480;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public int f16481;

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public final boolean m9435(int i, boolean z) {
        int i2;
        int iM7145;
        C1326 c1326 = this.f16480;
        if (c1326.m4061() != 0) {
            int iM7144 = this.f8150.m7144();
            int i3 = this.f8145;
            if (i3 >= 0) {
                i2 = i3 + 1;
                iM7145 = this.f8150.m7145(i3);
            } else {
                int i4 = this.f8148;
                i2 = i4 != -1 ? i4 : 0;
                if (i2 > m9442() + 1 || i2 < this.f16481) {
                    c1326.m4056(c1326.m4061());
                    return false;
                }
                if (i2 <= m9442()) {
                    iM7145 = Integer.MAX_VALUE;
                }
            }
            int iM9442 = m9442();
            int i5 = i2;
            while (i5 < iM7144 && i5 <= iM9442) {
                C1466 c1466Mo5622 = mo5622(i5);
                if (iM7145 != Integer.MAX_VALUE) {
                    iM7145 += c1466Mo5622.f5918;
                }
                int i6 = ((ᵺˑʔˇ) c1466Mo5622).ᵢˇᵭ;
                C2931 c2931 = this.f8150;
                Object[] objArr = this.f8149;
                int iM7139 = c2931.m7139(i5, 1, true, objArr, false);
                if (iM7139 != c1466Mo5622.f5917) {
                    c1466Mo5622.f5917 = iM7139;
                    c1326.m4085(iM9442 - i5);
                    iM9442 = i5;
                }
                this.f8145 = i5;
                if (this.f8146 < 0) {
                    this.f8146 = i5;
                }
                int i7 = i5;
                int i8 = iM7145;
                this.f8150.m7136(objArr[0], i7, iM7139, i6, i8);
                if (z || !mo5621(i)) {
                    iM7145 = i8 == Integer.MAX_VALUE ? this.f8150.m7145(i7) : i8;
                    if (i6 != this.f8144 - 1 || !z) {
                        i5 = i7 + 1;
                    }
                }
                return true;
            }
        }
        return false;
    }

    @Override // defpackage.AbstractC2030
    /* renamed from: ˌᵜᵹᵩ */
    public final void mo5612(int i) {
        super.mo5612(i);
        C1326 c1326 = this.f16480;
        c1326.m4085((m9442() - i) + 1);
        if (c1326.m4061() == 0) {
            this.f16481 = -1;
        }
    }

    @Override // defpackage.AbstractC2030
    /* renamed from: ˏˋٴ */
    public final int mo5614(int[] iArr, int i) {
        int i2;
        int iM7145 = this.f8150.m7145(i);
        C1466 c1466Mo5622 = mo5622(i);
        int i3 = ((ᵺˑʔˇ) c1466Mo5622).ᵢˇᵭ;
        if (this.f8147) {
            i2 = i3;
            int i4 = i2;
            int i5 = 1;
            int i6 = iM7145;
            for (int i7 = i + 1; i5 < this.f8144 && i7 <= this.f8145; i7++) {
                C1466 c1466Mo56222 = mo5622(i7);
                i6 += c1466Mo56222.f5918;
                int i8 = ((ᵺˑʔˇ) c1466Mo56222).ᵢˇᵭ;
                if (i8 != i4) {
                    i5++;
                    if (i6 > iM7145) {
                        iM7145 = i6;
                        i = i7;
                        i2 = i8;
                        i4 = i2;
                    } else {
                        i4 = i8;
                    }
                }
            }
        } else {
            int i9 = 1;
            int i10 = i3;
            C1466 c1466Mo56223 = c1466Mo5622;
            int i11 = iM7145;
            iM7145 = this.f8150.m7142(i) + iM7145;
            i2 = i10;
            for (int i12 = i - 1; i9 < this.f8144 && i12 >= this.f8146; i12--) {
                i11 -= c1466Mo56223.f5918;
                c1466Mo56223 = mo5622(i12);
                int i13 = ((ᵺˑʔˇ) c1466Mo56223).ᵢˇᵭ;
                if (i13 != i10) {
                    i9++;
                    int iM7142 = this.f8150.m7142(i12) + i11;
                    if (iM7142 > iM7145) {
                        iM7145 = iM7142;
                        i = i12;
                        i2 = i13;
                        i10 = i2;
                    } else {
                        i10 = i13;
                    }
                }
            }
        }
        if (iArr != null) {
            iArr[0] = i2;
            iArr[1] = i;
        }
        return iM7145;
    }

    @Override // defpackage.AbstractC2030
    /* renamed from: ˏᵙ */
    public final boolean mo5615(int i) {
        if (this.f8145 < 0) {
            return false;
        }
        if (this.f8147) {
            for (int i2 = 0; i2 < this.f8144; i2++) {
                int iM9441 = m9441(i2);
                if (iM9441 != Integer.MIN_VALUE && iM9441 < i - this.f8152) {
                    return false;
                }
            }
            return true;
        }
        for (int i3 = 0; i3 < this.f8144; i3++) {
            int iM9439 = m9439(i3);
            if (iM9439 != Integer.MAX_VALUE && iM9439 > this.f8152 + i) {
                return false;
            }
        }
        return true;
    }

    @Override // defpackage.AbstractC2030
    /* renamed from: ˑᵱ, reason: contains not printable characters and merged with bridge method [inline-methods] */
    public final C1466 mo5622(int i) {
        C1326 c1326 = this.f16480;
        int i2 = i - this.f16481;
        if (i2 < 0 || i2 >= c1326.m4061()) {
            return null;
        }
        if (i2 < 0 || i2 >= c1326.m4061()) {
            throw new ArrayIndexOutOfBoundsException();
        }
        return (C1466) ((Object[]) c1326.f5442)[c1326.f5446 & (c1326.f5445 + i2)];
    }

    /* JADX WARN: Removed duplicated region for block: B:19:0x004d  */
    @Override // defpackage.AbstractC2030
    /* renamed from: ᵝᵵᵺ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final defpackage.C3513[] mo5616(int r7, int r8) {
        /*
            r6 = this;
            r0 = 0
            r1 = r0
        L2:
            int r2 = r6.f8144
            if (r1 >= r2) goto Lf
            ᵥᵕᵢˌ[] r2 = r6.f8151
            r2 = r2[r1]
            r2.f13183 = r0
            int r1 = r1 + 1
            goto L2
        Lf:
            if (r7 < 0) goto L56
        L11:
            if (r7 > r8) goto L56
            ᵥᵕᵢˌ[] r0 = r6.f8151
            ˋˉˇ r1 = r6.mo5622(r7)
            int r1 = r1.ᵢˇᵭ
            r0 = r0[r1]
            int r1 = r0.f13183
            int r2 = r0.f13182
            r3 = r1 & r2
            if (r3 <= 0) goto L4d
            if (r1 == 0) goto L47
            java.lang.Object r3 = r0.f13184
            int[] r3 = (int[]) r3
            int r4 = r1 + (-1)
            r4 = r4 & r2
            r4 = r3[r4]
            int r5 = r7 + (-1)
            if (r4 != r5) goto L4d
            if (r1 == 0) goto L41
            int r1 = r1 + (-1)
            r1 = r1 & r2
            r2 = r3[r1]
            r0.f13183 = r1
            r0.m8037(r7)
            goto L53
        L41:
            java.lang.ArrayIndexOutOfBoundsException r6 = new java.lang.ArrayIndexOutOfBoundsException
            r6.<init>()
            throw r6
        L47:
            java.lang.ArrayIndexOutOfBoundsException r6 = new java.lang.ArrayIndexOutOfBoundsException
            r6.<init>()
            throw r6
        L4d:
            r0.m8037(r7)
            r0.m8037(r7)
        L53:
            int r7 = r7 + 1
            goto L11
        L56:
            ᵥᵕᵢˌ[] r6 = r6.f8151
            return r6
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C4404.mo5616(int, int):ᵥᵕᵢˌ[]");
    }

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public final int m9437(boolean z) {
        boolean z2 = false;
        if (z) {
            for (int i = this.f8145; i >= this.f8146; i--) {
                int i2 = ((ᵺˑʔˇ) mo5622(i)).ᵢˇᵭ;
                if (i2 == 0) {
                    z2 = true;
                } else if (z2 && i2 == this.f8144 - 1) {
                    return i;
                }
            }
            return -1;
        }
        for (int i3 = this.f8146; i3 <= this.f8145; i3++) {
            int i4 = ((ᵺˑʔˇ) mo5622(i3)).ᵢˇᵭ;
            if (i4 == this.f8144 - 1) {
                z2 = true;
            } else if (z2 && i4 == 0) {
                return i3;
            }
        }
        return -1;
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public final int m9438(int i, int i2, int i3) {
        int iM7145;
        C1326 c1326 = this.f16480;
        int i4 = this.f8145;
        if (i4 >= 0 && (i4 != m9442() || this.f8145 != i - 1)) {
            ᵨᴵᵺ.ˌʾˀ();
            return 0;
        }
        int i5 = this.f8145;
        if (i5 >= 0) {
            iM7145 = i3 - this.f8150.m7145(i5);
        } else if (c1326.m4061() <= 0 || i != m9442() + 1) {
            iM7145 = 0;
        } else {
            int iM9442 = m9442();
            while (true) {
                if (iM9442 < this.f16481) {
                    iM9442 = m9442();
                    break;
                }
                if (((ᵺˑʔˇ) mo5622(iM9442)).ᵢˇᵭ == i2) {
                    break;
                }
                iM9442--;
            }
            iM7145 = this.f8147 ? (-mo5622(iM9442).f5917) - this.f8152 : mo5622(iM9442).f5917 + this.f8152;
            for (int i6 = iM9442 + 1; i6 <= m9442(); i6++) {
                iM7145 -= mo5622(i6).f5918;
            }
        }
        C1466 c1466 = new C1466(i2, iM7145);
        c1326.m4079(c1466);
        Object obj = this.f16478;
        if (obj != null) {
            c1466.f5917 = this.f16479;
            this.f16478 = null;
        } else {
            C2931 c2931 = this.f8150;
            Object[] objArr = this.f8149;
            c1466.f5917 = c2931.m7139(i, 1, true, objArr, false);
            obj = objArr[0];
        }
        if (c1326.m4061() == 1) {
            this.f8145 = i;
            this.f8146 = i;
            this.f16481 = i;
        } else {
            int i7 = this.f8145;
            if (i7 < 0) {
                this.f8145 = i;
                this.f8146 = i;
            } else {
                this.f8145 = i7 + 1;
            }
        }
        this.f8150.m7136(obj, i, c1466.f5917, i2, i3);
        return c1466.f5917;
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final int m9439(int i) {
        C1466 c1466Mo5622;
        int i2;
        int i3 = this.f8146;
        if (i3 < 0) {
            return Integer.MAX_VALUE;
        }
        boolean z = this.f8147;
        C2931 c2931 = this.f8150;
        if (!z) {
            int iM7145 = c2931.m7145(i3);
            if (((ᵺˑʔˇ) mo5622(this.f8146)).ᵢˇᵭ == i) {
                return iM7145;
            }
            int i4 = this.f8146;
            do {
                i4++;
                if (i4 <= m9442()) {
                    c1466Mo5622 = mo5622(i4);
                    iM7145 += c1466Mo5622.f5918;
                }
            } while (((ᵺˑʔˇ) c1466Mo5622).ᵢˇᵭ != i);
            return iM7145;
        }
        int iM71452 = c2931.m7145(this.f8145);
        C1466 c1466Mo56222 = mo5622(this.f8145);
        if (((ᵺˑʔˇ) c1466Mo56222).ᵢˇᵭ == i) {
            i2 = c1466Mo56222.f5917;
        } else {
            int i5 = this.f8145;
            do {
                i5--;
                if (i5 >= this.f16481) {
                    iM71452 -= c1466Mo56222.f5918;
                    c1466Mo56222 = mo5622(i5);
                }
            } while (((ᵺˑʔˇ) c1466Mo56222).ᵢˇᵭ != i);
            i2 = c1466Mo56222.f5917;
        }
        return iM71452 - i2;
        return Integer.MAX_VALUE;
    }

    /* JADX WARN: Code restructure failed: missing block: B:106:0x0133, code lost:
    
        return r8;
     */
    /* JADX WARN: Removed duplicated region for block: B:100:0x011e  */
    /* JADX WARN: Removed duplicated region for block: B:64:0x00bb A[PHI: r8 r10
      0x00bb: PHI (r8v19 int) = (r8v11 int), (r8v4 int) binds: [B:74:0x00d8, B:62:0x00b8] A[DONT_GENERATE, DONT_INLINE]
      0x00bb: PHI (r10v8 int) = (r10v1 int), (r10v10 int) binds: [B:74:0x00d8, B:62:0x00b8] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:82:0x00f0 A[LOOP:2: B:82:0x00f0->B:97:0x0110, LOOP_START, PHI: r5 r8 r9
      0x00f0: PHI (r5v12 int) = (r5v6 int), (r5v17 int) binds: [B:81:0x00ee, B:97:0x0110] A[DONT_GENERATE, DONT_INLINE]
      0x00f0: PHI (r8v15 int) = (r8v13 int), (r8v16 int) binds: [B:81:0x00ee, B:97:0x0110] A[DONT_GENERATE, DONT_INLINE]
      0x00f0: PHI (r9v5 int) = (r9v3 int), (r9v7 int) binds: [B:81:0x00ee, B:97:0x0110] A[DONT_GENERATE, DONT_INLINE]] */
    /* 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 m9440(int r14) {
        /*
            Method dump skipped, instructions count: 328
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C4404.m9440(int):boolean");
    }

    @Override // defpackage.AbstractC2030
    /* renamed from: ᵥᵯˎ */
    public final boolean mo5617(int i, boolean z) {
        Object[] objArr = this.f8149;
        if (this.f8150.m7144() == 0 || (!z && mo5621(i))) {
            return false;
        }
        try {
            if (!m9435(i, z)) {
                return m9443(i, z);
            }
            objArr[0] = null;
            this.f16478 = null;
            return true;
        } finally {
            objArr[0] = null;
            this.f16478 = null;
        }
    }

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final int m9441(int i) {
        int i2;
        C1466 c1466Mo5622;
        int i3 = this.f8146;
        if (i3 < 0) {
            return Integer.MIN_VALUE;
        }
        boolean z = this.f8147;
        C2931 c2931 = this.f8150;
        if (z) {
            int iM7145 = c2931.m7145(i3);
            if (((ᵺˑʔˇ) mo5622(this.f8146)).ᵢˇᵭ == i) {
                return iM7145;
            }
            int i4 = this.f8146;
            do {
                i4++;
                if (i4 <= m9442()) {
                    c1466Mo5622 = mo5622(i4);
                    iM7145 += c1466Mo5622.f5918;
                }
            } while (((ᵺˑʔˇ) c1466Mo5622).ᵢˇᵭ != i);
            return iM7145;
        }
        int iM71452 = c2931.m7145(this.f8145);
        C1466 c1466Mo56222 = mo5622(this.f8145);
        if (((ᵺˑʔˇ) c1466Mo56222).ᵢˇᵭ == i) {
            i2 = c1466Mo56222.f5917;
        } else {
            int i5 = this.f8145;
            do {
                i5--;
                if (i5 >= this.f16481) {
                    iM71452 -= c1466Mo56222.f5918;
                    c1466Mo56222 = mo5622(i5);
                }
            } while (((ᵺˑʔˇ) c1466Mo56222).ᵢˇᵭ != i);
            i2 = c1466Mo56222.f5917;
        }
        return iM71452 + i2;
        return Integer.MIN_VALUE;
    }

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public final int m9442() {
        return (this.f16480.m4061() + this.f16481) - 1;
    }

    @Override // defpackage.AbstractC2030
    /* renamed from: ᵯٴᵦ */
    public final boolean mo5619(int i) {
        Object[] objArr = this.f8149;
        if (this.f8150.m7144() == 0 || mo5615(i)) {
            return false;
        }
        try {
            if (!m9445(i)) {
                return m9440(i);
            }
            objArr[0] = null;
            this.f16478 = null;
            return true;
        } finally {
            objArr[0] = null;
            this.f16478 = null;
        }
    }

    @Override // defpackage.AbstractC2030
    /* renamed from: ᵴᵳ */
    public final boolean mo5621(int i) {
        if (this.f8145 < 0) {
            return false;
        }
        if (this.f8147) {
            for (int i2 = 0; i2 < this.f8144; i2++) {
                int iM9439 = m9439(i2);
                if (iM9439 != Integer.MAX_VALUE && iM9439 > this.f8152 + i) {
                    return false;
                }
            }
            return true;
        }
        for (int i3 = 0; i3 < this.f8144; i3++) {
            int iM9441 = m9441(i3);
            if (iM9441 != Integer.MIN_VALUE && iM9441 < i - this.f8152) {
                return false;
            }
        }
        return true;
    }

    /* JADX WARN: Code restructure failed: missing block: B:102:0x012a, code lost:
    
        return true;
     */
    /* JADX WARN: Removed duplicated region for block: B:104:0x012d  */
    /* JADX WARN: Removed duplicated region for block: B:67:0x00c5 A[PHI: r9 r11
      0x00c5: PHI (r9v19 int) = (r9v11 int), (r9v4 int) binds: [B:78:0x00e3, B:66:0x00c3] A[DONT_GENERATE, DONT_INLINE]
      0x00c5: PHI (r11v9 int) = (r11v2 int), (r11v11 int) binds: [B:78:0x00e3, B:66:0x00c3] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:85:0x00fd A[LOOP:2: B:85:0x00fd->B:101:0x011f, LOOP_START, PHI: r6 r9 r10
      0x00fd: PHI (r6v12 int) = (r6v6 int), (r6v16 int) binds: [B:84:0x00fb, B:101:0x011f] A[DONT_GENERATE, DONT_INLINE]
      0x00fd: PHI (r9v15 int) = (r9v13 int), (r9v16 int) binds: [B:84:0x00fb, B:101:0x011f] A[DONT_GENERATE, DONT_INLINE]
      0x00fd: PHI (r10v5 int) = (r10v3 int), (r10v7 int) binds: [B:84:0x00fb, B:101:0x011f] A[DONT_GENERATE, DONT_INLINE]] */
    /* 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 m9443(int r15, boolean r16) {
        /*
            Method dump skipped, instructions count: 343
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C4404.m9443(int, boolean):boolean");
    }

    @Override // defpackage.AbstractC2030
    /* renamed from: ᵸˑ */
    public final int mo5623(int i, int i2, int i3) {
        int i4 = i3 * this.f8144;
        int i5 = this.f8147 ? i - i4 : i + i4;
        if (i5 < 0) {
            return 0;
        }
        int i6 = i2 - 1;
        return i5 > i6 ? i6 : i5;
    }

    @Override // defpackage.AbstractC2030
    /* renamed from: ᵹᵝᵶ */
    public final int mo5624(int[] iArr, int i) {
        int iM7142;
        int iM7145 = this.f8150.m7145(i);
        C1466 c1466Mo5622 = mo5622(i);
        int i2 = ((ᵺˑʔˇ) c1466Mo5622).ᵢˇᵭ;
        if (this.f8147) {
            int i3 = 1;
            iM7142 = iM7145 - this.f8150.m7142(i);
            int i4 = i2;
            for (int i5 = i - 1; i3 < this.f8144 && i5 >= this.f8146; i5--) {
                iM7145 -= c1466Mo5622.f5918;
                c1466Mo5622 = mo5622(i5);
                int i6 = ((ᵺˑʔˇ) c1466Mo5622).ᵢˇᵭ;
                if (i6 != i4) {
                    i3++;
                    int iM71422 = iM7145 - this.f8150.m7142(i5);
                    if (iM71422 < iM7142) {
                        iM7142 = iM71422;
                        i = i5;
                        i2 = i6;
                        i4 = i2;
                    } else {
                        i4 = i6;
                    }
                }
            }
        } else {
            int i7 = i2;
            int i8 = i7;
            int i9 = 1;
            int i10 = iM7145;
            for (int i11 = i + 1; i9 < this.f8144 && i11 <= this.f8145; i11++) {
                C1466 c1466Mo56222 = mo5622(i11);
                i10 += c1466Mo56222.f5918;
                int i12 = ((ᵺˑʔˇ) c1466Mo56222).ᵢˇᵭ;
                if (i12 != i8) {
                    i9++;
                    if (i10 < iM7145) {
                        iM7145 = i10;
                        i = i11;
                        i7 = i12;
                        i8 = i7;
                    } else {
                        i8 = i12;
                    }
                }
            }
            iM7142 = iM7145;
            i2 = i7;
        }
        if (iArr != null) {
            iArr[0] = i2;
            iArr[1] = i;
        }
        return iM7142;
    }

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final int m9444(int i, int i2, int i3) {
        int i4 = this.f8146;
        if (i4 >= 0 && (i4 != this.f16481 || i4 != i + 1)) {
            ᵨᴵᵺ.ˌʾˀ();
            return 0;
        }
        int i5 = this.f16481;
        C1466 c1466Mo5622 = i5 >= 0 ? mo5622(i5) : null;
        int iM7145 = this.f8150.m7145(this.f16481);
        C1466 c1466 = new C1466(i2, 0);
        C1326 c1326 = this.f16480;
        int i6 = (c1326.f5445 - 1) & c1326.f5446;
        c1326.f5445 = i6;
        ((Object[]) c1326.f5442)[i6] = c1466;
        if (i6 == c1326.f5443) {
            c1326.m4062();
        }
        Object obj = this.f16478;
        if (obj != null) {
            c1466.f5917 = this.f16479;
            this.f16478 = null;
        } else {
            C2931 c2931 = this.f8150;
            Object[] objArr = this.f8149;
            c1466.f5917 = c2931.m7139(i, 1, false, objArr, false);
            obj = objArr[0];
        }
        this.f8146 = i;
        this.f16481 = i;
        if (this.f8145 < 0) {
            this.f8145 = i;
        }
        boolean z = this.f8147;
        int i7 = c1466.f5917;
        int i8 = !z ? i3 - i7 : i3 + i7;
        if (c1466Mo5622 != null) {
            c1466Mo5622.f5918 = iM7145 - i8;
        }
        this.f8150.m7136(obj, i, i7, i2, i8);
        return c1466.f5917;
    }

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final boolean m9445(int i) {
        int i2;
        int iM7145;
        int i3;
        C1326 c1326 = this.f16480;
        if (c1326.m4061() != 0) {
            int i4 = this.f8146;
            if (i4 < 0) {
                int i5 = this.f8148;
                i2 = i5 != -1 ? i5 : 0;
                if (i2 <= m9442()) {
                    int i6 = this.f16481;
                    if (i2 >= i6 - 1) {
                        if (i2 >= i6) {
                            iM7145 = Integer.MAX_VALUE;
                            i3 = 0;
                        }
                    }
                }
                c1326.m4056(c1326.m4061());
                return false;
            }
            iM7145 = this.f8150.m7145(i4);
            i3 = mo5622(this.f8146).f5918;
            i2 = this.f8146 - 1;
            int iMax = Math.max(((GridLayoutManager) this.f8150.f11366).f419, this.f16481);
            int i7 = i2;
            while (i7 >= iMax) {
                C1466 c1466Mo5622 = mo5622(i7);
                int i8 = ((ᵺˑʔˇ) c1466Mo5622).ᵢˇᵭ;
                C2931 c2931 = this.f8150;
                Object[] objArr = this.f8149;
                int iM7139 = c2931.m7139(i7, 1, false, objArr, false);
                if (iM7139 != c1466Mo5622.f5917) {
                    c1326.m4056((i7 + 1) - this.f16481);
                    this.f16481 = this.f8146;
                    this.f16478 = objArr[0];
                    this.f16479 = iM7139;
                    return false;
                }
                this.f8146 = i7;
                if (this.f8145 < 0) {
                    this.f8145 = i7;
                }
                int i9 = i7;
                this.f8150.m7136(objArr[0], i9, iM7139, i8, iM7145 - i3);
                if (mo5615(i)) {
                    return true;
                }
                iM7145 = this.f8150.m7145(i9);
                i3 = c1466Mo5622.f5918;
                i7 = i9 - 1;
            }
        }
        return false;
    }
}
