package M2;

import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.MutableState;
import h3.AbstractC2121h0;
import h3.C2225y3;
import h3.G3;
import w4.C3137A;

/* JADX INFO: renamed from: M2.g1, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0512g1 implements J4.e {

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

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

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

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

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

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

    public /* synthetic */ C0512g1(int i6, V4.C c6, MutableState mutableState, MutableState mutableState2, MutableState mutableState3, String str) {
        this.f4712a = i6;
        this.f4713b = c6;
        this.f4714c = str;
        this.f4715d = mutableState;
        this.f4716e = mutableState2;
        this.f4717f = mutableState3;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        switch (this.f4712a) {
            case 0:
                Composer composer = (Composer) obj;
                int iIntValue = ((Number) obj2).intValue();
                if ((iIntValue & 3) == 2 && composer.getSkipping()) {
                    composer.skipToGroupEnd();
                } else {
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(227215230, iIntValue, -1, "com.debridstream.mobile.MobileSettings.<anonymous>.<anonymous> (MobileSettings.kt:223)");
                    }
                    boolean z6 = !((Boolean) this.f4715d.getValue()).booleanValue();
                    composer.startReplaceGroup(282080269);
                    boolean zChangedInstance = composer.changedInstance(this.f4713b);
                    final String str = this.f4714c;
                    boolean zChanged = zChangedInstance | composer.changed(str);
                    Object objRememberedValue = composer.rememberedValue();
                    if (zChanged || objRememberedValue == Composer.Companion.getEmpty()) {
                        final MutableState mutableState = this.f4716e;
                        final MutableState mutableState2 = this.f4715d;
                        final V4.C c6 = this.f4713b;
                        final MutableState mutableState3 = this.f4717f;
                        final int i6 = 0;
                        J4.a aVar = new J4.a() { // from class: M2.d1
                            /* JADX WARN: Multi-variable type inference failed */
                            @Override // J4.a
                            public final Object invoke() {
                                C3137A c3137a = C3137A.f25453a;
                                V4.C c7 = c6;
                                switch (i6) {
                                    case 0:
                                        J.f fVar = B1.f4224a;
                                        MutableState mutableState4 = mutableState;
                                        String str2 = (String) mutableState4.getValue();
                                        if (str2 != null) {
                                            V4.E.y(c7, null, null, new C0509f1(mutableState2, str, str2, mutableState4, mutableState3, null), 3);
                                        }
                                        break;
                                    default:
                                        float f6 = G3.f16846a;
                                        MutableState mutableState5 = mutableState;
                                        String str3 = (String) mutableState5.getValue();
                                        if (str3 != null) {
                                            V4.E.y(c7, null, null, new C2225y3(mutableState2, str, str3, mutableState5, mutableState3, null), 3);
                                        }
                                        break;
                                }
                                return c3137a;
                            }
                        };
                        composer.updateRememberedValue(aVar);
                        objRememberedValue = aVar;
                    }
                    composer.endReplaceGroup();
                    a0.Y0.k((J4.a) objRememberedValue, null, z6, null, null, null, AbstractC0501d.f4661a, composer, 805306368, 506);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                }
                break;
            default:
                Composer composer2 = (Composer) obj;
                int iIntValue2 = ((Number) obj2).intValue();
                if ((iIntValue2 & 3) == 2 && composer2.getSkipping()) {
                    composer2.skipToGroupEnd();
                } else {
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(-1548383903, iIntValue2, -1, "com.debridstream.tv.screens.SettingsScreen.<anonymous>.<anonymous> (SettingsScreen.kt:649)");
                    }
                    boolean z7 = !((Boolean) this.f4715d.getValue()).booleanValue();
                    composer2.startReplaceGroup(-1584018274);
                    boolean zChangedInstance2 = composer2.changedInstance(this.f4713b);
                    final String str2 = this.f4714c;
                    boolean zChanged2 = zChangedInstance2 | composer2.changed(str2);
                    Object objRememberedValue2 = composer2.rememberedValue();
                    if (zChanged2 || objRememberedValue2 == Composer.Companion.getEmpty()) {
                        final MutableState mutableState4 = this.f4716e;
                        final MutableState mutableState5 = this.f4715d;
                        final V4.C c7 = this.f4713b;
                        final MutableState mutableState6 = this.f4717f;
                        final int i7 = 1;
                        J4.a aVar2 = new J4.a() { // from class: M2.d1
                            /* JADX WARN: Multi-variable type inference failed */
                            @Override // J4.a
                            public final Object invoke() {
                                C3137A c3137a = C3137A.f25453a;
                                V4.C c72 = c7;
                                switch (i7) {
                                    case 0:
                                        J.f fVar = B1.f4224a;
                                        MutableState mutableState42 = mutableState4;
                                        String str22 = (String) mutableState42.getValue();
                                        if (str22 != null) {
                                            V4.E.y(c72, null, null, new C0509f1(mutableState5, str2, str22, mutableState42, mutableState6, null), 3);
                                        }
                                        break;
                                    default:
                                        float f6 = G3.f16846a;
                                        MutableState mutableState52 = mutableState4;
                                        String str3 = (String) mutableState52.getValue();
                                        if (str3 != null) {
                                            V4.E.y(c72, null, null, new C2225y3(mutableState5, str2, str3, mutableState52, mutableState6, null), 3);
                                        }
                                        break;
                                }
                                return c3137a;
                            }
                        };
                        composer2.updateRememberedValue(aVar2);
                        objRememberedValue2 = aVar2;
                    }
                    composer2.endReplaceGroup();
                    a0.Y0.k((J4.a) objRememberedValue2, null, z7, null, null, null, AbstractC2121h0.f17973a, composer2, 805306368, 506);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                }
                break;
        }
        return C3137A.f25453a;
    }
}
