package androidx.compose.ui.input.nestedscroll;

import o.AbstractC0249Jp;
import o.JR;
import o.LP;
import o.NR;
import o.RP;
import o.U4;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
final class NestedScrollElement extends RP {
    public final JR a;

    public NestedScrollElement(JR jr) {
        this.a = jr;
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof NestedScrollElement)) {
            return false;
        }
        NestedScrollElement nestedScrollElement = (NestedScrollElement) obj;
        Object obj2 = AbstractC0249Jp.a;
        return obj2.equals(obj2) && nestedScrollElement.a.equals(this.a);
    }

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

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

    @Override // o.RP
    public final void j(LP lp) {
        NR nr = (NR) lp;
        nr.z = AbstractC0249Jp.a;
        JR jr = nr.A;
        if (jr.a == nr) {
            jr.a = null;
        }
        JR jr2 = this.a;
        if (!jr2.equals(jr)) {
            nr.A = jr2;
        }
        if (nr.y) {
            JR jr3 = nr.A;
            jr3.a = nr;
            jr3.b = null;
            nr.B = null;
            jr3.c = new U4(17, nr);
            jr3.d = nr.v0();
        }
    }
}
