package o;

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

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

    public KV(long j) {
        AbstractC2220q90 abstractC2220q90K = AbstractC2884x90.k();
        A90 a90 = new A90(abstractC2220q90K.g(), j);
        if (!(abstractC2220q90K instanceof WD)) {
            a90.b = new A90(1, j);
        }
        this.m = a90;
    }

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

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

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

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

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

    public final void g(long j) {
        AbstractC2220q90 abstractC2220q90K;
        A90 a90 = (A90) AbstractC2884x90.i(this.m);
        if (a90.c != j) {
            A90 a902 = this.m;
            synchronized (AbstractC2884x90.c) {
                abstractC2220q90K = AbstractC2884x90.k();
                ((A90) AbstractC2884x90.o(a902, this, abstractC2220q90K, a90)).c = j;
            }
            AbstractC2884x90.n(abstractC2220q90K, this);
        }
    }

    @Override // o.InterfaceC3007ya0
    public Object getValue() {
        return Long.valueOf(((A90) AbstractC2884x90.t(this.m, this)).c);
    }

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

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

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        parcel.writeLong(((A90) AbstractC2884x90.t(this.m, this)).c);
    }
}
