package androidx.compose.foundation.selection;

import o.AbstractC1692kh0;
import o.C0970d30;
import o.C1065e30;
import o.JP;
import o.Kf0;
import o.MP;
import o.NC;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class b {
    public static final MP a(Kf0 kf0, C0970d30 c0970d30, boolean z, C1065e30 c1065e30, NC nc) {
        if (c0970d30 != null) {
            return new TriStateToggleableElement(kf0, null, c0970d30, z, c1065e30, nc);
        }
        if (c0970d30 == null) {
            return new TriStateToggleableElement(kf0, null, null, z, c1065e30, nc);
        }
        return AbstractC1692kh0.o(JP.a, new a(c0970d30, kf0, z, c1065e30, nc));
    }
}
