package androidx.compose.foundation.text.input.internal;

import o.A4;
import o.AbstractC2417sH;
import o.C2066oe0;
import o.F3;
import o.HK;
import o.LP;
import o.MK;
import o.RP;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
final class LegacyAdaptingPlatformTextInputModifier extends RP {
    public final A4 a;
    public final MK b;
    public final C2066oe0 c;

    public LegacyAdaptingPlatformTextInputModifier(A4 a4, MK mk, C2066oe0 c2066oe0) {
        this.a = a4;
        this.b = mk;
        this.c = c2066oe0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof LegacyAdaptingPlatformTextInputModifier)) {
            return false;
        }
        LegacyAdaptingPlatformTextInputModifier legacyAdaptingPlatformTextInputModifier = (LegacyAdaptingPlatformTextInputModifier) obj;
        return F3.c(this.a, legacyAdaptingPlatformTextInputModifier.a) && F3.c(this.b, legacyAdaptingPlatformTextInputModifier.b) && F3.c(this.c, legacyAdaptingPlatformTextInputModifier.c);
    }

    @Override // o.RP
    public final LP f() {
        return new HK(this.a, this.b, this.c);
    }

    public final int hashCode() {
        return this.c.hashCode() + ((this.b.hashCode() + (this.a.hashCode() * 31)) * 31);
    }

    @Override // o.RP
    public final void j(LP lp) {
        HK hk = (HK) lp;
        if (hk.y) {
            hk.z.g();
            hk.z.k(hk);
        }
        A4 a4 = this.a;
        hk.z = a4;
        if (hk.y) {
            if (a4.a != null) {
                AbstractC2417sH.c("Expected textInputModifierNode to be null");
            }
            a4.a = hk;
        }
        hk.A = this.b;
        hk.B = this.c;
    }

    public final String toString() {
        return "LegacyAdaptingPlatformTextInputModifier(serviceAdapter=" + this.a + ", legacyTextFieldState=" + this.b + ", textFieldSelectionManager=" + this.c + ')';
    }
}
