package d3;

import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import c3.C1240c;
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 f15313a;

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

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

    public /* synthetic */ S(int i6, MutableState mutableState, State state) {
        this.f15313a = i6;
        this.f15314b = mutableState;
        this.f15315c = state;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:12:0x002a  */
    @Override // J4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invoke() {
        boolean z6;
        switch (this.f15313a) {
            case 0:
                Boolean bool = (Boolean) this.f15315c.getValue();
                bool.booleanValue();
                this.f15314b.setValue(bool);
                return C3137A.f25453a;
            case 1:
                return Float.valueOf(v2.J(this.f15314b) > 0 ? L4.a.u(((Number) this.f15315c.getValue()).longValue() / ((Number) r0.getValue()).longValue(), 0.0f, 1.0f) : 0.0f);
            default:
                C1240c c1240c = (C1240c) this.f15314b.getValue();
                if (c1240c == null) {
                    z6 = false;
                } else {
                    long jLongValue = ((Number) this.f15315c.getValue()).longValue();
                    if (jLongValue >= c1240c.f13426a && jLongValue < c1240c.f13427b) {
                        z6 = true;
                    }
                }
                return Boolean.valueOf(z6);
        }
    }

    public /* synthetic */ S(State state, MutableState mutableState) {
        this.f15313a = 0;
        this.f15315c = state;
        this.f15314b = mutableState;
    }
}
