package M2;

import V2.R2;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import c3.C1240c;
import d3.v2;
import java.util.concurrent.ConcurrentHashMap;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class S implements J4.a {

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

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

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

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

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

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

    public /* synthetic */ S(J4.f fVar, boolean z6, Integer num, Integer num2, MutableState mutableState) {
        this.f4543d = fVar;
        this.f4541b = z6;
        this.f4544e = num;
        this.f4545f = num2;
        this.f4542c = mutableState;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // J4.a
    public final Object invoke() {
        C3137A c3137a = C3137A.f25453a;
        Object obj = this.f4544e;
        Object obj2 = this.f4545f;
        Object obj3 = this.f4543d;
        boolean z6 = this.f4541b;
        MutableState mutableState = this.f4542c;
        switch (this.f4540a) {
            case 0:
                mutableState.setValue(Boolean.FALSE);
                ((J4.f) obj3).invoke(null, z6 ? (Integer) obj : null, z6 ? (Integer) obj2 : null);
                return c3137a;
            case 1:
                return Boolean.valueOf((!z6 || v2.z(mutableState) || ((Boolean) ((State) obj3).getValue()).booleanValue() || !((Boolean) ((State) obj).getValue()).booleanValue() || ((C1240c) ((MutableState) obj2).getValue()) == null) ? false : true);
            default:
                if (z6) {
                    ConcurrentHashMap concurrentHashMap = h3.Q0.f17204a;
                    mutableState.setValue(Boolean.FALSE);
                    ((J4.a) obj3).invoke();
                } else {
                    ConcurrentHashMap concurrentHashMap2 = h3.Q0.f17204a;
                    mutableState.setValue(Boolean.FALSE);
                    ((J4.c) obj).invoke((R2) obj2);
                }
                return c3137a;
        }
    }

    public /* synthetic */ S(boolean z6, J4.a aVar, J4.c cVar, R2 r22, MutableState mutableState) {
        this.f4541b = z6;
        this.f4543d = aVar;
        this.f4544e = cVar;
        this.f4545f = r22;
        this.f4542c = mutableState;
    }

    public /* synthetic */ S(boolean z6, MutableState mutableState, State state, State state2, MutableState mutableState2) {
        this.f4541b = z6;
        this.f4542c = mutableState;
        this.f4543d = state;
        this.f4544e = state2;
        this.f4545f = mutableState2;
    }
}
