package androidx.compose.ui.input.pointer;

import o.Bd0;
import o.F3;
import o.LP;
import o.RP;
import o.Wb0;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class SuspendPointerInputElement extends RP {
    public final Object a;
    public final Object b;
    public final PointerInputEventHandler c;

    public SuspendPointerInputElement(Object obj, Bd0 bd0, PointerInputEventHandler pointerInputEventHandler, int i) {
        bd0 = (i & 2) != 0 ? null : bd0;
        this.a = obj;
        this.b = bd0;
        this.c = pointerInputEventHandler;
    }

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

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

    public final int hashCode() {
        Object obj = this.a;
        int iHashCode = (obj != null ? obj.hashCode() : 0) * 31;
        Object obj2 = this.b;
        return this.c.hashCode() + ((iHashCode + (obj2 != null ? obj2.hashCode() : 0)) * 961);
    }

    @Override // o.RP
    public final void j(LP lp) {
        Wb0 wb0 = (Wb0) lp;
        Object obj = wb0.z;
        Object obj2 = this.a;
        boolean z = !F3.c(obj, obj2);
        wb0.z = obj2;
        Object obj3 = wb0.A;
        Object obj4 = this.b;
        if (!F3.c(obj3, obj4)) {
            z = true;
        }
        wb0.A = obj4;
        Class<?> cls = wb0.B.getClass();
        PointerInputEventHandler pointerInputEventHandler = this.c;
        if (cls == pointerInputEventHandler.getClass() ? z : true) {
            wb0.J0();
        }
        wb0.B = pointerInputEventHandler;
    }
}
