package androidx.compose.foundation.selection;

import o.AbstractC0126Ew;
import o.Ag0;
import o.C1065e30;
import o.C2887xC;
import o.F3;
import o.InterfaceC0894cH;
import o.KQ;
import o.Kf0;
import o.LP;
import o.NC;
import o.RP;
import o.Yg0;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
final class TriStateToggleableElement extends RP {
    public final Kf0 a;
    public final KQ b;
    public final InterfaceC0894cH c;
    public final boolean d;
    public final C1065e30 e;
    public final NC f;

    public TriStateToggleableElement(Kf0 kf0, KQ kq, InterfaceC0894cH interfaceC0894cH, boolean z, C1065e30 c1065e30, NC nc) {
        this.a = kf0;
        this.b = kq;
        this.c = interfaceC0894cH;
        this.d = z;
        this.e = c1065e30;
        this.f = nc;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || TriStateToggleableElement.class != obj.getClass()) {
            return false;
        }
        TriStateToggleableElement triStateToggleableElement = (TriStateToggleableElement) obj;
        return this.a == triStateToggleableElement.a && F3.c(this.b, triStateToggleableElement.b) && F3.c(this.c, triStateToggleableElement.c) && this.d == triStateToggleableElement.d && this.e.equals(triStateToggleableElement.e) && this.f == triStateToggleableElement.f;
    }

    @Override // o.RP
    public final LP f() {
        Yg0 yg0 = new Yg0(this.b, this.c, false, this.d, null, this.e, this.f);
        yg0.V = this.a;
        return yg0;
    }

    public final int hashCode() {
        int iHashCode = this.a.hashCode() * 31;
        KQ kq = this.b;
        int iHashCode2 = (iHashCode + (kq != null ? kq.hashCode() : 0)) * 31;
        InterfaceC0894cH interfaceC0894cH = this.c;
        return this.f.hashCode() + AbstractC0126Ew.e(this.e.a, Ag0.d(Ag0.d((iHashCode2 + (interfaceC0894cH != null ? interfaceC0894cH.hashCode() : 0)) * 31, false, 31), this.d, 31), 31);
    }

    @Override // o.RP
    public final void j(LP lp) {
        Yg0 yg0 = (Yg0) lp;
        Kf0 kf0 = yg0.V;
        Kf0 kf02 = this.a;
        if (kf0 != kf02) {
            yg0.V = kf02;
            C2887xC.t(yg0);
        }
        yg0.O0(this.b, this.c, false, this.d, null, this.e, this.f);
    }
}
