package h3;

import androidx.compose.runtime.MutableLongState;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import p0.InterfaceC2687E;
import w4.C3137A;

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

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

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

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

    public /* synthetic */ C2177q2(float f6, State state) {
        this.f18413b = f6;
        this.f18414c = state;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        switch (this.f18412a) {
            case 0:
                InterfaceC2687E graphicsLayer = (InterfaceC2687E) obj;
                kotlin.jvm.internal.o.h(graphicsLayer, "$this$graphicsLayer");
                float fFloatValue = ((Number) ((State) this.f18414c).getValue()).floatValue() * this.f18413b;
                p0.U u6 = (p0.U) graphicsLayer;
                u6.w(fFloatValue);
                u6.z(fFloatValue);
                break;
            default:
                long jLongValue = ((Long) obj).longValue();
                q.A0 a02 = (q.A0) this.f18414c;
                if (!a02.g()) {
                    MutableLongState mutableLongState = a02.f23140g;
                    if (mutableLongState.getLongValue() == Long.MIN_VALUE) {
                        mutableLongState.setLongValue(jLongValue);
                        ((MutableState) a02.f23134a.f1203a).setValue(Boolean.TRUE);
                    }
                    long longValue = jLongValue - mutableLongState.getLongValue();
                    float f6 = this.f18413b;
                    if (f6 != 0.0f) {
                        longValue = L4.a.e0(longValue / ((double) f6));
                    }
                    a02.n(longValue);
                    a02.h(longValue, f6 == 0.0f);
                }
                break;
        }
        return C3137A.f25453a;
    }

    public /* synthetic */ C2177q2(q.A0 a02, float f6) {
        this.f18414c = a02;
        this.f18413b = f6;
    }
}
