package defpackage;

/* JADX INFO: renamed from: ʾˋ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0246 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public boolean f1811;

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

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public int f1813;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final byte[] f1814 = new byte[10];

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

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

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

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final void m1460(InterfaceC5226 interfaceC5226, long j, int i, int i2, int i3, C1688 c1688) {
        ᵻᵪ.ˊᵨᵧ("TrueHD chunk samples must be contiguous in the sample queue.", this.f1815 <= i2 + i3);
        if (this.f1811) {
            int i4 = this.f1812;
            int i5 = i4 + 1;
            this.f1812 = i5;
            if (i4 == 0) {
                this.f1816 = j;
                this.f1813 = i;
                this.f1817 = 0;
            }
            this.f1817 += i2;
            this.f1815 = i3;
            if (i5 >= 16) {
                m1462(interfaceC5226, c1688);
            }
        }
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final void m1461(InterfaceC5206 interfaceC5206) {
        if (this.f1811) {
            return;
        }
        byte[] bArr = this.f1814;
        interfaceC5206.mo4701(bArr, 0, 10);
        interfaceC5206.mo4698();
        if (bArr[4] == -8 && bArr[5] == 114 && bArr[6] == 111) {
            byte b = bArr[7];
            if ((b & 254) == 186) {
                i = 40 << ((bArr[((b & 255) == 187 ? 1 : 0) != 0 ? '\t' : '\b'] >> 4) & 7);
            }
        }
        if (i == 0) {
            return;
        }
        this.f1811 = true;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final void m1462(InterfaceC5226 interfaceC5226, C1688 c1688) {
        if (this.f1812 > 0) {
            interfaceC5226.mo1741(this.f1816, this.f1813, this.f1817, this.f1815, c1688);
            this.f1812 = 0;
        }
    }
}
