package o;

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

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

    public JV(int i) {
        AbstractC2220q90 abstractC2220q90K = AbstractC2884x90.k();
        C3074z90 c3074z90 = new C3074z90(i, abstractC2220q90K.g());
        if (!(abstractC2220q90K instanceof WD)) {
            c3074z90.b = new C3074z90(i, 1);
        }
        this.m = c3074z90;
    }

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

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

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

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

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

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

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

    public final void h(int i) {
        AbstractC2220q90 abstractC2220q90K;
        C3074z90 c3074z90 = (C3074z90) AbstractC2884x90.i(this.m);
        if (c3074z90.c != i) {
            C3074z90 c3074z902 = this.m;
            synchronized (AbstractC2884x90.c) {
                abstractC2220q90K = AbstractC2884x90.k();
                ((C3074z90) AbstractC2884x90.o(c3074z902, this, abstractC2220q90K, c3074z90)).c = i;
            }
            AbstractC2884x90.n(abstractC2220q90K, this);
        }
    }

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

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

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