package defpackage;

import androidx.media3.common.ParserException;
import java.util.ArrayList;

/* renamed from: ᵹʨ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C5019 {

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

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final String f18734;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final int f18735;

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

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

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final int f18738;

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

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

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

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final float f18742;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final int f18743;

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

    public C5019(ArrayList arrayList, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, float f, String str) {
        this.f18739 = arrayList;
        this.f18740 = i;
        this.f18737 = i2;
        this.f18744 = i3;
        this.f18733 = i4;
        this.f18736 = i5;
        this.f18735 = i6;
        this.f18743 = i7;
        this.f18738 = i8;
        this.f18741 = i9;
        this.f18742 = f;
        this.f18734 = str;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static C5019 m10462(C3493 c3493) throws ParserException {
        String strM8994;
        int i;
        int i2;
        int i3;
        int i4;
        int i5;
        int i6;
        float f;
        int i7;
        int i8;
        try {
            c3493.m7946(4);
            int iM7956 = (c3493.m7956() & 3) + 1;
            if (iM7956 == 3) {
                throw new IllegalStateException();
            }
            ArrayList arrayList = new ArrayList();
            int iM79562 = c3493.m7956() & 31;
            for (int i9 = 0; i9 < iM79562; i9++) {
                int iM7972 = c3493.m7972();
                int i10 = c3493.f13083;
                c3493.m7946(iM7972);
                byte[] bArr = c3493.f13082;
                byte[] bArr2 = new byte[iM7972 + 4];
                System.arraycopy(AbstractC4109.f15351, 0, bArr2, 0, 4);
                System.arraycopy(bArr, i10, bArr2, 4, iM7972);
                arrayList.add(bArr2);
            }
            int iM79563 = c3493.m7956();
            for (int i11 = 0; i11 < iM79563; i11++) {
                int iM79722 = c3493.m7972();
                int i12 = c3493.f13083;
                c3493.m7946(iM79722);
                byte[] bArr3 = c3493.f13082;
                byte[] bArr4 = new byte[iM79722 + 4];
                System.arraycopy(AbstractC4109.f15351, 0, bArr4, 0, 4);
                System.arraycopy(bArr3, i12, bArr4, 4, iM79722);
                arrayList.add(bArr4);
            }
            if (iM79562 > 0) {
                C4942 c4942 = ˊˉʤﹳ.ᵛˈᵤ((byte[]) arrayList.get(0), 4, ((byte[]) arrayList.get(0)).length);
                int i13 = c4942.f18350;
                int i14 = c4942.f18354;
                int i15 = c4942.f18367 + 8;
                int i16 = c4942.f18356 + 8;
                int i17 = c4942.f18351;
                int i18 = c4942.f18358;
                int i19 = c4942.f18365;
                int i20 = c4942.f18357;
                float f2 = c4942.f18353;
                strM8994 = AbstractC4109.m8994(c4942.f18359, c4942.f18363, c4942.f18355);
                i4 = i18;
                i5 = i19;
                i6 = i20;
                f = f2;
                i2 = i14;
                i3 = i15;
                i7 = i16;
                i8 = i17;
                i = i13;
            } else {
                strM8994 = null;
                i = -1;
                i2 = -1;
                i3 = -1;
                i4 = -1;
                i5 = -1;
                i6 = 16;
                f = 1.0f;
                i7 = -1;
                i8 = -1;
            }
            return new C5019(arrayList, iM7956, i, i2, i3, i7, i8, i4, i5, i6, f, strM8994);
        } catch (ArrayIndexOutOfBoundsException e) {
            throw ParserException.m356("Error parsing AVC config", e);
        }
    }
}
