package androidx.compose.foundation.text.handwriting;

import androidx.compose.ui.input.pointer.StylusHoverIconModifierElement;
import o.AbstractC1870mb0;
import o.C0252Js;
import o.JP;
import o.MP;
import o.NC;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class a {
    public static final C0252Js a;

    static {
        float f = 40;
        float f2 = 10;
        a = new C0252Js(f2, f, f2, f);
    }

    public static final MP a(boolean z, boolean z2, NC nc) {
        MP stylusHoverIconModifierElement = JP.a;
        if (!z || !AbstractC1870mb0.a) {
            return stylusHoverIconModifierElement;
        }
        if (z2) {
            stylusHoverIconModifierElement = new StylusHoverIconModifierElement(a);
        }
        return stylusHoverIconModifierElement.g(new StylusHandwritingElement(nc));
    }
}
