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;

/* JADX INFO: renamed from: ᵮᵥٴ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4248 extends AbstractC5483 {

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public long f16207;

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public String f16208;

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public int f16209;

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public int f16210;

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public String f16211;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final String f16212;

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public int f16213;

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public int f16214;

    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    public ArrayList f16215;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public String f16216;

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

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public String f16218;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public long f16219;

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

    public C4248(AbstractC5483 abstractC5483, String str) {
        super(abstractC5483, str, "StreamIndex");
        this.f16212 = str;
        this.f16220 = new LinkedList();
    }

    /*  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.AbstractC5483
    /* JADX INFO: renamed from: ʽˈˋ */
    public final java.lang.Object mo5456() {
        /*
            Method dump skipped, instruction units count: 372
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C4248.mo5456():java.lang.Object");
    }

    @Override // defpackage.AbstractC5483
    /* JADX INFO: renamed from: ᵱᵽʡᵚ */
    public final void mo5457(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.m355("Invalid key value[" + attributeValue + "]", null);
                    }
                    i = 3;
                }
            }
            this.f16217 = i;
            m11111(Integer.valueOf(i), "Type");
            if (this.f16217 == 3) {
                String attributeValue2 = xmlPullParser.getAttributeValue(null, "Subtype");
                if (attributeValue2 == null) {
                    throw new SsManifestParser$MissingFieldException("Subtype");
                }
                this.f16208 = attributeValue2;
            } else {
                this.f16208 = xmlPullParser.getAttributeValue(null, "Subtype");
            }
            m11111(this.f16208, "Subtype");
            String attributeValue3 = xmlPullParser.getAttributeValue(null, "Name");
            this.f16216 = attributeValue3;
            m11111(attributeValue3, "Name");
            String attributeValue4 = xmlPullParser.getAttributeValue(null, "Url");
            if (attributeValue4 == null) {
                throw new SsManifestParser$MissingFieldException("Url");
            }
            this.f16218 = attributeValue4;
            this.f16214 = AbstractC5483.m11107(xmlPullParser, "MaxWidth");
            this.f16210 = AbstractC5483.m11107(xmlPullParser, "MaxHeight");
            this.f16209 = AbstractC5483.m11107(xmlPullParser, "DisplayWidth");
            this.f16213 = AbstractC5483.m11107(xmlPullParser, "DisplayHeight");
            String attributeValue5 = xmlPullParser.getAttributeValue(null, "Language");
            this.f16211 = attributeValue5;
            m11111(attributeValue5, "Language");
            long jM11107 = AbstractC5483.m11107(xmlPullParser, "TimeScale");
            this.f16219 = jM11107;
            if (jM11107 == -1) {
                this.f16219 = ((Long) m11109("TimeScale")).longValue();
            }
            this.f16215 = new ArrayList();
            return;
        }
        int size = this.f16215.size();
        long jM11106 = AbstractC5483.m11106(xmlPullParser, "t", -9223372036854775807L);
        if (jM11106 == -9223372036854775807L) {
            if (size == 0) {
                jM11106 = 0;
            } else {
                if (this.f16207 == -1) {
                    throw ParserException.m355("Unable to infer start time", null);
                }
                jM11106 = this.f16207 + ((Long) this.f16215.get(size - 1)).longValue();
            }
        }
        this.f16215.add(Long.valueOf(jM11106));
        this.f16207 = AbstractC5483.m11106(xmlPullParser, "d", -9223372036854775807L);
        long jM111062 = AbstractC5483.m11106(xmlPullParser, "r", 1L);
        if (jM111062 > 1 && this.f16207 == -9223372036854775807L) {
            throw ParserException.m355("Repeated chunk with unspecified duration", null);
        }
        while (true) {
            long j = i;
            if (j >= jM111062) {
                return;
            }
            this.f16215.add(Long.valueOf((this.f16207 * j) + jM11106));
            i++;
        }
    }

    @Override // defpackage.AbstractC5483
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final void mo6249(Object obj) {
        if (obj instanceof C5286) {
            this.f16220.add((C5286) obj);
        }
    }

    @Override // defpackage.AbstractC5483
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    public final boolean mo5459(String str) {
        return "c".equals(str);
    }
}
