导航菜单

页面标题

页面副标题

BAM Crawford v6.14.1 - c.java 源代码

正在查看: BAM Crawford v6.14.1 应用的 c.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package pb;

import android.net.Uri;
import android.text.TextUtils;
import android.util.Pair;
import android.util.Xml;
import gc.a0;
import hc.k0;
import hc.m0;
import hc.n0;
import hc.p;
import hc.s;
import ia.a1;
import ia.o1;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import na.l;
import org.xml.sax.helpers.DefaultHandler;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
import org.xmlpull.v1.XmlSerializer;
import pb.j;

public class c extends DefaultHandler implements a0.a {

    private static final Pattern f13661b = Pattern.compile("(\\d+)(?:/(\\d+))?");

    private static final Pattern f13662c = Pattern.compile("CC([1-4])=.*");

    private static final Pattern f13663d = Pattern.compile("([1-9]|[1-5][0-9]|6[0-3])=.*");

    private static final int[] f13664e = {-1, 1, 2, 3, 4, 5, 6, 8, 2, 3, 4, 7, 8, 24, 8, 12, 10, 12, 14, 12, 14};

    private final XmlPullParserFactory f13665a;

    protected static final class a {

        public final a1 f13666a;

        public final String f13667b;

        public final j f13668c;

        public final String f13669d;

        public final ArrayList f13670e;

        public final ArrayList f13671f;

        public final long f13672g;

        public a(a1 a1Var, String str, j jVar, String str2, ArrayList arrayList, ArrayList arrayList2, long j10) {
            this.f13666a = a1Var;
            this.f13667b = str;
            this.f13668c = jVar;
            this.f13669d = str2;
            this.f13670e = arrayList;
            this.f13671f = arrayList2;
            this.f13672g = j10;
        }
    }

    public c() {
        try {
            this.f13665a = XmlPullParserFactory.newInstance();
        } catch (XmlPullParserException e10) {
            throw new RuntimeException("Couldn't create XmlPullParserFactory instance", e10);
        }
    }

    protected static int B(List list) {
        String str;
        for (int i10 = 0; i10 < list.size(); i10++) {
            d dVar = (d) list.get(i10);
            if ("urn:scte:dash:cc:cea-608:2015".equals(dVar.f13673a) && (str = dVar.f13674b) != null) {
                Matcher matcher = f13662c.matcher(str);
                if (matcher.matches()) {
                    return Integer.parseInt(matcher.group(1));
                }
                p.h("MpdParser", "Unable to parse CEA-608 channel number from: " + dVar.f13674b);
            }
        }
        return -1;
    }

    protected static int C(List list) {
        String str;
        for (int i10 = 0; i10 < list.size(); i10++) {
            d dVar = (d) list.get(i10);
            if ("urn:scte:dash:cc:cea-708:2015".equals(dVar.f13673a) && (str = dVar.f13674b) != null) {
                Matcher matcher = f13663d.matcher(str);
                if (matcher.matches()) {
                    return Integer.parseInt(matcher.group(1));
                }
                p.h("MpdParser", "Unable to parse CEA-708 service block number from: " + dVar.f13674b);
            }
        }
        return -1;
    }

    protected static long F(XmlPullParser xmlPullParser, String str, long j10) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? j10 : m0.C0(attributeValue);
    }

    protected static d G(XmlPullParser xmlPullParser, String str) {
        String m02 = m0(xmlPullParser, "schemeIdUri", "");
        String m03 = m0(xmlPullParser, "value", null);
        String m04 = m0(xmlPullParser, "id", null);
        do {
            xmlPullParser.next();
        } while (!n0.d(xmlPullParser, str));
        return new d(m02, m03, m04);
    }

    protected static int H(XmlPullParser xmlPullParser) {
        char c10;
        String Q0 = m0.Q0(xmlPullParser.getAttributeValue(null, "value"));
        if (Q0 == null) {
            return -1;
        }
        switch (Q0.hashCode()) {
            case 1596796:
                if (Q0.equals("4000")) {
                    c10 = 0;
                    break;
                }
                c10 = 65535;
                break;
            case 2937391:
                if (Q0.equals("a000")) {
                    c10 = 1;
                    break;
                }
                c10 = 65535;
                break;
            case 3094035:
                if (Q0.equals("f801")) {
                    c10 = 2;
                    break;
                }
                c10 = 65535;
                break;
            case 3133436:
                if (Q0.equals("fa01")) {
                    c10 = 3;
                    break;
                }
                c10 = 65535;
                break;
            default:
                c10 = 65535;
                break;
        }
        switch (c10) {
        }
        return -1;
    }

    protected static long I(XmlPullParser xmlPullParser, String str, long j10) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? j10 : m0.D0(attributeValue);
    }

    protected static String J(List list) {
        for (int i10 = 0; i10 < list.size(); i10++) {
            d dVar = (d) list.get(i10);
            String str = dVar.f13673a;
            if ("tag:dolby.com,2018:dash:EC3_ExtensionType:2018".equals(str) && "JOC".equals(dVar.f13674b)) {
                return "audio/eac3-joc";
            }
            if ("tag:dolby.com,2014:dash:DolbyDigitalPlusExtensionType:2014".equals(str) && "ec+3".equals(dVar.f13674b)) {
                return "audio/eac3-joc";
            }
        }
        return "audio/eac3";
    }

    protected static float N(XmlPullParser xmlPullParser, String str, float f10) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? f10 : Float.parseFloat(attributeValue);
    }

    protected static float O(XmlPullParser xmlPullParser, float f10) {
        String attributeValue = xmlPullParser.getAttributeValue(null, "frameRate");
        if (attributeValue == null) {
            return f10;
        }
        Matcher matcher = f13661b.matcher(attributeValue);
        if (!matcher.matches()) {
            return f10;
        }
        int parseInt = Integer.parseInt(matcher.group(1));
        return !TextUtils.isEmpty(matcher.group(2)) ? parseInt / Integer.parseInt(r2) : parseInt;
    }

    protected static int Q(XmlPullParser xmlPullParser, String str, int i10) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? i10 : Integer.parseInt(attributeValue);
    }

    protected static long S(List list) {
        for (int i10 = 0; i10 < list.size(); i10++) {
            d dVar = (d) list.get(i10);
            if (jf.b.a("http://dashif.org/guidelines/last-segment-number", dVar.f13673a)) {
                return Long.parseLong(dVar.f13674b);
            }
        }
        return -1L;
    }

    protected static long T(XmlPullParser xmlPullParser, String str, long j10) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? j10 : Long.parseLong(attributeValue);
    }

    protected static int V(XmlPullParser xmlPullParser) {
        int Q = Q(xmlPullParser, "value", -1);
        if (Q < 0) {
            return -1;
        }
        int[] iArr = f13664e;
        if (Q < iArr.length) {
            return iArr[Q];
        }
        return -1;
    }

    private long b(List list, long j10, long j11, int i10, long j12) {
        int m10 = i10 >= 0 ? i10 + 1 : (int) m0.m(j12 - j10, j11);
        for (int i11 = 0; i11 < m10; i11++) {
            list.add(m(j10, j11));
            j10 += j11;
        }
        return j10;
    }

    protected static String m0(XmlPullParser xmlPullParser, String str, String str2) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue == null ? str2 : attributeValue;
    }

    protected static String n0(XmlPullParser xmlPullParser, String str) {
        String str2 = "";
        do {
            xmlPullParser.next();
            if (xmlPullParser.getEventType() == 4) {
                str2 = xmlPullParser.getText();
            } else {
                u(xmlPullParser);
            }
        } while (!n0.d(xmlPullParser, str));
        return str2;
    }

    private static int p(int i10, int i11) {
        if (i10 == -1) {
            return i11;
        }
        if (i11 == -1) {
            return i10;
        }
        hc.a.f(i10 == i11);
        return i10;
    }

    private static String q(String str, String str2) {
        if (str == null) {
            return str2;
        }
        if (str2 == null) {
            return str;
        }
        hc.a.f(str.equals(str2));
        return str;
    }

    private static void r(ArrayList arrayList) {
        for (int size = arrayList.size() - 1; size >= 0; size--) {
            l.b bVar = (l.b) arrayList.get(size);
            if (!bVar.c()) {
                int i10 = 0;
                while (true) {
                    if (i10 >= arrayList.size()) {
                        break;
                    }
                    if (((l.b) arrayList.get(i10)).a(bVar)) {
                        arrayList.remove(size);
                        break;
                    }
                    i10++;
                }
            }
        }
    }

    private static long s(long j10, long j11) {
        if (j11 != -9223372036854775807L) {
            j10 = j11;
        }
        if (j10 == Long.MAX_VALUE) {
            return -9223372036854775807L;
        }
        return j10;
    }

    private static String t(String str, String str2) {
        if (s.p(str)) {
            return s.c(str2);
        }
        if (s.s(str)) {
            return s.o(str2);
        }
        if (s.r(str)) {
            return "application/x-rawcc".equals(str) ? s.j(str2) : str;
        }
        if (!"application/mp4".equals(str)) {
            return null;
        }
        String g10 = s.g(str2);
        return "text/vtt".equals(g10) ? "application/x-mp4-vtt" : g10;
    }

    public static void u(XmlPullParser xmlPullParser) {
        if (n0.e(xmlPullParser)) {
            int i10 = 1;
            while (i10 != 0) {
                xmlPullParser.next();
                if (n0.e(xmlPullParser)) {
                    i10++;
                } else if (n0.c(xmlPullParser)) {
                    i10--;
                }
            }
        }
    }

    protected String A(XmlPullParser xmlPullParser, String str) {
        return k0.c(str, n0(xmlPullParser, "BaseURL"));
    }

    protected android.util.Pair D(org.xmlpull.v1.XmlPullParser r11) {
        throw new UnsupportedOperationException("Method not decompiled: pb.c.D(org.xmlpull.v1.XmlPullParser):android.util.Pair");
    }

    protected int E(XmlPullParser xmlPullParser) {
        String attributeValue = xmlPullParser.getAttributeValue(null, "contentType");
        if (TextUtils.isEmpty(attributeValue)) {
            return -1;
        }
        if ("audio".equals(attributeValue)) {
            return 1;
        }
        if ("video".equals(attributeValue)) {
            return 2;
        }
        return "text".equals(attributeValue) ? 3 : -1;
    }

    protected Pair K(XmlPullParser xmlPullParser, String str, String str2, long j10, ByteArrayOutputStream byteArrayOutputStream) {
        long T = T(xmlPullParser, "id", 0L);
        long T2 = T(xmlPullParser, "duration", -9223372036854775807L);
        long T3 = T(xmlPullParser, "presentationTime", 0L);
        long H0 = m0.H0(T2, 1000L, j10);
        long H02 = m0.H0(T3, 1000000L, j10);
        String m02 = m0(xmlPullParser, "messageData", null);
        byte[] L = L(xmlPullParser, byteArrayOutputStream);
        Long valueOf = Long.valueOf(H02);
        if (m02 != null) {
            L = m0.l0(m02);
        }
        return Pair.create(valueOf, d(str, str2, T, H0, L));
    }

    protected byte[] L(XmlPullParser xmlPullParser, ByteArrayOutputStream byteArrayOutputStream) {
        byteArrayOutputStream.reset();
        XmlSerializer newSerializer = Xml.newSerializer();
        newSerializer.setOutput(byteArrayOutputStream, jf.d.c.name());
        xmlPullParser.nextToken();
        while (!n0.d(xmlPullParser, "Event")) {
            switch (xmlPullParser.getEventType()) {
                case 0:
                    newSerializer.startDocument(null, Boolean.FALSE);
                    break;
                case 1:
                    newSerializer.endDocument();
                    break;
                case 2:
                    newSerializer.startTag(xmlPullParser.getNamespace(), xmlPullParser.getName());
                    for (int i10 = 0; i10 < xmlPullParser.getAttributeCount(); i10++) {
                        newSerializer.attribute(xmlPullParser.getAttributeNamespace(i10), xmlPullParser.getAttributeName(i10), xmlPullParser.getAttributeValue(i10));
                    }
                    break;
                case 3:
                    newSerializer.endTag(xmlPullParser.getNamespace(), xmlPullParser.getName());
                    break;
                case 4:
                    newSerializer.text(xmlPullParser.getText());
                    break;
                case 5:
                    newSerializer.cdsect(xmlPullParser.getText());
                    break;
                case 6:
                    newSerializer.entityRef(xmlPullParser.getText());
                    break;
                case 7:
                    newSerializer.ignorableWhitespace(xmlPullParser.getText());
                    break;
                case 8:
                    newSerializer.processingInstruction(xmlPullParser.getText());
                    break;
                case 9:
                    newSerializer.comment(xmlPullParser.getText());
                    break;
                case 10:
                    newSerializer.docdecl(xmlPullParser.getText());
                    break;
            }
            xmlPullParser.nextToken();
        }
        newSerializer.flush();
        return byteArrayOutputStream.toByteArray();
    }

    protected e M(XmlPullParser xmlPullParser) {
        String m02 = m0(xmlPullParser, "schemeIdUri", "");
        String m03 = m0(xmlPullParser, "value", "");
        long T = T(xmlPullParser, "timescale", 1L);
        ArrayList arrayList = new ArrayList();
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(androidx.car.app.media.b.AUDIO_CONTENT_BUFFER_SIZE);
        do {
            xmlPullParser.next();
            if (n0.f(xmlPullParser, "Event")) {
                arrayList.add(K(xmlPullParser, m02, m03, T, byteArrayOutputStream));
            } else {
                u(xmlPullParser);
            }
        } while (!n0.d(xmlPullParser, "EventStream"));
        long[] jArr = new long[arrayList.size()];
        eb.a[] aVarArr = new eb.a[arrayList.size()];
        for (int i10 = 0; i10 < arrayList.size(); i10++) {
            Pair pair = (Pair) arrayList.get(i10);
            jArr[i10] = ((Long) pair.first).longValue();
            aVarArr[i10] = (eb.a) pair.second;
        }
        return e(m02, m03, T, jArr, aVarArr);
    }

    protected h P(XmlPullParser xmlPullParser) {
        return Y(xmlPullParser, "sourceURL", "range");
    }

    protected String R(XmlPullParser xmlPullParser) {
        return n0(xmlPullParser, "Label");
    }

    protected pb.b U(org.xmlpull.v1.XmlPullParser r43, java.lang.String r44) {
        throw new UnsupportedOperationException("Method not decompiled: pb.c.U(org.xmlpull.v1.XmlPullParser, java.lang.String):pb.b");
    }

    protected Pair W(XmlPullParser xmlPullParser, String str, long j10, long j11, long j12, long j13) {
        long j14;
        String str2;
        ArrayList arrayList;
        ArrayList arrayList2;
        Object obj;
        long j15;
        j g02;
        c cVar = this;
        Object obj2 = null;
        String attributeValue = xmlPullParser.getAttributeValue(null, "id");
        long I = I(xmlPullParser, "start", j10);
        long j16 = -9223372036854775807L;
        long j17 = j12 != -9223372036854775807L ? j12 + I : -9223372036854775807L;
        long I2 = I(xmlPullParser, "duration", -9223372036854775807L);
        ArrayList arrayList3 = new ArrayList();
        ArrayList arrayList4 = new ArrayList();
        String str3 = str;
        long j18 = j11;
        boolean z10 = false;
        long j19 = -9223372036854775807L;
        j jVar = null;
        d dVar = null;
        while (true) {
            xmlPullParser.next();
            if (!n0.f(xmlPullParser, "BaseURL")) {
                if (n0.f(xmlPullParser, "AdaptationSet")) {
                    j14 = j18;
                    str2 = str3;
                    arrayList = arrayList3;
                    arrayList.add(w(xmlPullParser, str3, jVar, I2, j18, j19, j17, j13));
                    arrayList2 = arrayList4;
                } else {
                    j14 = j18;
                    ArrayList arrayList5 = arrayList4;
                    str2 = str3;
                    arrayList = arrayList3;
                    if (n0.f(xmlPullParser, "EventStream")) {
                        arrayList5.add(M(xmlPullParser));
                        arrayList2 = arrayList5;
                    } else if (n0.f(xmlPullParser, "SegmentBase")) {
                        arrayList2 = arrayList5;
                        jVar = e0(xmlPullParser, null);
                        obj = null;
                        j18 = j14;
                        str3 = str2;
                        j15 = -9223372036854775807L;
                    } else {
                        arrayList2 = arrayList5;
                        if (n0.f(xmlPullParser, "SegmentList")) {
                            long z11 = z(xmlPullParser, -9223372036854775807L);
                            obj = null;
                            g02 = f0(xmlPullParser, null, j17, I2, j14, z11, j13);
                            j19 = z11;
                            j18 = j14;
                            str3 = str2;
                            j15 = -9223372036854775807L;
                        } else {
                            obj = null;
                            if (n0.f(xmlPullParser, "SegmentTemplate")) {
                                long z12 = z(xmlPullParser, -9223372036854775807L);
                                j15 = -9223372036854775807L;
                                g02 = g0(xmlPullParser, null, com.google.common.collect.s.u(), j17, I2, j14, z12, j13);
                                j19 = z12;
                                j18 = j14;
                                str3 = str2;
                            } else {
                                j15 = -9223372036854775807L;
                                if (n0.f(xmlPullParser, "AssetIdentifier")) {
                                    dVar = G(xmlPullParser, "AssetIdentifier");
                                } else {
                                    u(xmlPullParser);
                                }
                                j18 = j14;
                                str3 = str2;
                            }
                        }
                        jVar = g02;
                    }
                }
                obj = null;
                j15 = -9223372036854775807L;
                j18 = j14;
                str3 = str2;
            } else if (z10) {
                j14 = j18;
                arrayList2 = arrayList4;
                str2 = str3;
                j15 = j16;
                obj = obj2;
                arrayList = arrayList3;
                j18 = j14;
                str3 = str2;
            } else {
                j18 = cVar.z(xmlPullParser, j18);
                str3 = cVar.A(xmlPullParser, str3);
                z10 = true;
                arrayList2 = arrayList4;
                j15 = j16;
                obj = obj2;
                arrayList = arrayList3;
            }
            if (n0.d(xmlPullParser, "Period")) {
                return Pair.create(h(attributeValue, I, arrayList, arrayList2, dVar), Long.valueOf(I2));
            }
            arrayList3 = arrayList;
            obj2 = obj;
            arrayList4 = arrayList2;
            j16 = j15;
            cVar = this;
        }
    }

    protected g X(XmlPullParser xmlPullParser) {
        String str = null;
        String m02 = m0(xmlPullParser, "moreInformationURL", null);
        String m03 = m0(xmlPullParser, "lang", null);
        String str2 = null;
        String str3 = null;
        while (true) {
            xmlPullParser.next();
            if (n0.f(xmlPullParser, "Title")) {
                str = xmlPullParser.nextText();
            } else if (n0.f(xmlPullParser, "Source")) {
                str2 = xmlPullParser.nextText();
            } else if (n0.f(xmlPullParser, "Copyright")) {
                str3 = xmlPullParser.nextText();
            } else {
                u(xmlPullParser);
            }
            String str4 = str3;
            if (n0.d(xmlPullParser, "ProgramInformation")) {
                return new g(str, str2, str4, m02, m03);
            }
            str3 = str4;
        }
    }

    protected h Y(XmlPullParser xmlPullParser, String str, String str2) {
        long j10;
        long j11;
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        String attributeValue2 = xmlPullParser.getAttributeValue(null, str2);
        if (attributeValue2 != null) {
            String[] split = attributeValue2.split("-");
            j10 = Long.parseLong(split[0]);
            if (split.length == 2) {
                j11 = (Long.parseLong(split[1]) - j10) + 1;
                return i(attributeValue, j10, j11);
            }
        } else {
            j10 = 0;
        }
        j11 = -1;
        return i(attributeValue, j10, j11);
    }

    protected a Z(XmlPullParser xmlPullParser, String str, String str2, String str3, int i10, int i11, float f10, int i12, int i13, String str4, List list, List list2, List list3, List list4, j jVar, long j10, long j11, long j12, long j13, long j14) {
        long j15;
        String str5;
        ArrayList arrayList;
        ArrayList arrayList2;
        ArrayList arrayList3;
        ArrayList arrayList4;
        ArrayList arrayList5;
        ArrayList arrayList6;
        int i14;
        long z10;
        j jVar2;
        c cVar = this;
        String attributeValue = xmlPullParser.getAttributeValue(null, "id");
        int Q = Q(xmlPullParser, "bandwidth", -1);
        String m02 = m0(xmlPullParser, "mimeType", str2);
        String m03 = m0(xmlPullParser, "codecs", str3);
        int Q2 = Q(xmlPullParser, "width", i10);
        int Q3 = Q(xmlPullParser, "height", i11);
        float O = O(xmlPullParser, f10);
        int Q4 = Q(xmlPullParser, "audioSamplingRate", i13);
        ArrayList arrayList7 = new ArrayList();
        ArrayList arrayList8 = new ArrayList();
        ArrayList arrayList9 = new ArrayList(list3);
        ArrayList arrayList10 = new ArrayList(list4);
        String str6 = str;
        int i15 = i12;
        long j16 = j12;
        boolean z11 = false;
        String str7 = null;
        j jVar3 = jVar;
        long j17 = j13;
        while (true) {
            xmlPullParser.next();
            if (!n0.f(xmlPullParser, "BaseURL")) {
                if (n0.f(xmlPullParser, "AudioChannelConfiguration")) {
                    jVar2 = jVar3;
                    str5 = str6;
                    arrayList4 = arrayList7;
                    i14 = y(xmlPullParser);
                } else if (n0.f(xmlPullParser, "SegmentBase")) {
                    j.e e02 = cVar.e0(xmlPullParser, (j.e) jVar3);
                    str5 = str6;
                    arrayList4 = arrayList7;
                    i14 = i15;
                    jVar2 = e02;
                } else {
                    if (n0.f(xmlPullParser, "SegmentList")) {
                        z10 = cVar.z(xmlPullParser, j17);
                        j15 = j16;
                        str5 = str6;
                        arrayList = arrayList10;
                        arrayList2 = arrayList8;
                        arrayList3 = arrayList9;
                        jVar3 = f0(xmlPullParser, (j.b) jVar3, j10, j11, j15, z10, j14);
                        arrayList4 = arrayList7;
                    } else {
                        j15 = j16;
                        str5 = str6;
                        arrayList = arrayList10;
                        arrayList2 = arrayList8;
                        arrayList3 = arrayList9;
                        if (n0.f(xmlPullParser, "SegmentTemplate")) {
                            z10 = cVar.z(xmlPullParser, j17);
                            arrayList4 = arrayList7;
                            jVar3 = g0(xmlPullParser, (j.c) jVar3, list4, j10, j11, j15, z10, j14);
                        } else {
                            arrayList4 = arrayList7;
                            if (n0.f(xmlPullParser, "ContentProtection")) {
                                Pair D = D(xmlPullParser);
                                Object obj = D.first;
                                if (obj != null) {
                                    str7 = (String) obj;
                                }
                                Object obj2 = D.second;
                                if (obj2 != null) {
                                    arrayList4.add((l.b) obj2);
                                }
                                i14 = i15;
                                j16 = j15;
                                arrayList6 = arrayList;
                                arrayList5 = arrayList2;
                                arrayList9 = arrayList3;
                                jVar2 = jVar3;
                            } else {
                                if (n0.f(xmlPullParser, "InbandEventStream")) {
                                    arrayList5 = arrayList2;
                                    arrayList5.add(G(xmlPullParser, "InbandEventStream"));
                                    arrayList6 = arrayList;
                                    arrayList9 = arrayList3;
                                } else {
                                    arrayList5 = arrayList2;
                                    if (n0.f(xmlPullParser, "EssentialProperty")) {
                                        arrayList9 = arrayList3;
                                        arrayList9.add(G(xmlPullParser, "EssentialProperty"));
                                        arrayList6 = arrayList;
                                    } else {
                                        arrayList9 = arrayList3;
                                        if (n0.f(xmlPullParser, "SupplementalProperty")) {
                                            arrayList6 = arrayList;
                                            arrayList6.add(G(xmlPullParser, "SupplementalProperty"));
                                        } else {
                                            arrayList6 = arrayList;
                                            u(xmlPullParser);
                                        }
                                    }
                                }
                                i14 = i15;
                                j16 = j15;
                                jVar2 = jVar3;
                            }
                        }
                    }
                    i14 = i15;
                    j17 = z10;
                    j16 = j15;
                    arrayList6 = arrayList;
                    arrayList5 = arrayList2;
                    arrayList9 = arrayList3;
                    jVar2 = jVar3;
                }
                arrayList5 = arrayList8;
                arrayList6 = arrayList10;
            } else if (z11) {
                j15 = j16;
                str5 = str6;
                arrayList4 = arrayList7;
                arrayList5 = arrayList8;
                arrayList6 = arrayList10;
                i14 = i15;
                j16 = j15;
                jVar2 = jVar3;
            } else {
                long z12 = cVar.z(xmlPullParser, j16);
                str5 = cVar.A(xmlPullParser, str6);
                z11 = true;
                arrayList4 = arrayList7;
                i14 = i15;
                jVar2 = jVar3;
                j16 = z12;
                arrayList5 = arrayList8;
                arrayList6 = arrayList10;
            }
            if (n0.d(xmlPullParser, "Representation")) {
                break;
            }
            arrayList10 = arrayList6;
            arrayList8 = arrayList5;
            arrayList7 = arrayList4;
            jVar3 = jVar2;
            cVar = this;
            i15 = i14;
            str6 = str5;
        }
        ArrayList arrayList11 = arrayList5;
        a1 f11 = f(attributeValue, m02, Q2, Q3, O, i14, Q4, Q, str4, list, list2, m03, arrayList9, arrayList6);
        if (jVar2 == null) {
            jVar2 = new j.e();
        }
        return new a(f11, str5, jVar2, str7, arrayList4, arrayList11, -1L);
    }

    protected int a0(List list) {
        int o02;
        int i10 = 0;
        for (int i11 = 0; i11 < list.size(); i11++) {
            d dVar = (d) list.get(i11);
            if (jf.b.a("urn:mpeg:dash:role:2011", dVar.f13673a)) {
                o02 = b0(dVar.f13674b);
            } else if (jf.b.a("urn:tva:metadata:cs:AudioPurposeCS:2007", dVar.f13673a)) {
                o02 = o0(dVar.f13674b);
            }
            i10 |= o02;
        }
        return i10;
    }

    protected int b0(String str) {
        if (str == null) {
            return 0;
        }
        switch (str) {
        }
        return 0;
    }

    protected pb.a c(int i10, int i11, List list, List list2, List list3, List list4) {
        return new pb.a(i10, i11, list, list2, list3, list4);
    }

    protected int c0(List list) {
        int i10 = 0;
        for (int i11 = 0; i11 < list.size(); i11++) {
            if (jf.b.a("http://dashif.org/guidelines/trickmode", ((d) list.get(i11)).f13673a)) {
                i10 |= 16384;
            }
        }
        return i10;
    }

    protected eb.a d(String str, String str2, long j10, long j11, byte[] bArr) {
        return new eb.a(str, str2, j11, j10, bArr);
    }

    protected int d0(List list) {
        int i10 = 0;
        for (int i11 = 0; i11 < list.size(); i11++) {
            d dVar = (d) list.get(i11);
            if (jf.b.a("urn:mpeg:dash:role:2011", dVar.f13673a)) {
                i10 |= b0(dVar.f13674b);
            }
        }
        return i10;
    }

    protected e e(String str, String str2, long j10, long[] jArr, eb.a[] aVarArr) {
        return new e(str, str2, j10, jArr, aVarArr);
    }

    protected j.e e0(XmlPullParser xmlPullParser, j.e eVar) {
        long j10;
        long j11;
        long T = T(xmlPullParser, "timescale", eVar != null ? eVar.f13708b : 1L);
        long T2 = T(xmlPullParser, "presentationTimeOffset", eVar != null ? eVar.f13709c : 0L);
        long j12 = eVar != null ? eVar.f13722d : 0L;
        long j13 = eVar != null ? eVar.f13723e : 0L;
        String attributeValue = xmlPullParser.getAttributeValue(null, "indexRange");
        if (attributeValue != null) {
            String[] split = attributeValue.split("-");
            j11 = Long.parseLong(split[0]);
            j10 = (Long.parseLong(split[1]) - j11) + 1;
        } else {
            j10 = j13;
            j11 = j12;
        }
        h hVar = eVar != null ? eVar.f13707a : null;
        do {
            xmlPullParser.next();
            if (n0.f(xmlPullParser, "Initialization")) {
                hVar = P(xmlPullParser);
            } else {
                u(xmlPullParser);
            }
        } while (!n0.d(xmlPullParser, "SegmentBase"));
        return n(hVar, T, T2, j11, j10);
    }

    protected a1 f(String str, String str2, int i10, int i11, float f10, int i12, int i13, int i14, String str3, List list, List list2, String str4, List list3, List list4) {
        String t10 = t(str2, str4);
        if ("audio/eac3".equals(t10)) {
            t10 = J(list4);
        }
        a1.b V = new a1.b().S(str).K(str2).e0(t10).I(str4).Z(i14).g0(k0(list)).c0(d0(list) | a0(list2) | c0(list3) | c0(list4)).V(str3);
        if (s.s(t10)) {
            V.j0(i10).Q(i11).P(f10);
        } else if (s.p(t10)) {
            V.H(i12).f0(i13);
        } else if (s.r(t10)) {
            V.F("application/cea-608".equals(t10) ? B(list2) : "application/cea-708".equals(t10) ? C(list2) : -1);
        }
        return V.E();
    }

    protected j.b f0(XmlPullParser xmlPullParser, j.b bVar, long j10, long j11, long j12, long j13, long j14) {
        long T = T(xmlPullParser, "timescale", bVar != null ? bVar.f13708b : 1L);
        long T2 = T(xmlPullParser, "presentationTimeOffset", bVar != null ? bVar.f13709c : 0L);
        long T3 = T(xmlPullParser, "duration", bVar != null ? bVar.f13711e : -9223372036854775807L);
        long T4 = T(xmlPullParser, "startNumber", bVar != null ? bVar.f13710d : 1L);
        long s10 = s(j12, j13);
        List list = null;
        List list2 = null;
        h hVar = null;
        do {
            xmlPullParser.next();
            if (n0.f(xmlPullParser, "Initialization")) {
                hVar = P(xmlPullParser);
            } else if (n0.f(xmlPullParser, "SegmentTimeline")) {
                list = h0(xmlPullParser, T, j11);
            } else if (n0.f(xmlPullParser, "SegmentURL")) {
                if (list2 == null) {
                    list2 = new ArrayList();
                }
                list2.add(i0(xmlPullParser));
            } else {
                u(xmlPullParser);
            }
        } while (!n0.d(xmlPullParser, "SegmentList"));
        if (bVar != null) {
            if (hVar == null) {
                hVar = bVar.f13707a;
            }
            if (list == null) {
                list = bVar.f13712f;
            }
            if (list2 == null) {
                list2 = bVar.f13716j;
            }
        }
        return k(hVar, T, T2, T4, T3, list, s10, list2, j14, j10);
    }

    protected b g(long j10, long j11, long j12, boolean z10, long j13, long j14, long j15, long j16, g gVar, n nVar, k kVar, Uri uri, List list) {
        return new b(j10, j11, j12, z10, j13, j14, j15, j16, gVar, nVar, kVar, uri, list);
    }

    protected j.c g0(XmlPullParser xmlPullParser, j.c cVar, List list, long j10, long j11, long j12, long j13, long j14) {
        long T = T(xmlPullParser, "timescale", cVar != null ? cVar.f13708b : 1L);
        long T2 = T(xmlPullParser, "presentationTimeOffset", cVar != null ? cVar.f13709c : 0L);
        long T3 = T(xmlPullParser, "duration", cVar != null ? cVar.f13711e : -9223372036854775807L);
        long T4 = T(xmlPullParser, "startNumber", cVar != null ? cVar.f13710d : 1L);
        long S = S(list);
        long s10 = s(j12, j13);
        List list2 = null;
        m p02 = p0(xmlPullParser, "media", cVar != null ? cVar.f13718k : null);
        m p03 = p0(xmlPullParser, "initialization", cVar != null ? cVar.f13717j : null);
        h hVar = null;
        do {
            xmlPullParser.next();
            if (n0.f(xmlPullParser, "Initialization")) {
                hVar = P(xmlPullParser);
            } else if (n0.f(xmlPullParser, "SegmentTimeline")) {
                list2 = h0(xmlPullParser, T, j11);
            } else {
                u(xmlPullParser);
            }
        } while (!n0.d(xmlPullParser, "SegmentTemplate"));
        if (cVar != null) {
            if (hVar == null) {
                hVar = cVar.f13707a;
            }
            if (list2 == null) {
                list2 = cVar.f13712f;
            }
        }
        return l(hVar, T, T2, T4, S, T3, list2, s10, p03, p02, j14, j10);
    }

    protected f h(String str, long j10, List list, List list2, d dVar) {
        return new f(str, j10, list, list2, dVar);
    }

    protected List h0(XmlPullParser xmlPullParser, long j10, long j11) {
        ArrayList arrayList = new ArrayList();
        long j12 = 0;
        long j13 = -9223372036854775807L;
        boolean z10 = false;
        int i10 = 0;
        do {
            xmlPullParser.next();
            if (n0.f(xmlPullParser, "S")) {
                long T = T(xmlPullParser, "t", -9223372036854775807L);
                if (z10) {
                    j12 = b(arrayList, j12, j13, i10, T);
                }
                if (T == -9223372036854775807L) {
                    T = j12;
                }
                j13 = T(xmlPullParser, "d", -9223372036854775807L);
                i10 = Q(xmlPullParser, "r", 0);
                z10 = true;
                j12 = T;
            } else {
                u(xmlPullParser);
            }
        } while (!n0.d(xmlPullParser, "SegmentTimeline"));
        if (z10) {
            b(arrayList, j12, j13, i10, m0.H0(j11, j10, 1000L));
        }
        return arrayList;
    }

    protected h i(String str, long j10, long j11) {
        return new h(str, j10, j11);
    }

    protected h i0(XmlPullParser xmlPullParser) {
        return Y(xmlPullParser, "media", "mediaRange");
    }

    protected i j(a aVar, String str, String str2, ArrayList arrayList, ArrayList arrayList2) {
        a1.b a10 = aVar.f13666a.a();
        if (str != null) {
            a10.U(str);
        }
        String str3 = aVar.f13669d;
        if (str3 != null) {
            str2 = str3;
        }
        ArrayList arrayList3 = aVar.f13670e;
        arrayList3.addAll(arrayList);
        if (!arrayList3.isEmpty()) {
            r(arrayList3);
            a10.L(new na.l(str2, arrayList3));
        }
        ArrayList arrayList4 = aVar.f13671f;
        arrayList4.addAll(arrayList2);
        return i.o(aVar.f13672g, a10.E(), aVar.f13667b, aVar.f13668c, arrayList4);
    }

    protected int j0(String str) {
        if (str == null) {
            return 0;
        }
        if (str.equals("forced_subtitle")) {
            return 2;
        }
        return !str.equals("main") ? 0 : 1;
    }

    protected j.b k(h hVar, long j10, long j11, long j12, long j13, List list, long j14, List list2, long j15, long j16) {
        return new j.b(hVar, j10, j11, j12, j13, list, j14, list2, ia.p.c(j15), ia.p.c(j16));
    }

    protected int k0(List list) {
        int i10 = 0;
        for (int i11 = 0; i11 < list.size(); i11++) {
            d dVar = (d) list.get(i11);
            if (jf.b.a("urn:mpeg:dash:role:2011", dVar.f13673a)) {
                i10 |= j0(dVar.f13674b);
            }
        }
        return i10;
    }

    protected j.c l(h hVar, long j10, long j11, long j12, long j13, long j14, List list, long j15, m mVar, m mVar2, long j16, long j17) {
        return new j.c(hVar, j10, j11, j12, j13, j14, list, j15, mVar, mVar2, ia.p.c(j16), ia.p.c(j17));
    }

    protected k l0(XmlPullParser xmlPullParser) {
        long j10 = -9223372036854775807L;
        long j11 = -9223372036854775807L;
        long j12 = -9223372036854775807L;
        float f10 = -3.4028235E38f;
        float f11 = -3.4028235E38f;
        while (true) {
            xmlPullParser.next();
            if (n0.f(xmlPullParser, "Latency")) {
                j10 = T(xmlPullParser, "target", -9223372036854775807L);
                j11 = T(xmlPullParser, "min", -9223372036854775807L);
                j12 = T(xmlPullParser, "max", -9223372036854775807L);
            } else if (n0.f(xmlPullParser, "PlaybackRate")) {
                f10 = N(xmlPullParser, "min", -3.4028235E38f);
                f11 = N(xmlPullParser, "max", -3.4028235E38f);
            }
            long j13 = j10;
            long j14 = j11;
            long j15 = j12;
            float f12 = f10;
            float f13 = f11;
            if (n0.d(xmlPullParser, "ServiceDescription")) {
                return new k(j13, j14, j15, f12, f13);
            }
            j10 = j13;
            j11 = j14;
            j12 = j15;
            f10 = f12;
            f11 = f13;
        }
    }

    protected j.d m(long j10, long j11) {
        return new j.d(j10, j11);
    }

    protected j.e n(h hVar, long j10, long j11, long j12, long j13) {
        return new j.e(hVar, j10, j11, j12, j13);
    }

    protected n o(String str, String str2) {
        return new n(str, str2);
    }

    protected int o0(String str) {
        if (str == null) {
            return 0;
        }
        switch (str) {
        }
        return 0;
    }

    protected m p0(XmlPullParser xmlPullParser, String str, m mVar) {
        String attributeValue = xmlPullParser.getAttributeValue(null, str);
        return attributeValue != null ? m.b(attributeValue) : mVar;
    }

    protected n q0(XmlPullParser xmlPullParser) {
        return o(xmlPullParser.getAttributeValue(null, "schemeIdUri"), xmlPullParser.getAttributeValue(null, "value"));
    }

    @Override
    public b a(Uri uri, InputStream inputStream) {
        try {
            XmlPullParser newPullParser = this.f13665a.newPullParser();
            newPullParser.setInput(inputStream, null);
            if (newPullParser.next() == 2 && "MPD".equals(newPullParser.getName())) {
                return U(newPullParser, uri.toString());
            }
            throw new o1("inputStream does not contain a valid media presentation description");
        } catch (XmlPullParserException e10) {
            throw new o1(e10);
        }
    }

    protected pb.a w(XmlPullParser xmlPullParser, String str, j jVar, long j10, long j11, long j12, long j13, long j14) {
        String str2;
        long j15;
        String str3;
        ArrayList arrayList;
        ArrayList arrayList2;
        ArrayList arrayList3;
        ArrayList arrayList4;
        ArrayList arrayList5;
        String str4;
        Object obj;
        ArrayList arrayList6;
        int i10;
        ArrayList arrayList7;
        long z10;
        c cVar = this;
        XmlPullParser xmlPullParser2 = xmlPullParser;
        int Q = Q(xmlPullParser2, "id", -1);
        int E = E(xmlPullParser);
        String attributeValue = xmlPullParser2.getAttributeValue(null, "mimeType");
        String attributeValue2 = xmlPullParser2.getAttributeValue(null, "codecs");
        int Q2 = Q(xmlPullParser2, "width", -1);
        int Q3 = Q(xmlPullParser2, "height", -1);
        float O = O(xmlPullParser2, -1.0f);
        int Q4 = Q(xmlPullParser2, "audioSamplingRate", -1);
        String str5 = "lang";
        String attributeValue3 = xmlPullParser2.getAttributeValue(null, "lang");
        String attributeValue4 = xmlPullParser2.getAttributeValue(null, "label");
        ArrayList arrayList8 = new ArrayList();
        ArrayList arrayList9 = new ArrayList();
        ArrayList arrayList10 = new ArrayList();
        ArrayList arrayList11 = new ArrayList();
        ArrayList arrayList12 = new ArrayList();
        ArrayList arrayList13 = new ArrayList();
        ArrayList arrayList14 = new ArrayList();
        String str6 = str;
        j jVar2 = jVar;
        int i11 = E;
        int i12 = -1;
        String str7 = attributeValue3;
        String str8 = attributeValue4;
        String str9 = null;
        boolean z11 = false;
        long j16 = j11;
        long j17 = j12;
        while (true) {
            xmlPullParser.next();
            if (n0.f(xmlPullParser2, "BaseURL")) {
                if (z11) {
                    j15 = j16;
                    arrayList6 = arrayList14;
                    arrayList = arrayList13;
                    arrayList2 = arrayList12;
                    arrayList3 = arrayList11;
                    arrayList4 = arrayList10;
                    arrayList7 = arrayList9;
                    arrayList5 = arrayList8;
                    str4 = str5;
                    i10 = i11;
                    str2 = str7;
                    obj = null;
                    str3 = str6;
                    str6 = str3;
                    str7 = str2;
                    i11 = i10;
                } else {
                    j16 = cVar.z(xmlPullParser2, j16);
                    str6 = cVar.A(xmlPullParser2, str6);
                    z11 = true;
                    j15 = j16;
                    arrayList6 = arrayList14;
                    arrayList = arrayList13;
                    arrayList2 = arrayList12;
                    arrayList3 = arrayList11;
                    arrayList4 = arrayList10;
                    arrayList7 = arrayList9;
                    arrayList5 = arrayList8;
                    str4 = str5;
                    obj = null;
                }
            } else if (n0.f(xmlPullParser2, "ContentProtection")) {
                Pair D = D(xmlPullParser);
                long j18 = j17;
                Object obj2 = D.first;
                if (obj2 != null) {
                    str9 = (String) obj2;
                }
                Object obj3 = D.second;
                if (obj3 != null) {
                    arrayList8.add((l.b) obj3);
                }
                j17 = j18;
                j15 = j16;
                arrayList6 = arrayList14;
                arrayList = arrayList13;
                arrayList2 = arrayList12;
                arrayList3 = arrayList11;
                arrayList4 = arrayList10;
                arrayList7 = arrayList9;
                arrayList5 = arrayList8;
                str4 = str5;
                obj = null;
            } else {
                long j19 = j17;
                if (n0.f(xmlPullParser2, "ContentComponent")) {
                    str7 = q(str7, xmlPullParser2.getAttributeValue(null, str5));
                    i11 = p(i11, E(xmlPullParser));
                    j15 = j16;
                    arrayList6 = arrayList14;
                    arrayList = arrayList13;
                    arrayList2 = arrayList12;
                    arrayList3 = arrayList11;
                    arrayList4 = arrayList10;
                    arrayList7 = arrayList9;
                    arrayList5 = arrayList8;
                    str4 = str5;
                    obj = null;
                    j17 = j19;
                } else {
                    int i13 = i11;
                    String str10 = str7;
                    if (n0.f(xmlPullParser2, "Role")) {
                        arrayList11.add(G(xmlPullParser2, "Role"));
                    } else if (n0.f(xmlPullParser2, "AudioChannelConfiguration")) {
                        i12 = y(xmlPullParser);
                        str7 = str10;
                        j15 = j16;
                        arrayList = arrayList13;
                        arrayList2 = arrayList12;
                        arrayList3 = arrayList11;
                        arrayList4 = arrayList10;
                        arrayList7 = arrayList9;
                        arrayList5 = arrayList8;
                        str4 = str5;
                        obj = null;
                        i11 = i13;
                        j17 = j19;
                        arrayList6 = arrayList14;
                    } else if (n0.f(xmlPullParser2, "Accessibility")) {
                        arrayList10.add(G(xmlPullParser2, "Accessibility"));
                    } else if (n0.f(xmlPullParser2, "EssentialProperty")) {
                        arrayList12.add(G(xmlPullParser2, "EssentialProperty"));
                    } else if (n0.f(xmlPullParser2, "SupplementalProperty")) {
                        arrayList13.add(G(xmlPullParser2, "SupplementalProperty"));
                    } else if (n0.f(xmlPullParser2, "Representation")) {
                        j15 = j16;
                        arrayList = arrayList13;
                        arrayList2 = arrayList12;
                        arrayList3 = arrayList11;
                        arrayList4 = arrayList10;
                        arrayList5 = arrayList8;
                        str4 = str5;
                        obj = null;
                        a Z = Z(xmlPullParser, str6, attributeValue, attributeValue2, Q2, Q3, O, i12, Q4, str10, arrayList3, arrayList4, arrayList2, arrayList, jVar2, j13, j10, j15, j19, j14);
                        int p10 = p(i13, s.l(Z.f13666a.A));
                        arrayList6 = arrayList14;
                        arrayList6.add(Z);
                        xmlPullParser2 = xmlPullParser;
                        str6 = str6;
                        arrayList7 = arrayList9;
                        str7 = str10;
                        i11 = p10;
                        j17 = j19;
                    } else {
                        str2 = str10;
                        j15 = j16;
                        str3 = str6;
                        arrayList = arrayList13;
                        arrayList2 = arrayList12;
                        arrayList3 = arrayList11;
                        arrayList4 = arrayList10;
                        ArrayList arrayList15 = arrayList9;
                        arrayList5 = arrayList8;
                        str4 = str5;
                        obj = null;
                        arrayList6 = arrayList14;
                        if (n0.f(xmlPullParser, "SegmentBase")) {
                            jVar2 = e0(xmlPullParser, (j.e) jVar2);
                            str6 = str3;
                            arrayList7 = arrayList15;
                            j17 = j19;
                            str7 = str2;
                            i11 = i13;
                            xmlPullParser2 = xmlPullParser;
                        } else {
                            if (n0.f(xmlPullParser, "SegmentList")) {
                                z10 = z(xmlPullParser, j19);
                                i10 = i13;
                                jVar2 = f0(xmlPullParser, (j.b) jVar2, j13, j10, j15, z10, j14);
                                xmlPullParser2 = xmlPullParser;
                            } else {
                                j17 = j19;
                                i10 = i13;
                                if (n0.f(xmlPullParser, "SegmentTemplate")) {
                                    z10 = z(xmlPullParser, j17);
                                    xmlPullParser2 = xmlPullParser;
                                    jVar2 = g0(xmlPullParser, (j.c) jVar2, arrayList, j13, j10, j15, z10, j14);
                                } else {
                                    xmlPullParser2 = xmlPullParser;
                                    if (n0.f(xmlPullParser2, "InbandEventStream")) {
                                        arrayList7 = arrayList15;
                                        arrayList7.add(G(xmlPullParser2, "InbandEventStream"));
                                    } else {
                                        arrayList7 = arrayList15;
                                        if (n0.f(xmlPullParser2, "Label")) {
                                            str8 = R(xmlPullParser);
                                        } else if (n0.e(xmlPullParser)) {
                                            x(xmlPullParser);
                                        }
                                    }
                                    str6 = str3;
                                    str7 = str2;
                                    i11 = i10;
                                }
                            }
                            j17 = z10;
                            str6 = str3;
                            arrayList7 = arrayList15;
                            str7 = str2;
                            i11 = i10;
                        }
                    }
                    str2 = str10;
                    j15 = j16;
                    str3 = str6;
                    arrayList = arrayList13;
                    arrayList2 = arrayList12;
                    arrayList3 = arrayList11;
                    arrayList4 = arrayList10;
                    arrayList7 = arrayList9;
                    arrayList5 = arrayList8;
                    str4 = str5;
                    obj = null;
                    i10 = i13;
                    j17 = j19;
                    arrayList6 = arrayList14;
                    str6 = str3;
                    str7 = str2;
                    i11 = i10;
                }
            }
            if (n0.d(xmlPullParser2, "AdaptationSet")) {
                break;
            }
            arrayList9 = arrayList7;
            arrayList14 = arrayList6;
            j16 = j15;
            arrayList13 = arrayList;
            arrayList12 = arrayList2;
            arrayList11 = arrayList3;
            arrayList10 = arrayList4;
            arrayList8 = arrayList5;
            str5 = str4;
            cVar = this;
        }
        ArrayList arrayList16 = new ArrayList(arrayList6.size());
        for (int i14 = 0; i14 < arrayList6.size(); i14++) {
            arrayList16.add(j((a) arrayList6.get(i14), str8, str9, arrayList5, arrayList7));
        }
        return c(Q, i11, arrayList16, arrayList4, arrayList2, arrayList);
    }

    protected void x(XmlPullParser xmlPullParser) {
        u(xmlPullParser);
    }

    protected int y(XmlPullParser xmlPullParser) {
        char c10;
        String m02 = m0(xmlPullParser, "schemeIdUri", null);
        m02.hashCode();
        int i10 = -1;
        switch (m02.hashCode()) {
            case -1352850286:
                if (m02.equals("urn:mpeg:dash:23003:3:audio_channel_configuration:2011")) {
                    c10 = 0;
                    break;
                }
                c10 = 65535;
                break;
            case -1138141449:
                if (m02.equals("tag:dolby.com,2014:dash:audio_channel_configuration:2011")) {
                    c10 = 1;
                    break;
                }
                c10 = 65535;
                break;
            case -986633423:
                if (m02.equals("urn:mpeg:mpegB:cicp:ChannelConfiguration")) {
                    c10 = 2;
                    break;
                }
                c10 = 65535;
                break;
            case 2036691300:
                if (m02.equals("urn:dolby:dash:audio_channel_configuration:2011")) {
                    c10 = 3;
                    break;
                }
                c10 = 65535;
                break;
            default:
                c10 = 65535;
                break;
        }
        switch (c10) {
            case 0:
                i10 = Q(xmlPullParser, "value", -1);
                break;
            case 1:
            case 3:
                i10 = H(xmlPullParser);
                break;
            case 2:
                i10 = V(xmlPullParser);
                break;
        }
        do {
            xmlPullParser.next();
        } while (!n0.d(xmlPullParser, "AudioChannelConfiguration"));
        return i10;
    }

    protected long z(XmlPullParser xmlPullParser, long j10) {
        String attributeValue = xmlPullParser.getAttributeValue(null, "availabilityTimeOffset");
        if (attributeValue == null) {
            return j10;
        }
        if ("INF".equals(attributeValue)) {
            return Long.MAX_VALUE;
        }
        return (long) (Float.parseFloat(attributeValue) * 1000000.0f);
    }
}