package androidx.compose.foundation.layout;

import o.AbstractC0033Bh;
import o.C0133Fd;
import o.C0159Gd;
import o.C0669Zu;
import o.C1825m2;
import o.F3;
import o.MP;
import o.TO;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class c {
    public static final FillElement a = new FillElement(2, 1.0f);
    public static final FillElement b = new FillElement(3, 1.0f);
    public static final WrapContentElement c;
    public static final WrapContentElement d;
    public static final WrapContentElement e;
    public static final WrapContentElement f;

    static {
        C0133Fd c0133Fd = C0669Zu.w;
        c = new WrapContentElement(1, new C1825m2(15, c0133Fd), c0133Fd);
        C0133Fd c0133Fd2 = C0669Zu.v;
        d = new WrapContentElement(1, new C1825m2(15, c0133Fd2), c0133Fd2);
        C0159Gd c0159Gd = C0669Zu.q;
        int i = 16;
        e = new WrapContentElement(3, new C1825m2(i, c0159Gd), c0159Gd);
        C0159Gd c0159Gd2 = C0669Zu.m;
        f = new WrapContentElement(3, new C1825m2(i, c0159Gd2), c0159Gd2);
    }

    public static final MP a(MP mp, float f2, float f3) {
        return mp.g(new UnspecifiedConstraintsElement(f2, f3));
    }

    public static final MP b(MP mp, float f2) {
        return mp.g(f2 == 1.0f ? a : new FillElement(2, f2));
    }

    public static final MP c(MP mp, float f2) {
        return mp.g(new SizeElement(0.0f, f2, 0.0f, f2, 5));
    }

    public static final MP d(MP mp, float f2, float f3) {
        return mp.g(new SizeElement(0.0f, f2, 0.0f, f3, 5));
    }

    public static /* synthetic */ MP e(MP mp, float f2, float f3, int i) {
        if ((i & 1) != 0) {
            f2 = Float.NaN;
        }
        if ((i & 2) != 0) {
            f3 = Float.NaN;
        }
        return d(mp, f2, f3);
    }

    public static final MP f(MP mp) {
        float f2 = AbstractC0033Bh.b;
        return mp.g(new SizeElement(f2, f2, f2, f2, false));
    }

    public static MP g(MP mp, float f2, float f3, float f4, float f5, int i) {
        return mp.g(new SizeElement(f2, (i & 2) != 0 ? Float.NaN : f3, (i & 4) != 0 ? Float.NaN : f4, (i & 8) != 0 ? Float.NaN : f5, false));
    }

    public static final MP h(MP mp, float f2) {
        return mp.g(new SizeElement(f2, f2, f2, f2, true));
    }

    public static final MP i(MP mp, float f2, float f3) {
        return mp.g(new SizeElement(f2, f3, f2, f3, true));
    }

    public static final MP j(MP mp, float f2, float f3, float f4, float f5) {
        return mp.g(new SizeElement(f2, f3, f4, f5, true));
    }

    public static /* synthetic */ MP k(MP mp, float f2, float f3, int i) {
        float f4 = TO.b;
        if ((i & 2) != 0) {
            f4 = Float.NaN;
        }
        return j(mp, f2, f4, f3, Float.NaN);
    }

    public static final MP l(MP mp, float f2) {
        return mp.g(new SizeElement(f2, 0.0f, f2, 0.0f, 10));
    }

    public static MP m(float f2) {
        return new SizeElement(Float.NaN, 0.0f, f2, 0.0f, 10);
    }

    public static MP n(MP mp) {
        C0133Fd c0133Fd = C0669Zu.w;
        return mp.g(F3.c(c0133Fd, c0133Fd) ? c : F3.c(c0133Fd, C0669Zu.v) ? d : new WrapContentElement(1, new C1825m2(15, c0133Fd), c0133Fd));
    }

    public static MP o(MP mp) {
        C0159Gd c0159Gd = C0669Zu.q;
        return mp.g(c0159Gd.equals(c0159Gd) ? e : c0159Gd.equals(C0669Zu.m) ? f : new WrapContentElement(3, new C1825m2(16, c0159Gd), c0159Gd));
    }
}
