package defpackage;

import java.io.EOFException;
import java.math.RoundingMode;
import java.util.List;

/* JADX INFO: renamed from: ᵚᵘᵔ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2724 implements InterfaceC4291 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final C4545 f10441;

    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    public boolean f10442;

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public InterfaceC0297 f10443;

    /* JADX INFO: renamed from: ˊᵨᵧ, reason: contains not printable characters */
    public long f10444;

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public InterfaceC5226 f10445;

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public long f10446;

    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public boolean f10447;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final C0272 f10448;

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public long f10449;

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public long f10450;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final C5195 f10451;

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public long f10452;

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public C1956 f10453;

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public int f10454;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public int f10455;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final long f10456;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public InterfaceC4550 f10457;

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public C1956 f10458;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final C3716 f10459;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public InterfaceC5226 f10460;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final C0406 f10461;

    public C2724(int i) {
        this(-9223372036854775807L);
    }

    public C2724(long j) {
        this.f10456 = j;
        this.f10441 = new C4545(10);
        this.f10448 = new C0272();
        this.f10459 = new C3716();
        this.f10449 = -9223372036854775807L;
        this.f10451 = new C5195(0);
        C0406 c0406 = new C0406();
        this.f10461 = c0406;
        this.f10460 = c0406;
        this.f10450 = -1L;
    }

    @Override // defpackage.InterfaceC4291
    /* JADX INFO: renamed from: ʽˈˋ */
    public final void mo1252(long j, long j2) {
        this.f10455 = 0;
        this.f10449 = -9223372036854775807L;
        this.f10446 = 0L;
        this.f10454 = 0;
        this.f10450 = -1L;
        this.f10444 = j2;
        if (this.f10443 instanceof AbstractC4910) {
            throw null;
        }
    }

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final void m6624() {
        InterfaceC0297 interfaceC0297 = this.f10443;
        if ((interfaceC0297 instanceof C5417) && ((C5417) interfaceC0297).mo1056()) {
            long j = this.f10450;
            if (j == -1 || j == this.f10443.mo1554()) {
                return;
            }
            C5417 c5417 = (C5417) this.f10443;
            this.f10443 = new C5417(this.f10450, c5417.f20563, c5417.f20558, c5417.f20561, c5417.f20557, false);
            InterfaceC4550 interfaceC4550 = this.f10457;
            interfaceC4550.getClass();
            interfaceC4550.mo2739(this.f10443);
            InterfaceC5226 interfaceC5226 = this.f10445;
            interfaceC5226.getClass();
            interfaceC5226.mo1743(this.f10443.mo1058());
        }
    }

    @Override // defpackage.InterfaceC4291
    /* JADX INFO: renamed from: ːˏᵟᵯ */
    public final InterfaceC4291 mo1254() {
        return this;
    }

    @Override // defpackage.InterfaceC4291
    /* JADX INFO: renamed from: ᵨᵣ */
    public final boolean mo1255(InterfaceC5206 interfaceC5206) {
        return m6625(interfaceC5206, true);
    }

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final boolean m6625(InterfaceC5206 interfaceC5206, boolean z) throws EOFException {
        int iMo4706;
        int i;
        int i2;
        interfaceC5206.mo4698();
        if (interfaceC5206.getPosition() == 0) {
            C1956 c1956M10740 = this.f10451.m10740(interfaceC5206, null, 131072);
            this.f10458 = c1956M10740;
            if (c1956M10740 != null) {
                this.f10459.m8382(c1956M10740);
            }
            iMo4706 = (int) interfaceC5206.mo4706();
            if (!z) {
                interfaceC5206.mo4700(iMo4706);
            }
            i = 0;
        } else {
            iMo4706 = 0;
            i = 0;
        }
        int i3 = i;
        int i4 = i3;
        while (true) {
            if (!m6626(interfaceC5206)) {
                C4545 c4545 = this.f10441;
                c4545.m9624(0);
                int iM9614 = c4545.m9614();
                if ((i == 0 || ((-128000) & iM9614) == (((long) i) & (-128000))) && (i2 = ᵗʓ.ᵱʡˏ(iM9614)) != -1) {
                    i3++;
                    if (i3 != 1) {
                        if (i3 == 4) {
                            break;
                        }
                    } else {
                        this.f10448.m1496(iM9614);
                        i = iM9614;
                    }
                    interfaceC5206.mo4705(i2 - 4);
                } else {
                    int i5 = i4 + 1;
                    if (i4 == 131072) {
                        if (z) {
                            return false;
                        }
                        m6624();
                        throw new EOFException();
                    }
                    if (z) {
                        interfaceC5206.mo4698();
                        interfaceC5206.mo4705(iMo4706 + i5);
                    } else {
                        interfaceC5206.mo4700(1);
                    }
                    i3 = 0;
                    i4 = i5;
                    i = 0;
                }
            } else if (i3 <= 0) {
                m6624();
                throw new EOFException();
            }
        }
        if (z) {
            interfaceC5206.mo4700(iMo4706 + i4);
        } else {
            interfaceC5206.mo4698();
        }
        this.f10455 = i;
        return true;
    }

    @Override // defpackage.InterfaceC4291
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final void mo1256() {
    }

    @Override // defpackage.InterfaceC4291
    /* JADX INFO: renamed from: ᵵᵽ */
    public final void mo1257(InterfaceC4550 interfaceC4550) {
        this.f10457 = interfaceC4550;
        InterfaceC5226 interfaceC5226Mo2743 = interfaceC4550.mo2743(0, 1);
        this.f10445 = interfaceC5226Mo2743;
        this.f10460 = interfaceC5226Mo2743;
        this.f10457.mo2740();
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:117:0x0280  */
    /* JADX WARN: Removed duplicated region for block: B:145:0x0327  */
    /* JADX WARN: Removed duplicated region for block: B:146:0x032b  */
    /* JADX WARN: Removed duplicated region for block: B:153:0x034f  */
    /* JADX WARN: Removed duplicated region for block: B:168:0x0388  */
    /* JADX WARN: Removed duplicated region for block: B:183:0x03eb  */
    /* JADX WARN: Removed duplicated region for block: B:184:0x03f9  */
    /* JADX WARN: Removed duplicated region for block: B:196:0x045d  */
    /* JADX WARN: Removed duplicated region for block: B:19:0x0068  */
    /* JADX WARN: Removed duplicated region for block: B:201:0x049c  */
    /* JADX WARN: Removed duplicated region for block: B:203:0x04b7  */
    /* JADX WARN: Removed duplicated region for block: B:210:0x04df  */
    /* JADX WARN: Removed duplicated region for block: B:230:0x0559  */
    /* JADX WARN: Removed duplicated region for block: B:233:0x0567  */
    /* JADX WARN: Removed duplicated region for block: B:23:0x0074  */
    /* JADX WARN: Removed duplicated region for block: B:28:0x0085  */
    /* JADX WARN: Removed duplicated region for block: B:34:0x009c  */
    /* JADX WARN: Removed duplicated region for block: B:9:0x0027  */
    /* JADX WARN: Type inference failed for: r4v49 */
    /* JADX WARN: Type inference failed for: r4v5, types: [boolean, int] */
    /* JADX WARN: Type inference failed for: r4v50 */
    /* JADX WARN: Type inference failed for: r4v51 */
    /* JADX WARN: Type inference failed for: r4v52 */
    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$UnknownArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    @Override // defpackage.InterfaceC4291
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final int mo1258(InterfaceC5206 interfaceC5206, C2669 c2669) throws Throwable {
        C0272 c0272;
        Throwable th;
        int i;
        long j;
        InterfaceC0297 interfaceC0297;
        C4545 c4545;
        long j2;
        long j3;
        ?? r4;
        int iMo1744;
        int i2;
        C0272 c02722;
        int i3;
        long[] jArr;
        C4119 c4119;
        int i4;
        int i5;
        long j4;
        long jM3230;
        long j5;
        long j6;
        InterfaceC0297 c5417;
        C1956 c1956;
        InterfaceC2223 interfaceC2223;
        InterfaceC2223 interfaceC22232;
        char c;
        long jM3214;
        C1955 c1955;
        C3716 c3716;
        boolean z;
        InterfaceC0297 c0800;
        boolean z2;
        C1956 c1956M5238;
        long j7;
        long jMax;
        int iM9626;
        this.f10445.getClass();
        String str = AbstractC0956.f4222;
        int i6 = this.f10455;
        int i7 = 0;
        C0272 c02723 = this.f10448;
        if (i6 == 0) {
            try {
                m6625(interfaceC5206, false);
                interfaceC0297 = this.f10443;
                C4545 c45452 = this.f10441;
                if (interfaceC0297 != null) {
                    C4545 c45453 = new C4545(c02723.f1889);
                    th = null;
                    interfaceC5206.mo4701(c45453.f17284, 0, c02723.f1889);
                    int i8 = c02723.f1892 & 1;
                    int i9 = c02723.f1894;
                    int i10 = 21;
                    j = 1000000;
                    if (i8 != 0) {
                        if (i9 != 1) {
                            i2 = 36;
                        }
                        j2 = -9223372036854775807L;
                        if (c45453.f17283 < i2 + 4) {
                            c45453.m9624(i2);
                            int iM9614 = c45453.m9614();
                            if (iM9614 != 1483304551 && iM9614 != 1231971951) {
                                if (c45453.f17283 >= 40) {
                                    c45453.m9624(36);
                                    iM9614 = c45453.m9614() == 1447187017 ? 1447187017 : 0;
                                }
                            }
                            C3716 c37162 = this.f10459;
                            if (iM9614 == 1231971951) {
                                c02722 = c02723;
                                i3 = 0;
                                int iM96142 = c45453.m9614();
                                int iM9610 = (iM96142 & 1) != 0 ? c45453.m9610() : -1;
                                long jM9606 = (iM96142 & 2) != 0 ? c45453.m9606() : -1L;
                                if ((iM96142 & 4) == 4) {
                                    long[] jArr2 = new long[100];
                                    int i11 = 0;
                                    for (int i12 = 100; i11 < i12; i12 = 100) {
                                        jArr2[i11] = c45453.m9626();
                                        i11++;
                                    }
                                    jArr = jArr2;
                                } else {
                                    jArr = null;
                                }
                                if ((iM96142 & 8) != 0) {
                                    c45453.m9609(4);
                                }
                                if (c45453.m9623() >= 24) {
                                    c45453.m9609(11);
                                    float fIntBitsToFloat = Float.intBitsToFloat(c45453.m9614());
                                    int iM9598 = c45453.m9598();
                                    int iM95982 = c45453.m9598();
                                    C3040 c3040M7135 = C3040.m7135(iM9598);
                                    C3040 c3040M71352 = C3040.m7135(iM95982);
                                    c4119 = (fIntBitsToFloat <= 0.0f && c3040M7135 == null && c3040M71352 == null) ? null : new C4119(fIntBitsToFloat, c3040M7135, c3040M71352);
                                    c45453.m9609(2);
                                    int iM9628 = c45453.m9628();
                                    i5 = (16773120 & iM9628) >> 12;
                                    i4 = iM9628 & 4095;
                                } else {
                                    c4119 = null;
                                    i4 = -1;
                                    i5 = -1;
                                }
                                long j8 = iM9610;
                                int i13 = c02722.f1889;
                                int i14 = c02722.f1890;
                                int i15 = c02722.f1891;
                                int i16 = c02722.f1895;
                                C4119 c41192 = c4119;
                                if ((c37162.f14152 == -1 || c37162.f14151 == -1) && i5 != -1 && i4 != -1) {
                                    c37162.f14152 = i5;
                                    c37162.f14151 = i4;
                                }
                                this.f10453 = c41192 != null ? new C1956(c41192) : null;
                                long position = interfaceC5206.getPosition();
                                interfaceC5206.mo4700(c02722.f1889);
                                if (iM9614 == 1483304551) {
                                    long length = interfaceC5206.getLength();
                                    long jM32302 = (j8 == -1 || j8 == 0) ? -9223372036854775807L : AbstractC0956.m3230((j8 * ((long) i16)) - 1, i14);
                                    if (jM32302 == -9223372036854775807L) {
                                        c5417 = null;
                                    } else {
                                        if (jM9606 != -1 && length != -1 && position + jM9606 != length) {
                                            long j9 = length - position;
                                            StringBuilder sbM8220 = AbstractC3653.m8220(j9, "Data size mismatch between stream (", ") and Xing frame (");
                                            sbM8220.append(jM9606);
                                            sbM8220.append("), using smaller value.");
                                            ˋˀᵧ.ˏːˆ(sbM8220.toString());
                                            jM9606 = Math.min(jM9606, j9);
                                        }
                                        c5417 = new C2240(position, i13, jM32302, i15, jM9606, jArr);
                                    }
                                    c1956 = this.f10458;
                                    long position2 = interfaceC5206.getPosition();
                                    if (c1956 != null) {
                                        c1955 = null;
                                        if (this.f10442) {
                                            if (c1955 != null) {
                                                c5417 = c1955;
                                            } else if (c5417 == null) {
                                                c5417 = null;
                                            }
                                            if (c5417 == null) {
                                                int i17 = i3;
                                                interfaceC5206.mo4701(c45452.f17284, i17, 4);
                                                c45452.m9624(i17);
                                                c02722.m1496(c45452.m9614());
                                                c4545 = c45452;
                                                c3716 = c37162;
                                                j2 = -9223372036854775807L;
                                                c0272 = c02722;
                                                z = true;
                                                i7 = 0;
                                                c5417 = new C5417(interfaceC5206.getLength(), interfaceC5206.getPosition(), c02722.f1891, c02722.f1889, false, true);
                                            } else {
                                                j2 = -9223372036854775807L;
                                                c4545 = c45452;
                                                c3716 = c37162;
                                                c0272 = c02722;
                                                z = true;
                                                i7 = 0;
                                            }
                                            c5417.mo1056();
                                            c5417.mo1056();
                                            this.f10445.mo1743(c5417.mo1058());
                                            c0800 = c5417;
                                            z2 = z;
                                        } else {
                                            c0800 = new C0800(-9223372036854775807L);
                                            c4545 = c45452;
                                            c3716 = c37162;
                                            c0272 = c02722;
                                            z2 = true;
                                            i7 = 0;
                                        }
                                        this.f10443 = c0800;
                                        this.f10457.mo2739(c0800);
                                        c1956M5238 = this.f10458;
                                        C1956 c19562 = this.f10453;
                                        if (c1956M5238 != null) {
                                            if (c19562 != null) {
                                                c1956M5238 = c1956M5238.m5238(c19562);
                                            }
                                            c19562 = c1956M5238;
                                        }
                                        C4753 c4753 = new C4753();
                                        c4753.f18111 = AbstractC4208.m9132("audio/mpeg");
                                        c4753.f18101 = AbstractC4208.m9132((String) c0272.f1893);
                                        c4753.f18116 = 4096;
                                        c4753.f18090 = c0272.f1894;
                                        c4753.f18113 = c0272.f1890;
                                        c4753.f18092 = c3716.f14152;
                                        c4753.f18091 = c3716.f14151;
                                        c4753.f18125 = c19562;
                                        if (this.f10443.mo1556() != -2147483647) {
                                            c4753.f18099 = this.f10443.mo1556();
                                        }
                                        this.f10460.mo1742(new C5286(c4753));
                                        this.f10452 = interfaceC5206.getPosition();
                                        j3 = 0;
                                        r4 = z2;
                                    } else {
                                        InterfaceC2223[] interfaceC2223Arr = c1956.f7784;
                                        int length2 = interfaceC2223Arr.length;
                                        int i18 = i3;
                                        while (true) {
                                            if (i18 >= length2) {
                                                interfaceC2223 = null;
                                                break;
                                            }
                                            InterfaceC2223 interfaceC22233 = interfaceC2223Arr[i18];
                                            if (C4893.class.isAssignableFrom(interfaceC22233.getClass())) {
                                                interfaceC2223 = (InterfaceC2223) C4893.class.cast(interfaceC22233);
                                                if (!EnumC0805.f3605.apply(interfaceC2223)) {
                                                    interfaceC2223 = null;
                                                }
                                                if (interfaceC2223 != null) {
                                                    break;
                                                }
                                                i18++;
                                            }
                                        }
                                        C4893 c4893 = (C4893) interfaceC2223;
                                        if (c4893 != null) {
                                            int[] iArr = c4893.f18626;
                                            InterfaceC2223[] interfaceC2223Arr2 = c1956.f7784;
                                            int length3 = interfaceC2223Arr2.length;
                                            int i19 = 0;
                                            while (true) {
                                                if (i19 >= length3) {
                                                    interfaceC22232 = null;
                                                    break;
                                                }
                                                InterfaceC2223 interfaceC22234 = interfaceC2223Arr2[i19];
                                                if (C1071.class.isAssignableFrom(interfaceC22234.getClass())) {
                                                    interfaceC22232 = (InterfaceC2223) C1071.class.cast(interfaceC22234);
                                                    if (!((C1071) interfaceC22232).f14932.equals("TLEN")) {
                                                        interfaceC22232 = null;
                                                    }
                                                    if (interfaceC22232 != null) {
                                                        break;
                                                    }
                                                    i19++;
                                                }
                                            }
                                            C1071 c1071 = (C1071) interfaceC22232;
                                            if (c1071 == null) {
                                                jM3214 = -9223372036854775807L;
                                                c = 0;
                                            } else {
                                                c = 0;
                                                jM3214 = AbstractC0956.m3214(Long.parseLong((String) c1071.f4577.get(0)));
                                            }
                                            int length4 = iArr.length;
                                            int i20 = length4 + 1;
                                            long[] jArr3 = new long[i20];
                                            long[] jArr4 = new long[i20];
                                            jArr3[c] = position2;
                                            jArr4[c] = 0;
                                            long j10 = 0;
                                            int i21 = 1;
                                            while (i21 <= length4) {
                                                int i22 = i21 - 1;
                                                int i23 = length4;
                                                long j11 = position2 + ((long) (c4893.f18625 + iArr[i22]));
                                                j10 += (long) (c4893.f18627 + c4893.f18628[i22]);
                                                jArr3[i21] = j11;
                                                jArr4[i21] = j10;
                                                i21++;
                                                length4 = i23;
                                                position2 = j11;
                                            }
                                            c1955 = new C1955(jM3214, jArr3, jArr4);
                                        }
                                        if (this.f10442) {
                                        }
                                        this.f10443 = c0800;
                                        this.f10457.mo2739(c0800);
                                        c1956M5238 = this.f10458;
                                        C1956 c195622 = this.f10453;
                                        if (c1956M5238 != null) {
                                        }
                                        C4753 c47532 = new C4753();
                                        c47532.f18111 = AbstractC4208.m9132("audio/mpeg");
                                        c47532.f18101 = AbstractC4208.m9132((String) c0272.f1893);
                                        c47532.f18116 = 4096;
                                        c47532.f18090 = c0272.f1894;
                                        c47532.f18113 = c0272.f1890;
                                        c47532.f18092 = c3716.f14152;
                                        c47532.f18091 = c3716.f14151;
                                        c47532.f18125 = c195622;
                                        if (this.f10443.mo1556() != -2147483647) {
                                        }
                                        this.f10460.mo1742(new C5286(c47532));
                                        this.f10452 = interfaceC5206.getPosition();
                                        j3 = 0;
                                        r4 = z2;
                                    }
                                } else {
                                    long length5 = interfaceC5206.getLength();
                                    if (j8 == -1 || j8 == 0) {
                                        j4 = length5;
                                        jM3230 = -9223372036854775807L;
                                    } else {
                                        j4 = length5;
                                        jM3230 = AbstractC0956.m3230((((long) i16) * j8) - 1, i14);
                                    }
                                    if (jM3230 != -9223372036854775807L) {
                                        if (jM9606 != -1) {
                                            j6 = position + jM9606;
                                            j5 = jM9606 - ((long) i13);
                                        } else {
                                            if (j4 != -1) {
                                                j5 = (j4 - position) - ((long) i13);
                                                j6 = j4;
                                            }
                                            c5417 = null;
                                            c1956 = this.f10458;
                                            long position22 = interfaceC5206.getPosition();
                                            if (c1956 != null) {
                                            }
                                        }
                                        RoundingMode roundingMode = RoundingMode.HALF_UP;
                                        c5417 = new C5417(j6, position + ((long) i13), ᵝˉː.ᵷᵺʾᵖ(AbstractC0956.m3218(j5, 8000000L, jM3230, roundingMode)), ᵝˉː.ᵷᵺʾᵖ(ᵥˈᵛ.ᵔᵖᵹᵫ(j5, j8, roundingMode)), false, true);
                                        c1956 = this.f10458;
                                        long position222 = interfaceC5206.getPosition();
                                        if (c1956 != null) {
                                        }
                                    }
                                }
                            } else {
                                if (iM9614 == 1447187017) {
                                    long length6 = interfaceC5206.getLength();
                                    long position3 = interfaceC5206.getPosition();
                                    c45453.m9609(6);
                                    int iM96143 = c45453.m9614();
                                    i3 = 0;
                                    long j12 = position3 + ((long) c02723.f1889);
                                    long j13 = j12 + ((long) iM96143);
                                    int iM96144 = c45453.m9614();
                                    if (iM96144 <= 0) {
                                        c5417 = null;
                                        c02722 = c02723;
                                    } else {
                                        long jM32303 = AbstractC0956.m3230((((long) iM96144) * ((long) c02723.f1895)) - 1, c02723.f1890);
                                        int iM95983 = c45453.m9598();
                                        int iM95984 = c45453.m9598();
                                        int iM95985 = c45453.m9598();
                                        c45453.m9609(2);
                                        long[] jArr5 = new long[iM95983];
                                        long[] jArr6 = new long[iM95983];
                                        C0272 c02724 = c02723;
                                        long j14 = position3 + ((long) c02723.f1889);
                                        int i24 = 0;
                                        while (true) {
                                            if (i24 < iM95983) {
                                                long[] jArr7 = jArr6;
                                                C0272 c02725 = c02724;
                                                int i25 = i24;
                                                long[] jArr8 = jArr5;
                                                jArr8[i25] = (((long) i24) * jM32303) / ((long) iM95983);
                                                jArr7[i25] = j14;
                                                if (iM95985 == 1) {
                                                    iM9626 = c45453.m9626();
                                                } else if (iM95985 == 2) {
                                                    iM9626 = c45453.m9598();
                                                } else if (iM95985 == 3) {
                                                    iM9626 = c45453.m9628();
                                                } else {
                                                    if (iM95985 != 4) {
                                                        c5417 = null;
                                                        c02722 = c02725;
                                                        break;
                                                    }
                                                    iM9626 = c45453.m9610();
                                                }
                                                j14 += ((long) iM9626) * ((long) iM95984);
                                                i24 = i25 + 1;
                                                jArr6 = jArr7;
                                                c02724 = c02725;
                                                jArr5 = jArr8;
                                            } else {
                                                long[] jArr9 = jArr5;
                                                long[] jArr10 = jArr6;
                                                C0272 c02726 = c02724;
                                                if (length6 == -1 || length6 == j13) {
                                                    j7 = j13;
                                                } else {
                                                    StringBuilder sbM82202 = AbstractC3653.m8220(length6, "VBRI data size mismatch: ", ", ");
                                                    j7 = j13;
                                                    sbM82202.append(j7);
                                                    ˋˀᵧ.ʿٴˇ(sbM82202.toString());
                                                }
                                                if (j7 != j14) {
                                                    StringBuilder sbM82203 = AbstractC3653.m8220(j7, "VBRI bytes and ToC mismatch (using max): ", ", ");
                                                    sbM82203.append(j14);
                                                    sbM82203.append("\nSeeking will be inaccurate.");
                                                    ˋˀᵧ.ʿٴˇ(sbM82203.toString());
                                                    jMax = Math.max(j7, j14);
                                                } else {
                                                    jMax = j7;
                                                }
                                                c02722 = c02726;
                                                c5417 = new C4685(jArr9, jArr10, jM32303, j12, jMax, c02722.f1891);
                                            }
                                        }
                                    }
                                    interfaceC5206.mo4700(c02722.f1889);
                                } else if (iM9614 != 1483304551) {
                                    interfaceC5206.mo4698();
                                    c5417 = null;
                                    c02722 = c02723;
                                    i3 = 0;
                                }
                                c1956 = this.f10458;
                                long position2222 = interfaceC5206.getPosition();
                                if (c1956 != null) {
                                }
                            }
                        }
                    } else if (i9 == 1) {
                        i10 = 13;
                    }
                    i2 = i10;
                    j2 = -9223372036854775807L;
                    if (c45453.f17283 < i2 + 4) {
                    }
                } else {
                    c0272 = c02723;
                    c4545 = c45452;
                    boolean z3 = true;
                    th = null;
                    j = 1000000;
                    j2 = -9223372036854775807L;
                    j3 = 0;
                    r4 = z3;
                    if (this.f10452 != 0) {
                        long position4 = interfaceC5206.getPosition();
                        long j15 = this.f10452;
                        r4 = z3;
                        if (position4 < j15) {
                            interfaceC5206.mo4700((int) (j15 - position4));
                            r4 = z3;
                        }
                    }
                }
                if (this.f10454 != 0) {
                    interfaceC5206.mo4698();
                    if (!m6626(interfaceC5206)) {
                        c4545.m9624(i7);
                        int iM96145 = c4545.m9614();
                        if (((-128000) & iM96145) != (((long) this.f10455) & (-128000)) || ᵗʓ.ᵱʡˏ(iM96145) == -1) {
                            interfaceC5206.mo4700(r4);
                            this.f10455 = i7;
                            i = -1;
                        } else {
                            c0272.m1496(iM96145);
                            if (this.f10449 == j2) {
                                this.f10449 = this.f10443.mo1555(interfaceC5206.getPosition());
                                long j16 = this.f10456;
                                if (j16 != j2) {
                                    this.f10449 = (j16 - this.f10443.mo1555(j3)) + this.f10449;
                                }
                            }
                            this.f10454 = c0272.f1889;
                            this.f10450 = interfaceC5206.getPosition() + ((long) c0272.f1889);
                            if (this.f10443 instanceof AbstractC4910) {
                                long j17 = ((this.f10446 + ((long) c0272.f1895)) * j) / ((long) c0272.f1890);
                                throw th;
                            }
                            iMo1744 = this.f10460.mo1744(interfaceC5206, this.f10454, r4);
                            if (iMo1744 != -1) {
                                int i26 = this.f10454 - iMo1744;
                                this.f10454 = i26;
                                if (i26 <= 0) {
                                    this.f10460.mo1741(this.f10449 + ((this.f10446 * j) / ((long) c0272.f1890)), 1, c0272.f1889, 0, null);
                                    this.f10446 += (long) c0272.f1895;
                                    this.f10454 = i7;
                                }
                                i = -1;
                            }
                        }
                    }
                    i = -1;
                    i7 = -1;
                } else {
                    iMo1744 = this.f10460.mo1744(interfaceC5206, this.f10454, r4);
                    if (iMo1744 != -1) {
                    }
                    i = -1;
                    i7 = -1;
                }
            } catch (EOFException unused) {
                c0272 = c02723;
                th = null;
                i = -1;
                i7 = -1;
                j = 1000000;
            }
        } else {
            interfaceC0297 = this.f10443;
            C4545 c454522 = this.f10441;
            if (interfaceC0297 != null) {
            }
            if (this.f10454 != 0) {
            }
        }
        if (i7 == i) {
            InterfaceC0297 interfaceC02972 = this.f10443;
            if (interfaceC02972 instanceof AbstractC4910) {
                if (interfaceC02972.mo1058() != ((this.f10446 * j) / ((long) c0272.f1890)) + this.f10449) {
                    ((AbstractC4910) this.f10443).getClass();
                    throw th;
                }
            }
        }
        return i7;
    }

    /* JADX WARN: Removed duplicated region for block: B:14:0x001b A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean m6626(InterfaceC5206 interfaceC5206) {
        InterfaceC0297 interfaceC0297 = this.f10443;
        if (interfaceC0297 != null) {
            long jMo1554 = interfaceC0297.mo1554();
            if (jMo1554 == -1 || interfaceC5206.mo4706() <= jMo1554 - 4) {
                try {
                    return !interfaceC5206.mo4708(this.f10441.f17284, 0, 4, true);
                } catch (EOFException unused) {
                }
            }
        }
        return true;
    }

    @Override // defpackage.InterfaceC4291
    /* JADX INFO: renamed from: ᵻˈᵦʼ */
    public final List mo1259() {
        C2822 c2822 = AbstractC4509.f17159;
        return C2598.f10048;
    }
}
