package h3;

import B.AbstractC0057e;
import B.AbstractC0069k;
import B.AbstractC0084s;
import B.C0059f;
import B.C0093w0;
import B.InterfaceC0092w;
import G0.InterfaceC0245a0;
import I0.C0287d;
import I0.C0289e;
import I0.C0291f;
import I0.C0293g;
import I0.InterfaceC0295h;
import M2.C0508f0;
import M2.C0518i1;
import M2.C0524k1;
import M2.C0527l1;
import M2.C0537p;
import a0.AbstractC0918m0;
import android.content.Context;
import androidx.compose.runtime.ComposablesKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionLocalMap;
import androidx.compose.runtime.EffectsKt;
import androidx.compose.runtime.MutableIntState;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.media3.exoplayer.RendererCapabilities;
import f1.C2023k;
import i0.AbstractC2237a;
import i0.C2239c;
import i0.C2245i;
import i0.C2252p;
import i0.InterfaceC2255s;
import java.util.ArrayList;
import java.util.List;
import n0.AbstractC2603d;
import p0.C2714u;
import q.AbstractC2761L;
import v.AbstractC3058z;
import v.C3000R0;
import v0.C3068f;
import w4.C3137A;
import x4.AbstractC3252r;

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

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

    /* JADX INFO: renamed from: B, reason: collision with root package name */
    public final /* synthetic */ n0.x f17293B;

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

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

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

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

    /* JADX INFO: renamed from: G, reason: collision with root package name */
    public final /* synthetic */ MutableState f17298G;

    /* JADX INFO: renamed from: H, reason: collision with root package name */
    public final /* synthetic */ MutableState f17299H;

    /* JADX INFO: renamed from: I, reason: collision with root package name */
    public final /* synthetic */ MutableIntState f17300I;

    /* JADX INFO: renamed from: J, reason: collision with root package name */
    public final /* synthetic */ MutableState f17301J;

    /* JADX INFO: renamed from: K, reason: collision with root package name */
    public final /* synthetic */ MutableIntState f17302K;

    /* JADX INFO: renamed from: L, reason: collision with root package name */
    public final /* synthetic */ MutableState f17303L;

    /* JADX INFO: renamed from: M, reason: collision with root package name */
    public final /* synthetic */ V4.C f17304M;

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ MutableState f17308d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ MutableState f17309e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ MutableState f17310f;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ MutableState f17311j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ MutableState f17312k;
    public final /* synthetic */ boolean l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ C3000R0 f17313m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final /* synthetic */ long f17314n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final /* synthetic */ n0.x f17315o;

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

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final /* synthetic */ MutableState f17317q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final /* synthetic */ MutableState f17318r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ MutableIntState f17319s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final /* synthetic */ J4.a f17320t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final /* synthetic */ J4.a f17321u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final /* synthetic */ String f17322v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final /* synthetic */ String f17323w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final /* synthetic */ String f17324x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final /* synthetic */ String f17325y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public final /* synthetic */ Context f17326z;

    public S3(MutableState mutableState, State state, MutableState mutableState2, MutableState mutableState3, MutableState mutableState4, MutableState mutableState5, MutableState mutableState6, MutableState mutableState7, boolean z6, C3000R0 c3000r0, long j4, n0.x xVar, State state2, MutableState mutableState8, MutableState mutableState9, MutableIntState mutableIntState, J4.a aVar, J4.a aVar2, String str, String str2, String str3, String str4, Context context, State state3, n0.x xVar2, State state4, State state5, State state6, State state7, MutableState mutableState10, MutableState mutableState11, MutableIntState mutableIntState2, MutableState mutableState12, MutableIntState mutableIntState3, MutableState mutableState13, V4.C c6) {
        this.f17305a = mutableState;
        this.f17306b = state;
        this.f17307c = mutableState2;
        this.f17308d = mutableState3;
        this.f17309e = mutableState4;
        this.f17310f = mutableState5;
        this.f17311j = mutableState6;
        this.f17312k = mutableState7;
        this.l = z6;
        this.f17313m = c3000r0;
        this.f17314n = j4;
        this.f17315o = xVar;
        this.f17316p = state2;
        this.f17317q = mutableState8;
        this.f17318r = mutableState9;
        this.f17319s = mutableIntState;
        this.f17320t = aVar;
        this.f17321u = aVar2;
        this.f17322v = str;
        this.f17323w = str2;
        this.f17324x = str3;
        this.f17325y = str4;
        this.f17326z = context;
        this.f17292A = state3;
        this.f17293B = xVar2;
        this.f17294C = state4;
        this.f17295D = state5;
        this.f17296E = state6;
        this.f17297F = state7;
        this.f17298G = mutableState10;
        this.f17299H = mutableState11;
        this.f17300I = mutableIntState2;
        this.f17301J = mutableState12;
        this.f17302K = mutableIntState3;
        this.f17303L = mutableState13;
        this.f17304M = c6;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:121:0x0595  */
    @Override // J4.f
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invoke(Object obj, Object obj2, Object obj3) {
        C3068f c3068fD0;
        boolean z6;
        List list;
        MutableState mutableState;
        State state;
        MutableState mutableState2;
        List list2;
        MutableIntState mutableIntState;
        Composer composer;
        String str;
        MutableIntState mutableIntState2;
        long j4;
        float f6;
        char c6;
        boolean z7;
        Boolean boolValueOf;
        MutableState mutableState3;
        J4.a aVar;
        int i6;
        Composer composer2;
        S3 s32;
        boolean z8;
        Composer composer3;
        w4.k kVar;
        InterfaceC0092w Background = (InterfaceC0092w) obj;
        Composer composer4 = (Composer) obj2;
        int iIntValue = ((Number) obj3).intValue();
        kotlin.jvm.internal.o.h(Background, "$this$Background");
        if ((iIntValue & 17) == 16 && composer4.getSkipping()) {
            composer4.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(550382082, iIntValue, -1, "com.debridstream.tv.screens.SettingsTV2.<anonymous> (SettingsTV2.kt:472)");
            }
            MutableState mutableState4 = this.f17305a;
            boolean zBooleanValue = ((Boolean) mutableState4.getValue()).booleanValue();
            State state2 = this.f17306b;
            V2.n3 n3Var = (V2.n3) state2.getValue();
            composer4.startReplaceGroup(1611969327);
            Object objRememberedValue = composer4.rememberedValue();
            Composer.Companion companion = Composer.Companion;
            if (objRememberedValue == companion.getEmpty()) {
                objRememberedValue = new B3(mutableState4, 2);
                composer4.updateRememberedValue(objRememberedValue);
            }
            composer4.endReplaceGroup();
            G3.g(zBooleanValue, n3Var, (J4.a) objRememberedValue, composer4, RendererCapabilities.DECODER_SUPPORT_MASK);
            MutableState mutableState5 = this.f17307c;
            boolean zBooleanValue2 = ((Boolean) mutableState5.getValue()).booleanValue();
            V2.n3 n3Var2 = (V2.n3) state2.getValue();
            composer4.startReplaceGroup(1611972813);
            Object objRememberedValue2 = composer4.rememberedValue();
            if (objRememberedValue2 == companion.getEmpty()) {
                objRememberedValue2 = new B3(mutableState5, 3);
                composer4.updateRememberedValue(objRememberedValue2);
            }
            composer4.endReplaceGroup();
            G3.m(zBooleanValue2, n3Var2, (J4.a) objRememberedValue2, composer4, RendererCapabilities.DECODER_SUPPORT_MASK);
            MutableState mutableState6 = this.f17308d;
            boolean zBooleanValue3 = ((Boolean) mutableState6.getValue()).booleanValue();
            V2.n3 n3Var3 = (V2.n3) state2.getValue();
            composer4.startReplaceGroup(1611976431);
            Object objRememberedValue3 = composer4.rememberedValue();
            if (objRememberedValue3 == companion.getEmpty()) {
                objRememberedValue3 = new B3(mutableState6, 4);
                composer4.updateRememberedValue(objRememberedValue3);
            }
            composer4.endReplaceGroup();
            G3.j(zBooleanValue3, n3Var3, (J4.a) objRememberedValue3, composer4, RendererCapabilities.DECODER_SUPPORT_MASK);
            composer4.startReplaceGroup(1611979326);
            MutableState mutableState7 = this.f17309e;
            boolean zBooleanValue4 = ((Boolean) mutableState7.getValue()).booleanValue();
            C2252p c2252p = C2252p.f18820a;
            if (zBooleanValue4) {
                MutableState mutableState8 = this.f17310f;
                int iOrdinal = ((EnumC2169p0) mutableState8.getValue()).ordinal();
                if (iOrdinal == 0) {
                    kVar = new w4.k("Primary Subtitle Language", ((V2.n3) state2.getValue()).f7977g.l);
                } else if (iOrdinal == 1) {
                    kVar = new w4.k("Secondary Subtitle Language", ((V2.n3) state2.getValue()).f7977g.f7447m);
                } else if (iOrdinal == 2) {
                    kVar = new w4.k("Primary Audio Language", ((V2.n3) state2.getValue()).f7977g.f7448n);
                } else {
                    if (iOrdinal != 3) {
                        throw new E3.v();
                    }
                    kVar = new w4.k("Secondary Audio Language", ((V2.n3) state2.getValue()).f7977g.f7449o);
                }
                String str2 = (String) kVar.f25469a;
                String str3 = (String) kVar.f25470b;
                List list3 = (List) T3.f17423t.getValue();
                composer4.startReplaceGroup(1612004148);
                Object objRememberedValue4 = composer4.rememberedValue();
                if (objRememberedValue4 == companion.getEmpty()) {
                    objRememberedValue4 = new C0537p(mutableState8, mutableState7, 3);
                    composer4.updateRememberedValue(objRememberedValue4);
                }
                J4.c cVar = (J4.c) objRememberedValue4;
                Object objJ = A0.a.j(composer4, 1612024171);
                if (objJ == companion.getEmpty()) {
                    objJ = new B3(mutableState7, 5);
                    composer4.updateRememberedValue(objJ);
                }
                composer4.endReplaceGroup();
                W.b.L(str2, list3, str3, cVar, (J4.a) objJ, AbstractC2237a.d(c2252p, 10.0f), composer4, 224256);
            }
            composer4.endReplaceGroup();
            B.P p6 = B.U0.f193c;
            InterfaceC2255s interfaceC2255sC = AbstractC0057e.C(p6, 40, 24);
            B.P0 p0A = B.N0.a(AbstractC0069k.f323a, C2239c.f18802m, composer4, 0);
            int iHashCode = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer4, 0));
            CompositionLocalMap currentCompositionLocalMap = composer4.getCurrentCompositionLocalMap();
            InterfaceC2255s interfaceC2255sC2 = AbstractC2237a.c(composer4, interfaceC2255sC);
            InterfaceC0295h.f2384g.getClass();
            C0291f c0291f = C0293g.f2375b;
            if (composer4.getApplier() == null) {
                ComposablesKt.invalidApplier();
            }
            composer4.startReusableNode();
            if (composer4.getInserting()) {
                composer4.createNode(c0291f);
            } else {
                composer4.useNode();
            }
            Composer composerM81constructorimpl = Updater.m81constructorimpl(composer4);
            C0289e c0289e = C0293g.f2379f;
            Updater.m89setimpl(composerM81constructorimpl, p0A, c0289e);
            C0289e c0289e2 = C0293g.f2378e;
            Updater.m89setimpl(composerM81constructorimpl, currentCompositionLocalMap, c0289e2);
            Integer numValueOf = Integer.valueOf(iHashCode);
            C0289e c0289e3 = C0293g.f2380g;
            Updater.m86initimpl(composerM81constructorimpl, numValueOf, c0289e3);
            C0287d c0287d = C0293g.f2381h;
            Updater.m87reconcileimpl(composerM81constructorimpl, c0287d);
            C0289e c0289e4 = C0293g.f2377d;
            Updater.m89setimpl(composerM81constructorimpl, interfaceC2255sC2, c0289e4);
            if (1.0f <= 0.0d) {
                C.a.a("invalid weight; must be greater than zero");
            }
            InterfaceC2255s interfaceC2255sC3 = B.U0.c(new C0093w0(1.0f, true), 1.0f);
            InterfaceC0245a0 interfaceC0245a0D = AbstractC0084s.d(C2239c.f18798e, false);
            int iHashCode2 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer4, 0));
            CompositionLocalMap currentCompositionLocalMap2 = composer4.getCurrentCompositionLocalMap();
            InterfaceC2255s interfaceC2255sC4 = AbstractC2237a.c(composer4, interfaceC2255sC3);
            if (composer4.getApplier() == null) {
                ComposablesKt.invalidApplier();
            }
            composer4.startReusableNode();
            if (composer4.getInserting()) {
                composer4.createNode(c0291f);
            } else {
                composer4.useNode();
            }
            Composer composerD = AbstractC2761L.d(composer4, interfaceC0245a0D, c0289e, currentCompositionLocalMap2, c0289e2);
            AbstractC2761L.l(iHashCode2, composerD, c0289e3, composerD, c0287d);
            Updater.m89setimpl(composerD, interfaceC2255sC4, c0289e4);
            MutableState mutableState9 = this.f17311j;
            C5 c52 = (C5) mutableState9.getValue();
            C5 c53 = C5.f16741a;
            MutableState mutableState10 = this.f17312k;
            if (c52 == c53) {
                c3068fD0 = W0.e.z();
            } else {
                switch (((EnumC2157n0) mutableState10.getValue()).ordinal()) {
                    case 0:
                        c3068fD0 = W.b.d0();
                        break;
                    case 1:
                        c3068fD0 = W.b.e0();
                        break;
                    case 2:
                    case 8:
                        c3068fD0 = W.a.g0();
                        break;
                    case 3:
                        c3068fD0 = W.a.n0();
                        break;
                    case 4:
                        c3068fD0 = W.c.J();
                        break;
                    case 5:
                        c3068fD0 = W.d.t();
                        break;
                    case 6:
                        c3068fD0 = android.support.v4.media.session.b.t();
                        break;
                    case 7:
                        c3068fD0 = W.b.g0();
                        break;
                    case 9:
                        c3068fD0 = W.b.g0();
                        break;
                    case 10:
                        c3068fD0 = W.c.G();
                        break;
                    case 11:
                        c3068fD0 = W.b.k0();
                        break;
                    case 12:
                        c3068fD0 = W0.e.y();
                        break;
                    default:
                        throw new E3.v();
                }
            }
            String str4 = ((C5) mutableState9.getValue()) == c53 ? "Settings" : T3.e((EnumC2157n0) mutableState10.getValue()).f17761a;
            C2245i c2245i = C2239c.f18806q;
            C0059f c0059f = AbstractC0069k.f325c;
            C3068f c3068f = c3068fD0;
            B.D dA = B.C.a(c0059f, c2245i, composer4, 48);
            int iHashCode3 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer4, 0));
            CompositionLocalMap currentCompositionLocalMap3 = composer4.getCurrentCompositionLocalMap();
            InterfaceC2255s interfaceC2255sC5 = AbstractC2237a.c(composer4, c2252p);
            if (composer4.getApplier() == null) {
                ComposablesKt.invalidApplier();
            }
            composer4.startReusableNode();
            if (composer4.getInserting()) {
                composer4.createNode(c0291f);
            } else {
                composer4.useNode();
            }
            Composer composerF = Z0.o.f(composer4, dA, c0289e, currentCompositionLocalMap3, c0289e2);
            AbstractC2761L.l(iHashCode3, composerF, c0289e3, composerF, c0287d);
            Updater.m89setimpl(composerF, interfaceC2255sC5, c0289e4);
            AbstractC0918m0.b(c3068f, null, B.U0.p(c2252p, 54), T3.f17417n, composer4, 3504, 0);
            float f7 = 8;
            AbstractC0057e.g(B.U0.h(c2252p, f7), composer4, 6);
            float f8 = f7;
            a0.m2.d(str4, null, T3.f17418o, W.a.l0(30), X0.I.f8449o, T3.f17419p, 0L, new C2023k(3), 0L, 0, false, 0, 0, null, null, composer4, 14180736, 0, 260906);
            Composer composer5 = composer4;
            composer5.endNode();
            composer5.endNode();
            AbstractC0057e.g(B.U0.t(c2252p, 22), composer5, 6);
            InterfaceC2255s interfaceC2255sThen = B.U0.t(c2252p, 590).then(p6);
            C2245i c2245i2 = C2239c.f18805p;
            B.D dA2 = B.C.a(c0059f, c2245i2, composer5, 0);
            int iHashCode4 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer5, 0));
            CompositionLocalMap currentCompositionLocalMap4 = composer5.getCurrentCompositionLocalMap();
            InterfaceC2255s interfaceC2255sC6 = AbstractC2237a.c(composer5, interfaceC2255sThen);
            if (composer5.getApplier() == null) {
                ComposablesKt.invalidApplier();
            }
            composer5.startReusableNode();
            if (composer5.getInserting()) {
                composer5.createNode(c0291f);
            } else {
                composer5.useNode();
            }
            Composer composerF2 = Z0.o.f(composer5, dA2, c0289e, currentCompositionLocalMap4, c0289e2);
            AbstractC2761L.l(iHashCode4, composerF2, c0289e3, composerF2, c0287d);
            Updater.m89setimpl(composerF2, interfaceC2255sC6, c0289e4);
            int iOrdinal2 = ((C5) mutableState9.getValue()).ordinal();
            String str5 = this.f17323w;
            boolean z9 = this.l;
            long j6 = this.f17314n;
            MutableState mutableState11 = this.f17318r;
            J4.a aVar2 = this.f17320t;
            J4.a aVar3 = this.f17321u;
            if (iOrdinal2 == 0) {
                composer5.startReplaceGroup(-1633548351);
                State state3 = this.f17316p;
                int size = ((List) state3.getValue()).size();
                composer5.startReplaceGroup(1194229134);
                boolean zChanged = composer5.changed(size);
                Object objRememberedValue5 = composer5.rememberedValue();
                if (!zChanged) {
                    Object obj4 = objRememberedValue5;
                    if (objRememberedValue5 == companion.getEmpty()) {
                        int size2 = ((List) state3.getValue()).size();
                        ArrayList arrayList = new ArrayList(size2);
                        for (int i7 = 0; i7 < size2; i7++) {
                            arrayList.add(new n0.x());
                        }
                        composer5.updateRememberedValue(arrayList);
                        obj4 = arrayList;
                    }
                    List list4 = (List) obj4;
                    Object objJ2 = A0.a.j(composer5, 1194232713);
                    Composer.Companion companion2 = Composer.Companion;
                    if (objJ2 == companion2.getEmpty()) {
                        objJ2 = A0.a.s(composer5);
                    }
                    n0.x xVar = (n0.x) objJ2;
                    composer5.endReplaceGroup();
                    C5 c54 = (C5) mutableState9.getValue();
                    MutableState mutableState12 = this.f17317q;
                    Boolean bool = (Boolean) mutableState12.getValue();
                    bool.getClass();
                    Integer numValueOf2 = Integer.valueOf(((List) state3.getValue()).size());
                    composer5.startReplaceGroup(1194236640);
                    boolean zChanged2 = composer5.changed(z9) | composer5.changedInstance(list4);
                    Object objRememberedValue6 = composer5.rememberedValue();
                    if (zChanged2 || objRememberedValue6 == companion2.getEmpty()) {
                        objRememberedValue6 = new N3(z9, xVar, list4, mutableState9, mutableState11, mutableState12, state3, null);
                        z6 = z9;
                        list = list4;
                        mutableState = mutableState11;
                        state = state3;
                        composer5.updateRememberedValue(objRememberedValue6);
                    } else {
                        z6 = z9;
                        mutableState = mutableState11;
                        state = state3;
                        list = list4;
                    }
                    J4.e eVar = (J4.e) objRememberedValue6;
                    composer5.endReplaceGroup();
                    J4.a aVar4 = aVar3;
                    List list5 = list;
                    EffectsKt.LaunchedEffect(c54, bool, numValueOf2, eVar, composer5, 0);
                    C5 c55 = (C5) mutableState9.getValue();
                    Boolean bool2 = (Boolean) mutableState.getValue();
                    bool2.getClass();
                    MutableIntState mutableIntState3 = this.f17319s;
                    Object[] objArr = {c55, bool2, Integer.valueOf(mutableIntState3.getIntValue()), Integer.valueOf(((List) state.getValue()).size())};
                    composer5.startReplaceGroup(1194252380);
                    boolean zChangedInstance = composer5.changedInstance(list5);
                    Object objRememberedValue7 = composer5.rememberedValue();
                    if (zChangedInstance || objRememberedValue7 == companion2.getEmpty()) {
                        mutableState2 = mutableState9;
                        objRememberedValue7 = new O3(list5, mutableState2, mutableState, state, mutableIntState3, null);
                        list2 = list5;
                        mutableIntState = mutableIntState3;
                        composer5.updateRememberedValue(objRememberedValue7);
                    } else {
                        mutableIntState = mutableIntState3;
                        list2 = list5;
                        mutableState2 = mutableState9;
                    }
                    composer5.endReplaceGroup();
                    EffectsKt.LaunchedEffect(objArr, (J4.e) objRememberedValue7, composer5, 0);
                    InterfaceC2255s interfaceC2255sF = B.U0.f(c2252p, 1.0f);
                    if (1.0f <= 0.0d) {
                        C.a.a("invalid weight; must be greater than zero");
                    }
                    InterfaceC2255s interfaceC2255sX = AbstractC3058z.x(interfaceC2255sF.then(new C0093w0(1.0f > Float.MAX_VALUE ? Float.MAX_VALUE : 1.0f, true)), this.f17313m, true);
                    B.D dA3 = B.C.a(AbstractC0069k.f325c, c2245i2, composer5, 0);
                    int iHashCode5 = Long.hashCode(ComposablesKt.getCurrentCompositeKeyHashCode(composer5, 0));
                    CompositionLocalMap currentCompositionLocalMap5 = composer5.getCurrentCompositionLocalMap();
                    InterfaceC2255s interfaceC2255sC7 = AbstractC2237a.c(composer5, interfaceC2255sX);
                    InterfaceC0295h.f2384g.getClass();
                    C0291f c0291f2 = C0293g.f2375b;
                    if (composer5.getApplier() == null) {
                        ComposablesKt.invalidApplier();
                    }
                    composer5.startReusableNode();
                    if (composer5.getInserting()) {
                        composer5.createNode(c0291f2);
                    } else {
                        composer5.useNode();
                    }
                    Composer composerM81constructorimpl2 = Updater.m81constructorimpl(composer5);
                    Updater.m89setimpl(composerM81constructorimpl2, dA3, C0293g.f2379f);
                    Updater.m89setimpl(composerM81constructorimpl2, currentCompositionLocalMap5, C0293g.f2378e);
                    Updater.m86initimpl(composerM81constructorimpl2, Integer.valueOf(iHashCode5), C0293g.f2380g);
                    Updater.m87reconcileimpl(composerM81constructorimpl2, C0293g.f2381h);
                    Updater.m89setimpl(composerM81constructorimpl2, interfaceC2255sC7, C0293g.f2377d);
                    composer5.startReplaceGroup(190258932);
                    if (z6) {
                        composer = composer5;
                        str = str5;
                        mutableIntState2 = mutableIntState;
                        j4 = j6;
                    } else {
                        Composer composer6 = composer5;
                        str = str5;
                        mutableIntState2 = mutableIntState;
                        j4 = j6;
                        T3.b("Unlock Premium Benefits", null, false, W.b.k0(), null, j4, AbstractC2603d.k(c2252p, xVar), aVar2, composer6, 6, 22);
                        AbstractC0057e.g(B.U0.h(c2252p, 10), composer6, 6);
                        composer = composer6;
                    }
                    composer.endReplaceGroup();
                    composer.startReplaceGroup(190278529);
                    int i8 = 0;
                    for (Object obj5 : (List) state.getValue()) {
                        int i9 = i8 + 1;
                        if (i8 < 0) {
                            AbstractC3252r.F();
                            throw null;
                        }
                        C2082b c2082b = (C2082b) obj5;
                        if (c2082b.f17736d != null) {
                            composer.startReplaceGroup(-1758792481);
                            composer.startReplaceGroup(358907763);
                            c6 = '\n';
                            if (i8 > 0) {
                                i6 = 6;
                                AbstractC0057e.g(B.U0.h(c2252p, 10), composer, 6);
                            } else {
                                i6 = 6;
                            }
                            composer.endReplaceGroup();
                            z7 = false;
                            T3.c(composer, 0, c2082b.f17736d);
                            f6 = f8;
                            AbstractC0057e.g(B.U0.h(c2252p, f6), composer, i6);
                            composer.endReplaceGroup();
                        } else {
                            f6 = f8;
                            c6 = '\n';
                            z7 = false;
                            if (i8 > 0) {
                                composer.startReplaceGroup(-1758533197);
                                AbstractC0057e.g(B.U0.h(c2252p, 6), composer, 6);
                                composer.endReplaceGroup();
                            } else {
                                composer.startReplaceGroup(-1758436136);
                                composer.endReplaceGroup();
                            }
                        }
                        boolean z10 = c2082b.f17737e;
                        boolean z11 = !z10;
                        if (z10) {
                            f8 = f6;
                            boolValueOf = Boolean.valueOf(c2082b.f17738f);
                        } else {
                            f8 = f6;
                            boolValueOf = null;
                        }
                        InterfaceC2255s interfaceC2255sK = AbstractC2603d.k(c2252p, (n0.x) list2.get(i8));
                        composer.startReplaceGroup(358939213);
                        boolean zChanged3 = composer.changed(i8);
                        Object objRememberedValue8 = composer.rememberedValue();
                        if (zChanged3 || objRememberedValue8 == Composer.Companion.getEmpty()) {
                            objRememberedValue8 = new D.C(i8, 5, mutableIntState2);
                            composer.updateRememberedValue(objRememberedValue8);
                        }
                        composer.endReplaceGroup();
                        InterfaceC2255s interfaceC2255sU = AbstractC2603d.u(interfaceC2255sK, (J4.c) objRememberedValue8);
                        composer.startReplaceGroup(358941851);
                        boolean zChanged4 = composer.changed(aVar4) | composer.changed(i8);
                        Object objRememberedValue9 = composer.rememberedValue();
                        if (zChanged4 || objRememberedValue9 == Composer.Companion.getEmpty()) {
                            MutableState mutableState13 = mutableState2;
                            J4.a aVar5 = aVar4;
                            objRememberedValue9 = new M3(i8, aVar5, mutableIntState2, state, mutableState10, mutableState13);
                            mutableState3 = mutableState13;
                            aVar = aVar5;
                            composer.updateRememberedValue(objRememberedValue9);
                        } else {
                            aVar = aVar4;
                            mutableState3 = mutableState2;
                        }
                        composer.endReplaceGroup();
                        T3.b(c2082b.f17733a, c2082b.f17734b, z11, c2082b.f17735c, boolValueOf, j4, interfaceC2255sU, (J4.a) objRememberedValue9, composer, 0, 0);
                        aVar4 = aVar;
                        i8 = i9;
                        mutableState2 = mutableState3;
                    }
                    composer.endReplaceGroup();
                    AbstractC0057e.g(B.U0.h(c2252p, 12), composer, 6);
                    composer.endNode();
                    composer.endReplaceGroup();
                    composer2 = composer;
                }
            } else {
                if (iOrdinal2 != 1) {
                    composer5.startReplaceGroup(1194230258);
                    composer5.endReplaceGroup();
                    throw new E3.v();
                }
                composer5.startReplaceGroup(-1630291212);
                C3068f c3068fB0 = W.a.b0();
                InterfaceC2255s interfaceC2255sK2 = AbstractC2603d.k(c2252p, this.f17315o);
                composer5.startReplaceGroup(1194344261);
                Object objRememberedValue10 = composer5.rememberedValue();
                if (objRememberedValue10 == companion.getEmpty()) {
                    objRememberedValue10 = new C0508f0(mutableState11, mutableState9, 16);
                    composer5.updateRememberedValue(objRememberedValue10);
                }
                composer5.endReplaceGroup();
                T3.b("Back to categories", null, false, c3068fB0, null, j6, interfaceC2255sK2, (J4.a) objRememberedValue10, composer5, 12582918, 22);
                AbstractC0057e.g(B.U0.h(c2252p, 10), composer5, 6);
                InterfaceC2255s interfaceC2255sF2 = B.U0.f(c2252p, 1.0f);
                if (1.0f <= 0.0d) {
                    C.a.a("invalid weight; must be greater than zero");
                }
                InterfaceC2255s interfaceC2255sThen2 = interfaceC2255sF2.then(new C0093w0(1.0f > Float.MAX_VALUE ? Float.MAX_VALUE : 1.0f, true));
                long j7 = T3.f17409e;
                J.f fVar = T3.f17406b;
                a0.Y0.c(AbstractC3058z.j(AbstractC3058z.h(interfaceC2255sThen2, j7, fVar), 1, T3.f17410f, fVar), fVar, a0.Y0.l(C2714u.l, composer5), a0.Y0.m(0, 6, 62), ComposableLambdaKt.rememberComposableLambda(-902516561, true, new P3(this.f17322v, str5, z9, this.f17324x, this.f17325y, aVar2, aVar3, this.f17326z, this.f17292A, this.f17293B, j6, mutableState10, state2, this.f17294C, this.f17295D, this.f17296E, this.f17297F, this.f17298G, this.f17310f, this.f17309e, this.f17305a, this.f17307c, this.f17308d, this.f17299H, this.f17300I, this.f17301J, this.f17302K, this.f17303L), composer5, 54), composer5, 196656);
                composer5.endReplaceGroup();
                str = str5;
                composer2 = composer5;
            }
            composer2.endNode();
            composer2.endNode();
            composer2.startReplaceGroup(1612292621);
            MutableState mutableState14 = this.f17303L;
            if (((String) mutableState14.getValue()) != null) {
                long j8 = T3.f17411g;
                long j9 = C2714u.f22939f;
                long j10 = T3.f17412h;
                composer2.startReplaceGroup(1612293567);
                Object objRememberedValue11 = composer2.rememberedValue();
                Object empty = Composer.Companion.getEmpty();
                MutableState mutableState15 = this.f17301J;
                if (objRememberedValue11 == empty) {
                    objRememberedValue11 = new C0508f0(mutableState15, mutableState14, 17);
                    composer2.updateRememberedValue(objRememberedValue11);
                }
                composer2.endReplaceGroup();
                Composer composer7 = composer2;
                z8 = true;
                s32 = this;
                a0.Y0.a((J4.a) objRememberedValue11, ComposableLambdaKt.rememberComposableLambda(-1269272564, true, new M2.z1(this.f17304M, this.f17302K, this.f17301J, this.f17303L, str), composer2, 54), null, ComposableLambdaKt.rememberComposableLambda(1319565130, true, new C0518i1(mutableState15, mutableState14, 2), composer2, 54), null, AbstractC2127i0.f18019c, AbstractC2127i0.f18020d, null, j8, 0L, j9, j10, 0.0f, null, composer7, 102435894, 54, 12948);
                composer3 = composer7;
            } else {
                s32 = this;
                z8 = true;
                composer3 = composer2;
            }
            composer3.endReplaceGroup();
            MutableState mutableState16 = s32.f17299H;
            if (((Boolean) mutableState16.getValue()).booleanValue()) {
                long j11 = T3.f17411g;
                long j12 = C2714u.f22939f;
                long j13 = T3.f17412h;
                composer3.startReplaceGroup(1612360488);
                Object objRememberedValue12 = composer3.rememberedValue();
                if (objRememberedValue12 == Composer.Companion.getEmpty()) {
                    objRememberedValue12 = new B3(mutableState16, 6);
                    composer3.updateRememberedValue(objRememberedValue12);
                }
                composer3.endReplaceGroup();
                a0.Y0.a((J4.a) objRememberedValue12, ComposableLambdaKt.rememberComposableLambda(1985402893, z8, new C0524k1(s32.f17326z, mutableState16, 2), composer3, 54), null, ComposableLambdaKt.rememberComposableLambda(279273291, z8, new C0527l1(mutableState16, 8), composer3, 54), null, AbstractC2127i0.f18023g, AbstractC2127i0.f18024h, null, j11, 0L, j12, j13, 0.0f, null, composer3, 102435894, 54, 12948);
            }
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        return C3137A.f25453a;
    }
}
