package a0;

import B.AbstractC0057e;
import B.AbstractC0069k;
import B.AbstractC0084s;
import G0.InterfaceC0245a0;
import I0.C0289e;
import I0.C0291f;
import I0.C0293g;
import I0.InterfaceC0295h;
import androidx.compose.runtime.ComposablesKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionLocalMap;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.internal.ComposableLambda;
import c0.C1222w;
import com.debridstream.tv.screens.CloudManagerViewModel;
import h3.AbstractC2109f0;
import i0.AbstractC2237a;
import i0.C2239c;
import i0.C2252p;
import i0.InterfaceC2255s;
import w4.C3137A;

/* JADX INFO: renamed from: a0.E, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0877E implements J4.e {

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

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

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

    public /* synthetic */ C0877E(int i6, Object obj, Object obj2) {
        this.f9287a = i6;
        this.f9288b = obj;
        this.f9289c = obj2;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        switch (this.f9287a) {
            case 0:
                Composer composer = (Composer) obj;
                int iIntValue = ((Number) obj2).intValue();
                if (composer.shouldExecute((iIntValue & 3) != 2, iIntValue & 1)) {
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(417635459, iIntValue, -1, "androidx.compose.material3.Button.<anonymous>.<anonymous> (Button.kt:142)");
                    }
                    InterfaceC2255s interfaceC2255sA = AbstractC0057e.A(B.U0.a(C2252p.f18820a, AbstractC0952y.f10331c, AbstractC0952y.f10332d), (B.J0) this.f9288b);
                    B.P0 p0A = B.N0.a(AbstractC0069k.f327e, C2239c.f18803n, composer, 54);
                    int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(composer, 0);
                    CompositionLocalMap currentCompositionLocalMap = composer.getCurrentCompositionLocalMap();
                    InterfaceC2255s interfaceC2255sC = AbstractC2237a.c(composer, interfaceC2255sA);
                    InterfaceC0295h.f2384g.getClass();
                    C0291f c0291f = C0293g.f2375b;
                    if (composer.getApplier() == null) {
                        ComposablesKt.invalidApplier();
                    }
                    composer.startReusableNode();
                    if (composer.getInserting()) {
                        composer.createNode(c0291f);
                    } else {
                        composer.useNode();
                    }
                    Composer composerM81constructorimpl = Updater.m81constructorimpl(composer);
                    Updater.m89setimpl(composerM81constructorimpl, p0A, C0293g.f2379f);
                    Updater.m89setimpl(composerM81constructorimpl, currentCompositionLocalMap, C0293g.f2378e);
                    C0289e c0289e = C0293g.f2380g;
                    if (composerM81constructorimpl.getInserting() || !kotlin.jvm.internal.o.c(composerM81constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
                        Z0.o.u(currentCompositeKeyHash, composerM81constructorimpl, currentCompositeKeyHash, c0289e);
                    }
                    Updater.m89setimpl(composerM81constructorimpl, interfaceC2255sC, C0293g.f2377d);
                    ((J4.f) this.f9289c).invoke(B.R0.f177a, composer, 6);
                    composer.endNode();
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                } else {
                    composer.skipToGroupEnd();
                }
                break;
            case 1:
                Composer composer2 = (Composer) obj;
                int iIntValue2 = ((Number) obj2).intValue();
                if (composer2.shouldExecute((iIntValue2 & 3) != 2, iIntValue2 & 1)) {
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(-1750539308, iIntValue2, -1, "androidx.compose.material3.MaterialTheme.<anonymous> (MaterialTheme.kt:106)");
                    }
                    m2.a(((z2) this.f9288b).f10374j, (J4.e) this.f9289c, composer2, 0);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                } else {
                    composer2.skipToGroupEnd();
                }
                break;
            case 2:
                Composer composer3 = (Composer) obj;
                int iIntValue3 = ((Number) obj2).intValue();
                if (composer3.shouldExecute((iIntValue3 & 3) != 2, iIntValue3 & 1)) {
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(-1776388365, iIntValue3, -1, "androidx.compose.material3.ScaffoldLayout.<anonymous>.<anonymous> (Scaffold.kt:162)");
                    }
                    C2252p c2252p = C2252p.f18820a;
                    InterfaceC0245a0 interfaceC0245a0D = AbstractC0084s.d(C2239c.f18794a, false);
                    int currentCompositeKeyHash2 = ComposablesKt.getCurrentCompositeKeyHash(composer3, 0);
                    CompositionLocalMap currentCompositionLocalMap2 = composer3.getCurrentCompositionLocalMap();
                    InterfaceC2255s interfaceC2255sC2 = AbstractC2237a.c(composer3, c2252p);
                    InterfaceC0295h.f2384g.getClass();
                    C0291f c0291f2 = C0293g.f2375b;
                    if (composer3.getApplier() == null) {
                        ComposablesKt.invalidApplier();
                    }
                    composer3.startReusableNode();
                    if (composer3.getInserting()) {
                        composer3.createNode(c0291f2);
                    } else {
                        composer3.useNode();
                    }
                    Composer composerM81constructorimpl2 = Updater.m81constructorimpl(composer3);
                    Updater.m89setimpl(composerM81constructorimpl2, interfaceC0245a0D, C0293g.f2379f);
                    Updater.m89setimpl(composerM81constructorimpl2, currentCompositionLocalMap2, C0293g.f2378e);
                    C0289e c0289e2 = C0293g.f2380g;
                    if (composerM81constructorimpl2.getInserting() || !kotlin.jvm.internal.o.c(composerM81constructorimpl2.rememberedValue(), Integer.valueOf(currentCompositeKeyHash2))) {
                        Z0.o.u(currentCompositeKeyHash2, composerM81constructorimpl2, currentCompositeKeyHash2, c0289e2);
                    }
                    Updater.m89setimpl(composerM81constructorimpl2, interfaceC2255sC2, C0293g.f2377d);
                    ((ComposableLambda) this.f9288b).invoke((C0898f1) this.f9289c, composer3, 6);
                    composer3.endNode();
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                } else {
                    composer3.skipToGroupEnd();
                }
                break;
            case 3:
                Composer composer4 = (Composer) obj;
                int iIntValue4 = ((Number) obj2).intValue();
                if (composer4.shouldExecute((iIntValue4 & 3) != 2, iIntValue4 & 1)) {
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(-1893791890, iIntValue4, -1, "androidx.compose.material3.FadeInFadeOutWithScale.<anonymous>.<anonymous>.<anonymous>.<anonymous> (SnackbarHost.kt:382)");
                    }
                    I1 i12 = (I1) this.f9288b;
                    kotlin.jvm.internal.o.e(i12);
                    ((J4.f) this.f9289c).invoke(i12, composer4, 0);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                } else {
                    composer4.skipToGroupEnd();
                }
                break;
            case 4:
                Composer composer5 = (Composer) obj;
                int iIntValue5 = ((Number) obj2).intValue();
                if (composer5.shouldExecute((iIntValue5 & 3) != 2, iIntValue5 & 1)) {
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(1157484991, iIntValue5, -1, "androidx.compose.material3.internal.CommonDecorationBox.<anonymous>.<anonymous>.<anonymous>.<anonymous> (TextFieldImpl.kt:147)");
                    }
                    ((ComposableLambda) this.f9288b).invoke((C1222w) this.f9289c, composer5, 6);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                } else {
                    composer5.skipToGroupEnd();
                }
                break;
            default:
                Composer composer6 = (Composer) obj;
                int iIntValue6 = ((Number) obj2).intValue();
                if ((iIntValue6 & 3) == 2 && composer6.getSkipping()) {
                    composer6.skipToGroupEnd();
                } else {
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventStart(1811176313, iIntValue6, -1, "com.debridstream.tv.screens.CloudManagerScreen.<anonymous>.<anonymous> (CloudManagerScreen.kt:1083)");
                    }
                    composer6.startReplaceGroup(1260081448);
                    CloudManagerViewModel cloudManagerViewModel = (CloudManagerViewModel) this.f9288b;
                    boolean zChangedInstance = composer6.changedInstance(cloudManagerViewModel);
                    Object objRememberedValue = composer6.rememberedValue();
                    if (zChangedInstance || objRememberedValue == Composer.Companion.getEmpty()) {
                        objRememberedValue = new h3.G(cloudManagerViewModel, (MutableState) this.f9289c, 1);
                        composer6.updateRememberedValue(objRememberedValue);
                    }
                    composer6.endReplaceGroup();
                    Y0.k((J4.a) objRememberedValue, null, false, null, null, null, AbstractC2109f0.f17919b, composer6, 805306368, 510);
                    if (ComposerKt.isTraceInProgress()) {
                        ComposerKt.traceEventEnd();
                    }
                }
                break;
        }
        return C3137A.f25453a;
    }

    public C0877E(J4.f fVar, I1 i12) {
        this.f9287a = 3;
        this.f9289c = fVar;
        this.f9288b = i12;
    }
}
