package defpackage;

import java.util.Arrays;

/* renamed from: ˏᵮᵻ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public class C1900 extends AbstractC3415 implements InterfaceC2580, InterfaceC2632, InterfaceC1033 {

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public Object[] f7669;

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public int f7670;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public long f7671;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public long f7672;

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

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

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public int f7675;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final int f7676;

    public C1900(int i, int i2, int i3) {
        this.f7676 = i;
        this.f7674 = i2;
        this.f7673 = i3;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:35:0x007d A[Catch: all -> 0x0036, TRY_ENTER, TryCatch #0 {all -> 0x0036, blocks: (B:15:0x002f, B:32:0x0073, B:35:0x007d, B:39:0x0090, B:42:0x0097, B:43:0x009b, B:44:0x009c, B:22:0x0047), top: B:51:0x001e }] */
    /* JADX WARN: Removed duplicated region for block: B:57:0x008e A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Type inference failed for: r4v1, types: [ᵤˉᵩ] */
    /* JADX WARN: Type inference failed for: r4v12 */
    /* JADX WARN: Type inference failed for: r4v2 */
    /* JADX WARN: Type inference failed for: r4v4, types: [ˏᵮᵻ] */
    /* JADX WARN: Type inference failed for: r4v5 */
    /* JADX WARN: Type inference failed for: r4v7 */
    /* JADX WARN: Type inference failed for: r9v0, types: [ᵙᵽᵩ] */
    /* JADX WARN: Type inference failed for: r9v1 */
    /* JADX WARN: Type inference failed for: r9v15 */
    /* JADX WARN: Type inference failed for: r9v16 */
    /* JADX WARN: Type inference failed for: r9v17 */
    /* JADX WARN: Type inference failed for: r9v2, types: [ˈᵕ] */
    /* JADX WARN: Type inference failed for: r9v3 */
    /* JADX WARN: Type inference failed for: r9v4 */
    /* JADX WARN: Type inference failed for: r9v5, types: [ᵡᵿʞˏ] */
    /* JADX WARN: Type inference failed for: r9v8, types: [ᵡᵿʞˏ] */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:45:0x00aa -> B:16:0x0032). Please report as a decompilation issue!!! */
    /* 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 static void m5321(defpackage.C1900 r8, defpackage.InterfaceC2632 r9, defpackage.InterfaceC4943 r10) throws java.lang.Throwable {
        /*
            boolean r0 = r10 instanceof defpackage.C4368
            if (r0 == 0) goto L13
            r0 = r10
            ᵰᵵˀ r0 = (defpackage.C4368) r0
            int r1 = r0.f16336
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.f16336 = r1
            goto L18
        L13:
            ᵰᵵˀ r0 = new ᵰᵵˀ
            r0.<init>(r8, r10)
        L18:
            java.lang.Object r10 = r0.f16338
            int r1 = r0.f16336
            r2 = 3
            r3 = 2
            if (r1 == 0) goto L5a
            r8 = 1
            if (r1 == r8) goto L4b
            if (r1 == r3) goto L3f
            if (r1 != r2) goto L39
            ᵥˏˆ r8 = r0.f16335
            ᵡᵿʞˏ r9 = r0.f16339
            ᵙᵽᵩ r1 = r0.f16340
            ˏᵮᵻ r4 = r0.f16341
            ʼٴ.ᵺᵠ(r10)     // Catch: java.lang.Throwable -> L36
        L32:
            r10 = r1
            r1 = r8
            r8 = r4
            goto L70
        L36:
            r8 = move-exception
            goto Lb0
        L39:
            java.lang.String r8 = "call to 'resume' before 'invoke' with coroutine"
            ᵹˉᵞ.ᵳٴᵶ(r8)
            return
        L3f:
            ᵥˏˆ r8 = r0.f16335
            ᵡᵿʞˏ r9 = r0.f16339
            ᵙᵽᵩ r1 = r0.f16340
            ˏᵮᵻ r4 = r0.f16341
            ʼٴ.ᵺᵠ(r10)     // Catch: java.lang.Throwable -> L36
            goto L73
        L4b:
            ᵡᵿʞˏ r9 = r0.f16339
            ᵙᵽᵩ r8 = r0.f16340
            ˏᵮᵻ r1 = r0.f16341
            ʼٴ.ᵺᵠ(r10)     // Catch: java.lang.Throwable -> L57
            r10 = r8
            r8 = r1
            goto L66
        L57:
            r8 = move-exception
            r4 = r1
            goto Lb0
        L5a:
            ʼٴ.ᵺᵠ(r10)
            ˈᵕ r10 = r8.m7779()
            ᵡᵿʞˏ r10 = (defpackage.C3235) r10
            r7 = r10
            r10 = r9
            r9 = r7
        L66:
            ᵔⁱʨˉ r1 = r0.f7997     // Catch: java.lang.Throwable -> Lad
            ʾᵠᵦ r4 = ʾᵠᵦ.ᵾᵬ     // Catch: java.lang.Throwable -> Lad
            ˈˆ r1 = r1.mo1764(r4)     // Catch: java.lang.Throwable -> Lad
            ᵥˏˆ r1 = (defpackage.InterfaceC3506) r1     // Catch: java.lang.Throwable -> Lad
        L70:
            r4 = r8
            r8 = r1
            r1 = r10
        L73:
            java.lang.Object r10 = r4.m5322(r9)     // Catch: java.lang.Throwable -> L36
            ʿᵝ r5 = defpackage.AbstractC3263.f12282     // Catch: java.lang.Throwable -> L36
            ᵣˊᵛ r6 = defpackage.EnumC3346.f12524
            if (r10 != r5) goto L8e
            r0.f16341 = r4     // Catch: java.lang.Throwable -> L36
            r0.f16340 = r1     // Catch: java.lang.Throwable -> L36
            r0.f16339 = r9     // Catch: java.lang.Throwable -> L36
            r0.f16335 = r8     // Catch: java.lang.Throwable -> L36
            r0.f16336 = r3     // Catch: java.lang.Throwable -> L36
            java.lang.Object r10 = r4.m5327(r9, r0)     // Catch: java.lang.Throwable -> L36
            if (r10 != r6) goto L73
            goto Lac
        L8e:
            if (r8 == 0) goto L9c
            boolean r5 = r8.mo2236()     // Catch: java.lang.Throwable -> L36
            if (r5 == 0) goto L97
            goto L9c
        L97:
            java.util.concurrent.CancellationException r8 = r8.mo2238()     // Catch: java.lang.Throwable -> L36
            throw r8     // Catch: java.lang.Throwable -> L36
        L9c:
            r0.f16341 = r4     // Catch: java.lang.Throwable -> L36
            r0.f16340 = r1     // Catch: java.lang.Throwable -> L36
            r0.f16339 = r9     // Catch: java.lang.Throwable -> L36
            r0.f16335 = r8     // Catch: java.lang.Throwable -> L36
            r0.f16336 = r2     // Catch: java.lang.Throwable -> L36
            java.lang.Object r10 = r1.mo2063(r10, r0)     // Catch: java.lang.Throwable -> L36
            if (r10 != r6) goto L32
        Lac:
            return
        Lad:
            r10 = move-exception
            r4 = r8
            r8 = r10
        Lb0:
            r4.m7778(r9)
            throw r8
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C1900.m5321(ˏᵮᵻ, ᵙᵽᵩ, ᵸʚˑ):void");
    }

    /* renamed from: ˀˁᵨ, reason: contains not printable characters */
    public final Object m5322(C3235 c3235) {
        Object obj;
        InterfaceC4943[] interfaceC4943ArrM5334 = ˋᵮᵯᵔ.ˏᵙ;
        synchronized (this) {
            try {
                long jM5336 = m5336(c3235);
                if (jM5336 < 0) {
                    obj = AbstractC3263.f12282;
                } else {
                    long j = c3235.f12175;
                    Object objM7630 = AbstractC3263.m7630(this.f7669, jM5336);
                    if (objM7630 instanceof C2731) {
                        objM7630 = ((C2731) objM7630).f10598;
                    }
                    c3235.f12175 = jM5336 + 1;
                    Object obj2 = objM7630;
                    interfaceC4943ArrM5334 = m5334(j);
                    obj = obj2;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        for (InterfaceC4943 interfaceC4943 : interfaceC4943ArrM5334) {
            if (interfaceC4943 != null) {
                interfaceC4943.mo2134(C3637.f13536);
            }
        }
        return obj;
    }

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public final void m5323() {
        if (this.f7674 != 0 || this.f7675 > 1) {
            Object[] objArr = this.f7669;
            while (this.f7675 > 0 && AbstractC3263.m7630(objArr, (m5331() + (this.f7670 + this.f7675)) - 1) == AbstractC3263.f12282) {
                this.f7675--;
                AbstractC3263.m7631(objArr, m5331() + this.f7670 + this.f7675, null);
            }
        }
    }

    @Override // defpackage.AbstractC3415
    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final AbstractC1061[] mo5324() {
        return new C3235[2];
    }

    /* renamed from: ˊʽˎ, reason: contains not printable characters */
    public final Object[] m5325(Object[] objArr, int i, int i2) {
        if (i2 <= 0) {
            ᵹˉᵞ.ᵳٴᵶ("Buffer size overflow");
            return null;
        }
        Object[] objArr2 = new Object[i2];
        this.f7669 = objArr2;
        if (objArr != null) {
            long jM5331 = m5331();
            for (int i3 = 0; i3 < i; i3++) {
                long j = i3 + jM5331;
                AbstractC3263.m7631(objArr2, j, objArr[((int) j) & (objArr.length - 1)]);
            }
        }
        return objArr2;
    }

    /* renamed from: ˊʾˊ, reason: contains not printable characters */
    public final void m5326(long j, long j2, long j3, long j4) {
        long jMin = Math.min(j2, j);
        for (long jM5331 = m5331(); jM5331 < jMin; jM5331++) {
            AbstractC3263.m7631(this.f7669, jM5331, null);
        }
        this.f7672 = j;
        this.f7671 = j2;
        this.f7670 = (int) (j3 - jMin);
        this.f7675 = (int) (j4 - j3);
    }

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public final Object m5327(C3235 c3235, C4368 c4368) {
        C4385 c4385 = new C4385(1, ᵱᵞᵪ.ᵞʡ(c4368));
        c4385.m9415();
        synchronized (this) {
            try {
                if (m5336(c3235) < 0) {
                    c3235.f12176 = c4385;
                } else {
                    c4385.mo2134(C3637.f13536);
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        Object objM9405 = c4385.m9405();
        return objM9405 == EnumC3346.f12524 ? objM9405 : C3637.f13536;
    }

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public final void m5328(Object obj) {
        int i = this.f7670 + this.f7675;
        Object[] objArrM5325 = this.f7669;
        if (objArrM5325 == null) {
            objArrM5325 = m5325(null, 0, 2);
        } else if (i >= objArrM5325.length) {
            objArrM5325 = m5325(objArrM5325, i, objArrM5325.length * 2);
        }
        AbstractC3263.m7631(objArrM5325, m5331() + i, obj);
    }

    /* renamed from: ˎᵬˀ, reason: contains not printable characters */
    public final boolean m5329(Object obj) {
        int i;
        boolean z;
        InterfaceC4943[] interfaceC4943ArrM5333 = ˋᵮᵯᵔ.ˏᵙ;
        synchronized (this) {
            if (m5332(obj)) {
                interfaceC4943ArrM5333 = m5333(interfaceC4943ArrM5333);
                z = true;
            } else {
                z = false;
            }
        }
        for (InterfaceC4943 interfaceC4943 : interfaceC4943ArrM5333) {
            if (interfaceC4943 != null) {
                interfaceC4943.mo2134(C3637.f13536);
            }
        }
        return z;
    }

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public final void m5330() {
        AbstractC1061[] abstractC1061Arr;
        AbstractC3263.m7631(this.f7669, m5331(), null);
        this.f7670--;
        long jM5331 = m5331() + 1;
        if (this.f7672 < jM5331) {
            this.f7672 = jM5331;
        }
        if (this.f7671 < jM5331) {
            if (this.f12708 != 0 && (abstractC1061Arr = (AbstractC1061[]) this.f12709) != null) {
                for (AbstractC1061 abstractC1061 : abstractC1061Arr) {
                    if (abstractC1061 != null) {
                        C3235 c3235 = (C3235) abstractC1061;
                        long j = c3235.f12175;
                        if (0 <= j && j < jM5331) {
                            c3235.f12175 = jM5331;
                        }
                    }
                }
            }
            this.f7671 = jM5331;
        }
    }

    /* renamed from: ᵡᵶᵡ, reason: contains not printable characters */
    public final long m5331() {
        return Math.min(this.f7671, this.f7672);
    }

    @Override // defpackage.InterfaceC1033
    /* renamed from: ᵥᵯˎ */
    public final InterfaceC2580 mo3397(InterfaceC2262 interfaceC2262, int i, int i2) {
        return ((i == 0 || i == -3) && i2 == 1) ? this : new C1448(this, interfaceC2262, i, i2);
    }

    /* JADX WARN: Removed duplicated region for block: B:25:0x0046  */
    /* 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 m5332(java.lang.Object r13) {
        /*
            r12 = this;
            int r1 = r12.f12708
            int r2 = r12.f7676
            r9 = 1
            if (r1 != 0) goto L23
            if (r2 != 0) goto Lb
            goto L7e
        Lb:
            r12.m5328(r13)
            int r1 = r12.f7670
            int r1 = r1 + r9
            r12.f7670 = r1
            if (r1 <= r2) goto L18
            r12.m5330()
        L18:
            long r1 = r12.m5331()
            int r3 = r12.f7670
            long r3 = (long) r3
            long r1 = r1 + r3
            r12.f7671 = r1
            return r9
        L23:
            int r1 = r12.f7670
            int r3 = r12.f7674
            if (r1 < r3) goto L46
            long r4 = r12.f7671
            long r6 = r12.f7672
            int r1 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))
            if (r1 > 0) goto L46
            int r1 = r12.f7673
            int r1 = defpackage.AbstractC1327.m4088(r1)
            if (r1 == 0) goto L44
            if (r1 == r9) goto L46
            r0 = 2
            if (r1 != r0) goto L3f
            goto L7e
        L3f:
            defpackage.C0910.m3049()
            r0 = 0
            return r0
        L44:
            r0 = 0
            return r0
        L46:
            r12.m5328(r13)
            int r1 = r12.f7670
            int r1 = r1 + r9
            r12.f7670 = r1
            if (r1 <= r3) goto L53
            r12.m5330()
        L53:
            long r3 = r12.m5331()
            int r1 = r12.f7670
            long r5 = (long) r1
            long r3 = r3 + r5
            long r5 = r12.f7672
            long r3 = r3 - r5
            int r1 = (int) r3
            if (r1 <= r2) goto L7e
            r1 = 1
            long r1 = r1 + r5
            long r3 = r12.f7671
            long r5 = r12.m5331()
            int r7 = r12.f7670
            long r7 = (long) r7
            long r5 = r5 + r7
            long r7 = r12.m5331()
            int r10 = r12.f7670
            long r10 = (long) r10
            long r7 = r7 + r10
            int r10 = r12.f7675
            long r10 = (long) r10
            long r7 = r7 + r10
            r0 = r12
            r0.m5326(r1, r3, r5, r7)
        L7e:
            return r9
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C1900.m5332(java.lang.Object):boolean");
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public final InterfaceC4943[] m5333(InterfaceC4943[] interfaceC4943Arr) {
        AbstractC1061[] abstractC1061Arr;
        C3235 c3235;
        C4385 c4385;
        int length = interfaceC4943Arr.length;
        if (this.f12708 != 0 && (abstractC1061Arr = (AbstractC1061[]) this.f12709) != null) {
            int length2 = abstractC1061Arr.length;
            int i = 0;
            interfaceC4943Arr = interfaceC4943Arr;
            while (i < length2) {
                AbstractC1061 abstractC1061 = abstractC1061Arr[i];
                if (abstractC1061 != null && (c4385 = (c3235 = (C3235) abstractC1061).f12176) != null && m5336(c3235) >= 0) {
                    int length3 = interfaceC4943Arr.length;
                    interfaceC4943Arr = interfaceC4943Arr;
                    if (length >= length3) {
                        interfaceC4943Arr = Arrays.copyOf(interfaceC4943Arr, Math.max(2, interfaceC4943Arr.length * 2));
                    }
                    interfaceC4943Arr[length] = c4385;
                    c3235.f12176 = null;
                    length++;
                }
                i++;
                interfaceC4943Arr = interfaceC4943Arr;
            }
        }
        return interfaceC4943Arr;
    }

    @Override // defpackage.InterfaceC2580
    /* renamed from: ᵴᵳ */
    public final Object mo1332(InterfaceC2632 interfaceC2632, InterfaceC4943 interfaceC4943) throws Throwable {
        m5321(this, interfaceC2632, interfaceC4943);
        return EnumC3346.f12524;
    }

    /* renamed from: ᵷᵱ, reason: contains not printable characters */
    public final InterfaceC4943[] m5334(long j) {
        long j2;
        int i;
        long j3;
        InterfaceC4943[] interfaceC4943Arr;
        InterfaceC4943[] interfaceC4943Arr2;
        AbstractC1061[] abstractC1061Arr;
        InterfaceC4943[] interfaceC4943Arr3 = ˋᵮᵯᵔ.ˏᵙ;
        if (j <= this.f7671) {
            long jM5331 = m5331();
            long j4 = this.f7670 + jM5331;
            int i2 = this.f7674;
            if (i2 == 0 && this.f7675 > 0) {
                j4++;
            }
            int i3 = 0;
            if (this.f12708 != 0 && (abstractC1061Arr = (AbstractC1061[]) this.f12709) != null) {
                for (AbstractC1061 abstractC1061 : abstractC1061Arr) {
                    if (abstractC1061 != null) {
                        long j5 = ((C3235) abstractC1061).f12175;
                        if (0 <= j5 && j5 < j4) {
                            j4 = j5;
                        }
                    }
                }
            }
            if (j4 > this.f7671) {
                long jM53312 = m5331() + this.f7670;
                int i4 = this.f12708;
                int iMin = this.f7675;
                if (i4 > 0) {
                    iMin = Math.min(iMin, i2 - ((int) (jM53312 - j4)));
                }
                long j6 = this.f7675 + jM53312;
                C0434 c0434 = AbstractC3263.f12282;
                if (iMin > 0) {
                    InterfaceC4943[] interfaceC4943Arr4 = new InterfaceC4943[iMin];
                    j3 = 1;
                    Object[] objArr = this.f7669;
                    j2 = j4;
                    long j7 = jM53312;
                    while (true) {
                        if (jM53312 >= j6) {
                            interfaceC4943Arr2 = interfaceC4943Arr4;
                            i = i2;
                            break;
                        }
                        Object objM7630 = AbstractC3263.m7630(objArr, jM53312);
                        if (objM7630 != c0434) {
                            C2731 c2731 = (C2731) objM7630;
                            interfaceC4943Arr2 = interfaceC4943Arr4;
                            int i5 = i3 + 1;
                            i = i2;
                            interfaceC4943Arr2[i3] = c2731.f10597;
                            AbstractC3263.m7631(objArr, jM53312, c0434);
                            AbstractC3263.m7631(objArr, j7, c2731.f10598);
                            j7++;
                            if (i5 >= iMin) {
                                break;
                            }
                            i3 = i5;
                        } else {
                            interfaceC4943Arr2 = interfaceC4943Arr4;
                            i = i2;
                        }
                        jM53312++;
                        interfaceC4943Arr4 = interfaceC4943Arr2;
                        i2 = i;
                    }
                    jM53312 = j7;
                    interfaceC4943Arr = interfaceC4943Arr2;
                } else {
                    j2 = j4;
                    i = i2;
                    j3 = 1;
                    interfaceC4943Arr = interfaceC4943Arr3;
                }
                long jMax = Math.max(this.f7672, Math.max(jM5331, jM53312 - this.f7676));
                if (i == 0 && jMax < j6 && ᵲᵝᵪ.ᵹᵝᵶ(AbstractC3263.m7630(this.f7669, jMax), c0434)) {
                    jM53312 += j3;
                    jMax += j3;
                }
                long j8 = jM53312;
                m5326(jMax, this.f12708 == 0 ? j8 : j2, j8, j6);
                m5323();
                return interfaceC4943Arr.length == 0 ? interfaceC4943Arr : m5333(interfaceC4943Arr);
            }
        }
        return interfaceC4943Arr3;
    }

    /* JADX WARN: Removed duplicated region for block: B:26:0x005c  */
    /* JADX WARN: Removed duplicated region for block: B:29:0x0069  */
    /* JADX WARN: Removed duplicated region for block: B:36:0x007e  */
    /* JADX WARN: Removed duplicated region for block: B:38:0x0082 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:39:0x0083  */
    @Override // defpackage.InterfaceC2632
    /* renamed from: ᵸˑ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object mo2063(java.lang.Object r8, defpackage.InterfaceC4943 r9) throws java.lang.Throwable {
        /*
            r7 = this;
            boolean r0 = r7.m5329(r8)
            if (r0 == 0) goto L9
            ᵧˈᵽᵰ r7 = defpackage.C3637.f13536
            return r7
        L9:
            ᵱʽ r5 = new ᵱʽ
            ᵸʚˑ r9 = ᵱᵞᵪ.ᵞʡ(r9)
            r6 = 1
            r5.<init>(r6, r9)
            r5.m9415()
            ᵸʚˑ[] r9 = ˋᵮᵯᵔ.ˏᵙ
            monitor-enter(r7)
            boolean r0 = r7.m5332(r8)     // Catch: java.lang.Throwable -> L8b
            if (r0 == 0) goto L30
            ᵧˈᵽᵰ r8 = defpackage.C3637.f13536     // Catch: java.lang.Throwable -> L2b
            r5.mo2134(r8)     // Catch: java.lang.Throwable -> L2b
            ᵸʚˑ[] r8 = r7.m5333(r9)     // Catch: java.lang.Throwable -> L2b
            r9 = 0
            r1 = r7
            goto L59
        L2b:
            r0 = move-exception
            r8 = r0
            r1 = r7
            goto L8e
        L30:
            ᵛˋ r0 = new ᵛˋ     // Catch: java.lang.Throwable -> L8b
            long r1 = r7.m5331()     // Catch: java.lang.Throwable -> L8b
            int r3 = r7.f7670     // Catch: java.lang.Throwable -> L86
            int r4 = r7.f7675     // Catch: java.lang.Throwable -> L86
            int r3 = r3 + r4
            long r3 = (long) r3
            long r1 = r1 + r3
            r4 = r8
            r2 = r1
            r1 = r7
            r0.<init>(r1, r2, r4, r5)     // Catch: java.lang.Throwable -> L54
            r1.m5328(r0)     // Catch: java.lang.Throwable -> L54
            int r7 = r1.f7675     // Catch: java.lang.Throwable -> L54
            int r7 = r7 + r6
            r1.f7675 = r7     // Catch: java.lang.Throwable -> L54
            int r7 = r1.f7674     // Catch: java.lang.Throwable -> L54
            if (r7 != 0) goto L57
            ᵸʚˑ[] r9 = r1.m5333(r9)     // Catch: java.lang.Throwable -> L54
            goto L57
        L54:
            r0 = move-exception
        L55:
            r8 = r0
            goto L8e
        L57:
            r8 = r9
            r9 = r0
        L59:
            monitor-exit(r1)
            if (r9 == 0) goto L65
            ᵟˉᵻᵭ r7 = new ᵟˉᵻᵭ
            r0 = 2
            r7.<init>(r0, r9)
            r5.m9401(r7)
        L65:
            int r7 = r8.length
            r9 = 0
        L67:
            if (r9 >= r7) goto L75
            r0 = r8[r9]
            if (r0 == 0) goto L72
            ᵧˈᵽᵰ r1 = defpackage.C3637.f13536
            r0.mo2134(r1)
        L72:
            int r9 = r9 + 1
            goto L67
        L75:
            java.lang.Object r7 = r5.m9405()
            ᵣˊᵛ r8 = defpackage.EnumC3346.f12524
            if (r7 != r8) goto L7e
            goto L80
        L7e:
            ᵧˈᵽᵰ r7 = defpackage.C3637.f13536
        L80:
            if (r7 != r8) goto L83
            return r7
        L83:
            ᵧˈᵽᵰ r7 = defpackage.C3637.f13536
            return r7
        L86:
            r0 = move-exception
            r1 = r7
            r7 = r0
            r8 = r7
            goto L8e
        L8b:
            r0 = move-exception
            r1 = r7
            goto L55
        L8e:
            monitor-exit(r1)
            throw r8
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C1900.mo2063(java.lang.Object, ᵸʚˑ):java.lang.Object");
    }

    @Override // defpackage.AbstractC3415
    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final AbstractC1061 mo5335() {
        C3235 c3235 = new C3235();
        c3235.f12175 = -1L;
        return c3235;
    }

    /* renamed from: ᵽʛ, reason: contains not printable characters */
    public final long m5336(C3235 c3235) {
        long j = c3235.f12175;
        if (j >= m5331() + this.f7670 && (this.f7674 > 0 || j > m5331() || this.f7675 == 0)) {
            return -1L;
        }
        return j;
    }
}
