package o;

import android.os.Parcel;
import android.os.Parcelable;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class IV extends Ha0 implements Parcelable, B90, InterfaceC1191fR, InterfaceC3007ya0 {
    public static final Parcelable.Creator<IV> CREATOR = new C2487t1(16);
    public C2979y90 m;

    public IV(float f) {
        AbstractC2220q90 abstractC2220q90K = AbstractC2884x90.k();
        C2979y90 c2979y90 = new C2979y90(f, abstractC2220q90K.g());
        if (!(abstractC2220q90K instanceof WD)) {
            c2979y90.b = new C2979y90(f, 1);
        }
        this.m = c2979y90;
    }

    @Override // o.Ga0
    public final Ia0 a() {
        return this.m;
    }

    @Override // o.Ga0
    public final Ia0 b(Ia0 ia0, Ia0 ia02, Ia0 ia03) {
        if (((C2979y90) ia02).c == ((C2979y90) ia03).c) {
            return ia02;
        }
        return null;
    }

    @Override // o.Ga0
    public final void c(Ia0 ia0) {
        this.m = (C2979y90) ia0;
    }

    @Override // o.B90
    public final D90 d() {
        return ME.G;
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    public final float g() {
        return ((C2979y90) AbstractC2884x90.t(this.m, this)).c;
    }

    @Override // o.InterfaceC3007ya0
    public Object getValue() {
        return Float.valueOf(g());
    }

    public final void h(float f) {
        AbstractC2220q90 abstractC2220q90K;
        C2979y90 c2979y90 = (C2979y90) AbstractC2884x90.i(this.m);
        if (c2979y90.c == f) {
            return;
        }
        C2979y90 c2979y902 = this.m;
        synchronized (AbstractC2884x90.c) {
            abstractC2220q90K = AbstractC2884x90.k();
            ((C2979y90) AbstractC2884x90.o(c2979y902, this, abstractC2220q90K, c2979y90)).c = f;
        }
        AbstractC2884x90.n(abstractC2220q90K, this);
    }

    @Override // o.InterfaceC1191fR
    public void setValue(Object obj) {
        h(((Number) obj).floatValue());
    }

    public final String toString() {
        return "MutableFloatState(value=" + ((C2979y90) AbstractC2884x90.i(this.m)).c + ")@" + hashCode();
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        parcel.writeFloat(g());
    }
}
