package o;

import androidx.compose.foundation.BorderModifierNodeElement;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class Nb0 {
    public static final C0935cl a = new C0935cl(new C0781b40(5));

    public static final void a(MP mp, L70 l70, long j, long j2, float f, float f2, C1875me c1875me, SC sc, C0321Mk c0321Mk, int i, int i2) {
        if ((i2 & 1) != 0) {
            mp = JP.a;
        }
        if ((i2 & 2) != 0) {
            l70 = AbstractC2841wm0.j;
        }
        if ((i2 & 4) != 0) {
            j = ((C0294Li) c0321Mk.j(AbstractC0319Mi.a)).p;
        }
        if ((i2 & 8) != 0) {
            j2 = AbstractC0319Mi.b(j, c0321Mk);
        }
        if ((i2 & 16) != 0) {
            f = 0;
        }
        if ((i2 & 32) != 0) {
            f2 = 0;
        }
        if ((i2 & 64) != 0) {
            c1875me = null;
        }
        C0935cl c0935cl = a;
        float f3 = f + ((C0148Fs) c0321Mk.j(c0935cl)).l;
        AbstractC2841wm0.c(new A7[]{AbstractC1606jm.a.a(new C0190Hi(j2)), c0935cl.a(new C0148Fs(f3))}, C2887xC.y(421772006, new Lb0(mp, l70, j, f3, c1875me, f2, sc), c0321Mk), c0321Mk, 56);
    }

    public static final MP b(MP mp, L70 l70, long j, C1875me c1875me, float f) {
        MP mpB;
        MP borderModifierNodeElement = JP.a;
        if (f > 0.0f) {
            long j2 = C1690kg0.b;
            long j3 = AbstractC1370hE.a;
            mpB = androidx.compose.ui.graphics.a.b(borderModifierNodeElement, 1.0f, 1.0f, 1.0f, f, j2, l70, false, j3, j3);
        } else {
            mpB = borderModifierNodeElement;
        }
        MP mpG = mp.g(mpB);
        if (c1875me != null) {
            borderModifierNodeElement = new BorderModifierNodeElement(c1875me.a, c1875me.b, l70);
        }
        return AbstractC2378rs0.F(androidx.compose.foundation.a.b(mpG.g(borderModifierNodeElement), j, l70), l70);
    }

    public static final long c(long j, float f, C0321Mk c0321Mk) {
        C0294Li c0294Li = (C0294Li) c0321Mk.j(AbstractC0319Mi.a);
        boolean zBooleanValue = ((Boolean) c0321Mk.j(AbstractC0319Mi.b)).booleanValue();
        long j2 = c0294Li.p;
        return (C0190Hi.c(j, j2) && zBooleanValue) ? C0148Fs.a(f, (float) 0) ? j2 : AbstractC0752ap.y(C0190Hi.b(((((float) Math.log(f + 1)) * 4.5f) + 2.0f) / 100.0f, c0294Li.t), j2) : j;
    }
}
