package defpackage;

import androidx.media3.common.ParserException;
import androidx.media3.exoplayer.smoothstreaming.manifest.SsManifestParser$MissingFieldException;
import java.util.ArrayList;
import java.util.LinkedList;
import org.xmlpull.v1.XmlPullParser;

/* renamed from: ˀˊᵚʿ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0533 extends AbstractC1663 {

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

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public String f2769;

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public int f2770;

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

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

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public long f2773;

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public ArrayList f2774;

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public int f2775;

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public int f2776;

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public int f2777;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public String f2778;

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public long f2779;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public String f2780;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public String f2781;

    public C0533(AbstractC1663 abstractC1663, String str) {
        super(abstractC1663, str, "StreamIndex");
        this.f2768 = str;
        this.f2772 = new LinkedList();
    }

    @Override // defpackage.AbstractC1663
    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final void mo2323(Object obj) {
        if (obj instanceof C3446) {
            this.f2772.add((C3446) obj);
        }
    }

    /*  JADX ERROR: JadxRuntimeException in pass: ModVisitor
        jadx.core.utils.exceptions.JadxRuntimeException: Can't remove SSA var: r3v0 ￡ﾵﾼ￡ﾵﾱￋﾉ, still in use, count: 2, list:
          (r3v0 ￡ﾵﾼ￡ﾵﾱￋﾉ) from 0x0082: MOVE (r26v0 ￡ﾵﾼ￡ﾵﾱￋﾉ) = (r3v0 ￡ﾵﾼ￡ﾵﾱￋﾉ)
          (r3v0 ￡ﾵﾼ￡ﾵﾱￋﾉ) from 0x004e: MOVE (r26v4 ￡ﾵﾼ￡ﾵﾱￋﾉ) = (r3v0 ￡ﾵﾼ￡ﾵﾱￋﾉ)
        	at jadx.core.utils.InsnRemover.removeSsaVar(InsnRemover.java:162)
        	at jadx.core.utils.InsnRemover.unbindResult(InsnRemover.java:127)
        	at jadx.core.utils.InsnRemover.unbindInsn(InsnRemover.java:91)
        	at jadx.core.utils.InsnRemover.addAndUnbind(InsnRemover.java:57)
        	at jadx.core.dex.visitors.ModVisitor.removeStep(ModVisitor.java:463)
        	at jadx.core.dex.visitors.ModVisitor.visit(ModVisitor.java:97)
        */
    @Override // defpackage.AbstractC1663
    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final java.lang.Object mo2324() {
        /*
            Method dump skipped, instructions count: 372
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C0533.mo2324():java.lang.Object");
    }

    @Override // defpackage.AbstractC1663
    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final void mo2325(XmlPullParser xmlPullParser) throws ParserException {
        int i = 1;
        if (!"c".equals(xmlPullParser.getName())) {
            String attributeValue = xmlPullParser.getAttributeValue(null, "Type");
            if (attributeValue == null) {
                throw new SsManifestParser$MissingFieldException("Type");
            }
            if (!"audio".equalsIgnoreCase(attributeValue)) {
                if ("video".equalsIgnoreCase(attributeValue)) {
                    i = 2;
                } else {
                    if (!"text".equalsIgnoreCase(attributeValue)) {
                        throw ParserException.m357("Invalid key value[" + attributeValue + "]", null);
                    }
                    i = 3;
                }
            }
            this.f2771 = i;
            m4752(Integer.valueOf(i), "Type");
            if (this.f2771 == 3) {
                String attributeValue2 = xmlPullParser.getAttributeValue(null, "Subtype");
                if (attributeValue2 == null) {
                    throw new SsManifestParser$MissingFieldException("Subtype");
                }
                this.f2781 = attributeValue2;
            } else {
                this.f2781 = xmlPullParser.getAttributeValue(null, "Subtype");
            }
            m4752(this.f2781, "Subtype");
            String attributeValue3 = xmlPullParser.getAttributeValue(null, "Name");
            this.f2778 = attributeValue3;
            m4752(attributeValue3, "Name");
            String attributeValue4 = xmlPullParser.getAttributeValue(null, "Url");
            if (attributeValue4 == null) {
                throw new SsManifestParser$MissingFieldException("Url");
            }
            this.f2780 = attributeValue4;
            this.f2770 = AbstractC1663.m4748(xmlPullParser, "MaxWidth");
            this.f2776 = AbstractC1663.m4748(xmlPullParser, "MaxHeight");
            this.f2775 = AbstractC1663.m4748(xmlPullParser, "DisplayWidth");
            this.f2777 = AbstractC1663.m4748(xmlPullParser, "DisplayHeight");
            String attributeValue5 = xmlPullParser.getAttributeValue(null, "Language");
            this.f2769 = attributeValue5;
            m4752(attributeValue5, "Language");
            long jM4748 = AbstractC1663.m4748(xmlPullParser, "TimeScale");
            this.f2773 = jM4748;
            if (jM4748 == -1) {
                this.f2773 = ((Long) m4754("TimeScale")).longValue();
            }
            this.f2774 = new ArrayList();
            return;
        }
        int size = this.f2774.size();
        long jM4750 = AbstractC1663.m4750(xmlPullParser, "t", -9223372036854775807L);
        if (jM4750 == -9223372036854775807L) {
            if (size == 0) {
                jM4750 = 0;
            } else {
                if (this.f2779 == -1) {
                    throw ParserException.m357("Unable to infer start time", null);
                }
                jM4750 = this.f2779 + ((Long) this.f2774.get(size - 1)).longValue();
            }
        }
        this.f2774.add(Long.valueOf(jM4750));
        this.f2779 = AbstractC1663.m4750(xmlPullParser, "d", -9223372036854775807L);
        long jM47502 = AbstractC1663.m4750(xmlPullParser, "r", 1L);
        if (jM47502 > 1 && this.f2779 == -9223372036854775807L) {
            throw ParserException.m357("Repeated chunk with unspecified duration", null);
        }
        while (true) {
            long j = i;
            if (j >= jM47502) {
                return;
            }
            this.f2774.add(Long.valueOf((this.f2779 * j) + jM4750));
            i++;
        }
    }

    @Override // defpackage.AbstractC1663
    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final boolean mo2326(String str) {
        return "c".equals(str);
    }
}
