// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_modulo
static s7_pointer g_modulo(s7_scheme *sc, s7_pointer args)
    {
#define H_modulo "(modulo x1 x2) returns x1 mod x2; (modulo 4 3) = 1.  The arguments can be real numbers."
#define Q_modulo sc->pcl_r
        /* (define (mod x1 x2) (- x1 (* x2 (floor (/ x1 x2))))) from slib
         * (mod x 0) = x according to "Concrete Mathematics"
         */
        s7_pointer x, y;
        s7_double a, b;
        s7_int n1, n2, d1, d2;

        x = car(args);
        y = cadr(args);

        switch (type(x))
        {
            case T_INTEGER:
                switch (type(y))
                {
                    case T_INTEGER:
                        return(make_integer(sc, c_mod(integer(x), integer(y))));

                    case T_RATIO:
                        n1 = integer(x);
                        d1 = 1;
                        n2 = numerator(y);
                        d2 = denominator(y);
                        goto RATIO_MOD_RATIO;

                    case T_REAL:
                        {
                            double c;
                            b = real(y);
                            if (b == 0.0) return(x);
                            if (is_NaN(b)) return(y);
                            if (is_inf(b)) return(real_NaN);
                            a = (s7_double)integer(x);
                            c = a / b;
                            if ((c > 1e19) || (c < -1e19))
                                return(simple_out_of_range(sc, sc->modulo_symbol, y, wrap_string(sc, "intermediate (a/b) is too large", 31)));
                            return(make_real(sc, a - b * (s7_int)floor(c)));
                        }

                    default:
                        return(method_or_bust(sc, y, sc->modulo_symbol, args, T_REAL, 2));
                }

            case T_RATIO:
                switch (type(y))
                {
                    case T_INTEGER:
                        if (integer(y) == 0) return(x);
                        n1 = numerator(x);
                        d1 = denominator(x);
                        n2 = integer(y);

                        if ((n2 > 0) && (n1 > 0) && (n2 > n1)) return(x);
                        if ((n2 < 0) && (n1 < 0) && (n2 < n1)) return(x);

                        if (n2 == s7_int_min)
                            return(simple_out_of_range(sc, sc->modulo_symbol, y, wrap_string(sc, "intermediate (a/b) is too large", 31)));
                        /* the problem here is that (modulo 3/2 most-negative-fixnum)
                         * will segfault with signal SIGFPE, Arithmetic exception, so try to trap it.
                         */

                        d2 = 1;
                        goto RATIO_MOD_RATIO;

                    case T_RATIO:
                        n1 = numerator(x);
                        d1 = denominator(x);
                        n2 = numerator(y); /* can't be 0 */
                        d2 = denominator(y);
                        if (d1 == d2)
                            return(s7_make_ratio(sc, c_mod(n1, n2), d1));

RATIO_MOD_RATIO:

                        if ((n1 == n2) &&
                                (d1 > d2))
                            return(x);                 /* signs match so this should be ok */
#if HAVE_OVERFLOW_CHECKS
                        {
                            s7_int n2d1, n1d2, d1d2, fl;
                            if (!multiply_overflow(n2, d1, &n2d1))
                            {
                                if (n2d1 == 1)
                                    return(small_int(0));

                                if (!multiply_overflow(n1, d2, &n1d2))
                                {
                                    /* can't use "floor" here (int->float ruins everything) */
                                    fl = (s7_int)(n1d2 / n2d1);
                                    if (((n1 < 0) && (n2 > 0)) ||
                                            ((n1 > 0) && (n2 < 0)))
                                        fl -= 1;

                                    if (fl == 0)
                                        return(x);

                                    if ((!multiply_overflow(d1, d2, &d1d2)) &&
                                            (!multiply_overflow(fl, n2d1, &fl)) &&
                                            (!subtract_overflow(n1d2, fl, &fl)))
                                        return(s7_make_ratio(sc, fl, d1d2));
                                }
                            }
                        }
#else
                        {
                            s7_int n1d2, n2d1, fl;
                            n1d2 = n1 * d2;
                            n2d1 = n2 * d1;

                            if (n2d1 == 1)
                                return(small_int(0));

                            /* can't use "floor" here (int->float ruins everything) */
                            fl = (s7_int)(n1d2 / n2d1);
                            if (((n1 < 0) && (n2 > 0)) ||
                                    ((n1 > 0) && (n2 < 0)))
                                fl -= 1;

                            if (fl == 0)
                                return(x);

                            return(s7_make_ratio(sc, n1d2 - (n2d1 * fl), d1 * d2));
                        }
#endif

                        /* there are cases here we might want to catch:
                         *    (modulo 9223372036 1/9223372036) -> error, not 0?
                         *    (modulo 1 1/9223372036854775807) -> error, not 0?
                         */
                        return(simple_out_of_range(sc, sc->modulo_symbol, x, wrap_string(sc, "intermediate (a/b) is too large", 31)));

                    case T_REAL:
                        b = real(y);
                        if (b == 0.0) return(x);
                        if (is_NaN(b)) return(y);
                        if (is_inf(b)) return(real_NaN);
                        a = fraction(x);
                        return(make_real(sc, a - b * (s7_int)floor(a / b)));

                    default:
                        return(method_or_bust(sc, y, sc->modulo_symbol, args, T_REAL, 2));
                }

            case T_REAL:
                a = real(x);

                switch (type(y))
                {
                    case T_INTEGER:
                        if (is_NaN(a)) return(x);
                        if (is_inf(a)) return(real_NaN);
                        if (integer(y) == 0) return(x);
                        b = (s7_double)integer(y);
                        return(make_real(sc, a - b * (s7_int)floor(a / b)));

                    case T_RATIO:
                        if (is_NaN(a)) return(x);
                        if (is_inf(a)) return(real_NaN);
                        b = fraction(y);
                        return(make_real(sc, a - b * (s7_int)floor(a / b)));

                    case T_REAL:
                        {
                            s7_double c;
                            if (is_NaN(a)) return(x);
                            if (is_inf(a)) return(real_NaN);
                            b = real(y);
                            if (b == 0.0) return(x);
                            if (is_NaN(b)) return(y);
                            if (is_inf(b)) return(real_NaN);
                            c = a / b;
                            if ((c > 1e19) || (c < -1e19))
                                return(simple_out_of_range(sc, sc->modulo_symbol, y, wrap_string(sc, "intermediate (a/b) is too large", 31)));
                            return(make_real(sc, a - b * (s7_int)floor(c)));
                        }

                    default:
                        return(method_or_bust(sc, y, sc->modulo_symbol, args, T_REAL, 2));
                }

            default:
                return(method_or_bust(sc, x, sc->modulo_symbol, args, T_REAL, 1));
        }
    }

// Assembly:
subq $0x228, %rsp            # imm = 0x228
movq %rdi, 0x218(%rsp)
movq %rsi, 0x210(%rsp)
movq 0x210(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x208(%rsp)
movq 0x210(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x200(%rsp)
movq 0x208(%rsp), %rax
movzbl (%rax), %eax
movl %eax, 0xd4(%rsp)
subl $0xb, %eax
je 0x80e93
jmp 0x80e6c
movl 0xd4(%rsp), %eax
subl $0xc, %eax
je 0x81341
jmp 0x80e7e
movl 0xd4(%rsp), %eax
subl $0xd, %eax
je 0x81a2d
jmp 0x82192
movq 0x200(%rsp), %rax
movzbl (%rax), %eax
movl %eax, 0xd0(%rsp)
subl $0xb, %eax
je 0x80ed3
jmp 0x80eac
movl 0xd0(%rsp), %eax
subl $0xc, %eax
je 0x80fec
jmp 0x80ebe
movl 0xd0(%rsp), %eax
subl $0xd, %eax
je 0x81039
jmp 0x812fc
movq 0x208(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x200(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x1c1660
movq %rax, 0x1c8(%rsp)
movq 0x1c8(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x80f2c
movq 0x1c8(%rsp), %rcx
leaq 0x195565(%rip), %rax    # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0xc8(%rsp)
jmp 0x80fc7
jmp 0x80f2e
movq 0x218(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x218(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x80f5b
movq 0x218(%rsp), %rdi
callq 0xc670
movq 0x218(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x1b8(%rsp)
movq 0x1b8(%rsp), %rax
movq $0xb, (%rax)
movq 0x1c8(%rsp), %rcx
movq 0x1b8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x1b8(%rsp), %rax
movq %rax, 0x1b0(%rsp)
movq 0x1b0(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x1c0(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x208(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x1e8(%rsp)
movq $0x1, 0x1d8(%rsp)
movq 0x200(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x1e0(%rsp)
movq 0x200(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x1d0(%rsp)
jmp 0x815aa
movq 0x200(%rsp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x1f0(%rsp)
movsd 0x1f0(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x81078
jp 0x81078
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f0(%rsp), %xmm0
callq 0x13860
testb $0x1, %al
jne 0x8108c
jmp 0x810a1
movq 0x200(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f0(%rsp), %xmm1
movaps %xmm1, %xmm0
movaps 0x1609ec(%rip), %xmm2   # 0x1e1aa0
pand %xmm2, %xmm0
movq %xmm1, %rdx
movl $0x1, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovll %eax, %ecx
movsd 0x16089a(%rip), %xmm1   # 0x1e1970
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
je 0x81102
movq 0x19c8db(%rip), %rax    # 0x21d9d0
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x208(%rsp), %rax
cvtsi2sdq 0x8(%rax), %xmm0
movsd %xmm0, 0x1f8(%rsp)
movsd 0x1f8(%rsp), %xmm0
divsd 0x1f0(%rsp), %xmm0
movsd %xmm0, 0x1a8(%rsp)
movsd 0x1a8(%rsp), %xmm0
movsd 0x1608eb(%rip), %xmm1   # 0x1e1a30
ucomisd %xmm1, %xmm0
ja 0x81162
movsd 0x1608e5(%rip), %xmm0   # 0x1e1a38
ucomisd 0x1a8(%rsp), %xmm0
jbe 0x811e3
movq 0x218(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x218(%rsp), %rax
movq 0x1350(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0xb8(%rsp)
movq 0x200(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x218(%rsp), %rdi
leaq 0x1724d7(%rip), %rsi    # 0x1f3683
movl $0x1f, %edx
callq 0xb880
movq 0xb0(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
movq %rax, %rcx
callq 0x45240
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f8(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0x1f0(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
movsd 0x1a8(%rsp), %xmm0
callq 0x95f0
movsd 0xa0(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0xa8(%rsp), %xmm0
cvttsd2si %xmm2, %rax
cvtsi2sd %rax, %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x198(%rsp)
movq 0x218(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x218(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x81289
movq 0x218(%rsp), %rdi
callq 0xc670
movq 0x218(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x1a0(%rsp)
movq 0x1a0(%rsp), %rax
movq $0xd, (%rax)
movsd 0x198(%rsp), %xmm0
movq 0x1a0(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x1a0(%rsp), %rax
movq %rax, 0x190(%rsp)
movq 0x190(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x218(%rsp), %rdi
movq 0x200(%rsp), %rsi
movq 0x218(%rsp), %rax
movq 0x1350(%rax), %rdx
movq 0x210(%rsp), %rcx
movl $0xd, %r8d
movl $0x2, %r9d
callq 0x13c50
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x200(%rsp), %rax
movzbl (%rax), %eax
movl %eax, 0x9c(%rsp)
subl $0xb, %eax
je 0x81381
jmp 0x8135a
movl 0x9c(%rsp), %eax
subl $0xc, %eax
je 0x81502
jmp 0x8136c
movl 0x9c(%rsp), %eax
subl $0xd, %eax
je 0x817c0
jmp 0x819e8
movq 0x200(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x813a5
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x208(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x1e8(%rsp)
movq 0x208(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x1d8(%rsp)
movq 0x200(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x1e0(%rsp)
cmpq $0x0, 0x1e0(%rsp)
jle 0x8141e
cmpq $0x0, 0x1e8(%rsp)
jle 0x8141e
movq 0x1e0(%rsp), %rax
cmpq 0x1e8(%rsp), %rax
jle 0x8141e
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
cmpq $0x0, 0x1e0(%rsp)
jge 0x8145b
cmpq $0x0, 0x1e8(%rsp)
jge 0x8145b
movq 0x1e0(%rsp), %rax
cmpq 0x1e8(%rsp), %rax
jge 0x8145b
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x1e0(%rsp), %rax
cmpq 0x1990ee(%rip), %rax    # 0x21a558
jne 0x814f1
movq 0x218(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x218(%rsp), %rax
movq 0x1350(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x88(%rsp)
movq 0x200(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x218(%rsp), %rdi
leaq 0x1721c9(%rip), %rsi    # 0x1f3683
movl $0x1f, %edx
callq 0xb880
movq 0x80(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq %rax, %rcx
callq 0x45240
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq $0x1, 0x1d0(%rsp)
jmp 0x815aa
movq 0x208(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x1e8(%rsp)
movq 0x208(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x1d8(%rsp)
movq 0x200(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x1e0(%rsp)
movq 0x200(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x1d0(%rsp)
movq 0x1d8(%rsp), %rax
cmpq 0x1d0(%rsp), %rax
jne 0x815a8
movq 0x218(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x1e8(%rsp), %rdi
movq 0x1e0(%rsp), %rsi
callq 0x1c1660
movq 0x78(%rsp), %rdi
movq %rax, %rsi
movq 0x1d8(%rsp), %rdx
callq 0x11a80
movq %rax, 0x220(%rsp)
jmp 0x821d2
jmp 0x815aa
movq 0x1e8(%rsp), %rax
cmpq 0x1e0(%rsp), %rax
jne 0x815e3
movq 0x1d8(%rsp), %rax
cmpq 0x1d0(%rsp), %rax
jle 0x815e3
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x1e0(%rsp), %rcx
imulq 0x1d8(%rsp), %rcx
seto %al
movq %rcx, 0x188(%rsp)
testb $0x1, %al
jne 0x81751
cmpq $0x1, 0x188(%rsp)
jne 0x81626
movq 0x194e67(%rip), %rax    # 0x216480
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x1e8(%rsp), %rcx
imulq 0x1d0(%rsp), %rcx
seto %al
movq %rcx, 0x180(%rsp)
testb $0x1, %al
jne 0x8174f
movq 0x180(%rsp), %rax
cqto
idivq 0x188(%rsp)
movq %rax, 0x170(%rsp)
cmpq $0x0, 0x1e8(%rsp)
jge 0x8167a
cmpq $0x0, 0x1e0(%rsp)
jg 0x81690
cmpq $0x0, 0x1e8(%rsp)
jle 0x816a4
cmpq $0x0, 0x1e0(%rsp)
jge 0x816a4
movq 0x170(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x170(%rsp)
cmpq $0x0, 0x170(%rsp)
jne 0x816c4
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x1d8(%rsp), %rcx
imulq 0x1d0(%rsp), %rcx
seto %al
movq %rcx, 0x178(%rsp)
testb $0x1, %al
jne 0x8174d
movq 0x170(%rsp), %rcx
imulq 0x188(%rsp), %rcx
seto %al
movq %rcx, 0x170(%rsp)
testb $0x1, %al
jne 0x8174d
movq 0x180(%rsp), %rcx
subq 0x170(%rsp), %rcx
seto %al
movq %rcx, 0x170(%rsp)
testb $0x1, %al
jne 0x8174d
movq 0x218(%rsp), %rdi
movq 0x170(%rsp), %rsi
movq 0x178(%rsp), %rdx
callq 0x11a80
movq %rax, 0x220(%rsp)
jmp 0x821d2
jmp 0x8174f
jmp 0x81751
movq 0x218(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x218(%rsp), %rax
movq 0x1350(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x208(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x218(%rsp), %rdi
leaq 0x171ef1(%rip), %rsi    # 0x1f3683
movl $0x1f, %edx
callq 0xb880
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq %rax, %rcx
callq 0x45240
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x200(%rsp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x1f0(%rsp)
movsd 0x1f0(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x817ff
jp 0x817ff
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f0(%rsp), %xmm0
callq 0x13860
testb $0x1, %al
jne 0x81813
jmp 0x81828
movq 0x200(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f0(%rsp), %xmm1
movaps %xmm1, %xmm0
movaps 0x160265(%rip), %xmm2   # 0x1e1aa0
pand %xmm2, %xmm0
movq %xmm1, %rdx
movl $0x1, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovll %eax, %ecx
movsd 0x160113(%rip), %xmm1   # 0x1e1970
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
je 0x81889
movq 0x19c154(%rip), %rax    # 0x21d9d0
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x208(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
movq %rcx, 0xe8(%rsp)
fildll 0xe8(%rsp)
movq %rax, 0xe0(%rsp)
fildll 0xe0(%rsp)
fdivrp %st, %st(1)
fstpl 0xd8(%rsp)
movsd 0xd8(%rsp), %xmm0
movsd %xmm0, 0x1f8(%rsp)
movsd 0x1f8(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movsd 0x1f0(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
movsd 0x1f8(%rsp), %xmm0
divsd 0x1f0(%rsp), %xmm0
callq 0x95f0
movsd 0x50(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x58(%rsp), %xmm0
cvttsd2si %xmm2, %rax
cvtsi2sd %rax, %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x160(%rsp)
movq 0x218(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x218(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x81975
movq 0x218(%rsp), %rdi
callq 0xc670
movq 0x218(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x168(%rsp)
movq 0x168(%rsp), %rax
movq $0xd, (%rax)
movsd 0x160(%rsp), %xmm0
movq 0x168(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x168(%rsp), %rax
movq %rax, 0x158(%rsp)
movq 0x158(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x218(%rsp), %rdi
movq 0x200(%rsp), %rsi
movq 0x218(%rsp), %rax
movq 0x1350(%rax), %rdx
movq 0x210(%rsp), %rcx
movl $0xd, %r8d
movl $0x2, %r9d
callq 0x13c50
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x208(%rsp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x1f8(%rsp)
movq 0x200(%rsp), %rax
movzbl (%rax), %eax
movl %eax, 0x4c(%rsp)
subl $0xb, %eax
je 0x81a7a
jmp 0x81a59
movl 0x4c(%rsp), %eax
subl $0xc, %eax
je 0x81c55
jmp 0x81a68
movl 0x4c(%rsp), %eax
subl $0xd, %eax
je 0x81e3e
jmp 0x82150
movsd 0x1f8(%rsp), %xmm0
callq 0x13860
testb $0x1, %al
jne 0x81a8e
jmp 0x81aa3
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f8(%rsp), %xmm1
movaps %xmm1, %xmm0
movaps 0x15ffea(%rip), %xmm2   # 0x1e1aa0
pand %xmm2, %xmm0
movq %xmm1, %rdx
movl $0x1, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovll %eax, %ecx
movsd 0x15fe98(%rip), %xmm1   # 0x1e1970
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
je 0x81b04
movq 0x19bed9(%rip), %rax    # 0x21d9d0
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x200(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x81b28
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x200(%rsp), %rax
cvtsi2sdq 0x8(%rax), %xmm0
movsd %xmm0, 0x1f0(%rsp)
movsd 0x1f8(%rsp), %xmm0
movsd %xmm0, 0x38(%rsp)
movsd 0x1f0(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x1f8(%rsp), %xmm0
divsd 0x1f0(%rsp), %xmm0
callq 0x95f0
movsd 0x38(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x40(%rsp), %xmm0
cvttsd2si %xmm2, %rax
cvtsi2sd %rax, %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x148(%rsp)
movq 0x218(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x218(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x81be2
movq 0x218(%rsp), %rdi
callq 0xc670
movq 0x218(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x150(%rsp)
movq 0x150(%rsp), %rax
movq $0xd, (%rax)
movsd 0x148(%rsp), %xmm0
movq 0x150(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x150(%rsp), %rax
movq %rax, 0x140(%rsp)
movq 0x140(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f8(%rsp), %xmm0
callq 0x13860
testb $0x1, %al
jne 0x81c69
jmp 0x81c7e
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f8(%rsp), %xmm1
movaps %xmm1, %xmm0
movaps 0x15fe0f(%rip), %xmm2   # 0x1e1aa0
pand %xmm2, %xmm0
movq %xmm1, %rdx
movl $0x1, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovll %eax, %ecx
movsd 0x15fcbd(%rip), %xmm1   # 0x1e1970
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
je 0x81cdf
movq 0x19bcfe(%rip), %rax    # 0x21d9d0
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x200(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
movq %rcx, 0x100(%rsp)
fildll 0x100(%rsp)
movq %rax, 0xf8(%rsp)
fildll 0xf8(%rsp)
fdivrp %st, %st(1)
fstpl 0xf0(%rsp)
movsd 0xf0(%rsp), %xmm0
movsd %xmm0, 0x1f0(%rsp)
movsd 0x1f8(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movsd 0x1f0(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
movsd 0x1f8(%rsp), %xmm0
divsd 0x1f0(%rsp), %xmm0
callq 0x95f0
movsd 0x28(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x30(%rsp), %xmm0
cvttsd2si %xmm2, %rax
cvtsi2sd %rax, %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x130(%rsp)
movq 0x218(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x218(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x81dcb
movq 0x218(%rsp), %rdi
callq 0xc670
movq 0x218(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x138(%rsp)
movq 0x138(%rsp), %rax
movq $0xd, (%rax)
movsd 0x130(%rsp), %xmm0
movq 0x138(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x138(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x128(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f8(%rsp), %xmm0
callq 0x13860
testb $0x1, %al
jne 0x81e52
jmp 0x81e67
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f8(%rsp), %xmm1
movaps %xmm1, %xmm0
movaps 0x15fc26(%rip), %xmm2   # 0x1e1aa0
pand %xmm2, %xmm0
movq %xmm1, %rdx
movl $0x1, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovll %eax, %ecx
movsd 0x15fad4(%rip), %xmm1   # 0x1e1970
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
je 0x81ec8
movq 0x19bb15(%rip), %rax    # 0x21d9d0
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x200(%rsp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x1f0(%rsp)
movsd 0x1f0(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x81f07
jp 0x81f07
movq 0x208(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f0(%rsp), %xmm0
callq 0x13860
testb $0x1, %al
jne 0x81f1b
jmp 0x81f30
movq 0x200(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f0(%rsp), %xmm1
movaps %xmm1, %xmm0
movaps 0x15fb5d(%rip), %xmm2   # 0x1e1aa0
pand %xmm2, %xmm0
movq %xmm1, %rdx
movl $0x1, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovll %eax, %ecx
movsd 0x15fa0b(%rip), %xmm1   # 0x1e1970
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
je 0x81f91
movq 0x19ba4c(%rip), %rax    # 0x21d9d0
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f8(%rsp), %xmm0
divsd 0x1f0(%rsp), %xmm0
movsd %xmm0, 0x120(%rsp)
movsd 0x120(%rsp), %xmm0
movsd 0x15fa73(%rip), %xmm1   # 0x1e1a30
ucomisd %xmm1, %xmm0
ja 0x81fd6
movsd 0x15fa6d(%rip), %xmm0   # 0x1e1a38
ucomisd 0x120(%rsp), %xmm0
jbe 0x82045
movq 0x218(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x218(%rsp), %rax
movq 0x1350(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x200(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x218(%rsp), %rdi
leaq 0x17166c(%rip), %rsi    # 0x1f3683
movl $0x1f, %edx
callq 0xb880
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %rax, %rcx
callq 0x45240
movq %rax, 0x220(%rsp)
jmp 0x821d2
movsd 0x1f8(%rsp), %xmm0
movsd %xmm0, (%rsp)
movsd 0x1f0(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x120(%rsp), %xmm0
callq 0x95f0
movsd (%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x8(%rsp), %xmm0
cvttsd2si %xmm2, %rax
cvtsi2sd %rax, %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x110(%rsp)
movq 0x218(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x218(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x820dd
movq 0x218(%rsp), %rdi
callq 0xc670
movq 0x218(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x118(%rsp)
movq 0x118(%rsp), %rax
movq $0xd, (%rax)
movsd 0x110(%rsp), %xmm0
movq 0x118(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x118(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x218(%rsp), %rdi
movq 0x200(%rsp), %rsi
movq 0x218(%rsp), %rax
movq 0x1350(%rax), %rdx
movq 0x210(%rsp), %rcx
movl $0xd, %r8d
movl $0x2, %r9d
callq 0x13c50
movq %rax, 0x220(%rsp)
jmp 0x821d2
movq 0x218(%rsp), %rdi
movq 0x208(%rsp), %rsi
movq 0x218(%rsp), %rax
movq 0x1350(%rax), %rdx
movq 0x210(%rsp), %rcx
movl $0xd, %r8d
movl $0x1, %r9d
callq 0x13c50
movq %rax, 0x220(%rsp)
movq 0x220(%rsp), %rax
addq $0x228, %rsp            # imm = 0x228
retq
nopw %cs:(%rax,%rax)