package M2;

import androidx.compose.runtime.MutableState;
import w4.C3137A;

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

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

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

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

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

    public /* synthetic */ C0534o(J4.a aVar, MutableState mutableState, MutableState mutableState2, int i6) {
        this.f4848a = i6;
        this.f4849b = aVar;
        this.f4850c = mutableState;
        this.f4851d = mutableState2;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // J4.a
    public final Object invoke() {
        switch (this.f4848a) {
            case 0:
                MutableState mutableState = this.f4850c;
                if (((Boolean) mutableState.getValue()).booleanValue()) {
                    mutableState.setValue(Boolean.FALSE);
                } else {
                    MutableState mutableState2 = this.f4851d;
                    P0 p02 = (P0) mutableState2.getValue();
                    P0 p03 = P0.f4495a;
                    if (p02 == p03) {
                        this.f4849b.invoke();
                    } else {
                        mutableState2.setValue(p03);
                    }
                }
                break;
            default:
                Boolean bool = Boolean.FALSE;
                this.f4850c.setValue(bool);
                this.f4851d.setValue(bool);
                this.f4849b.invoke();
                break;
        }
        return C3137A.f25453a;
    }
}
