package M2;

import V2.u3;
import androidx.compose.runtime.MutableState;
import c0.C1217r;
import h3.EnumC2129i2;
import h3.EnumC2169p0;
import h3.T3;
import w4.C3137A;

/* JADX INFO: renamed from: M2.p, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class C0537p implements J4.c {

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

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

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

    public /* synthetic */ C0537p(MutableState mutableState, MutableState mutableState2, int i6) {
        this.f4885a = i6;
        this.f4886b = mutableState;
        this.f4887c = mutableState2;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        C3137A c3137a = C3137A.f25453a;
        MutableState mutableState = this.f4887c;
        MutableState mutableState2 = this.f4886b;
        switch (this.f4885a) {
            case 0:
                h3.R0 tab = (h3.R0) obj;
                kotlin.jvm.internal.o.h(tab, "tab");
                mutableState2.setValue(tab);
                mutableState.setValue(P0.f4495a);
                break;
            case 1:
                n0.B it = (n0.B) obj;
                kotlin.jvm.internal.o.h(it, "it");
                n0.C c6 = (n0.C) it;
                mutableState2.setValue(Boolean.valueOf(c6.b()));
                if (c6.b()) {
                    mutableState.setValue(EnumC2129i2.f18047a);
                }
                break;
            case 2:
                n0.B it2 = (n0.B) obj;
                kotlin.jvm.internal.o.h(it2, "it");
                n0.C c7 = (n0.C) it2;
                mutableState2.setValue(Boolean.valueOf(c7.b()));
                if (c7.b()) {
                    mutableState.setValue(EnumC2129i2.f18048b);
                }
                break;
            case 3:
                String code = (String) obj;
                kotlin.jvm.internal.o.h(code, "code");
                a5.c cVar = u3.f8110a;
                u3.h(new C1217r(10, code, mutableState2));
                J.f fVar = T3.f17405a;
                mutableState.setValue(Boolean.FALSE);
                break;
            default:
                EnumC2169p0 it3 = (EnumC2169p0) obj;
                kotlin.jvm.internal.o.h(it3, "it");
                J.f fVar2 = T3.f17405a;
                mutableState2.setValue(it3);
                mutableState.setValue(Boolean.TRUE);
                break;
        }
        return c3137a;
    }
}
