package B;

import E.C0143d;
import F.C0149c;
import F.C0150d;
import K.AbstractC0454g0;
import K.C0464l0;
import K.C0470o0;
import T0.C0594e;
import T0.C0596g;
import T0.C0604o;
import V4.C0781t;
import X0.AbstractC0808v;
import X0.C0800m;
import X0.C0801n;
import X0.C0802o;
import X0.C0804q;
import X0.C0809w;
import X0.InterfaceC0806t;
import Z0.C0860a;
import Z0.C0863d;
import Z0.C0864e;
import Z0.C0865f;
import Z0.InterfaceC0866g;
import a0.i2;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Parcel;
import android.view.View;
import androidx.compose.runtime.ControlledComposition;
import androidx.compose.runtime.MutableIntState;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.Recomposer;
import androidx.compose.runtime.changelist.Operations;
import androidx.compose.runtime.saveable.SaveableStateHolder;
import androidx.compose.runtime.saveable.SaveableStateRegistry;
import androidx.compose.runtime.snapshots.SnapshotStateList$Companion$CREATOR$1;
import androidx.navigation.C1134i;
import c0.C1212m;
import com.debridstream.tv.HomeSection;
import com.debridstream.tv.data.home.HomeMetaItem;
import h1.C2069a;
import h3.C2197u;
import h3.EnumC2203v;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import m3.AbstractC2467b;
import n.C2594v;
import o0.C2632c;
import p0.AbstractC2711q;
import p0.C2702h;
import p0.InterfaceC2687E;
import q.AbstractC2761L;
import r0.InterfaceC2864c;
import r0.InterfaceC2866e;
import w4.C3137A;
import x4.AbstractC3252r;

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

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Object f116c;

    public /* synthetic */ B0(int i6, Object obj, Object obj2) {
        this.f114a = i6;
        this.f116c = obj;
        this.f115b = obj2;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:212:0x043f  */
    /* JADX WARN: Removed duplicated region for block: B:288:0x0580  */
    /* JADX WARN: Removed duplicated region for block: B:289:0x0587  */
    /* JADX WARN: Removed duplicated region for block: B:306:0x05e1  */
    /* JADX WARN: Removed duplicated region for block: B:307:0x05e3  */
    /* JADX WARN: Removed duplicated region for block: B:320:0x0640  */
    /* JADX WARN: Removed duplicated region for block: B:455:0x056e A[SYNTHETIC] */
    /* JADX WARN: Type inference failed for: r3v11, types: [java.lang.Object, java.util.Collection, java.util.List] */
    @Override // J4.c
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invoke(Object obj) {
        T0.L l;
        C0594e c0594eC;
        C2702h c2702hH;
        T0.K k6;
        boolean z6;
        int i6;
        int size;
        int i7;
        w4.k kVar;
        List list;
        Object u6;
        Object objInvoke;
        C0801n c0801n;
        int i8;
        Object objD;
        Typeface typefaceC;
        X0.V v3;
        String strConcat;
        StringBuilder sb;
        int i9;
        int i10 = 1;
        switch (this.f114a) {
            case 0:
                G0.p0 p0Var = (G0.p0) obj;
                C0 c02 = (C0) this.f116c;
                boolean z7 = c02.f120c;
                G0.q0 q0Var = (G0.q0) this.f115b;
                if (z7) {
                    G0.p0.r(p0Var, q0Var, p0Var.g0(c02.f118a), p0Var.g0(c02.f119b));
                } else {
                    p0Var.l(q0Var, p0Var.g0(c02.f118a), p0Var.g0(c02.f119b), 0.0f);
                }
                return C3137A.f25453a;
            case 1:
                G0.p0 p0Var2 = (G0.p0) obj;
                G0 g0 = (G0) this.f116c;
                boolean z8 = g0.f140e;
                G0.q0 q0Var2 = (G0.q0) this.f115b;
                if (z8) {
                    G0.p0.r(p0Var2, q0Var2, p0Var2.g0(g0.f136a), p0Var2.g0(g0.f137b));
                } else {
                    p0Var2.l(q0Var2, p0Var2.g0(g0.f136a), p0Var2.g0(g0.f137b), 0.0f);
                }
                return C3137A.f25453a;
            case 2:
                g1 g1Var = (g1) this.f116c;
                View view = (View) this.f115b;
                g1Var.a(view);
                return new f1(0, g1Var, view);
            case 3:
                C1.k kVarB = ((E.y) this.f116c).b(((Integer) obj).intValue());
                ?? r32 = kVarB.f691c;
                ArrayList arrayList = new ArrayList(r32.size());
                int size2 = r32.size();
                int i11 = kVarB.f690b;
                int i12 = 0;
                for (int i13 = 0; i13 < size2; i13++) {
                    int i14 = (int) ((C0143d) r32.get(i13)).f989a;
                    arrayList.add(new w4.k(Integer.valueOf(i11), new C2069a(((E.p) this.f115b).a(i12, i14))));
                    i11++;
                    i12 += i14;
                }
                return arrayList;
            case 4:
                int iIntValue = ((Integer) obj).intValue();
                E.p pVar = (E.p) this.f116c;
                E.y yVar = pVar.f1045e;
                int i15 = yVar.f1109i;
                int iE = yVar.e(iIntValue);
                long jA = pVar.a(0, iE);
                E.o oVar = (E.o) this.f115b;
                return oVar.n(iIntValue, 0, iE, jA, oVar.f1035d);
            case 5:
                C0149c c0149c = (C0149c) this.f116c;
                R0.d dVar = c0149c.f1262a;
                if (dVar != null) {
                    dVar.b();
                }
                c0149c.f1262a = null;
                C0150d c0150d = (C0150d) this.f115b;
                C0781t c0781t = c0150d.f1270b;
                C3137A c3137a = C3137A.f25453a;
                if (c0781t != null) {
                    c0781t.G(c3137a);
                }
                c0150d.f1270b = null;
                return c3137a;
            case 6:
                F.d0 d0Var = (F.d0) this.f116c;
                n.O o6 = d0Var.f1273c;
                Object obj2 = this.f115b;
                o6.i(obj2);
                return new f1(1, d0Var, obj2);
            case 7:
                return new F.d0((SaveableStateRegistry) this.f116c, (Map) obj, (SaveableStateHolder) this.f115b);
            case 8:
                G0.p0 p0Var3 = (G0.p0) obj;
                G.w wVar = new G.w(0, (ArrayList) this.f115b);
                p0Var3.f1991a = true;
                wVar.invoke(p0Var3);
                p0Var3.f1991a = false;
                ((MutableState) this.f116c).getValue();
                return C3137A.f25453a;
            case 9:
                I0.J j4 = (I0.J) ((InterfaceC2864c) obj);
                j4.b();
                C0464l0 c0464l0 = (C0464l0) this.f116c;
                if (((Boolean) c0464l0.f3906s.getValue()).booleanValue() || ((Boolean) c0464l0.f3907t.getValue()).booleanValue()) {
                    InterfaceC2866e.E(j4, (AbstractC2711q) this.f115b, 0L, 0L, 0.0f, null, 126);
                }
                return C3137A.f25453a;
            case 10:
                G0.p0 p0Var4 = (G0.p0) obj;
                ArrayList arrayListH = AbstractC0454g0.h((List) this.f116c, (J4.a) ((C0470o0) this.f115b).f3947b);
                if (arrayListH != null) {
                    int size3 = arrayListH.size();
                    for (int i16 = 0; i16 < size3; i16++) {
                        w4.k kVar2 = (w4.k) arrayListH.get(i16);
                        G0.q0 q0Var3 = (G0.q0) kVar2.f25469a;
                        J4.a aVar = (J4.a) kVar2.f25470b;
                        G0.p0.q(p0Var4, q0Var3, aVar != null ? ((h1.j) aVar.invoke()).f16621a : 0L);
                    }
                }
                return C3137A.f25453a;
            case 11:
                return new f1(4, (MutableState) this.f116c, (z.l) this.f115b);
            case 12:
                InterfaceC2687E interfaceC2687E = (InterfaceC2687E) obj;
                K.V0 v02 = (K.V0) this.f116c;
                C0596g c0596g = v02.f3754b;
                MutableState mutableState = v02.f3753a;
                T0.L l6 = (T0.L) mutableState.getValue();
                if (!kotlin.jvm.internal.o.c(c0596g, (l6 == null || (k6 = l6.f6471a) == null) ? null : k6.f6461a) || (l = (T0.L) mutableState.getValue()) == null || (c0594eC = K.V0.c((C0594e) this.f115b, l)) == null) {
                    c2702hH = null;
                } else {
                    int i17 = c0594eC.f6504b;
                    int i18 = c0594eC.f6505c;
                    c2702hH = l.h(i17, i18);
                    C2632c c2632cB = l.b(i17);
                    int i19 = i18 - 1;
                    C2632c c2632cB2 = l.b(i19);
                    C0604o c0604o = l.f6472b;
                    c2702hH.i(((((long) Float.floatToRawIntBits(c0604o.d(i17) == c0604o.d(i19) ? Math.min(c2632cB2.f21787a, c2632cB.f21787a) : 0.0f)) << 32) | (4294967295L & ((long) Float.floatToRawIntBits(c2632cB.f21788b)))) ^ (-9223372034707292160L));
                }
                K.U0 u02 = c2702hH != null ? new K.U0(c2702hH) : null;
                if (u02 != null) {
                    p0.U u7 = (p0.U) interfaceC2687E;
                    u7.F(u02);
                    u7.k(true);
                }
                return C3137A.f25453a;
            case 13:
                G0.p0 p0Var5 = (G0.p0) obj;
                ArrayList arrayList2 = (ArrayList) this.f116c;
                if (arrayList2 != null) {
                    int size4 = arrayList2.size();
                    for (int i20 = 0; i20 < size4; i20++) {
                        w4.k kVar3 = (w4.k) arrayList2.get(i20);
                        G0.p0.q(p0Var5, (G0.q0) kVar3.f25469a, ((h1.j) kVar3.f25470b).f16621a);
                    }
                }
                ArrayList arrayList3 = (ArrayList) this.f115b;
                if (arrayList3 != null) {
                    int size5 = arrayList3.size();
                    for (int i21 = 0; i21 < size5; i21++) {
                        w4.k kVar4 = (w4.k) arrayList3.get(i21);
                        G0.q0 q0Var4 = (G0.q0) kVar4.f25469a;
                        J4.a aVar2 = (J4.a) kVar4.f25470b;
                        G0.p0.q(p0Var5, q0Var4, aVar2 != null ? ((h1.j) aVar2.invoke()).f16621a : 0L);
                    }
                }
                return C3137A.f25453a;
            case 14:
                String value = (String) obj;
                kotlin.jvm.internal.o.h(value, "value");
                Integer numB0 = S4.w.B0(value);
                if (numB0 != null) {
                    ((MutableIntState) this.f116c).setIntValue(numB0.intValue());
                }
                ((MutableState) this.f115b).setValue(Boolean.FALSE);
                return C3137A.f25453a;
            case 15:
                S4.i iVar = (S4.i) obj;
                kotlin.jvm.internal.A a6 = (kotlin.jvm.internal.A) this.f116c;
                if (a6.f20113a == -1) {
                    a6.f20113a = ((S4.k) iVar).b().f5676a;
                }
                ((kotlin.jvm.internal.A) this.f115b).f20113a = ((S4.k) iVar).b().f5677b + 1;
                return "";
            case 16:
                N.g gVar = (N.g) obj;
                ((J4.a) this.f116c).invoke();
                V.m0 m0Var = (V.m0) this.f115b;
                if (m0Var != null ? ((Boolean) m0Var.invoke()).booleanValue() : true) {
                    gVar.close();
                }
                return C3137A.f25453a;
            case 17:
                HomeSection section = (HomeSection) obj;
                kotlin.jvm.internal.o.h(section, "section");
                String strEncode = Uri.encode(section.getTitle());
                String strEncode2 = Uri.encode((String) this.f116c);
                C2197u c2197u = EnumC2203v.f18595b;
                StringBuilder sbI = AbstractC2761L.i("catalog_browse/collection/", section.getId(), "?title=", strEncode, "&media=movies&categoryUrl=");
                sbI.append(strEncode2);
                androidx.navigation.H.n((androidx.navigation.H) this.f115b, sbI.toString(), null, 6);
                return C3137A.f25453a;
            case 18:
                HomeMetaItem existing = (HomeMetaItem) obj;
                kotlin.jvm.internal.o.h(existing, "existing");
                if (existing.getTmdbId() == ((HomeMetaItem) this.f116c).getTmdbId()) {
                    String lowerCase = S4.p.o1(existing.getType()).toString().toLowerCase(Locale.ROOT);
                    kotlin.jvm.internal.o.g(lowerCase, "toLowerCase(...)");
                    if (S4.p.Q0(lowerCase)) {
                        lowerCase = "movie";
                    }
                    z6 = lowerCase.equals((String) this.f115b);
                }
                return Boolean.valueOf(z6);
            case 19:
                ((W4.d) this.f116c).f8426b.removeCallbacks((C1.a) this.f115b);
                return C3137A.f25453a;
            case 20:
                C0809w c0809w = (C0809w) this.f116c;
                X0.T t6 = (X0.T) this.f115b;
                J4.c cVar = (J4.c) obj;
                X0.B b5 = c0809w.f8530d;
                C3.j jVar = c0809w.f8527a;
                V v6 = c0809w.f8532f;
                b5.getClass();
                AbstractC0808v abstractC0808v = t6.f8463a;
                if (abstractC0808v instanceof X0.y) {
                    List list2 = ((X0.y) abstractC0808v).f8535f;
                    X0.I i22 = t6.f8464b;
                    int i23 = t6.f8465c;
                    ArrayList arrayList4 = new ArrayList(list2.size());
                    int size6 = list2.size();
                    for (int i24 = 0; i24 < size6; i24++) {
                        Object obj3 = list2.get(i24);
                        InterfaceC0806t interfaceC0806t = (InterfaceC0806t) obj3;
                        if (kotlin.jvm.internal.o.c(interfaceC0806t.b(), i22) && interfaceC0806t.c() == i23) {
                            arrayList4.add(obj3);
                        }
                    }
                    if (arrayList4.isEmpty()) {
                        ArrayList arrayList5 = new ArrayList(list2.size());
                        int size7 = list2.size();
                        for (int i25 = 0; i25 < size7; i25++) {
                            Object obj4 = list2.get(i25);
                            if (((InterfaceC0806t) obj4).c() == i23) {
                                arrayList5.add(obj4);
                            }
                        }
                        if (!arrayList5.isEmpty()) {
                            list2 = arrayList5;
                        }
                        int iCompareTo = i22.compareTo(X0.I.f8440b);
                        int i26 = i22.f8452a;
                        if (iCompareTo < 0) {
                            int size8 = list2.size();
                            int i27 = 0;
                            X0.I i28 = null;
                            X0.I i29 = null;
                            while (true) {
                                if (i27 < size8) {
                                    X0.I iB = ((InterfaceC0806t) list2.get(i27)).b();
                                    int i30 = kotlin.jvm.internal.o.i(iB.f8452a, i26);
                                    int i31 = iB.f8452a;
                                    if (i30 < 0) {
                                        if (i28 == null || kotlin.jvm.internal.o.i(i31, i28.f8452a) > 0) {
                                            i28 = iB;
                                        }
                                    } else if (kotlin.jvm.internal.o.i(i31, i26) <= 0) {
                                        i28 = iB;
                                        i29 = i28;
                                    } else if (i29 == null || kotlin.jvm.internal.o.i(i31, i29.f8452a) < 0) {
                                        i29 = iB;
                                    }
                                    i27++;
                                }
                            }
                            if (i28 == null) {
                                i28 = i29;
                            }
                            ArrayList arrayList6 = new ArrayList(list2.size());
                            int size9 = list2.size();
                            for (int i32 = 0; i32 < size9; i32++) {
                                Object obj5 = list2.get(i32);
                                if (kotlin.jvm.internal.o.c(((InterfaceC0806t) obj5).b(), i28)) {
                                    arrayList6.add(obj5);
                                }
                            }
                            arrayList4 = arrayList6;
                        } else {
                            X0.I i33 = X0.I.f8441c;
                            if (i22.compareTo(i33) > 0) {
                                int size10 = list2.size();
                                int i34 = 0;
                                X0.I i35 = null;
                                X0.I i36 = null;
                                while (true) {
                                    if (i34 < size10) {
                                        X0.I iB2 = ((InterfaceC0806t) list2.get(i34)).b();
                                        int i37 = kotlin.jvm.internal.o.i(iB2.f8452a, i26);
                                        int i38 = iB2.f8452a;
                                        if (i37 < 0) {
                                            if (i35 == null || kotlin.jvm.internal.o.i(i38, i35.f8452a) > 0) {
                                                i35 = iB2;
                                            }
                                        } else if (kotlin.jvm.internal.o.i(i38, i26) <= 0) {
                                            i35 = iB2;
                                            i36 = i35;
                                        } else if (i36 == null || kotlin.jvm.internal.o.i(i38, i36.f8452a) < 0) {
                                            i36 = iB2;
                                        }
                                        i34++;
                                    }
                                }
                                if (i36 != null) {
                                    i35 = i36;
                                }
                                arrayList4 = new ArrayList(list2.size());
                                int size11 = list2.size();
                                for (int i39 = 0; i39 < size11; i39++) {
                                    Object obj6 = list2.get(i39);
                                    if (kotlin.jvm.internal.o.c(((InterfaceC0806t) obj6).b(), i35)) {
                                        arrayList4.add(obj6);
                                    }
                                }
                            } else {
                                int size12 = list2.size();
                                int i40 = 0;
                                X0.I i41 = null;
                                X0.I i42 = null;
                                while (true) {
                                    if (i40 < size12) {
                                        X0.I iB3 = ((InterfaceC0806t) list2.get(i40)).b();
                                        i6 = i10;
                                        if (kotlin.jvm.internal.o.i(iB3.f8452a, i33.f8452a) <= 0) {
                                            int i43 = kotlin.jvm.internal.o.i(iB3.f8452a, i26);
                                            int i44 = iB3.f8452a;
                                            if (i43 < 0) {
                                                if (i41 == null || kotlin.jvm.internal.o.i(i44, i41.f8452a) > 0) {
                                                    i41 = iB3;
                                                }
                                            } else if (kotlin.jvm.internal.o.i(i44, i26) <= 0) {
                                                i41 = iB3;
                                                i42 = i41;
                                            } else if (i42 == null || kotlin.jvm.internal.o.i(i44, i42.f8452a) < 0) {
                                                i42 = iB3;
                                            }
                                        }
                                        i40++;
                                        i10 = i6;
                                    } else {
                                        i6 = i10;
                                    }
                                }
                                if (i42 != null) {
                                    i41 = i42;
                                }
                                ArrayList arrayList7 = new ArrayList(list2.size());
                                int size13 = list2.size();
                                for (int i45 = 0; i45 < size13; i45++) {
                                    Object obj7 = list2.get(i45);
                                    if (kotlin.jvm.internal.o.c(((InterfaceC0806t) obj7).b(), i41)) {
                                        arrayList7.add(obj7);
                                    }
                                }
                                if (arrayList7.isEmpty()) {
                                    X0.I i46 = X0.I.f8441c;
                                    int size14 = list2.size();
                                    int i47 = 0;
                                    X0.I i48 = null;
                                    X0.I i49 = null;
                                    while (true) {
                                        if (i47 < size14) {
                                            X0.I iB4 = ((InterfaceC0806t) list2.get(i47)).b();
                                            if (i46 == null || kotlin.jvm.internal.o.i(iB4.f8452a, i46.f8452a) >= 0) {
                                                int i50 = kotlin.jvm.internal.o.i(iB4.f8452a, i26);
                                                int i51 = iB4.f8452a;
                                                if (i50 < 0) {
                                                    if (i48 == null || kotlin.jvm.internal.o.i(i51, i48.f8452a) > 0) {
                                                        i48 = iB4;
                                                    }
                                                } else if (kotlin.jvm.internal.o.i(i51, i26) <= 0) {
                                                    i48 = iB4;
                                                    i49 = i48;
                                                } else if (i49 == null || kotlin.jvm.internal.o.i(i51, i49.f8452a) < 0) {
                                                    i49 = iB4;
                                                }
                                            }
                                            i47++;
                                        }
                                    }
                                    if (i49 != null) {
                                        i48 = i49;
                                    }
                                    arrayList4 = new ArrayList(list2.size());
                                    int size15 = list2.size();
                                    for (int i52 = 0; i52 < size15; i52++) {
                                        Object obj8 = list2.get(i52);
                                        if (kotlin.jvm.internal.o.c(((InterfaceC0806t) obj8).b(), i48)) {
                                            arrayList4.add(obj8);
                                        }
                                    }
                                } else {
                                    arrayList4 = arrayList7;
                                }
                                C4.f fVar = b5.f8432a;
                                size = arrayList4.size();
                                i7 = 0;
                                ArrayList arrayListC = null;
                                while (true) {
                                    if (i7 >= size) {
                                    }
                                    i7 += i8;
                                    i6 = i8;
                                }
                                list = (List) kVar.f25469a;
                                Object obj9 = kVar.f25470b;
                                if (list == null) {
                                }
                            }
                        }
                        i6 = 1;
                        C4.f fVar2 = b5.f8432a;
                        size = arrayList4.size();
                        i7 = 0;
                        ArrayList arrayListC2 = null;
                        while (true) {
                            if (i7 >= size) {
                            }
                            i7 += i8;
                            i6 = i8;
                        }
                        list = (List) kVar.f25469a;
                        Object obj92 = kVar.f25470b;
                        if (list == null) {
                        }
                    } else {
                        i6 = 1;
                        C4.f fVar22 = b5.f8432a;
                        size = arrayList4.size();
                        i7 = 0;
                        ArrayList arrayListC22 = null;
                        while (true) {
                            if (i7 >= size) {
                                kVar = new w4.k(arrayListC22, v6.invoke(t6));
                            } else {
                                InterfaceC0806t interfaceC0806t2 = (InterfaceC0806t) arrayList4.get(i7);
                                int iA = interfaceC0806t2.a();
                                if (iA == 0) {
                                    synchronized (((C1134i) fVar22.f743d)) {
                                        try {
                                            jVar.getClass();
                                            C0802o c0802o = new C0802o(interfaceC0806t2);
                                            C0801n c0801n2 = (C0801n) ((C2594v) fVar22.f741b).get(c0802o);
                                            if (c0801n2 == null) {
                                                c0801n2 = (C0801n) ((n.N) fVar22.f742c).d(c0802o);
                                            }
                                            if (c0801n2 != null) {
                                                objInvoke = c0801n2.f8513a;
                                            } else {
                                                try {
                                                    objInvoke = jVar.d(interfaceC0806t2);
                                                } catch (Exception unused) {
                                                    objInvoke = v6.invoke(t6);
                                                }
                                                C4.f.L(fVar22, interfaceC0806t2, jVar, objInvoke);
                                            }
                                        } catch (Throwable th) {
                                            throw th;
                                        }
                                        break;
                                    }
                                    if (objInvoke == null) {
                                        objInvoke = v6.invoke(t6);
                                    }
                                    kVar = new w4.k(arrayListC22, W.d.C(t6.f8466d, objInvoke, interfaceC0806t2, t6.f8464b, t6.f8465c));
                                } else if (iA == i6) {
                                    synchronized (((C1134i) fVar22.f743d)) {
                                        try {
                                            jVar.getClass();
                                            C0802o c0802o2 = new C0802o(interfaceC0806t2);
                                            C0801n c0801n3 = (C0801n) ((C2594v) fVar22.f741b).get(c0802o2);
                                            if (c0801n3 == null) {
                                                c0801n3 = (C0801n) ((n.N) fVar22.f742c).d(c0802o2);
                                            }
                                            if (c0801n3 != null) {
                                                objD = c0801n3.f8513a;
                                            } else {
                                                try {
                                                    objD = jVar.d(interfaceC0806t2);
                                                } catch (Throwable th2) {
                                                    objD = AbstractC2467b.d(th2);
                                                }
                                                if (objD instanceof w4.m) {
                                                    objD = null;
                                                }
                                                C4.f.L(fVar22, interfaceC0806t2, jVar, objD);
                                            }
                                        } catch (Throwable th3) {
                                            throw th3;
                                        }
                                        break;
                                    }
                                    if (objD != null) {
                                        kVar = new w4.k(arrayListC22, W.d.C(t6.f8466d, objD, interfaceC0806t2, t6.f8464b, t6.f8465c));
                                    } else {
                                        i8 = 1;
                                        i7 += i8;
                                        i6 = i8;
                                    }
                                } else {
                                    if (iA != 2) {
                                        throw new IllegalStateException("Unknown font type " + interfaceC0806t2);
                                    }
                                    fVar22.getClass();
                                    jVar.getClass();
                                    C0802o c0802o3 = new C0802o(interfaceC0806t2);
                                    synchronized (((C1134i) fVar22.f743d)) {
                                        c0801n = (C0801n) ((C2594v) fVar22.f741b).get(c0802o3);
                                        if (c0801n == null) {
                                            c0801n = (C0801n) ((n.N) fVar22.f742c).d(c0802o3);
                                        }
                                    }
                                    if (c0801n != null) {
                                        i8 = 1;
                                        Object obj10 = c0801n.f8513a;
                                        if (obj10 != null) {
                                            kVar = new w4.k(arrayListC22, W.d.C(t6.f8466d, obj10, interfaceC0806t2, t6.f8464b, t6.f8465c));
                                        }
                                    } else if (arrayListC22 == null) {
                                        i8 = 1;
                                        arrayListC22 = AbstractC3252r.C(interfaceC0806t2);
                                    } else {
                                        i8 = 1;
                                        arrayListC22.add(interfaceC0806t2);
                                    }
                                    i7 += i8;
                                    i6 = i8;
                                }
                            }
                        }
                        list = (List) kVar.f25469a;
                        Object obj922 = kVar.f25470b;
                        if (list == null) {
                            u6 = new X0.V(obj922, true);
                        } else {
                            C0800m c0800m = new C0800m(list, obj922, t6, b5.f8432a, cVar, jVar);
                            V4.E.y(b5.f8433b, null, V4.D.f8228d, new X0.z(c0800m, null), 1);
                            u6 = new X0.U(c0800m);
                        }
                    }
                } else {
                    u6 = null;
                }
                if (u6 != null) {
                    return u6;
                }
                C0.B b6 = c0809w.f8531e;
                b6.getClass();
                AbstractC0808v abstractC0808v2 = t6.f8463a;
                X0.O o7 = (X0.O) b6.f506b;
                int i53 = t6.f8465c;
                X0.I i54 = t6.f8464b;
                if (abstractC0808v2 == null || (abstractC0808v2 instanceof C0804q)) {
                    typefaceC = o7.c(i54, i53);
                } else if (abstractC0808v2 instanceof X0.K) {
                    typefaceC = o7.e((X0.K) abstractC0808v2, i54, i53);
                } else {
                    if (!(abstractC0808v2 instanceof X0.L)) {
                        v3 = null;
                        if (v3 == null) {
                            return v3;
                        }
                        throw new IllegalStateException("Could not load font");
                    }
                    typefaceC = (Typeface) ((X0.L) abstractC0808v2).f8456f.f506b;
                }
                v3 = new X0.V(typefaceC, true);
                if (v3 == null) {
                }
                break;
            case 21:
                T.p pVar2 = (T.p) this.f116c;
                X0.T t7 = (X0.T) this.f115b;
                X0.W w6 = (X0.W) obj;
                synchronized (((C1134i) pVar2.f6345b)) {
                    try {
                        if (w6.a()) {
                        }
                    } finally {
                    }
                }
                return C3137A.f25453a;
            case 22:
                InterfaceC0866g interfaceC0866g = (InterfaceC0866g) obj;
                StringBuilder sbT = Z0.o.t(((InterfaceC0866g) this.f116c) == interfaceC0866g ? " > " : "   ");
                ((T.p) this.f115b).getClass();
                if (interfaceC0866g instanceof C0860a) {
                    sb = new StringBuilder("CommitTextCommand(text.length=");
                    C0860a c0860a = (C0860a) interfaceC0866g;
                    sb.append(c0860a.f9074a.f6510b.length());
                    sb.append(", newCursorPosition=");
                    i9 = c0860a.f9075b;
                } else {
                    if (!(interfaceC0866g instanceof Z0.w)) {
                        if (interfaceC0866g instanceof Z0.v) {
                            strConcat = ((Z0.v) interfaceC0866g).toString();
                        } else if (interfaceC0866g instanceof C0864e) {
                            strConcat = ((C0864e) interfaceC0866g).toString();
                        } else if (interfaceC0866g instanceof C0865f) {
                            strConcat = ((C0865f) interfaceC0866g).toString();
                        } else if (interfaceC0866g instanceof Z0.x) {
                            strConcat = ((Z0.x) interfaceC0866g).toString();
                        } else if (interfaceC0866g instanceof Z0.i) {
                            ((Z0.i) interfaceC0866g).getClass();
                            strConcat = "FinishComposingTextCommand()";
                        } else if (interfaceC0866g instanceof C0863d) {
                            ((C0863d) interfaceC0866g).getClass();
                            strConcat = "DeleteAllCommand()";
                        } else {
                            String strC = kotlin.jvm.internal.D.a(interfaceC0866g.getClass()).c();
                            if (strC == null) {
                                strC = "{anonymous EditCommand}";
                            }
                            strConcat = "Unknown EditCommand: ".concat(strC);
                        }
                        sbT.append(strConcat);
                        return sbT.toString();
                    }
                    sb = new StringBuilder("SetComposingTextCommand(text.length=");
                    Z0.w wVar2 = (Z0.w) interfaceC0866g;
                    sb.append(wVar2.f9131a.f6510b.length());
                    sb.append(", newCursorPosition=");
                    i9 = wVar2.f9132b;
                }
                strConcat = com.google.android.recaptcha.internal.a.m(sb, i9, ')');
                sbT.append(strConcat);
                return sbT.toString();
            case 23:
                ((C1212m) this.f116c).f13339a.setValue(new O((e1) this.f115b, (e1) obj));
                return C3137A.f25453a;
            case 24:
                return Recomposer.effectJob$lambda$0$0$0$0((Recomposer) this.f116c, (Throwable) this.f115b, (Throwable) obj);
            case 25:
                return Recomposer.writeObserverOf$lambda$0((ControlledComposition) this.f116c, (n.O) this.f115b, obj);
            case 26:
                return Operations.toCollectionString$lambda$0((Operations) this.f116c, (String) this.f115b, obj);
            case 27:
                return SnapshotStateList$Companion$CREATOR$1.createFromParcel$lambda$0((Parcel) this.f116c, (ClassLoader) this.f115b, ((Integer) obj).intValue());
            default:
                o0.e eVar = (o0.e) obj;
                float fFloatValue = ((Number) ((q.y0) this.f116c).f23483m.getValue()).floatValue();
                float fIntBitsToFloat = Float.intBitsToFloat((int) (eVar.f21799a >> 32)) * fFloatValue;
                float fIntBitsToFloat2 = Float.intBitsToFloat((int) (eVar.f21799a & 4294967295L)) * fFloatValue;
                MutableState mutableState2 = (MutableState) this.f115b;
                if (Float.intBitsToFloat((int) (((o0.e) mutableState2.getValue()).f21799a >> 32)) != fIntBitsToFloat || Float.intBitsToFloat((int) (((o0.e) mutableState2.getValue()).f21799a & 4294967295L)) != fIntBitsToFloat2) {
                    mutableState2.setValue(new o0.e((((long) Float.floatToRawIntBits(fIntBitsToFloat2)) & 4294967295L) | (((long) Float.floatToRawIntBits(fIntBitsToFloat)) << 32)));
                }
                return C3137A.f25453a;
        }
    }

    public /* synthetic */ B0(i2 i2Var, q.y0 y0Var, MutableState mutableState) {
        this.f114a = 28;
        this.f116c = y0Var;
        this.f115b = mutableState;
    }
}
