package o;

import androidx.compose.foundation.layout.LayoutWeightElement;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Fm, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0142Fm {
    public static final C3030ym a;

    static {
        C0935cl c0935cl = AbstractC1068e5.a;
        long j = C0190Hi.c;
        long j2 = C0190Hi.b;
        a = new C3030ym(j, j2, j2, C0190Hi.b(0.38f, j2), C0190Hi.b(0.38f, j2));
    }

    public static final void a(C3030ym c3030ym, MP mp, C0554Vj c0554Vj, C0321Mk c0321Mk, int i) {
        int i2;
        c0321Mk.X(621449936);
        if ((i & 6) == 0) {
            i2 = (c0321Mk.f(c3030ym) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i & 48) == 0) {
            i2 |= c0321Mk.f(mp) ? 32 : 16;
        }
        if ((i & 384) == 0) {
            i2 |= c0321Mk.h(c0554Vj) ? 256 : 128;
        }
        if (c0321Mk.N(i2 & 1, (i2 & 147) != 146)) {
            MP mpH = androidx.compose.foundation.a.h(androidx.compose.foundation.layout.b.g(androidx.compose.foundation.layout.b.j(androidx.compose.foundation.a.b(Co0.N(mp, AbstractC0038Bm.d, AbstractC2397s30.a(AbstractC0038Bm.e)), c3030ym.a, AbstractC2841wm0.j)), 0.0f, AbstractC0038Bm.i, 1), androidx.compose.foundation.a.g(c0321Mk));
            int i3 = (i2 << 3) & 7168;
            C0579Wi c0579WiA = AbstractC0527Ui.a(AbstractC0981d9.c, C0669Zu.y, c0321Mk, 0);
            int iHashCode = Long.hashCode(c0321Mk.R);
            AW awL = c0321Mk.l();
            MP mpF = AbstractC1692kh0.F(c0321Mk, mpH);
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al = C0036Bk.b;
            c0321Mk.Y();
            if (c0321Mk.Q) {
                c0321Mk.k(c0744al);
            } else {
                c0321Mk.i0();
            }
            AbstractC2378rs0.f0(c0579WiA, c0321Mk, C0036Bk.f);
            AbstractC2378rs0.f0(awL, c0321Mk, C0036Bk.e);
            C0975d6 c0975d6 = C0036Bk.i;
            if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk, iHashCode, c0975d6);
            }
            AbstractC2378rs0.f0(mpF, c0321Mk, C0036Bk.c);
            c0554Vj.d(C0605Xi.a, c0321Mk, Integer.valueOf(((i3 >> 6) & 112) | 6));
            c0321Mk.q(true);
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C1452i5(c3030ym, mp, c0554Vj, i, 4);
        }
    }

    public static final void b(MP mp, C3030ym c3030ym, OC oc, C0321Mk c0321Mk, int i, int i2) {
        int i3;
        int i4;
        c0321Mk.X(-1430784946);
        int i5 = i2 & 1;
        if (i5 != 0) {
            i3 = i | 6;
        } else {
            i3 = (c0321Mk.f(mp) ? 4 : 2) | i;
        }
        int i6 = i2 & 2;
        if (i6 != 0) {
            i4 = i3 | 48;
        } else {
            i4 = i3 | (c0321Mk.f(c3030ym) ? 32 : 16);
        }
        int i7 = i4 | (c0321Mk.h(oc) ? 256 : 128);
        if (c0321Mk.N(i7 & 1, (i7 & 147) != 146)) {
            if (i5 != 0) {
                mp = JP.a;
            }
            if (i6 != 0) {
                c3030ym = a;
            }
            a(c3030ym, mp, C2887xC.y(860259975, new C0116Em(0, oc, c3030ym), c0321Mk), c0321Mk, ((i7 << 3) & 112) | ((i7 >> 3) & 14) | 384);
        } else {
            c0321Mk.Q();
        }
        MP mp2 = mp;
        C3030ym c3030ym2 = c3030ym;
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C1452i5(mp2, c3030ym2, oc, i, i2);
        }
    }

    public static final void c(String str, C3030ym c3030ym, MP mp, TC tc, NC nc, C0321Mk c0321Mk, int i) {
        int i2;
        int i3;
        c0321Mk.X(-1027365588);
        if ((i & 6) == 0) {
            i2 = (c0321Mk.f(str) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i & 48) == 0) {
            i2 |= c0321Mk.g(true) ? 32 : 16;
        }
        if ((i & 384) == 0) {
            i2 |= c0321Mk.f(c3030ym) ? 256 : 128;
        }
        if ((i & 3072) == 0) {
            i2 |= c0321Mk.f(mp) ? 2048 : 1024;
        }
        if ((i & 24576) == 0) {
            i2 |= c0321Mk.h(tc) ? 16384 : 8192;
        }
        if ((196608 & i) == 0) {
            i2 |= c0321Mk.h(nc) ? 131072 : 65536;
        }
        if (c0321Mk.N(i2 & 1, (74899 & i2) != 74898)) {
            C0133Fd c0133Fd = AbstractC0038Bm.f;
            J7 j7 = AbstractC0981d9.a;
            float f = AbstractC0038Bm.h;
            C0694a9 c0694a9G = AbstractC0981d9.g(f);
            boolean z = ((i2 & 112) == 32) | ((458752 & i2) == 131072);
            Object objK = c0321Mk.K();
            if (z || objK == C0140Fk.a) {
                objK = new C0064Cm(0, nc);
                c0321Mk.f0(objK);
            }
            MP mpB = androidx.compose.foundation.layout.c.b(androidx.compose.foundation.a.d(mp, str, (NC) objK, 12), 1.0f);
            float f2 = AbstractC0038Bm.a;
            float f3 = AbstractC0038Bm.b;
            float f4 = AbstractC0038Bm.c;
            MP mpG = androidx.compose.foundation.layout.b.g(androidx.compose.foundation.layout.c.j(mpB, f2, f4, f3, f4), f, 0.0f, 2);
            C3062z30 c3062z30A = AbstractC2967y30.a(c0694a9G, c0133Fd, c0321Mk, 54);
            int iHashCode = Long.hashCode(c0321Mk.R);
            AW awL = c0321Mk.l();
            MP mpF = AbstractC1692kh0.F(c0321Mk, mpG);
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al = C0036Bk.b;
            c0321Mk.Y();
            if (c0321Mk.Q) {
                c0321Mk.k(c0744al);
            } else {
                c0321Mk.i0();
            }
            C0975d6 c0975d6 = C0036Bk.f;
            AbstractC2378rs0.f0(c3062z30A, c0321Mk, c0975d6);
            C0975d6 c0975d62 = C0036Bk.e;
            AbstractC2378rs0.f0(awL, c0321Mk, c0975d62);
            C0975d6 c0975d63 = C0036Bk.i;
            if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk, iHashCode, c0975d63);
            }
            C0975d6 c0975d64 = C0036Bk.c;
            AbstractC2378rs0.f0(mpF, c0321Mk, c0975d64);
            if (tc == null) {
                c0321Mk.V(-1483499797);
                c0321Mk.q(false);
                i3 = i2;
            } else {
                c0321Mk.V(-1483499796);
                float f5 = AbstractC0038Bm.j;
                MP mpG2 = androidx.compose.foundation.layout.c.g(JP.a, f5, 0.0f, f5, f5, 2);
                InterfaceC2235qO interfaceC2235qOD = AbstractC3109ze.d(C0669Zu.m, false);
                i3 = i2;
                int iHashCode2 = Long.hashCode(c0321Mk.R);
                AW awL2 = c0321Mk.l();
                MP mpF2 = AbstractC1692kh0.F(c0321Mk, mpG2);
                c0321Mk.Y();
                if (c0321Mk.Q) {
                    c0321Mk.k(c0744al);
                } else {
                    c0321Mk.i0();
                }
                AbstractC2378rs0.f0(interfaceC2235qOD, c0321Mk, c0975d6);
                AbstractC2378rs0.f0(awL2, c0321Mk, c0975d62);
                if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode2))) {
                    AbstractC2462sn.r(iHashCode2, c0321Mk, iHashCode2, c0975d63);
                }
                AbstractC2378rs0.f0(mpF2, c0321Mk, c0975d64);
                tc.d(new C0190Hi(c3030ym.c), c0321Mk, 0);
                c0321Mk.q(true);
                c0321Mk.q(false);
            }
            C0733af0 c0733af0 = new C0733af0(c3030ym.b, AbstractC0038Bm.m, AbstractC0038Bm.n, AbstractC0038Bm.p, null, AbstractC0038Bm.g, AbstractC0038Bm.f57o, 16613240);
            if (1.0f <= 0.0d) {
                AbstractC1943nH.a("invalid weight; must be greater than zero");
            }
            AbstractC0662Zn.a(str, new LayoutWeightElement(1.0f, true), c0733af0, 0, false, 1, 0, c0321Mk, (i3 & 14) | 1572864, 952);
            c0321Mk.q(true);
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C0090Dm(str, c3030ym, mp, tc, nc, i, 0);
        }
    }
}
