package defpackage;

import android.text.TextUtils;
import j$.util.Objects;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.UUID;

/* renamed from: ᵤᵛᵖ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3446 {

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final float f12898;

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public int f12899;

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public final int f12900;

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

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public final int f12902;

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public final int f12903;

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

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

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public final C0938 f12906;

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

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

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public final int f12909;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public final int f12910;

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public final boolean f12911;

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public final int f12912;

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public final int f12913;

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

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public final C2119 f12915;

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public final int f12916;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public final byte[] f12917;

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public final int f12918;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final int f12919;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final int f12920;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final float f12921;

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

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public final int f12923;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final int f12924;

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public final long f12925;

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public final String f12926;

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public final int f12927;

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public final String f12928;

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public final String f12929;

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

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public final int f12931;

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

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public final List f12933;

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

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

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public final int f12936;

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

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final int f12938;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final int f12939;

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public final int f12940;

    static {
        new C2153().m5781();
        AbstractC3558.m8111(0);
        AbstractC3558.m8111(1);
        AbstractC3558.m8111(2);
        AbstractC3558.m8111(3);
        AbstractC3558.m8111(4);
        AbstractC1327.m4094(5, 6, 7, 8, 9);
        AbstractC1327.m4094(10, 11, 12, 13, 14);
        AbstractC1327.m4094(15, 16, 17, 18, 19);
        AbstractC1327.m4094(20, 21, 22, 23, 24);
        AbstractC1327.m4094(25, 26, 27, 28, 29);
        AbstractC1327.m4094(30, 31, 32, 33, 34);
        AbstractC3558.m8111(35);
        AbstractC3558.m8111(36);
        AbstractC3558.m8111(37);
    }

    public C3446(C2153 c2153) throws MissingResourceException {
        boolean z;
        String str;
        this.f12922 = c2153.f8512;
        String strM8109 = AbstractC3558.m8109(c2153.f8527);
        this.f12937 = strM8109;
        if (c2153.f8498.isEmpty() && c2153.f8520 != null) {
            this.f12908 = AbstractC2692.m6702(new C4577(strM8109, c2153.f8520));
            this.f12930 = c2153.f8520;
        } else if (!c2153.f8498.isEmpty() && c2153.f8520 == null) {
            AbstractC2692 abstractC2692 = c2153.f8498;
            this.f12908 = abstractC2692;
            int size = abstractC2692.size();
            int i = 0;
            while (true) {
                if (i >= size) {
                    str = ((C4577) abstractC2692.get(0)).f17013;
                    break;
                }
                Object obj = abstractC2692.get(i);
                i++;
                C4577 c4577 = (C4577) obj;
                if (TextUtils.equals(c4577.f17012, strM8109)) {
                    str = c4577.f17013;
                    break;
                }
            }
            this.f12930 = str;
        } else if (c2153.f8498.isEmpty() && c2153.f8520 == null) {
            z = true;
            ᵛᵾˏ.ᵿʗᵝʽ(z);
            this.f12908 = c2153.f8498;
            this.f12930 = c2153.f8520;
        } else {
            for (int i2 = 0; i2 < c2153.f8498.size(); i2++) {
                if (((C4577) c2153.f8498.get(i2)).f17013.equals(c2153.f8520)) {
                    z = true;
                    break;
                }
            }
            z = false;
            ᵛᵾˏ.ᵿʗᵝʽ(z);
            this.f12908 = c2153.f8498;
            this.f12930 = c2153.f8520;
        }
        this.f12901 = c2153.f8492;
        ᵛᵾˏ.ᵢˇᵭ("Auxiliary track type must only be set to a value other than AUXILIARY_TRACK_TYPE_UNDEFINED only when ROLE_FLAG_AUXILIARY is set", c2153.f8495 == 0 || (c2153.f8497 & 32768) != 0);
        this.f12907 = c2153.f8497;
        this.f12905 = c2153.f8495;
        int i3 = c2153.f8525;
        this.f12935 = i3;
        int i4 = c2153.f8504;
        this.f12914 = i4;
        this.f12932 = i4 != -1 ? i4 : i3;
        this.f12934 = c2153.f8522;
        this.f12904 = c2153.f8524;
        this.f12928 = c2153.f8494;
        this.f12926 = c2153.f8518;
        this.f12929 = c2153.f8516;
        this.f12903 = c2153.f8519;
        this.f12916 = c2153.f8493;
        List list = c2153.f8506;
        this.f12933 = list == null ? Collections.EMPTY_LIST : list;
        C2119 c2119 = c2153.f8523;
        this.f12915 = c2119;
        this.f12925 = c2153.f8505;
        this.f12911 = c2153.f8515;
        this.f12924 = c2153.f8501;
        this.f12920 = c2153.f8514;
        this.f12939 = c2153.f8510;
        this.f12938 = c2153.f8529;
        this.f12921 = c2153.f8528;
        int i5 = c2153.f8511;
        this.f12919 = i5 == -1 ? 0 : i5;
        float f = c2153.f8509;
        this.f12898 = f == -1.0f ? 1.0f : f;
        this.f12917 = c2153.f8490;
        this.f12910 = c2153.f8507;
        this.f12906 = c2153.f8500;
        this.f12927 = c2153.f8496;
        this.f12923 = c2153.f8517;
        this.f12936 = c2153.f8513;
        this.f12912 = c2153.f8526;
        int i6 = c2153.f8502;
        this.f12931 = i6 == -1 ? 0 : i6;
        int i7 = c2153.f8521;
        this.f12900 = i7 != -1 ? i7 : 0;
        this.f12940 = c2153.f8491;
        this.f12913 = c2153.f8530;
        this.f12918 = c2153.f8503;
        this.f12909 = c2153.f8508;
        int i8 = c2153.f8499;
        if (i8 != 0 || c2119 == null) {
            this.f12902 = i8;
        } else {
            this.f12902 = 1;
        }
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public static String m7828(C3446 c3446) {
        char c;
        int i;
        String str;
        String str2;
        if (c3446 == null) {
            return "null";
        }
        int i2 = c3446.f12901;
        AbstractC2692 abstractC2692 = c3446.f12908;
        String str3 = c3446.f12937;
        int i3 = c3446.f12936;
        int i4 = c3446.f12923;
        int i5 = c3446.f12927;
        float f = c3446.f12921;
        C0938 c0938 = c3446.f12906;
        float f2 = c3446.f12898;
        int i6 = c3446.f12938;
        int i7 = c3446.f12939;
        int i8 = c3446.f12920;
        int i9 = c3446.f12924;
        C2119 c2119 = c3446.f12915;
        String str4 = c3446.f12934;
        int i10 = c3446.f12932;
        String str5 = c3446.f12928;
        String str6 = c3446.f12926;
        int i11 = c3446.f12907;
        C0204 c0204 = new C0204(String.valueOf(','));
        StringBuilder sbM4096 = AbstractC1327.m4096("id=");
        sbM4096.append(c3446.f12922);
        sbM4096.append(", mimeType=");
        sbM4096.append(c3446.f12929);
        if (str6 != null) {
            sbM4096.append(", container=");
            sbM4096.append(str6);
        }
        if (str5 != null) {
            sbM4096.append(", primaryGroupId=");
            sbM4096.append(str5);
        }
        if (i10 != -1) {
            sbM4096.append(", bitrate=");
            sbM4096.append(i10);
        }
        if (str4 != null) {
            sbM4096.append(", codecs=");
            sbM4096.append(str4);
        }
        if (c2119 != null) {
            LinkedHashSet linkedHashSet = new LinkedHashSet();
            for (int i12 = 0; i12 < c2119.f8367; i12++) {
                UUID uuid = c2119.f8366[i12].f6161;
                if (uuid.equals(AbstractC1360.f5607)) {
                    linkedHashSet.add("cenc");
                } else if (uuid.equals(AbstractC1360.f5605)) {
                    linkedHashSet.add("clearkey");
                } else if (uuid.equals(AbstractC1360.f5604)) {
                    linkedHashSet.add("playready");
                } else if (uuid.equals(AbstractC1360.f5608)) {
                    linkedHashSet.add("widevine");
                } else if (uuid.equals(AbstractC1360.f5606)) {
                    linkedHashSet.add("universal");
                } else {
                    linkedHashSet.add("unknown (" + uuid + ")");
                }
            }
            c = 0;
            sbM4096.append(", drm=[");
            c0204.m1476(sbM4096, linkedHashSet.iterator());
            sbM4096.append(']');
        } else {
            c = 0;
        }
        if (i9 != -1 && i8 != -1) {
            sbM4096.append(", res=");
            sbM4096.append(i9);
            sbM4096.append("x");
            sbM4096.append(i8);
        }
        if (i7 != -1 && i6 != -1) {
            sbM4096.append(", decRes=");
            sbM4096.append(i7);
            sbM4096.append("x");
            sbM4096.append(i6);
        }
        double d = f2;
        int i13 = AbstractC5277.f19756;
        if (Math.copySign(d - 1.0d, 1.0d) > 0.001d && d != 1.0d && (!Double.isNaN(d) || !Double.isNaN(1.0d))) {
            sbM4096.append(", par=");
            Object[] objArr = new Object[1];
            objArr[c] = Float.valueOf(f2);
            String str7 = AbstractC3558.f13329;
            sbM4096.append(String.format(Locale.US, "%.3f", objArr));
        }
        if (c0938 != null) {
            int i14 = c0938.f4239;
            int i15 = c0938.f4237;
            if ((i15 != -1 && i14 != -1) || c0938.m3193()) {
                sbM4096.append(", color=");
                if (c0938.m3193()) {
                    String strM3192 = C0938.m3192(c0938.f4241);
                    String strM3191 = C0938.m3191(c0938.f4242);
                    String strM3190 = C0938.m3190(c0938.f4240);
                    Locale locale = Locale.US;
                    str2 = strM3192 + "/" + strM3191 + "/" + strM3190;
                } else {
                    str2 = "NA/NA/NA";
                }
                sbM4096.append(str2 + "/" + ((i15 == -1 || i14 == -1) ? "NA/NA" : i15 + "/" + i14));
            }
        }
        if (f != -1.0f) {
            sbM4096.append(", fps=");
            sbM4096.append(f);
        }
        if (i5 != -1) {
            sbM4096.append(", maxSubLayers=");
            sbM4096.append(i5);
        }
        if (i4 != -1) {
            sbM4096.append(", channels=");
            sbM4096.append(i4);
        }
        if (i3 != -1) {
            sbM4096.append(", sample_rate=");
            sbM4096.append(i3);
        }
        if (str3 != null) {
            sbM4096.append(", language=");
            sbM4096.append(str3);
        }
        if (!abstractC2692.isEmpty()) {
            sbM4096.append(", labels=[");
            c0204.m1476(sbM4096, ˀʾˀᵛ.ᵮᵠـˌ(abstractC2692, new C2834(7)).iterator());
            sbM4096.append("]");
        }
        if (i2 != 0) {
            sbM4096.append(", selectionFlags=[");
            String str8 = AbstractC3558.f13329;
            ArrayList arrayList = new ArrayList();
            if ((i2 & 4) != 0) {
                arrayList.add("auto");
            }
            if ((i2 & 1) != 0) {
                arrayList.add("default");
            }
            if ((i2 & 2) != 0) {
                arrayList.add("forced");
            }
            c0204.m1476(sbM4096, arrayList.iterator());
            sbM4096.append("]");
        }
        if (i11 != 0) {
            sbM4096.append(", roleFlags=[");
            String str9 = AbstractC3558.f13329;
            ArrayList arrayList2 = new ArrayList();
            if ((i11 & 1) != 0) {
                arrayList2.add("main");
            }
            if ((i11 & 2) != 0) {
                arrayList2.add("alt");
            }
            if ((i11 & 4) != 0) {
                arrayList2.add("supplementary");
            }
            if ((i11 & 8) != 0) {
                arrayList2.add("commentary");
            }
            if ((i11 & 16) != 0) {
                arrayList2.add("dub");
            }
            if ((i11 & 32) != 0) {
                arrayList2.add("emergency");
            }
            if ((i11 & 64) != 0) {
                arrayList2.add("caption");
            }
            i = i11;
            if ((i & 128) != 0) {
                arrayList2.add("subtitle");
            }
            if ((i & 256) != 0) {
                arrayList2.add("sign");
            }
            if ((i & 512) != 0) {
                arrayList2.add("describes-video");
            }
            if ((i & 1024) != 0) {
                arrayList2.add("describes-music");
            }
            if ((i & 2048) != 0) {
                arrayList2.add("enhanced-intelligibility");
            }
            if ((i & 4096) != 0) {
                arrayList2.add("transcribes-dialog");
            }
            if ((i & 8192) != 0) {
                arrayList2.add("easy-read");
            }
            if ((i & 16384) != 0) {
                arrayList2.add("trick-play");
            }
            if ((i & 32768) != 0) {
                arrayList2.add("auxiliary");
            }
            c0204.m1476(sbM4096, arrayList2.iterator());
            sbM4096.append("]");
        } else {
            i = i11;
        }
        if ((i & 32768) != 0) {
            sbM4096.append(", auxiliaryTrackType=");
            int i16 = c3446.f12905;
            String str10 = AbstractC3558.f13329;
            if (i16 == 0) {
                str = "undefined";
            } else if (i16 == 1) {
                str = "original";
            } else if (i16 == 2) {
                str = "depth-linear";
            } else if (i16 == 3) {
                str = "depth-inverse";
            } else {
                if (i16 != 4) {
                    ᵹˉᵞ.ᵳٴᵶ("Unsupported auxiliary track type");
                    return null;
                }
                str = "depth metadata";
            }
            sbM4096.append(str);
        }
        return sbM4096.toString();
    }

    public final boolean equals(Object obj) {
        int i;
        if (this == obj) {
            return true;
        }
        if (obj == null || C3446.class != obj.getClass()) {
            return false;
        }
        C3446 c3446 = (C3446) obj;
        int i2 = this.f12899;
        return (i2 == 0 || (i = c3446.f12899) == 0 || i2 == i) && this.f12901 == c3446.f12901 && this.f12907 == c3446.f12907 && this.f12905 == c3446.f12905 && this.f12935 == c3446.f12935 && this.f12914 == c3446.f12914 && this.f12903 == c3446.f12903 && this.f12925 == c3446.f12925 && this.f12924 == c3446.f12924 && this.f12920 == c3446.f12920 && this.f12939 == c3446.f12939 && this.f12938 == c3446.f12938 && this.f12919 == c3446.f12919 && this.f12910 == c3446.f12910 && this.f12927 == c3446.f12927 && this.f12923 == c3446.f12923 && this.f12936 == c3446.f12936 && this.f12912 == c3446.f12912 && this.f12931 == c3446.f12931 && this.f12900 == c3446.f12900 && this.f12940 == c3446.f12940 && this.f12918 == c3446.f12918 && this.f12909 == c3446.f12909 && this.f12902 == c3446.f12902 && Float.compare(this.f12921, c3446.f12921) == 0 && Float.compare(this.f12898, c3446.f12898) == 0 && Objects.equals(this.f12922, c3446.f12922) && Objects.equals(this.f12930, c3446.f12930) && this.f12908.equals(c3446.f12908) && Objects.equals(this.f12934, c3446.f12934) && Objects.equals(this.f12928, c3446.f12928) && Objects.equals(this.f12926, c3446.f12926) && Objects.equals(this.f12929, c3446.f12929) && Objects.equals(this.f12937, c3446.f12937) && Arrays.equals(this.f12917, c3446.f12917) && Objects.equals(this.f12904, c3446.f12904) && Objects.equals(this.f12906, c3446.f12906) && Objects.equals(this.f12915, c3446.f12915) && m7830(c3446);
    }

    public final int hashCode() {
        if (this.f12899 == 0) {
            String str = this.f12922;
            int iHashCode = (527 + (str == null ? 0 : str.hashCode())) * 31;
            String str2 = this.f12930;
            int iHashCode2 = (this.f12908.hashCode() + ((iHashCode + (str2 == null ? 0 : str2.hashCode())) * 31)) * 31;
            String str3 = this.f12937;
            int iHashCode3 = (((((((((((iHashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31) + this.f12901) * 31) + this.f12907) * 31) + this.f12905) * 31) + this.f12935) * 31) + this.f12914) * 31;
            String str4 = this.f12934;
            int iHashCode4 = (iHashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
            C3034 c3034 = this.f12904;
            int iHashCode5 = (iHashCode4 + (c3034 == null ? 0 : c3034.hashCode())) * 961;
            String str5 = this.f12928;
            int iHashCode6 = (iHashCode5 + (str5 == null ? 0 : str5.hashCode())) * 31;
            String str6 = this.f12926;
            int iHashCode7 = (iHashCode6 + (str6 == null ? 0 : str6.hashCode())) * 31;
            String str7 = this.f12929;
            this.f12899 = ((((((((((((((((((((((Float.floatToIntBits(this.f12898) + ((((Float.floatToIntBits(this.f12921) + ((((((((((((((iHashCode7 + (str7 != null ? str7.hashCode() : 0)) * 31) + this.f12903) * 31) + ((int) this.f12925)) * 31) + this.f12924) * 31) + this.f12920) * 31) + this.f12939) * 31) + this.f12938) * 31)) * 31) + this.f12919) * 31)) * 31) + this.f12910) * 31) + this.f12927) * 31) + this.f12923) * 31) + this.f12936) * 31) + this.f12912) * 31) + this.f12931) * 31) + this.f12900) * 31) + this.f12940) * 31) + this.f12918) * 31) + this.f12909) * 31) + this.f12902;
        }
        return this.f12899;
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("Format(");
        sb.append(this.f12922);
        sb.append(", ");
        sb.append(this.f12930);
        sb.append(", ");
        sb.append(this.f12926);
        sb.append(", ");
        sb.append(this.f12929);
        sb.append(", ");
        sb.append(this.f12934);
        sb.append(", ");
        sb.append(this.f12932);
        sb.append(", ");
        sb.append(this.f12937);
        sb.append(", [");
        sb.append(this.f12924);
        sb.append(", ");
        sb.append(this.f12920);
        sb.append(", ");
        sb.append(this.f12921);
        sb.append(", ");
        sb.append(this.f12906);
        sb.append("], [");
        sb.append(this.f12923);
        sb.append(", ");
        return AbstractC4486.m9545(sb, this.f12936, "])");
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final C2153 m7829() {
        C2153 c2153 = new C2153();
        c2153.f8512 = this.f12922;
        c2153.f8520 = this.f12930;
        c2153.f8498 = this.f12908;
        c2153.f8527 = this.f12937;
        c2153.f8492 = this.f12901;
        c2153.f8497 = this.f12907;
        c2153.f8525 = this.f12935;
        c2153.f8504 = this.f12914;
        c2153.f8522 = this.f12934;
        c2153.f8524 = this.f12904;
        c2153.f8494 = this.f12928;
        c2153.f8518 = this.f12926;
        c2153.f8516 = this.f12929;
        c2153.f8519 = this.f12903;
        c2153.f8493 = this.f12916;
        c2153.f8506 = this.f12933;
        c2153.f8523 = this.f12915;
        c2153.f8505 = this.f12925;
        c2153.f8515 = this.f12911;
        c2153.f8501 = this.f12924;
        c2153.f8514 = this.f12920;
        c2153.f8510 = this.f12939;
        c2153.f8529 = this.f12938;
        c2153.f8528 = this.f12921;
        c2153.f8511 = this.f12919;
        c2153.f8509 = this.f12898;
        c2153.f8490 = this.f12917;
        c2153.f8507 = this.f12910;
        c2153.f8500 = this.f12906;
        c2153.f8496 = this.f12927;
        c2153.f8517 = this.f12923;
        c2153.f8513 = this.f12936;
        c2153.f8526 = this.f12912;
        c2153.f8502 = this.f12931;
        c2153.f8521 = this.f12900;
        c2153.f8491 = this.f12940;
        c2153.f8530 = this.f12913;
        c2153.f8503 = this.f12918;
        c2153.f8508 = this.f12909;
        c2153.f8499 = this.f12902;
        return c2153;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final boolean m7830(C3446 c3446) {
        List list = this.f12933;
        if (list.size() != c3446.f12933.size()) {
            return false;
        }
        for (int i = 0; i < list.size(); i++) {
            if (!Arrays.equals((byte[]) list.get(i), (byte[]) c3446.f12933.get(i))) {
                return false;
            }
        }
        return true;
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final C3446 m7831(C3446 c3446) {
        String str;
        String str2;
        int i;
        int i2;
        if (this == c3446) {
            return this;
        }
        int iM7106 = AbstractC2924.m7106(this.f12929);
        String str3 = c3446.f12922;
        AbstractC2692 abstractC2692 = c3446.f12908;
        int i3 = c3446.f12918;
        int i4 = c3446.f12909;
        String str4 = c3446.f12930;
        if (str4 == null) {
            str4 = this.f12930;
        }
        if (abstractC2692.isEmpty()) {
            abstractC2692 = this.f12908;
        }
        if ((iM7106 != 3 && iM7106 != 1) || (str = c3446.f12937) == null) {
            str = this.f12937;
        }
        int i5 = this.f12935;
        if (i5 == -1) {
            i5 = c3446.f12935;
        }
        int i6 = this.f12914;
        if (i6 == -1) {
            i6 = c3446.f12914;
        }
        String str5 = this.f12934;
        if (str5 == null) {
            String strM8160 = AbstractC3558.m8160(iM7106, c3446.f12934);
            if (AbstractC3558.m8156(strM8160).length == 1) {
                str5 = strM8160;
            }
        }
        String str6 = this.f12928;
        if (str6 == null) {
            str6 = c3446.f12928;
        }
        C3034 c3034M7374 = c3446.f12904;
        C3034 c3034 = this.f12904;
        if (c3034 != null) {
            c3034M7374 = c3034.m7374(c3034M7374);
        }
        float f = this.f12921;
        if (f == -1.0f && iM7106 == 2) {
            f = c3446.f12921;
        }
        int i7 = this.f12901 | c3446.f12901;
        AbstractC2692 abstractC26922 = abstractC2692;
        int i8 = c3446.f12907 | this.f12907;
        C2119 c2119 = c3446.f12915;
        ArrayList arrayList = new ArrayList();
        if (c2119 != null) {
            String str7 = c2119.f8368;
            C1542[] c1542Arr = c2119.f8366;
            int length = c1542Arr.length;
            int i9 = 0;
            while (i9 < length) {
                int i10 = i9;
                C1542 c1542 = c1542Arr[i10];
                int i11 = length;
                if (c1542.f6162 != null) {
                    arrayList.add(c1542);
                }
                i9 = i10 + 1;
                length = i11;
            }
            str2 = str7;
        } else {
            str2 = null;
        }
        C2119 c21192 = this.f12915;
        if (c21192 != null) {
            if (str2 == null) {
                str2 = c21192.f8368;
            }
            int size = arrayList.size();
            C1542[] c1542Arr2 = c21192.f8366;
            String str8 = str2;
            int length2 = c1542Arr2.length;
            int i12 = 0;
            while (i12 < length2) {
                int i13 = i12;
                C1542 c15422 = c1542Arr2[i13];
                int i14 = length2;
                if (c15422.f6162 != null) {
                    UUID uuid = c15422.f6161;
                    i2 = i3;
                    int i15 = 0;
                    while (true) {
                        if (i15 >= size) {
                            i = size;
                            arrayList.add(c15422);
                            break;
                        }
                        i = size;
                        if (((C1542) arrayList.get(i15)).f6161.equals(uuid)) {
                            break;
                        }
                        i15++;
                        size = i;
                    }
                } else {
                    i = size;
                    i2 = i3;
                }
                i12 = i13 + 1;
                length2 = i14;
                i3 = i2;
                size = i;
            }
            str2 = str8;
        }
        int i16 = i3;
        C2119 c21193 = arrayList.isEmpty() ? null : new C2119(str2, arrayList);
        C2153 c2153M7829 = m7829();
        c2153M7829.f8512 = str3;
        c2153M7829.f8520 = str4;
        c2153M7829.f8498 = AbstractC2692.m6700(abstractC26922);
        c2153M7829.f8527 = str;
        c2153M7829.f8492 = i7;
        c2153M7829.f8497 = i8;
        c2153M7829.f8525 = i5;
        c2153M7829.f8504 = i6;
        c2153M7829.f8522 = str5;
        c2153M7829.f8524 = c3034M7374;
        c2153M7829.f8494 = str6;
        c2153M7829.f8523 = c21193;
        c2153M7829.f8528 = f;
        c2153M7829.f8503 = i16;
        c2153M7829.f8508 = i4;
        return new C3446(c2153M7829);
    }
}
