package o;

import androidx.compose.material3.MinimumInteractiveModifier;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Bh, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0033Bh {
    public static final float a;
    public static final float b = 20;
    public static final float c;

    static {
        float f = 2;
        a = f;
        c = f;
    }

    public static final void a(final boolean z, final OC oc, MP mp, boolean z2, C2735vh c2735vh, C0321Mk c0321Mk, final int i) {
        final MP mp2;
        final boolean z3;
        final C2735vh c2735vh2;
        int i2;
        MP mp3;
        C2735vh c2735vh3;
        boolean z4;
        NC nc;
        c0321Mk.X(-1406741137);
        int i3 = i | (c0321Mk.g(z) ? 4 : 2);
        if ((i & 48) == 0) {
            i3 |= c0321Mk.h(oc) ? 32 : 16;
        }
        int i4 = i3 | 208256;
        boolean z5 = true;
        if (c0321Mk.N(i4 & 1, (74899 & i4) != 74898)) {
            c0321Mk.S();
            if ((i & 1) == 0 || c0321Mk.x()) {
                C2735vh c2735vhA = AbstractC2830wh.a(c0321Mk);
                i2 = i4 & (-57345);
                mp3 = JP.a;
                c2735vh3 = c2735vhA;
                z4 = true;
            } else {
                c0321Mk.Q();
                i2 = i4 & (-57345);
                mp3 = mp;
                c2735vh3 = c2735vh;
                z4 = true;
                z5 = z2;
            }
            c0321Mk.r();
            float fFloor = (float) Math.floor(((InterfaceC2281qr) c0321Mk.j(AbstractC0840bl.h)).B(AbstractC2830wh.a));
            Kf0 kf0 = z ? Kf0.l : Kf0.m;
            if (oc != null) {
                c0321Mk.V(2066152950);
                boolean z6 = (i2 & 112) == 32 ? z4 : false;
                if ((i2 & 14) != 4) {
                    z4 = false;
                }
                boolean z7 = z6 | z4;
                Object objK = c0321Mk.K();
                if (z7 || objK == C0140Fk.a) {
                    objK = new C2925xh(oc, z);
                    c0321Mk.f0(objK);
                }
                nc = (NC) objK;
                c0321Mk.q(false);
            } else {
                c0321Mk.V(2066218639);
                c0321Mk.q(false);
                nc = null;
            }
            MP mp4 = mp3;
            c(kf0, nc, new C1395hb0(fFloor, 0.0f, 2, 0, 26), new C1395hb0(fFloor, 0.0f, 0, 0, 30), mp4, z5, c2735vh3, c0321Mk, 12804096);
            mp2 = mp4;
            z3 = z5;
            c2735vh2 = c2735vh3;
        } else {
            c0321Mk.Q();
            mp2 = mp;
            z3 = z2;
            c2735vh2 = c2735vh;
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new SC() { // from class: o.yh
                @Override // o.SC
                public final Object f(Object obj, Object obj2) {
                    ((Integer) obj2).getClass();
                    AbstractC0033Bh.a(z, oc, mp2, z3, c2735vh2, (C0321Mk) obj, AbstractC1904ms0.D(i | 1));
                    return Oh0.a;
                }
            };
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:103:0x01bd  */
    /* JADX WARN: Removed duplicated region for block: B:106:0x01ca  */
    /* JADX WARN: Removed duplicated region for block: B:107:0x01cd  */
    /* JADX WARN: Removed duplicated region for block: B:110:0x01dc  */
    /* JADX WARN: Removed duplicated region for block: B:121:0x01f7  */
    /* JADX WARN: Removed duplicated region for block: B:133:0x0214  */
    /* JADX WARN: Removed duplicated region for block: B:134:0x0227  */
    /* JADX WARN: Removed duplicated region for block: B:136:0x023c  */
    /* JADX WARN: Removed duplicated region for block: B:147:0x0255  */
    /* JADX WARN: Removed duplicated region for block: B:159:0x0271  */
    /* JADX WARN: Removed duplicated region for block: B:160:0x0284  */
    /* JADX WARN: Removed duplicated region for block: B:164:0x02cf  */
    /* JADX WARN: Removed duplicated region for block: B:62:0x00e1  */
    /* JADX WARN: Removed duplicated region for block: B:64:0x00e5  */
    /* JADX WARN: Removed duplicated region for block: B:70:0x010b  */
    /* JADX WARN: Removed duplicated region for block: B:72:0x010f  */
    /* JADX WARN: Removed duplicated region for block: B:84:0x014f  */
    /* JADX WARN: Removed duplicated region for block: B:91:0x0170  */
    /* JADX WARN: Removed duplicated region for block: B:92:0x0173  */
    /* JADX WARN: Removed duplicated region for block: B:96:0x0190  */
    /* JADX WARN: Removed duplicated region for block: B:98:0x0199  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final void b(boolean r22, o.Kf0 r23, o.MP r24, o.C2735vh r25, final o.C1395hb0 r26, final o.C1395hb0 r27, o.C0321Mk r28, int r29) {
        /*
            Method dump skipped, instructions count: 771
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC0033Bh.b(boolean, o.Kf0, o.MP, o.vh, o.hb0, o.hb0, o.Mk, int):void");
    }

    public static final void c(Kf0 kf0, NC nc, C1395hb0 c1395hb0, C1395hb0 c1395hb02, MP mp, boolean z, C2735vh c2735vh, C0321Mk c0321Mk, int i) {
        int i2;
        C2735vh c2735vh2;
        Kf0 kf02;
        MP mpA;
        c0321Mk.X(-406243761);
        if ((i & 6) == 0) {
            i2 = (c0321Mk.d(kf0.ordinal()) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i & 48) == 0) {
            i2 |= c0321Mk.h(nc) ? 32 : 16;
        }
        if ((i & 384) == 0) {
            i2 |= c0321Mk.h(c1395hb0) ? 256 : 128;
        }
        if ((i & 3072) == 0) {
            i2 |= c0321Mk.h(c1395hb02) ? 2048 : 1024;
        }
        if ((i & 24576) == 0) {
            i2 |= c0321Mk.f(mp) ? 16384 : 8192;
        }
        if ((196608 & i) == 0) {
            i2 |= c0321Mk.g(z) ? 131072 : 65536;
        }
        if ((1572864 & i) == 0) {
            c2735vh2 = c2735vh;
            i2 |= c0321Mk.f(c2735vh2) ? 1048576 : 524288;
        } else {
            c2735vh2 = c2735vh;
        }
        if ((12582912 & i) == 0) {
            i2 |= c0321Mk.f(null) ? 8388608 : 4194304;
        }
        if (c0321Mk.N(i2 & 1, (4793491 & i2) != 4793490)) {
            c0321Mk.S();
            if ((i & 1) != 0 && !c0321Mk.x()) {
                c0321Mk.Q();
            }
            c0321Mk.r();
            MP mp2 = JP.a;
            if (nc != null) {
                kf02 = kf0;
                mpA = androidx.compose.foundation.selection.b.a(kf02, AbstractC0779b30.a(false, AbstractC0059Ch.a / 2, 4), z, new C1065e30(1), nc);
            } else {
                kf02 = kf0;
                mpA = mp2;
            }
            if (nc != null) {
                C1467iF c1467iF = AbstractC2134pI.a;
                mp2 = MinimumInteractiveModifier.a;
            }
            MP mpE = androidx.compose.foundation.layout.b.e(mp.g(mp2).g(mpA), a);
            int i3 = ((i2 >> 15) & 14) | ((i2 << 3) & 112) | ((i2 >> 9) & 7168);
            int i4 = i2 << 6;
            b(z, kf02, mpE, c2735vh2, c1395hb0, c1395hb02, c0321Mk, i3 | (57344 & i4) | (i4 & 458752));
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C2541tf(kf0, nc, c1395hb0, c1395hb02, mp, z, c2735vh, i);
        }
    }
}
