package S2;

import T0.C0594e;
import T0.C0596g;
import T0.C0600k;
import T0.C0601l;
import T0.D;
import T0.E;
import T0.G;
import T0.InterfaceC0591b;
import T0.M;
import T0.N;
import X0.C;
import X0.I;
import androidx.compose.runtime.saveable.Saver;
import b1.C1186a;
import b1.C1187b;
import f1.C2013a;
import f1.C2016d;
import f1.C2023k;
import f1.C2024l;
import f1.C2025m;
import f1.C2028p;
import f1.C2029q;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import o0.C2631b;
import p0.C2714u;
import p0.W;
import w4.C3137A;

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

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

    public /* synthetic */ f(int i6) {
        this.f6155a = i6;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        C3137A c3137a = C3137A.f25453a;
        int i6 = 0;
        m = null;
        M m6 = null;
        pVar = null;
        h1.p pVar = null;
        m = null;
        M m7 = null;
        oVar = null;
        h1.o oVar = null;
        g = null;
        G g6 = null;
        switch (this.f6155a) {
            case 0:
                Map it = (Map) obj;
                kotlin.jvm.internal.o.h(it, "it");
                Object obj2 = it.get("bytes");
                Number number = obj2 instanceof Number ? (Number) obj2 : null;
                return Long.valueOf(number != null ? number.longValue() : 0L);
            case 1:
                Map it2 = (Map) obj;
                kotlin.jvm.internal.o.h(it2, "it");
                Object obj3 = it2.get("path");
                String str = obj3 instanceof String ? (String) obj3 : null;
                return str == null ? "" : str;
            case 2:
                Map it3 = (Map) obj;
                kotlin.jvm.internal.o.h(it3, "it");
                Object obj4 = it3.get("bytes");
                Number number2 = obj4 instanceof Number ? (Number) obj4 : null;
                return Long.valueOf(number2 != null ? number2.longValue() : 0L);
            case 3:
                kotlin.jvm.internal.o.h((Map) obj, "it");
                return "";
            case 4:
                return c3137a;
            case 5:
                return c3137a;
            case 6:
                return Boolean.valueOf(!(((InterfaceC0591b) obj) instanceof T0.u));
            case 7:
                T0.r rVar = (T0.r) obj;
                StringBuilder sb = new StringBuilder("[");
                sb.append(rVar.f6548b);
                sb.append(", ");
                return com.google.android.recaptcha.internal.a.m(sb, rVar.f6549c, ')');
            case 8:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any?>");
                List list = (List) obj;
                Object obj5 = list.get(0);
                Boolean bool = Boolean.FALSE;
                boolean zC = kotlin.jvm.internal.o.c(obj5, bool);
                Saver saver = E.f6417i;
                G g7 = ((!zC || (saver instanceof D)) && obj5 != null) ? (G) saver.restore(obj5) : null;
                Object obj6 = list.get(1);
                G g8 = ((!kotlin.jvm.internal.o.c(obj6, bool) || (saver instanceof D)) && obj6 != null) ? (G) saver.restore(obj6) : null;
                Object obj7 = list.get(2);
                G g9 = ((!kotlin.jvm.internal.o.c(obj7, bool) || (saver instanceof D)) && obj7 != null) ? (G) saver.restore(obj7) : null;
                Object obj8 = list.get(3);
                if ((!kotlin.jvm.internal.o.c(obj8, bool) || (saver instanceof D)) && obj8 != null) {
                    g6 = (G) saver.restore(obj8);
                }
                return new M(g7, g8, g9, g6);
            case 9:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any?>");
                List list2 = (List) obj;
                Object obj9 = list2.get(1);
                boolean zC2 = kotlin.jvm.internal.o.c(obj9, Boolean.FALSE);
                Saver saver2 = E.f6410b;
                List list3 = ((!zC2 || (saver2 instanceof D)) && obj9 != null) ? (List) saver2.restore(obj9) : null;
                Object obj10 = list2.get(0);
                String str2 = obj10 != null ? (String) obj10 : null;
                kotlin.jvm.internal.o.e(str2);
                return new C0596g(list3, str2);
            case 10:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new C2024l(((Integer) obj).intValue());
            case 11:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Float>");
                List list4 = (List) obj;
                return new C2028p(((Number) list4.get(0)).floatValue(), ((Number) list4.get(1)).floatValue());
            case 12:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>");
                List list5 = (List) obj;
                Object obj11 = list5.get(0);
                h1.p[] pVarArr = h1.o.f16632b;
                Boolean bool2 = Boolean.FALSE;
                boolean zC3 = kotlin.jvm.internal.o.c(obj11, bool2);
                D d6 = E.f6431x;
                h1.o oVar2 = ((zC3 && d6 == null) || obj11 == null) ? null : (h1.o) d6.f6402b.invoke(obj11);
                kotlin.jvm.internal.o.e(oVar2);
                Object obj12 = list5.get(1);
                if ((!kotlin.jvm.internal.o.c(obj12, bool2) || d6 != null) && obj12 != null) {
                    oVar = (h1.o) d6.f6402b.invoke(obj12);
                }
                kotlin.jvm.internal.o.e(oVar);
                return new C2029q(oVar2.f16634a, oVar.f16634a);
            case 13:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new I(((Integer) obj).intValue());
            case 14:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Float");
                return new C2013a(((Float) obj).floatValue());
            case 15:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>");
                List list6 = (List) obj;
                Object obj13 = list6.get(0);
                Integer num = obj13 != null ? (Integer) obj13 : null;
                kotlin.jvm.internal.o.e(num);
                int iIntValue = num.intValue();
                Object obj14 = list6.get(1);
                Integer num2 = obj14 != null ? (Integer) obj14 : null;
                kotlin.jvm.internal.o.e(num2);
                return new N(android.support.v4.media.session.b.g(iIntValue, num2.intValue()));
            case 16:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>");
                List list7 = (List) obj;
                Object obj15 = list7.get(0);
                int i7 = C2714u.f22946n;
                Boolean bool3 = Boolean.FALSE;
                boolean zC4 = kotlin.jvm.internal.o.c(obj15, bool3);
                D d7 = E.f6425r;
                C2714u c2714u = ((zC4 && d7 == null) || obj15 == null) ? null : (C2714u) d7.f6402b.invoke(obj15);
                kotlin.jvm.internal.o.e(c2714u);
                Object obj16 = list7.get(1);
                boolean zC5 = kotlin.jvm.internal.o.c(obj16, bool3);
                D d8 = E.f6433z;
                C2631b c2631b = ((zC5 && d8 == null) || obj16 == null) ? null : (C2631b) d8.f6402b.invoke(obj16);
                kotlin.jvm.internal.o.e(c2631b);
                Object obj17 = list7.get(2);
                Float f6 = obj17 != null ? (Float) obj17 : null;
                kotlin.jvm.internal.o.e(f6);
                return new W(c2714u.f22947a, c2631b.f21785a, f6.floatValue());
            case 17:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new C2023k(((Integer) obj).intValue());
            case 18:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any?>");
                List list8 = (List) obj;
                Object obj18 = list8.get(0);
                String str3 = obj18 != null ? (String) obj18 : null;
                kotlin.jvm.internal.o.e(str3);
                Object obj19 = list8.get(1);
                boolean zC6 = kotlin.jvm.internal.o.c(obj19, Boolean.FALSE);
                Saver saver3 = E.f6418j;
                if ((!zC6 || (saver3 instanceof D)) && obj19 != null) {
                    m7 = (M) saver3.restore(obj19);
                }
                return new C0601l(str3, m7);
            case 19:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new C2025m(((Integer) obj).intValue());
            case 20:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new C2016d(((Integer) obj).intValue());
            case 21:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>");
                List list9 = (List) obj;
                ArrayList arrayList = new ArrayList(list9.size());
                int size = list9.size();
                while (i6 < size) {
                    Object obj20 = list9.get(i6);
                    boolean zC7 = kotlin.jvm.internal.o.c(obj20, Boolean.FALSE);
                    Saver saver4 = E.f6411c;
                    C0594e c0594e = ((!zC7 || (saver4 instanceof D)) && obj20 != null) ? (C0594e) saver4.restore(obj20) : null;
                    kotlin.jvm.internal.o.e(c0594e);
                    arrayList.add(c0594e);
                    i6++;
                }
                return arrayList;
            case 22:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new C(((Integer) obj).intValue());
            case 23:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return new X0.D(((Integer) obj).intValue());
            case 24:
                Boolean bool4 = Boolean.FALSE;
                if (kotlin.jvm.internal.o.c(obj, bool4)) {
                    return new h1.o(h1.o.f16633c);
                }
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>");
                List list10 = (List) obj;
                Object obj21 = list10.get(0);
                Float f7 = obj21 != null ? (Float) obj21 : null;
                kotlin.jvm.internal.o.e(f7);
                float fFloatValue = f7.floatValue();
                Object obj22 = list10.get(1);
                boolean zC8 = kotlin.jvm.internal.o.c(obj22, bool4);
                D d9 = E.f6432y;
                if ((!zC8 || d9 != null) && obj22 != null) {
                    pVar = (h1.p) d9.f6402b.invoke(obj22);
                }
                kotlin.jvm.internal.o.e(pVar);
                return new h1.o(W.a.u0(fFloatValue, pVar.f16635a));
            case 25:
                return kotlin.jvm.internal.o.c(obj, 0) ? new h1.p(8589934592L) : kotlin.jvm.internal.o.c(obj, 1) ? new h1.p(4294967296L) : new h1.p(0L);
            case 26:
                if (kotlin.jvm.internal.o.c(obj, Boolean.FALSE)) {
                    return new C2631b(9205357640488583168L);
                }
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any?>");
                List list11 = (List) obj;
                Object obj23 = list11.get(0);
                Float f8 = obj23 != null ? (Float) obj23 : null;
                kotlin.jvm.internal.o.e(f8);
                float fFloatValue2 = f8.floatValue();
                Object obj24 = list11.get(1);
                Float f9 = obj24 != null ? (Float) obj24 : null;
                kotlin.jvm.internal.o.e(f9);
                return new C2631b((((long) Float.floatToRawIntBits(fFloatValue2)) << 32) | (((long) Float.floatToRawIntBits(f9.floatValue())) & 4294967295L));
            case 27:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any>");
                List list12 = (List) obj;
                ArrayList arrayList2 = new ArrayList(list12.size());
                int size2 = list12.size();
                while (i6 < size2) {
                    Object obj25 = list12.get(i6);
                    boolean zC9 = kotlin.jvm.internal.o.c(obj25, Boolean.FALSE);
                    Saver saver5 = E.f6404B;
                    C1186a c1186a = ((!zC9 || (saver5 instanceof D)) && obj25 != null) ? (C1186a) saver5.restore(obj25) : null;
                    kotlin.jvm.internal.o.e(c1186a);
                    arrayList2.add(c1186a);
                    i6++;
                }
                return new C1187b(arrayList2);
            case 28:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.String");
                return new C1186a((String) obj);
            default:
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.collections.List<kotlin.Any?>");
                List list13 = (List) obj;
                Object obj26 = list13.get(0);
                String str4 = obj26 != null ? (String) obj26 : null;
                kotlin.jvm.internal.o.e(str4);
                Object obj27 = list13.get(1);
                boolean zC10 = kotlin.jvm.internal.o.c(obj27, Boolean.FALSE);
                Saver saver6 = E.f6418j;
                if ((!zC10 || (saver6 instanceof D)) && obj27 != null) {
                    m6 = (M) saver6.restore(obj27);
                }
                return new C0600k(str4, m6);
        }
    }
}
