package D;

import V.Q;
import V2.C0639b1;
import V2.J2;
import V2.M3;
import V2.O0;
import V2.n3;
import a3.W;
import a3.b0;
import a3.c0;
import androidx.compose.runtime.State;
import h3.n5;
import h3.y5;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import n2.AbstractC2612c;
import q.C2793p;
import x4.AbstractC3250p;
import x4.AbstractC3251q;
import y4.C3274b;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class p implements J4.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f844a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ State f845b;

    public /* synthetic */ p(State state, int i6) {
        this.f844a = i6;
        this.f845b = state;
    }

    @Override // J4.a
    public final Object invoke() {
        Object next;
        Object obj = null;
        State state = this.f845b;
        switch (this.f844a) {
            case 3:
                Boolean bool = (Boolean) state.getValue();
                bool.booleanValue();
                break;
            case 4:
                C2793p c2793p = Q.f6998a;
                break;
            case 11:
                C0639b1 c0639b1 = ((n3) state.getValue()).f7976f;
                C3274b c3274bK = AbstractC2612c.k();
                if (c0639b1.f7699a) {
                    c3274bK.add("RD");
                }
                if (c0639b1.f7700b) {
                    c3274bK.add("PM");
                }
                if (c0639b1.f7702d) {
                    c3274bK.add("AD");
                }
                if (c0639b1.f7701c) {
                    c3274bK.add("OC");
                }
                if (c0639b1.f7703e) {
                    c3274bK.add("TB");
                }
                String strM0 = AbstractC3251q.m0(AbstractC2612c.e(c3274bK), ", ", null, null, null, 62);
                if (S4.p.Q0(strM0)) {
                }
                break;
            case 12:
                n3 n3Var = (n3) state.getValue();
                ArrayList arrayList = new ArrayList();
                int i6 = (int) (n3Var.f7974d.f7378a / 1073741824);
                arrayList.add(i6 > 0 ? Z0.o.j(i6, "Below ", "GB") : "All Sizes");
                J2 j22 = n3Var.f7974d;
                if (!j22.f7387j) {
                    arrayList.add("Remux");
                }
                if (!j22.f7390n) {
                    arrayList.add("DV");
                }
                if (!j22.f7391o) {
                    arrayList.add("DV.P5");
                }
                if (!j22.f7392p) {
                    arrayList.add("DV.P7");
                }
                if (!j22.f7382e) {
                    arrayList.add("HDR");
                }
                if (!j22.f7383f) {
                    arrayList.add("AI Upscale");
                }
                if (!j22.f7394r) {
                    arrayList.add("AV1");
                }
                if (!j22.f7395s) {
                    arrayList.add("HEVC");
                }
                if (!j22.f7381d) {
                    arrayList.add("FHD");
                }
                if (!j22.f7380c) {
                    arrayList.add("4K");
                }
                if (!j22.f7384g) {
                    arrayList.add("Atmos");
                }
                if (!j22.f7386i) {
                    arrayList.add("TrueHD");
                }
                if (!j22.f7393q) {
                    arrayList.add("DTS-HD");
                }
                O0 o02 = n3Var.f7975e;
                if (o02.f7461b) {
                    arrayList.add("Prefer Atmos");
                }
                if (o02.f7463d) {
                    arrayList.add("Prefer DV");
                }
                if (o02.f7462c) {
                    arrayList.add("Prefer HDR");
                }
                break;
            case 14:
                if (!((n3) state.getValue()).f7974d.f7379b) {
                    break;
                }
                break;
            case 15:
                Iterator it = W.f10596a.iterator();
                while (true) {
                    if (it.hasNext()) {
                        next = it.next();
                        if (kotlin.jvm.internal.o.c(((w4.k) next).f25469a, ((n3) state.getValue()).f7971a.f7888c)) {
                        }
                    } else {
                        next = null;
                    }
                }
                w4.k kVar = (w4.k) next;
                if (kVar == null || (str = (String) kVar.f25470b) == null) {
                    String str = ((n3) state.getValue()).f7971a.f7888c;
                }
                Iterator it2 = c0.f10637b.iterator();
                while (true) {
                    if (it2.hasNext()) {
                        Object next2 = it2.next();
                        if (((b0) next2).f10620a.equals(((n3) state.getValue()).f7971a.f7887b)) {
                            obj = next2;
                        }
                    }
                }
                b0 b0Var = (b0) obj;
                break;
            case 16:
                y5 y5Var = y5.f18754a;
                break;
            case 17:
                M3 m32 = ((n3) state.getValue()).f7977g;
                List listK = AbstractC3250p.K(new String[]{m32.f7438c ? "P7→P8" : null, m32.f7437b ? "P7→HDR" : null, m32.f7439d ? "P8→HDR" : null});
                if (!((ArrayList) listK).isEmpty()) {
                    break;
                }
                break;
            case 18:
                if (!((n3) state.getValue()).f7977g.f7440e) {
                    break;
                } else if (((n3) state.getValue()).f7977g.f7441f) {
                }
                break;
            case 19:
                ((J4.a) state.getValue()).invoke();
                break;
            case 20:
                float f6 = n5.f18281a;
                break;
        }
        return Float.valueOf(((Number) state.getValue()).floatValue());
    }
}
