package T0;

import V2.C0659f1;
import X0.AbstractC0808v;
import androidx.compose.runtime.saveable.Saver;
import androidx.navigation.C1133h;
import androidx.navigation.U;
import b1.C1187b;
import com.revenuecat.purchases.common.diagnostics.DiagnosticsEntry;
import f1.C2013a;
import f1.C2016d;
import f1.C2017e;
import f1.C2018f;
import f1.C2019g;
import f1.C2020h;
import f1.C2021i;
import f1.C2023k;
import f1.C2024l;
import f1.C2025m;
import f1.C2028p;
import f1.C2029q;
import f1.C2030r;
import f1.C2031s;
import java.net.URLEncoder;
import java.util.List;
import java.util.Map;
import o0.C2631b;
import p.InterfaceC2670n;
import p0.C2714u;
import p0.W;
import q.C2793p;
import w4.C3137A;

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

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

    public /* synthetic */ A(int i6) {
        this.f6398a = i6;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        androidx.navigation.N n6 = U.f12728i;
        C3137A c3137a = C3137A.f25453a;
        C2019g c2019g = null;
        c0599j = null;
        C0599j c0599j = null;
        w = null;
        W w6 = null;
        c2031s = null;
        C2031s c2031s = null;
        c0600k = null;
        C0600k c0600k = null;
        c0601l = null;
        C0601l c0601l = null;
        p = null;
        P p6 = null;
        q = null;
        Q q6 = null;
        g = null;
        G g6 = null;
        uVar = null;
        u uVar = null;
        c2019g = null;
        switch (this.f6398a) {
            case 0:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>");
                List list = (List) obj;
                Object obj2 = list.get(0);
                float f6 = C2018f.f16372b;
                Boolean bool = Boolean.FALSE;
                boolean zC = kotlin.jvm.internal.o.c(obj2, bool);
                D d6 = E.f6406D;
                C2018f c2018f = ((zC && d6 == null) || obj2 == null) ? null : (C2018f) d6.f6402b.invoke(obj2);
                kotlin.jvm.internal.o.e(c2018f);
                Object obj3 = list.get(1);
                boolean zC2 = kotlin.jvm.internal.o.c(obj3, bool);
                D d7 = E.f6407E;
                C2020h c2020h = ((zC2 && d7 == null) || obj3 == null) ? null : (C2020h) d7.f6402b.invoke(obj3);
                kotlin.jvm.internal.o.e(c2020h);
                Object obj4 = list.get(2);
                boolean zC3 = kotlin.jvm.internal.o.c(obj4, bool);
                D d8 = E.f6408F;
                if ((!zC3 || d8 != null) && obj4 != null) {
                    c2019g = (C2019g) d8.f6402b.invoke(obj4);
                }
                C2019g c2019g2 = c2019g;
                kotlin.jvm.internal.o.e(c2019g2);
                return new C2021i(c2018f.f16375a, c2020h.f16377a, c2019g2.f16376a);
            case 1:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Float");
                float fFloatValue = ((Float) obj).floatValue();
                C2018f.a(fFloatValue);
                return new C2018f(fFloatValue);
            case 2:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new C2020h(((Integer) obj).intValue());
            case 3:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>");
                List list2 = (List) obj;
                Object obj5 = list2.get(0);
                EnumC0598i enumC0598i = obj5 != null ? (EnumC0598i) obj5 : null;
                kotlin.jvm.internal.o.e(enumC0598i);
                Object obj6 = list2.get(2);
                Integer num = obj6 != null ? (Integer) obj6 : null;
                kotlin.jvm.internal.o.e(num);
                int iIntValue = num.intValue();
                Object obj7 = list2.get(3);
                Integer num2 = obj7 != null ? (Integer) obj7 : null;
                kotlin.jvm.internal.o.e(num2);
                int iIntValue2 = num2.intValue();
                Object obj8 = list2.get(4);
                String str = obj8 != null ? (String) obj8 : null;
                kotlin.jvm.internal.o.e(str);
                switch (enumC0598i.ordinal()) {
                    case 0:
                        Object obj9 = list2.get(1);
                        boolean zC4 = kotlin.jvm.internal.o.c(obj9, Boolean.FALSE);
                        Saver saver = E.f6416h;
                        if ((!zC4 || (saver instanceof D)) && obj9 != null) {
                            uVar = (u) saver.restore(obj9);
                        }
                        u uVar2 = uVar;
                        kotlin.jvm.internal.o.e(uVar2);
                        return new C0594e(uVar2, iIntValue, iIntValue2, str);
                    case 1:
                        Object obj10 = list2.get(1);
                        boolean zC5 = kotlin.jvm.internal.o.c(obj10, Boolean.FALSE);
                        Saver saver2 = E.f6417i;
                        if ((!zC5 || (saver2 instanceof D)) && obj10 != null) {
                            g6 = (G) saver2.restore(obj10);
                        }
                        G g7 = g6;
                        kotlin.jvm.internal.o.e(g7);
                        return new C0594e(g7, iIntValue, iIntValue2, str);
                    case 2:
                        Object obj11 = list2.get(1);
                        boolean zC6 = kotlin.jvm.internal.o.c(obj11, Boolean.FALSE);
                        Saver saver3 = E.f6412d;
                        if ((!zC6 || (saver3 instanceof D)) && obj11 != null) {
                            q6 = (Q) saver3.restore(obj11);
                        }
                        Q q7 = q6;
                        kotlin.jvm.internal.o.e(q7);
                        return new C0594e(q7, iIntValue, iIntValue2, str);
                    case 3:
                        Object obj12 = list2.get(1);
                        boolean zC7 = kotlin.jvm.internal.o.c(obj12, Boolean.FALSE);
                        Saver saver4 = E.f6413e;
                        if ((!zC7 || (saver4 instanceof D)) && obj12 != null) {
                            p6 = (P) saver4.restore(obj12);
                        }
                        P p7 = p6;
                        kotlin.jvm.internal.o.e(p7);
                        return new C0594e(p7, iIntValue, iIntValue2, str);
                    case 4:
                        Object obj13 = list2.get(1);
                        boolean zC8 = kotlin.jvm.internal.o.c(obj13, Boolean.FALSE);
                        Saver saver5 = E.f6414f;
                        if ((!zC8 || (saver5 instanceof D)) && obj13 != null) {
                            c0601l = (C0601l) saver5.restore(obj13);
                        }
                        C0601l c0601l2 = c0601l;
                        kotlin.jvm.internal.o.e(c0601l2);
                        return new C0594e(c0601l2, iIntValue, iIntValue2, str);
                    case 5:
                        Object obj14 = list2.get(1);
                        boolean zC9 = kotlin.jvm.internal.o.c(obj14, Boolean.FALSE);
                        Saver saver6 = E.f6415g;
                        if ((!zC9 || (saver6 instanceof D)) && obj14 != null) {
                            c0600k = (C0600k) saver6.restore(obj14);
                        }
                        C0600k c0600k2 = c0600k;
                        kotlin.jvm.internal.o.e(c0600k2);
                        return new C0594e(c0600k2, iIntValue, iIntValue2, str);
                    case 6:
                        Object obj15 = list2.get(1);
                        String str2 = obj15 != null ? (String) obj15 : null;
                        kotlin.jvm.internal.o.e(str2);
                        return new C0594e(new I(str2), iIntValue, iIntValue2, str);
                    default:
                        throw new E3.v();
                }
            case 4:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new C2019g(((Integer) obj).intValue());
            case 5:
                String str3 = obj != null ? (String) obj : null;
                kotlin.jvm.internal.o.e(str3);
                return new Q(str3);
            case 6:
                String str4 = obj != null ? (String) obj : null;
                kotlin.jvm.internal.o.e(str4);
                return new P(str4);
            case 7:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any?>");
                List list3 = (List) obj;
                Object obj16 = list3.get(0);
                Boolean bool2 = Boolean.FALSE;
                boolean zC10 = kotlin.jvm.internal.o.c(obj16, bool2);
                D d9 = E.f6426s;
                C2023k c2023k = ((zC10 && d9 == null) || obj16 == null) ? null : (C2023k) d9.f6402b.invoke(obj16);
                kotlin.jvm.internal.o.e(c2023k);
                Object obj17 = list3.get(1);
                boolean zC11 = kotlin.jvm.internal.o.c(obj17, bool2);
                D d10 = E.f6427t;
                C2025m c2025m = ((zC11 && d10 == null) || obj17 == null) ? null : (C2025m) d10.f6402b.invoke(obj17);
                kotlin.jvm.internal.o.e(c2025m);
                Object obj18 = list3.get(2);
                h1.p[] pVarArr = h1.o.f16632b;
                boolean zC12 = kotlin.jvm.internal.o.c(obj18, bool2);
                D d11 = E.f6431x;
                h1.o oVar = ((zC12 && d11 == null) || obj18 == null) ? null : (h1.o) d11.f6402b.invoke(obj18);
                kotlin.jvm.internal.o.e(oVar);
                Object obj19 = list3.get(3);
                C2029q c2029q = C2029q.f16395c;
                boolean zC13 = kotlin.jvm.internal.o.c(obj19, bool2);
                Saver saver7 = E.f6420m;
                C2029q c2029q2 = ((!zC13 || (saver7 instanceof D)) && obj19 != null) ? (C2029q) saver7.restore(obj19) : null;
                Object obj20 = list3.get(4);
                Saver saver8 = F.f6434a;
                w wVar = ((!kotlin.jvm.internal.o.c(obj20, bool2) || (saver8 instanceof D)) && obj20 != null) ? (w) saver8.restore(obj20) : null;
                Object obj21 = list3.get(5);
                C2021i c2021i = C2021i.f16378d;
                boolean zC14 = kotlin.jvm.internal.o.c(obj21, bool2);
                Saver saver9 = E.f6405C;
                C2021i c2021i2 = ((!zC14 || (saver9 instanceof D)) && obj21 != null) ? (C2021i) saver9.restore(obj21) : null;
                Object obj22 = list3.get(6);
                Saver saver10 = F.f6436c;
                C2017e c2017e = ((!kotlin.jvm.internal.o.c(obj22, bool2) || (saver10 instanceof D)) && obj22 != null) ? (C2017e) saver10.restore(obj22) : null;
                kotlin.jvm.internal.o.e(c2017e);
                Object obj23 = list3.get(7);
                boolean zC15 = kotlin.jvm.internal.o.c(obj23, bool2);
                D d12 = E.f6428u;
                C2016d c2016d = ((zC15 && d12 == null) || obj23 == null) ? null : (C2016d) d12.f6402b.invoke(obj23);
                kotlin.jvm.internal.o.e(c2016d);
                Object obj24 = list3.get(8);
                Saver saver11 = F.f6437d;
                if ((!kotlin.jvm.internal.o.c(obj24, bool2) || (saver11 instanceof D)) && obj24 != null) {
                    c2031s = (C2031s) saver11.restore(obj24);
                }
                return new u(c2023k.f16385a, c2025m.f16390a, oVar.f16634a, c2029q2, wVar, c2021i2, c2017e.f16371a, c2016d.f16369a, c2031s);
            case 8:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any?>");
                List list4 = (List) obj;
                Object obj25 = list4.get(0);
                int i6 = C2714u.f22946n;
                Boolean bool3 = Boolean.FALSE;
                boolean zC16 = kotlin.jvm.internal.o.c(obj25, bool3);
                D d13 = E.f6425r;
                C2714u c2714u = ((zC16 && d13 == null) || obj25 == null) ? null : (C2714u) d13.f6402b.invoke(obj25);
                kotlin.jvm.internal.o.e(c2714u);
                Object obj26 = list4.get(1);
                h1.p[] pVarArr2 = h1.o.f16632b;
                boolean zC17 = kotlin.jvm.internal.o.c(obj26, bool3);
                D d14 = E.f6431x;
                h1.o oVar2 = ((zC17 && d14 == null) || obj26 == null) ? null : (h1.o) d14.f6402b.invoke(obj26);
                kotlin.jvm.internal.o.e(oVar2);
                Object obj27 = list4.get(2);
                X0.I i7 = X0.I.f8440b;
                boolean zC18 = kotlin.jvm.internal.o.c(obj27, bool3);
                Saver saver12 = E.f6421n;
                X0.I i8 = ((!zC18 || (saver12 instanceof D)) && obj27 != null) ? (X0.I) saver12.restore(obj27) : null;
                Object obj28 = list4.get(3);
                boolean zC19 = kotlin.jvm.internal.o.c(obj28, bool3);
                Saver saver13 = E.f6429v;
                X0.C c6 = ((!zC19 || (saver13 instanceof D)) && obj28 != null) ? (X0.C) saver13.restore(obj28) : null;
                Object obj29 = list4.get(4);
                boolean zC20 = kotlin.jvm.internal.o.c(obj29, bool3);
                Saver saver14 = E.f6430w;
                X0.D d15 = ((!zC20 || (saver14 instanceof D)) && obj29 != null) ? (X0.D) saver14.restore(obj29) : null;
                Object obj30 = list4.get(6);
                String str5 = obj30 != null ? (String) obj30 : null;
                Object obj31 = list4.get(7);
                h1.o oVar3 = ((kotlin.jvm.internal.o.c(obj31, bool3) && d14 == null) || obj31 == null) ? null : (h1.o) d14.f6402b.invoke(obj31);
                kotlin.jvm.internal.o.e(oVar3);
                Object obj32 = list4.get(8);
                boolean zC21 = kotlin.jvm.internal.o.c(obj32, bool3);
                Saver saver15 = E.f6422o;
                C2013a c2013a = ((!zC21 || (saver15 instanceof D)) && obj32 != null) ? (C2013a) saver15.restore(obj32) : null;
                Object obj33 = list4.get(9);
                boolean zC22 = kotlin.jvm.internal.o.c(obj33, bool3);
                Saver saver16 = E.l;
                C2028p c2028p = ((!zC22 || (saver16 instanceof D)) && obj33 != null) ? (C2028p) saver16.restore(obj33) : null;
                Object obj34 = list4.get(10);
                C1187b c1187b = C1187b.f13227c;
                boolean zC23 = kotlin.jvm.internal.o.c(obj34, bool3);
                Saver saver17 = E.f6403A;
                C1187b c1187b2 = ((!zC23 || (saver17 instanceof D)) && obj34 != null) ? (C1187b) saver17.restore(obj34) : null;
                Object obj35 = list4.get(11);
                C2714u c2714u2 = ((kotlin.jvm.internal.o.c(obj35, bool3) && d13 == null) || obj35 == null) ? null : (C2714u) d13.f6402b.invoke(obj35);
                kotlin.jvm.internal.o.e(c2714u2);
                Object obj36 = list4.get(12);
                boolean zC24 = kotlin.jvm.internal.o.c(obj36, bool3);
                Saver saver18 = E.f6419k;
                C2024l c2024l = ((!zC24 || (saver18 instanceof D)) && obj36 != null) ? (C2024l) saver18.restore(obj36) : null;
                Object obj37 = list4.get(13);
                W w7 = W.f22883d;
                boolean zC25 = kotlin.jvm.internal.o.c(obj37, bool3);
                Saver saver19 = E.f6424q;
                if ((!zC25 || (saver19 instanceof D)) && obj37 != null) {
                    w6 = (W) saver19.restore(obj37);
                }
                return new G(c2714u.f22947a, oVar2.f16634a, i8, c6, d15, (AbstractC0808v) null, str5, oVar3.f16634a, c2013a, c2028p, c1187b2, c2714u2.f22947a, c2024l, w6, 49184);
            case 9:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>");
                List list5 = (List) obj;
                Object obj38 = list5.get(0);
                Boolean bool4 = obj38 != null ? (Boolean) obj38 : null;
                kotlin.jvm.internal.o.e(bool4);
                boolean zBooleanValue = bool4.booleanValue();
                Object obj39 = list5.get(1);
                boolean zC26 = kotlin.jvm.internal.o.c(obj39, Boolean.FALSE);
                Saver saver20 = F.f6435b;
                if ((!zC26 || (saver20 instanceof D)) && obj39 != null) {
                    c0599j = (C0599j) saver20.restore(obj39);
                }
                C0599j c0599j2 = c0599j;
                kotlin.jvm.internal.o.e(c0599j2);
                return new w(c0599j2.f6522a, zBooleanValue);
            case 10:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new C0599j(((Integer) obj).intValue());
            case 11:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new C2017e(((Integer) obj).intValue());
            case 12:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>");
                List list6 = (List) obj;
                Object obj40 = list6.get(0);
                boolean zC27 = kotlin.jvm.internal.o.c(obj40, Boolean.FALSE);
                Saver saver21 = F.f6438e;
                C2030r c2030r = ((!zC27 || (saver21 instanceof D)) && obj40 != null) ? (C2030r) saver21.restore(obj40) : null;
                kotlin.jvm.internal.o.e(c2030r);
                Object obj41 = list6.get(1);
                Boolean bool5 = obj41 != null ? (Boolean) obj41 : null;
                kotlin.jvm.internal.o.e(bool5);
                return new C2031s(c2030r.f16398a, bool5.booleanValue());
            case 13:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new C2030r(((Integer) obj).intValue());
            case 14:
                Map it = (Map) obj;
                kotlin.jvm.internal.o.h(it, "it");
                Object obj42 = it.get(DiagnosticsEntry.NAME_KEY);
                String str6 = obj42 instanceof String ? (String) obj42 : null;
                return str6 == null ? "" : str6;
            case 15:
                Map it2 = (Map) obj;
                kotlin.jvm.internal.o.h(it2, "it");
                Object obj43 = it2.get("size");
                Number number = obj43 instanceof Number ? (Number) obj43 : null;
                return Long.valueOf(number != null ? number.longValue() : 0L);
            case 16:
                Map.Entry entry = (Map.Entry) obj;
                kotlin.jvm.internal.o.h(entry, "<destruct>");
                return Z0.o.B(URLEncoder.encode((String) entry.getKey(), "UTF-8"), "=", URLEncoder.encode((String) entry.getValue(), "UTF-8"));
            case 17:
                Map it3 = (Map) obj;
                kotlin.jvm.internal.o.h(it3, "it");
                return e4.C.m0(it3);
            case 18:
                C2631b c2631b = (C2631b) obj;
                long j4 = c2631b.f21785a;
                return (9223372034707292159L & j4) != 9205357640488583168L ? new C2793p(Float.intBitsToFloat((int) (j4 >> 32)), Float.intBitsToFloat((int) (c2631b.f21785a & 4294967295L))) : V.Q.f6998a;
            case 19:
                C2793p c2793p = (C2793p) obj;
                return new C2631b((((long) Float.floatToRawIntBits(c2793p.f23401a)) << 32) | (((long) Float.floatToRawIntBits(c2793p.f23402b)) & 4294967295L));
            case 20:
                C0659f1 setFeatures = (C0659f1) obj;
                kotlin.jvm.internal.o.h(setFeatures, "$this$setFeatures");
                return C0659f1.a(setFeatures, false, false, false, false, 11);
            case 21:
                C1133h navArgument = (C1133h) obj;
                kotlin.jvm.internal.o.h(navArgument, "$this$navArgument");
                navArgument.f12751a.f607c = n6;
                navArgument.a("");
                return c3137a;
            case 22:
                InterfaceC2670n composable = (InterfaceC2670n) obj;
                kotlin.jvm.internal.o.h(composable, "$this$composable");
                return null;
            case 23:
                C1133h navArgument2 = (C1133h) obj;
                kotlin.jvm.internal.o.h(navArgument2, "$this$navArgument");
                navArgument2.f12751a.f607c = n6;
                return c3137a;
            case 24:
                C1133h navArgument3 = (C1133h) obj;
                kotlin.jvm.internal.o.h(navArgument3, "$this$navArgument");
                navArgument3.f12751a.f607c = n6;
                return c3137a;
            case 25:
                C1133h navArgument4 = (C1133h) obj;
                kotlin.jvm.internal.o.h(navArgument4, "$this$navArgument");
                navArgument4.f12751a.f607c = n6;
                navArgument4.a("");
                return c3137a;
            case 26:
                C1133h navArgument5 = (C1133h) obj;
                kotlin.jvm.internal.o.h(navArgument5, "$this$navArgument");
                navArgument5.f12751a.f607c = n6;
                navArgument5.a("movies");
                return c3137a;
            case 27:
                C1133h navArgument6 = (C1133h) obj;
                kotlin.jvm.internal.o.h(navArgument6, "$this$navArgument");
                navArgument6.f12751a.f607c = U.f12720a;
                navArgument6.a(0);
                return c3137a;
            case 28:
                C1133h navArgument7 = (C1133h) obj;
                kotlin.jvm.internal.o.h(navArgument7, "$this$navArgument");
                navArgument7.f12751a.f607c = n6;
                navArgument7.a("");
                return c3137a;
            default:
                return Integer.valueOf(-((Integer) obj).intValue());
        }
    }
}
