package F;

import V4.B0;
import androidx.compose.runtime.snapshots.Snapshot;
import q.AbstractC2771e;
import q.AbstractC2798s;
import q.C2789n;
import q.G0;

/* JADX INFO: loaded from: classes.dex */
public final class U {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public B0 f1228a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public C2789n f1229b;

    public U() {
        G0 g0 = AbstractC2771e.f23306j;
        Float fValueOf = Float.valueOf(0.0f);
        this.f1229b = new C2789n(g0, fValueOf, (AbstractC2798s) g0.f23171a.invoke(fValueOf), Long.MIN_VALUE, Long.MIN_VALUE, false);
    }

    /* JADX WARN: Multi-variable type inference failed */
    public final void a(float f6, h1.c cVar, V4.C c6) {
        if (f6 <= cVar.Y(V.f1230a)) {
            return;
        }
        Snapshot.Companion companion = Snapshot.Companion;
        Snapshot currentThreadSnapshot = companion.getCurrentThreadSnapshot();
        J4.c readObserver = currentThreadSnapshot != null ? currentThreadSnapshot.getReadObserver() : null;
        Snapshot snapshotMakeCurrentNonObservable = companion.makeCurrentNonObservable(currentThreadSnapshot);
        try {
            float fFloatValue = ((Number) this.f1229b.f23390b.getValue()).floatValue();
            B0 b02 = this.f1228a;
            if (b02 != null) {
                b02.cancel(null);
            }
            C2789n c2789n = this.f1229b;
            if (c2789n.f23394f) {
                this.f1229b = AbstractC2771e.j(c2789n, fFloatValue - f6, 0.0f, 30);
            } else {
                this.f1229b = new C2789n(AbstractC2771e.f23306j, Float.valueOf(-f6), null, 60);
            }
            this.f1228a = V4.E.y(c6, null, null, new T(this, null), 3);
            companion.restoreNonObservable(currentThreadSnapshot, snapshotMakeCurrentNonObservable, readObserver);
        } catch (Throwable th) {
            companion.restoreNonObservable(currentThreadSnapshot, snapshotMakeCurrentNonObservable, readObserver);
            throw th;
        }
    }
}
