package defpackage;

import java.util.List;

/* JADX INFO: renamed from: ᵨˈᵡʾ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3735 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final List f14175;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final InterfaceC5226[] f14176;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final /* synthetic */ int f14177;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final C4132 f14178;

    public C3735(int i, List list) {
        this.f14177 = i;
        switch (i) {
            case 1:
                this.f14175 = list;
                this.f14176 = new InterfaceC5226[list.size()];
                C4132 c4132 = new C4132((InterfaceC1406) new ˈᵚᵰˎ(24, this));
                this.f14178 = c4132;
                c4132.m9042(3);
                break;
            default:
                this.f14175 = list;
                this.f14176 = new InterfaceC5226[list.size()];
                this.f14178 = new C4132((InterfaceC1406) new ˈᵚᵰˎ(14, this));
                break;
        }
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final void m8404(InterfaceC4550 interfaceC4550, C4173 c4173) {
        int i = this.f14177;
        List list = this.f14175;
        InterfaceC5226[] interfaceC5226Arr = this.f14176;
        switch (i) {
            case 0:
                for (int i2 = 0; i2 < interfaceC5226Arr.length; i2++) {
                    c4173.m9112();
                    c4173.m9111();
                    InterfaceC5226 interfaceC5226Mo2743 = interfaceC4550.mo2743(c4173.f15928, 3);
                    C5286 c5286 = (C5286) list.get(i2);
                    String str = c5286.f19987;
                    ᵻᵪ.ᵮᵣᵗˈ("application/cea-608".equals(str) || "application/cea-708".equals(str), "Invalid closed caption MIME type provided: %s", str);
                    String str2 = c5286.f19992;
                    if (str2 == null) {
                        c4173.m9111();
                        str2 = c4173.f15926;
                    }
                    C4753 c4753 = new C4753();
                    c4753.f18121 = str2;
                    c4753.f18111 = AbstractC4208.m9132("video/mp2t");
                    c4753.f18101 = AbstractC4208.m9132(str);
                    c4753.f18114 = c5286.f19985;
                    c4753.f18126 = c5286.f19997;
                    c4753.f18100 = c5286.f19968;
                    c4753.f18119 = c5286.f19967;
                    AbstractC0659.m2415(c4753, interfaceC5226Mo2743);
                    interfaceC5226Arr[i2] = interfaceC5226Mo2743;
                }
                break;
            default:
                for (int i3 = 0; i3 < interfaceC5226Arr.length; i3++) {
                    c4173.m9112();
                    c4173.m9111();
                    InterfaceC5226 interfaceC5226Mo27432 = interfaceC4550.mo2743(c4173.f15928, 3);
                    C5286 c52862 = (C5286) list.get(i3);
                    String str3 = c52862.f19987;
                    ᵻᵪ.ᵮᵣᵗˈ("application/cea-608".equals(str3) || "application/cea-708".equals(str3), "Invalid closed caption MIME type provided: %s", str3);
                    C4753 c47532 = new C4753();
                    c4173.m9111();
                    c47532.f18121 = c4173.f15926;
                    c47532.f18111 = AbstractC4208.m9132("video/mp2t");
                    c47532.f18101 = AbstractC4208.m9132(str3);
                    c47532.f18114 = c52862.f19985;
                    c47532.f18126 = c52862.f19997;
                    c47532.f18100 = c52862.f19968;
                    c47532.f18119 = c52862.f19967;
                    AbstractC0659.m2415(c47532, interfaceC5226Mo27432);
                    interfaceC5226Arr[i3] = interfaceC5226Mo27432;
                }
                break;
        }
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public void m8405(long j, C4545 c4545) {
        if (c4545.m9623() < 9) {
            return;
        }
        int iM9614 = c4545.m9614();
        int iM96142 = c4545.m9614();
        int iM9626 = c4545.m9626();
        if (iM9614 == 434 && iM96142 == 1195456820 && iM9626 == 3) {
            this.f14178.m9056(j, c4545);
        }
    }
}
