package defpackage;

/* JADX INFO: renamed from: ˈᵱˊᵱ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1116 implements InterfaceC0728 {

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public InterfaceC5226 f4766;

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

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

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public int f4770;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public long f4771;

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final C3180 f4765 = new C3180(1);

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public long f4767 = -9223372036854775807L;

    public C1116(C3176 c3176) {
        this.f4768 = c3176;
    }

    @Override // defpackage.InterfaceC0728
    /* JADX INFO: renamed from: ʽˈˋ */
    public final void mo2599(long j, long j2) {
        this.f4767 = j;
        this.f4769 = j2;
    }

    @Override // defpackage.InterfaceC0728
    /* JADX INFO: renamed from: ːˏᵟᵯ */
    public final void mo2600(InterfaceC4550 interfaceC4550, int i) {
        InterfaceC5226 interfaceC5226Mo2743 = interfaceC4550.mo2743(i, 1);
        this.f4766 = interfaceC5226Mo2743;
        interfaceC5226Mo2743.mo1742(this.f4768.f12057);
    }

    @Override // defpackage.InterfaceC0728
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final void mo2601(long j) {
        ᵻᵪ.ˌᴵ(this.f4767 == -9223372036854775807L);
        this.f4767 = j;
    }

    @Override // defpackage.InterfaceC0728
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    public final void mo2602(C4545 c4545, long j, int i, boolean z) {
        int iM9626 = c4545.m9626() & 3;
        int iM96262 = c4545.m9626() & 255;
        long j2 = ᵸᵺᵜ.ˁˌᵩ(this.f4768.f12056, this.f4769, j, this.f4767);
        if (iM9626 != 0) {
            if (iM9626 == 1 || iM9626 == 2) {
                int i2 = this.f4770;
                if (i2 > 0) {
                    InterfaceC5226 interfaceC5226 = this.f4766;
                    String str = AbstractC0956.f4222;
                    interfaceC5226.mo1741(this.f4771, 1, i2, 0, null);
                    this.f4770 = 0;
                }
            } else if (iM9626 != 3) {
                ᵕᵩʽᵲ.ᵮᵣᵗˈ(String.valueOf(iM9626));
                return;
            }
            int iM9623 = c4545.m9623();
            InterfaceC5226 interfaceC52262 = this.f4766;
            interfaceC52262.getClass();
            interfaceC52262.mo1740(iM9623, c4545);
            int i3 = this.f4770 + iM9623;
            this.f4770 = i3;
            this.f4771 = j2;
            if (z && iM9626 == 3) {
                InterfaceC5226 interfaceC52263 = this.f4766;
                String str2 = AbstractC0956.f4222;
                interfaceC52263.mo1741(j2, 1, i3, 0, null);
                this.f4770 = 0;
                return;
            }
            return;
        }
        int i4 = this.f4770;
        if (i4 > 0) {
            InterfaceC5226 interfaceC52264 = this.f4766;
            String str3 = AbstractC0956.f4222;
            interfaceC52264.mo1741(this.f4771, 1, i4, 0, null);
            this.f4770 = 0;
        }
        if (iM96262 == 1) {
            int iM96232 = c4545.m9623();
            InterfaceC5226 interfaceC52265 = this.f4766;
            interfaceC52265.getClass();
            interfaceC52265.mo1740(iM96232, c4545);
            InterfaceC5226 interfaceC52266 = this.f4766;
            String str4 = AbstractC0956.f4222;
            interfaceC52266.mo1741(j2, 1, iM96232, 0, null);
            return;
        }
        byte[] bArr = c4545.f17284;
        C3180 c3180 = this.f4765;
        c3180.getClass();
        c3180.m7296(bArr.length, bArr);
        c3180.m7291(2);
        long j3 = j2;
        for (int i5 = 0; i5 < iM96262; i5++) {
            C5187 c5187 = ᵷˆᵣ.ᵶᵥᵝ(c3180);
            int i6 = c5187.f19528;
            InterfaceC5226 interfaceC52267 = this.f4766;
            interfaceC52267.getClass();
            interfaceC52267.mo1740(i6, c4545);
            InterfaceC5226 interfaceC52268 = this.f4766;
            String str5 = AbstractC0956.f4222;
            interfaceC52268.mo1741(j3, 1, c5187.f19528, 0, null);
            j3 += ((long) (c5187.f19531 / c5187.f19530)) * 1000000;
            c3180.m7291(i6);
        }
    }
}
