package defpackage;

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

/* renamed from: ᵔˆᵕ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2209 implements InterfaceC2689 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final C3115 f8675;

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public long f8676;

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

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public InterfaceC1982 f8678;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final C1706 f8679;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final C1295 f8680;

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public long f8681;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public InterfaceC2154 f8682;

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public boolean f8683;

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public int f8684;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final long f8685;

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public boolean f8686;

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public long f8687;

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

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public long f8689;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final C3493 f8690;

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

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public InterfaceC4887 f8692;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public C3034 f8693;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public InterfaceC2154 f8694;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final C3840 f8695;

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

    public C2209(long j) {
        this.f8685 = j;
        this.f8690 = new C3493(10);
        this.f8680 = new C1295();
        this.f8695 = new C3840();
        this.f8688 = -9223372036854775807L;
        this.f8675 = new C3115(0);
        C1706 c1706 = new C1706();
        this.f8679 = c1706;
        this.f8682 = c1706;
        this.f8676 = -1L;
    }

    @Override // defpackage.InterfaceC2689
    /* renamed from: ˇʼʤˎ */
    public final boolean mo1572(InterfaceC1383 interfaceC1383) {
        return m5870(interfaceC1383, true);
    }

    @Override // defpackage.InterfaceC2689
    /* renamed from: ˎˏʜʾ */
    public final void mo1573(InterfaceC1982 interfaceC1982) {
        this.f8678 = interfaceC1982;
        InterfaceC2154 interfaceC2154Mo4996 = interfaceC1982.mo4996(0, 1);
        this.f8694 = interfaceC2154Mo4996;
        this.f8682 = interfaceC2154Mo4996;
        this.f8678.mo4985();
    }

    @Override // defpackage.InterfaceC2689
    /* renamed from: ˏˋٴ */
    public final List mo1574() {
        C4421 c4421 = AbstractC2692.f10429;
        return C4471.f16684;
    }

    @Override // defpackage.InterfaceC2689
    /* renamed from: ˏᵙ */
    public final InterfaceC2689 mo1575() {
        return this;
    }

    /* JADX WARN: Removed duplicated region for block: B:14:0x001b A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* 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 m5869(defpackage.InterfaceC1383 r9) {
        /*
            r8 = this;
            ᵷˑᵡ r0 = r8.f8692
            r1 = 1
            if (r0 == 0) goto L1b
            long r2 = r0.mo7007()
            r4 = -1
            int r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))
            if (r0 == 0) goto L1b
            long r4 = r9.mo4244()
            r6 = 4
            long r2 = r2 - r6
            int r0 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1))
            if (r0 <= 0) goto L1b
            goto L27
        L1b:
            ᵥˁˋˁ r8 = r8.f8690     // Catch: java.io.EOFException -> L27
            byte[] r8 = r8.f13082     // Catch: java.io.EOFException -> L27
            r0 = 0
            r2 = 4
            boolean r8 = r9.mo4251(r8, r0, r2, r1)     // Catch: java.io.EOFException -> L27
            r8 = r8 ^ r1
            return r8
        L27:
            return r1
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C2209.m5869(ˊᵬᐧ):boolean");
    }

    @Override // defpackage.InterfaceC2689
    /* renamed from: ᵥᵯˎ */
    public final void mo1576() {
    }

    @Override // defpackage.InterfaceC2689
    /* renamed from: ᵴᵳ */
    public final void mo1577(long j, long j2) {
        this.f8691 = 0;
        this.f8688 = -9223372036854775807L;
        this.f8687 = 0L;
        this.f8684 = 0;
        this.f8676 = -1L;
        this.f8681 = j2;
        if (this.f8692 instanceof AbstractC1024) {
            throw null;
        }
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final boolean m5870(InterfaceC1383 interfaceC1383, boolean z) throws EOFException {
        int iMo4244;
        int i;
        int i2;
        interfaceC1383.mo4245();
        if (interfaceC1383.getPosition() == 0) {
            C3034 c3034M7451 = this.f8675.m7451(interfaceC1383, null, 131072);
            this.f8693 = c3034M7451;
            if (c3034M7451 != null) {
                this.f8695.m8490(c3034M7451);
            }
            iMo4244 = (int) interfaceC1383.mo4244();
            if (!z) {
                interfaceC1383.mo4248(iMo4244);
            }
            i = 0;
        } else {
            iMo4244 = 0;
            i = 0;
        }
        int i3 = i;
        int i4 = i3;
        while (true) {
            if (!m5869(interfaceC1383)) {
                C3493 c3493 = this.f8690;
                c3493.m7955(0);
                int iM7965 = c3493.m7965();
                if ((i == 0 || ((-128000) & iM7965) == (i & (-128000))) && (i2 = ᵕˏᵛ.ˎˑː(iM7965)) != -1) {
                    i3++;
                    if (i3 != 1) {
                        if (i3 == 4) {
                            break;
                        }
                    } else {
                        this.f8680.m4015(iM7965);
                        i = iM7965;
                    }
                    interfaceC1383.mo4250(i2 - 4);
                } else {
                    int i5 = i4 + 1;
                    if (i4 == 131072) {
                        if (z) {
                            return false;
                        }
                        m5871();
                        throw new EOFException();
                    }
                    if (z) {
                        interfaceC1383.mo4245();
                        interfaceC1383.mo4250(iMo4244 + i5);
                    } else {
                        interfaceC1383.mo4248(1);
                    }
                    i3 = 0;
                    i4 = i5;
                    i = 0;
                }
            } else if (i3 <= 0) {
                m5871();
                throw new EOFException();
            }
        }
        if (z) {
            interfaceC1383.mo4248(iMo4244 + i4);
        } else {
            interfaceC1383.mo4245();
        }
        this.f8691 = i;
        return true;
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final void m5871() {
        InterfaceC4887 interfaceC4887 = this.f8692;
        if ((interfaceC4887 instanceof C5341) && ((C5341) interfaceC4887).mo1074()) {
            long j = this.f8676;
            if (j == -1 || j == this.f8692.mo7007()) {
                return;
            }
            C5341 c5341 = (C5341) this.f8692;
            this.f8692 = new C5341(this.f8676, c5341.f20005, c5341.f20009, c5341.f20010, c5341.f20001, false);
            InterfaceC1982 interfaceC1982 = this.f8678;
            interfaceC1982.getClass();
            interfaceC1982.mo4987(this.f8692);
            InterfaceC2154 interfaceC2154 = this.f8694;
            interfaceC2154.getClass();
            interfaceC2154.mo4412(this.f8692.mo1073());
        }
    }

    /* 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 */
    @Override // defpackage.InterfaceC2689
    /* renamed from: ᵻᵢﹳᵰ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final int mo1578(defpackage.InterfaceC1383 r53, defpackage.C4184 r54) throws java.lang.Throwable {
        /*
            Method dump skipped, instructions count: 1460
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C2209.mo1578(ˊᵬᐧ, ᵮˆ):int");
    }
}
