package y0;

/* loaded from: classes.dex */
public abstract class i3 extends j1.y implements m1, j1.q {

    /* renamed from: q, reason: collision with root package name */
    private a f51586q;

    /* JADX INFO: Access modifiers changed from: private */
    /* loaded from: classes.dex */
    public static final class a extends j1.z {

        /* renamed from: c, reason: collision with root package name */
        private float f51587c;

        public a(float f10) {
            this.f51587c = f10;
        }

        @Override // j1.z
        public void c(j1.z zVar) {
            kotlin.jvm.internal.t.e(zVar, "null cannot be cast to non-null type androidx.compose.runtime.SnapshotMutableFloatStateImpl.FloatStateStateRecord");
            this.f51587c = ((a) zVar).f51587c;
        }

        @Override // j1.z
        public j1.z d() {
            return new a(this.f51587c);
        }

        public final float i() {
            return this.f51587c;
        }

        public final void j(float f10) {
            this.f51587c = f10;
        }
    }

    /* loaded from: classes.dex */
    static final class b extends kotlin.jvm.internal.v implements dn.l {
        b() {
            super(1);
        }

        public final void a(float f10) {
            i3.this.h(f10);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a(((Number) obj).floatValue());
            return rm.n0.f34904a;
        }
    }

    public i3(float f10) {
        a aVar = new a(f10);
        if (j1.k.f23492e.e()) {
            a aVar2 = new a(f10);
            aVar2.h(1);
            aVar.g(aVar2);
        }
        this.f51586q = aVar;
    }

    @Override // y0.m1, y0.q0
    public float b() {
        return ((a) j1.p.X(this.f51586q, this)).i();
    }

    @Override // j1.q
    public m3 c() {
        return n3.q();
    }

    @Override // y0.q1
    public dn.l e() {
        return new b();
    }

    @Override // j1.x
    public j1.z g() {
        return this.f51586q;
    }

    @Override // y0.m1
    public void h(float f10) {
        j1.k c10;
        a aVar = (a) j1.p.F(this.f51586q);
        if (aVar.i() == f10) {
            return;
        }
        a aVar2 = this.f51586q;
        j1.p.J();
        synchronized (j1.p.I()) {
            c10 = j1.k.f23492e.c();
            ((a) j1.p.S(aVar2, this, c10, aVar)).j(f10);
            rm.n0 n0Var = rm.n0.f34904a;
        }
        j1.p.Q(c10, this);
    }

    @Override // j1.x
    public j1.z m(j1.z zVar, j1.z zVar2, j1.z zVar3) {
        kotlin.jvm.internal.t.e(zVar2, "null cannot be cast to non-null type androidx.compose.runtime.SnapshotMutableFloatStateImpl.FloatStateStateRecord");
        kotlin.jvm.internal.t.e(zVar3, "null cannot be cast to non-null type androidx.compose.runtime.SnapshotMutableFloatStateImpl.FloatStateStateRecord");
        if (((a) zVar2).i() == ((a) zVar3).i()) {
            return zVar2;
        }
        return null;
    }

    @Override // j1.x
    public void r(j1.z zVar) {
        kotlin.jvm.internal.t.e(zVar, "null cannot be cast to non-null type androidx.compose.runtime.SnapshotMutableFloatStateImpl.FloatStateStateRecord");
        this.f51586q = (a) zVar;
    }

    public String toString() {
        return "MutableFloatState(value=" + ((a) j1.p.F(this.f51586q)).i() + ")@" + hashCode();
    }

    @Override // y0.q1
    /* renamed from: u, reason: merged with bridge method [inline-methods] */
    public Float o() {
        return Float.valueOf(b());
    }
}
