package defpackage;

import android.content.Context;
import androidx.media3.common.ParserException;
import java.io.EOFException;
import java.util.ArrayList;

/* JADX INFO: renamed from: ˎˑᵖ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1724 {

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

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

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

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public int f6915;

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

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

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

    public C1724() {
        this.f6918 = new int[255];
        this.f6916 = new C4545(255);
    }

    public C1724(Context context) {
        this.f6913 = 0;
        this.f6917 = 1;
        this.f6914 = 0;
        this.f6918 = context;
        this.f6915 = 112;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public void m4766(int i) {
        this.f6914 = i;
        if (this.f6913 == 0) {
            return;
        }
        ᵕᵩʽᵲ.ᵮᵣᵗˈ("Editable actions cannot also be in check sets");
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public void m4767(boolean z) {
        this.f6915 = ((z ? 1 : 0) & 1) | (this.f6915 & (~1));
        if (this.f6913 == 0) {
            return;
        }
        ᵕᵩʽᵲ.ᵮᵣᵗˈ("Editable actions cannot also be checked");
    }

    /* JADX WARN: Code restructure failed: missing block: B:21:0x004d, code lost:
    
        if (r10 == (-1)) goto L24;
     */
    /* JADX WARN: Code restructure failed: missing block: B:23:0x0055, code lost:
    
        if (r9.getPosition() >= r10) goto L33;
     */
    /* JADX WARN: Code restructure failed: missing block: B:25:0x005c, code lost:
    
        if (r9.mo4704(1) == (-1)) goto L34;
     */
    /* JADX WARN: Code restructure failed: missing block: B:27:0x005f, code lost:
    
        return false;
     */
    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public boolean m4768(InterfaceC5206 interfaceC5206, long j) {
        boolean zMo4708;
        C4545 c4545 = (C4545) this.f6916;
        ᵻᵪ.ᵱᵽʡᵚ(interfaceC5206.getPosition() == interfaceC5206.mo4706());
        c4545.m9603(4);
        while (true) {
            if (j != -1 && interfaceC5206.getPosition() + 4 >= j) {
                break;
            }
            try {
                zMo4708 = interfaceC5206.mo4708(c4545.f17284, 0, 4, true);
            } catch (EOFException unused) {
                zMo4708 = false;
            }
            if (!zMo4708) {
                break;
            }
            c4545.m9624(0);
            if (c4545.m9606() == 1332176723) {
                interfaceC5206.mo4698();
                return true;
            }
            interfaceC5206.mo4700(1);
        }
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public C3369 m4769() {
        C3369 c3369 = new C3369();
        c3369.f12904 = -1L;
        new ArrayList();
        c3369.f12904 = this.f6912;
        c3369.f12899 = (String) this.f6916;
        c3369.f12909 = null;
        c3369.f12907 = null;
        c3369.f12905 = null;
        c3369.f12897 = null;
        c3369.f12898 = this.f6913;
        c3369.f12908 = 524289;
        c3369.f12903 = 524289;
        c3369.f12906 = 1;
        c3369.f12902 = this.f6917;
        c3369.f12901 = this.f6915;
        c3369.f12900 = this.f6914;
        return c3369;
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public boolean m4770(InterfaceC5206 interfaceC5206, boolean z) throws ParserException, EOFException {
        boolean zMo4708;
        boolean zMo47082;
        int[] iArr = (int[]) this.f6918;
        this.f6915 = 0;
        this.f6912 = 0L;
        this.f6913 = 0;
        this.f6917 = 0;
        this.f6914 = 0;
        C4545 c4545 = (C4545) this.f6916;
        c4545.m9603(27);
        try {
            zMo4708 = interfaceC5206.mo4708(c4545.f17284, 0, 27, z);
        } catch (EOFException e) {
            if (!z) {
                throw e;
            }
            zMo4708 = false;
        }
        if (zMo4708 && c4545.m9606() == 1332176723) {
            if (c4545.m9626() == 0) {
                this.f6915 = c4545.m9626();
                this.f6912 = c4545.m9615();
                c4545.m9599();
                c4545.m9599();
                c4545.m9599();
                int iM9626 = c4545.m9626();
                this.f6913 = iM9626;
                this.f6917 = iM9626 + 27;
                c4545.m9603(iM9626);
                try {
                    zMo47082 = interfaceC5206.mo4708(c4545.f17284, 0, this.f6913, z);
                } catch (EOFException e2) {
                    if (!z) {
                        throw e2;
                    }
                    zMo47082 = false;
                }
                if (zMo47082) {
                    for (int i = 0; i < this.f6913; i++) {
                        int iM96262 = c4545.m9626();
                        iArr[i] = iM96262;
                        this.f6914 += iM96262;
                    }
                    return true;
                }
            } else if (!z) {
                throw ParserException.m356("unsupported bit stream revision");
            }
        }
        return false;
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public void m4771(int i) {
        this.f6916 = ((Context) this.f6918).getString(i);
    }
}
