package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class G4 {
    public static final XX a = new XX(14);

    public static final void a(final boolean z, final NC nc, final MP mp, long j, Z40 z40, XX xx, L70 l70, long j2, float f, float f2, final C0554Vj c0554Vj, C0321Mk c0321Mk, final int i) {
        final long j3;
        final Z40 z402;
        final XX xx2;
        final L70 l702;
        final long j4;
        final float f3;
        final float f4;
        long jFloatToRawIntBits;
        long jD;
        float f5;
        float f6;
        Z40 z403;
        XX xx3;
        L70 l703;
        c0321Mk.X(1725609375);
        int i2 = i | (c0321Mk.g(z) ? 4 : 2) | 910896128;
        if (c0321Mk.N(i2 & 1, (306783379 & i2) != 306783378)) {
            c0321Mk.S();
            if ((i & 1) == 0 || c0321Mk.x()) {
                float f7 = 0;
                jFloatToRawIntBits = (Float.floatToRawIntBits(f7) & 4294967295L) | (Float.floatToRawIntBits(f7) << 32);
                Z40 z40G = androidx.compose.foundation.a.g(c0321Mk);
                float f8 = DO.a;
                L70 l70A = AbstractC0884c80.a(AbstractC1285gP.b, c0321Mk);
                jD = AbstractC0319Mi.d(37, c0321Mk);
                f5 = DO.a;
                f6 = DO.b;
                z403 = z40G;
                xx3 = a;
                l703 = l70A;
            } else {
                c0321Mk.Q();
                jFloatToRawIntBits = j;
                z403 = z40;
                xx3 = xx;
                l703 = l70;
                jD = j2;
                f5 = f;
                f6 = f2;
            }
            c0321Mk.r();
            Object objK = c0321Mk.K();
            Object obj = C0140Fk.a;
            if (objK == obj) {
                objK = new C1383hR(Boolean.FALSE);
                c0321Mk.f0(objK);
            }
            C1383hR c1383hR = (C1383hR) objK;
            c1383hR.c.setValue(Boolean.valueOf(z));
            if (((Boolean) c1383hR.b.getValue()).booleanValue() || ((Boolean) c1383hR.c.getValue()).booleanValue()) {
                c0321Mk.V(1165905588);
                Object objK2 = c0321Mk.K();
                if (objK2 == obj) {
                    objK2 = AbstractC0752ap.X(new C1690kg0(C1690kg0.b));
                    c0321Mk.f0(objK2);
                }
                InterfaceC1191fR interfaceC1191fR = (InterfaceC1191fR) objK2;
                InterfaceC2281qr interfaceC2281qr = (InterfaceC2281qr) c0321Mk.j(AbstractC0840bl.h);
                boolean zF = c0321Mk.f(interfaceC2281qr);
                Object objK3 = c0321Mk.K();
                if (zF || objK3 == obj) {
                    objK3 = new C0279Kt(jFloatToRawIntBits, interfaceC2281qr, new C1825m2(1, interfaceC1191fR));
                    c0321Mk.f0(objK3);
                }
                AbstractC1068e5.a((C0279Kt) objK3, nc, xx3, C2887xC.y(-917492520, new F4(mp, c1383hR, interfaceC1191fR, z403, l703, jD, f5, f6, c0554Vj), c0321Mk), c0321Mk, 3504, 0);
                c0321Mk.q(false);
            } else {
                c0321Mk.V(1166965571);
                c0321Mk.q(false);
            }
            j3 = jFloatToRawIntBits;
            xx2 = xx3;
            z402 = z403;
            l702 = l703;
            j4 = jD;
            f3 = f5;
            f4 = f6;
        } else {
            c0321Mk.Q();
            j3 = j;
            z402 = z40;
            xx2 = xx;
            l702 = l70;
            j4 = j2;
            f3 = f;
            f4 = f2;
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new SC(z, nc, mp, j3, z402, xx2, l702, j4, f3, f4, c0554Vj, i) { // from class: o.D4
                public final /* synthetic */ boolean l;
                public final /* synthetic */ NC m;
                public final /* synthetic */ MP n;

                /* renamed from: o, reason: collision with root package name */
                public final /* synthetic */ long f74o;
                public final /* synthetic */ Z40 p;
                public final /* synthetic */ XX q;
                public final /* synthetic */ L70 r;
                public final /* synthetic */ long s;
                public final /* synthetic */ float t;
                public final /* synthetic */ float u;
                public final /* synthetic */ C0554Vj v;

                @Override // o.SC
                public final Object f(Object obj2, Object obj3) {
                    ((Integer) obj3).getClass();
                    int iD = AbstractC1904ms0.D(433);
                    G4.a(this.l, this.m, this.n, this.f74o, this.p, this.q, this.r, this.s, this.t, this.u, this.v, (C0321Mk) obj2, iD);
                    return Oh0.a;
                }
            };
        }
    }

    public static final void b(C0554Vj c0554Vj, NC nc, MP mp, boolean z, JO jo, C2147pV c2147pV, C0321Mk c0321Mk, int i, int i2) {
        MP mp2;
        int i3;
        boolean z2;
        JO jo2;
        C2147pV c2147pV2;
        MP mp3;
        MP mp4;
        int i4;
        JO jo3;
        int i5;
        C2147pV c2147pV3;
        boolean z3;
        JO jo4;
        c0321Mk.X(-532959117);
        int i6 = i | (c0321Mk.h(nc) ? 32 : 16);
        int i7 = i2 & 4;
        if (i7 != 0) {
            i3 = i6 | 384;
            mp2 = mp;
        } else {
            mp2 = mp;
            i3 = i6 | (c0321Mk.f(mp2) ? 256 : 128);
        }
        int i8 = i3 | 113994752;
        if (c0321Mk.N(i8 & 1, (38347923 & i8) != 38347922)) {
            c0321Mk.S();
            if ((i & 1) == 0 || c0321Mk.x()) {
                mp4 = i7 != 0 ? JP.a : mp2;
                float f = DO.a;
                C0294Li c0294Li = (C0294Li) c0321Mk.j(AbstractC0319Mi.a);
                JO jo5 = c0294Li.c0;
                if (jo5 == null) {
                    i4 = -3670017;
                    jo3 = new JO(AbstractC0319Mi.c(c0294Li, VL.g), AbstractC0319Mi.c(c0294Li, VL.h), AbstractC0319Mi.c(c0294Li, VL.i), C0190Hi.b(VL.a, AbstractC0319Mi.c(c0294Li, VL.d)), C0190Hi.b(VL.b, AbstractC0319Mi.c(c0294Li, VL.e)), C0190Hi.b(VL.c, AbstractC0319Mi.c(c0294Li, VL.f)));
                    c0294Li.c0 = jo3;
                } else {
                    i4 = -3670017;
                    jo3 = jo5;
                }
                i5 = i8 & i4;
                c2147pV3 = DO.c;
                z3 = true;
                jo4 = jo3;
            } else {
                c0321Mk.Q();
                i5 = i8 & (-3670017);
                jo4 = jo;
                c2147pV3 = c2147pV;
                mp4 = mp2;
                z3 = z;
            }
            c0321Mk.r();
            TO.b(c0554Vj, nc, mp4, z3, jo4, c2147pV3, c0321Mk, i5 & 268435454);
            jo2 = jo4;
            c2147pV2 = c2147pV3;
            mp3 = mp4;
            z2 = z3;
        } else {
            c0321Mk.Q();
            z2 = z;
            jo2 = jo;
            c2147pV2 = c2147pV;
            mp3 = mp2;
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new E4(c0554Vj, nc, mp3, z2, jo2, c2147pV2, i, i2);
        }
    }
}
