package Z0;

import T0.C0596g;
import T0.N;
import V2.C0736x;
import androidx.compose.runtime.saveable.Saver;
import androidx.compose.runtime.saveable.SaverKt;

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final Saver f9135d = SaverKt.Saver(new T0.z(21), new C0736x(25));

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final C0596g f9136a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final long f9137b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final N f9138c;

    public y(C0596g c0596g, long j4, N n6) {
        this.f9136a = c0596g;
        this.f9137b = android.support.v4.media.session.b.k(c0596g.f6510b.length(), j4);
        this.f9138c = n6 != null ? new N(android.support.v4.media.session.b.k(c0596g.f6510b.length(), n6.f6483a)) : null;
    }

    public static y a(y yVar, C0596g c0596g, long j4, int i6) {
        if ((i6 & 1) != 0) {
            c0596g = yVar.f9136a;
        }
        if ((i6 & 2) != 0) {
            j4 = yVar.f9137b;
        }
        N n6 = (i6 & 4) != 0 ? yVar.f9138c : null;
        yVar.getClass();
        return new y(c0596g, j4, n6);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof y)) {
            return false;
        }
        y yVar = (y) obj;
        return N.b(this.f9137b, yVar.f9137b) && kotlin.jvm.internal.o.c(this.f9138c, yVar.f9138c) && kotlin.jvm.internal.o.c(this.f9136a, yVar.f9136a);
    }

    public final int hashCode() {
        int iHashCode = this.f9136a.hashCode() * 31;
        int i6 = N.f6482c;
        int iE = com.google.android.recaptcha.internal.a.e(iHashCode, 31, this.f9137b);
        N n6 = this.f9138c;
        return iE + (n6 != null ? Long.hashCode(n6.f6483a) : 0);
    }

    public final String toString() {
        return "TextFieldValue(text='" + ((Object) this.f9136a) + "', selection=" + ((Object) N.h(this.f9137b)) + ", composition=" + this.f9138c + ')';
    }

    public y(String str, long j4, int i6) {
        this(new C0596g((i6 & 1) != 0 ? "" : str), (i6 & 2) != 0 ? N.f6481b : j4, (N) null);
    }
}
