package defpackage;

/* renamed from: ᵱᵷᵴ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4437 implements InterfaceC1593 {

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

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public long f16585;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public InterfaceC2154 f16586;

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

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public int f16589;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final C4089 f16588 = new C4089(1);

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public long f16583 = -9223372036854775807L;

    public C4437(C2419 c2419) {
        this.f16587 = c2419;
    }

    @Override // defpackage.InterfaceC1593
    /* renamed from: ˏᵙ */
    public final void mo2630(InterfaceC1982 interfaceC1982, int i) {
        InterfaceC2154 interfaceC2154Mo4996 = interfaceC1982.mo4996(i, 1);
        this.f16586 = interfaceC2154Mo4996;
        interfaceC2154Mo4996.mo4407(this.f16587.f9445);
    }

    @Override // defpackage.InterfaceC1593
    /* renamed from: ᵥᵯˎ */
    public final void mo2631(long j) {
        ᵛᵾˏ.ᵿʗᵝʽ(this.f16583 == -9223372036854775807L);
        this.f16583 = j;
    }

    @Override // defpackage.InterfaceC1593
    /* renamed from: ᵴᵳ */
    public final void mo2632(long j, long j2) {
        this.f16583 = j;
        this.f16584 = j2;
    }

    @Override // defpackage.InterfaceC1593
    /* renamed from: ᵻᵢﹳᵰ */
    public final void mo2633(C3493 c3493, long j, int i, boolean z) {
        int iM7956 = c3493.m7956() & 3;
        int iM79562 = c3493.m7956() & 255;
        long j2 = ˁˈᵸ.ᵡᵘˎʽ(this.f16587.f9447, this.f16584, j, this.f16583);
        if (iM7956 != 0) {
            if (iM7956 == 1 || iM7956 == 2) {
                int i2 = this.f16589;
                if (i2 > 0) {
                    InterfaceC2154 interfaceC2154 = this.f16586;
                    String str = AbstractC3558.f13329;
                    interfaceC2154.mo4410(this.f16585, 1, i2, 0, null);
                    this.f16589 = 0;
                }
            } else if (iM7956 != 3) {
                ᵹˉᵞ.ˌᵜᵹᵩ(String.valueOf(iM7956));
                return;
            }
            int iM7959 = c3493.m7959();
            InterfaceC2154 interfaceC21542 = this.f16586;
            interfaceC21542.getClass();
            interfaceC21542.mo4406(iM7959, c3493);
            int i3 = this.f16589 + iM7959;
            this.f16589 = i3;
            this.f16585 = j2;
            if (z && iM7956 == 3) {
                InterfaceC2154 interfaceC21543 = this.f16586;
                String str2 = AbstractC3558.f13329;
                interfaceC21543.mo4410(j2, 1, i3, 0, null);
                this.f16589 = 0;
                return;
            }
            return;
        }
        int i4 = this.f16589;
        if (i4 > 0) {
            InterfaceC2154 interfaceC21544 = this.f16586;
            String str3 = AbstractC3558.f13329;
            interfaceC21544.mo4410(this.f16585, 1, i4, 0, null);
            this.f16589 = 0;
        }
        if (iM79562 == 1) {
            int iM79592 = c3493.m7959();
            InterfaceC2154 interfaceC21545 = this.f16586;
            interfaceC21545.getClass();
            interfaceC21545.mo4406(iM79592, c3493);
            InterfaceC2154 interfaceC21546 = this.f16586;
            String str4 = AbstractC3558.f13329;
            interfaceC21546.mo4410(j2, 1, iM79592, 0, null);
            return;
        }
        byte[] bArr = c3493.f13082;
        C4089 c4089 = this.f16588;
        c4089.getClass();
        c4089.m8962(bArr.length, bArr);
        c4089.m8959(2);
        long j3 = j2;
        for (int i5 = 0; i5 < iM79562; i5++) {
            C1840 c1840 = ˉᵜˆ.ᵨᵳʝ(c4089);
            int i6 = c1840.f7451;
            InterfaceC2154 interfaceC21547 = this.f16586;
            interfaceC21547.getClass();
            interfaceC21547.mo4406(i6, c3493);
            InterfaceC2154 interfaceC21548 = this.f16586;
            String str5 = AbstractC3558.f13329;
            interfaceC21548.mo4410(j3, 1, c1840.f7451, 0, null);
            j3 += (c1840.f7454 / c1840.f7452) * 1000000;
            c4089.m8959(i6);
        }
    }
}
