// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: remainder_p_pp
static s7_pointer remainder_p_pp(s7_scheme *sc, s7_pointer x, s7_pointer y)
    {
#define H_remainder "(remainder x1 x2) returns the remainder of x1/x2; (remainder 10 3) = 1"
#define Q_remainder sc->pcl_r
        /* (define (rem x1 x2) (- x1 (* x2 (quo x1 x2)))) ; slib, if x2 is an integer (- x1 (truncate x1 x2)), fractional part: (remainder x 1) */

        s7_int quo, d1, d2, n1, n2;
        s7_double pre_quo;

        if ((is_t_integer(x)) && (is_t_integer(y)))
            return(make_integer(sc, c_rem_int(sc, integer(x), integer(y))));

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

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

                    case T_REAL:
                        if (real(y) == 0.0)
                            return(division_by_zero_error(sc, sc->remainder_symbol, set_elist_2(sc, x, y)));
                        if ((is_inf(real(y))) || (is_NaN(real(y))))
                            return(wrong_type_argument_with_type(sc, sc->remainder_symbol, 2, y, a_normal_real_string));

                        pre_quo = (s7_double)integer(x) / real(y);
                        if ((pre_quo > s7_int_max) || (pre_quo < s7_int_min))
                            return(simple_out_of_range(sc, sc->remainder_symbol, set_elist_2(sc, x, y), its_too_large_string));
                        if (pre_quo > 0.0) quo = (s7_int)floor(pre_quo); else quo = (s7_int)ceil(pre_quo);
                        return(make_real(sc, integer(x) - real(y) * quo));

                    default:
                        return(method_or_bust(sc, y, sc->remainder_symbol, list_2(sc, x, y), T_REAL, 2));
                }

            case T_RATIO:
                switch (type(y))
                {
                    case T_INTEGER:
                        n2 = integer(y);
                        if (n2 == 0)
                            return(division_by_zero_error(sc, sc->remainder_symbol, set_elist_2(sc, x, y)));
                        n1 = numerator(x);
                        d1 = denominator(x);
                        d2 = 1;
                        goto RATIO_REM_RATIO;

                    case T_RATIO:
                        n1 = numerator(x);
                        d1 = denominator(x);
                        n2 = numerator(y);
                        d2 = denominator(y);
RATIO_REM_RATIO:
                        if (d1 == d2)
                            quo = (s7_int)(n1 / n2);
                        else
                        {
                            if (n1 == n2)
                                quo = (s7_int)(d2 / d1);
                            else
                            {
#if HAVE_OVERFLOW_CHECKS
                                s7_int n1d2, n2d1;
                                if ((multiply_overflow(n1, d2, &n1d2)) ||
                                        (multiply_overflow(n2, d1, &n2d1)))
                                {
                                    pre_quo = ((long_double)n1 / (long_double)n2) * ((long_double)d2 / (long_double)d1);
                                    if ((pre_quo > s7_int_max) || (pre_quo < s7_int_min))
                                        return(simple_out_of_range(sc, sc->remainder_symbol, set_elist_2(sc, x, y), its_too_large_string));
                                    if (pre_quo > 0.0) quo = (s7_int)floor(pre_quo); else quo = (s7_int)ceil(pre_quo);
                                }
                                else quo = n1d2 / n2d1;
#else
                                quo = (n1 * d2) / (n2 * d1);
#endif
                            }
                        }
                        if (quo == 0)
                            return(x);

#if HAVE_OVERFLOW_CHECKS
                        {
                            s7_int dn, nq;
                            if (!multiply_overflow(n2, quo, &nq))
                            {
                                if ((d1 == d2) &&
                                        (!subtract_overflow(n1, nq, &dn)))
                                    return(s7_make_ratio(sc, dn, d1));

                                if ((!multiply_overflow(n1, d2, &dn)) &&
                                        (!multiply_overflow(nq, d1, &nq)) &&
                                        (!subtract_overflow(dn, nq, &nq)) &&
                                        (!multiply_overflow(d1, d2, &d1)))
                                    return(s7_make_ratio(sc, nq, d1));
                            }
                        }
#else
                        if (d1 == d2)
                            return(s7_make_ratio(sc, n1 - n2 * quo, d1));

                        return(s7_make_ratio(sc, n1 * d2 - n2 * d1 * quo, d1 * d2));
#endif
                        return(simple_out_of_range(sc, sc->remainder_symbol, set_elist_2(sc, x, y), wrap_string(sc, "intermediate (a/b) is too large", 31)));

                    case T_REAL:
                        {
                            s7_double frac;
                            if (real(y) == 0.0)
                                return(division_by_zero_error(sc, sc->remainder_symbol, set_elist_2(sc, x, y)));
                            if ((is_inf(real(y))) || (is_NaN(real(y))))
                                return(wrong_type_argument_with_type(sc, sc->remainder_symbol, 2, y, a_normal_real_string));
                            frac = (s7_double)fraction(x);
                            pre_quo = frac / real(y);
                            if ((pre_quo > s7_int_max) || (pre_quo < s7_int_min))
                                return(simple_out_of_range(sc, sc->remainder_symbol, set_elist_2(sc, x, y), its_too_large_string));
                            if (pre_quo > 0.0) quo = (s7_int)floor(pre_quo); else quo = (s7_int)ceil(pre_quo);
                            return(make_real(sc, frac - real(y) * quo));
                        }

                    default:
                        return(method_or_bust(sc, y, sc->remainder_symbol, list_2(sc, x, y), T_REAL, 2));
                }

            case T_REAL:
                if ((is_inf(real(x))) || (is_NaN(real(x))))
                    return(wrong_type_argument_with_type(sc, sc->remainder_symbol, 1, x, a_normal_real_string));

                switch (type(y))
                {
                    case T_INTEGER:
                        if (integer(y) == 0)
                            return(division_by_zero_error(sc, sc->remainder_symbol, set_elist_2(sc, x, y)));
                        pre_quo = real(x) / (s7_double)integer(y);
                        if ((pre_quo > s7_int_max) || (pre_quo < s7_int_min))
                            return(simple_out_of_range(sc, sc->remainder_symbol, set_elist_2(sc, x, y), its_too_large_string));
                        if (pre_quo > 0.0) quo = (s7_int)floor(pre_quo); else quo = (s7_int)ceil(pre_quo);
                        return(make_real(sc, real(x) - integer(y) * quo));
                        /* but... (remainder 1e+18 9223372036854775807) -> 1e+18 */

                    case T_RATIO:
                        {
                            /* bad cases here start around 1e16: (remainder 1e15 3/13) -> 0.0 with loss of digits earlier
                             *   would long double help?
                             */
                            s7_double frac;
                            frac = (s7_double)fraction(y);
                            pre_quo = real(x) / frac;
                            if ((pre_quo > s7_int_max) || (pre_quo < s7_int_min))
                                return(simple_out_of_range(sc, sc->remainder_symbol, set_elist_2(sc, x, y), its_too_large_string));
                            if (pre_quo > 0.0) quo = (s7_int)floor(pre_quo); else quo = (s7_int)ceil(pre_quo);
                            return(make_real(sc, real(x) - frac * quo));
                        }

                    case T_REAL:
                        return(make_real(sc, c_rem_dbl(sc, real(x), real(y))));

                        /* see under sin -- this calculation is completely bogus if "a" is large
                         * (quotient 1e22 (* 2 pi)) -> -9223372036854775808 -- should this return arithmetic-overflow?
                         *          but it should be 1591549430918953357688,
                         * (remainder 1e22 (* 2 pi)) -> 1.0057952155665e+22
                         * -- the "remainder" is greater than the original argument!
                         * Clisp gives 0.0 here, as does sbcl
                         * currently s7 throws an error (out-of-range).
                         */

                    default:
                        return(method_or_bust(sc, y, sc->remainder_symbol, list_2(sc, x, y), T_REAL, 2));
                }

            default:
                return(method_or_bust(sc, x, sc->remainder_symbol, list_2(sc, x, y), T_REAL, 1));
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movzbl (%rsi), %eax
cmpl $0xd, %eax
je 0x8b15f
cmpl $0xc, %eax
je 0x8b125
cmpl $0xb, %eax
jne 0x8b1bb
cmpb $0xb, (%r14)
jne 0x8b0ee
movq 0x8(%r14), %r12
xorl %r14d, %r14d
cmpq $-0x1, %r12
je 0x8b0d1
cmpq $0x1, %r12
je 0x8b0d1
movq 0x8(%r15), %r14
testq %r12, %r12
jne 0x8b0c6
movq 0x1470(%rbx), %rsi
movq 0x1f00(%rbx), %rax
movq %r14, 0x8(%rax)
movq 0x1f00(%rbx), %rax
movq 0x1f08(%rbx), %rcx
movq $0x0, 0x8(%rcx)
movq 0x1f08(%rbx), %rcx
movq 0x6e0(%rbx), %rdx
movq %rax, 0x8(%rdx)
movq 0x6e0(%rbx), %rax
movq 0x10(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x6e0(%rbx), %rdx
movq %rbx, %rdi
callq 0xe1ae
movq %r14, %rax
cqto
idivq %r12
movq %rdx, %r14
cmpq $0x7ff, %r14            # imm = 0x7FF
ja 0x8b3a0
leaq 0xc386b(%rip), %rax     # 0x14e950
movq (%rax,%r14,8), %r12
jmp 0x8b98c
cmpl $0xd, %eax
je 0x8b15f
cmpl $0xc, %eax
je 0x8b125
cmpl $0xb, %eax
jne 0x8b1bb
movzbl (%r14), %eax
cmpl $0xd, %eax
je 0x8b6bf
cmpl $0xc, %eax
je 0x8b6ac
cmpl $0xb, %eax
je 0x8b052
jmp 0x8b28d
movzbl (%r14), %eax
cmpl $0xd, %eax
je 0x8b348
cmpl $0xc, %eax
je 0x8b322
cmpl $0xb, %eax
jne 0x8b28d
movq 0x8(%r14), %r13
testq %r13, %r13
je 0x8b362
movq 0x10(%r15), %r8
movl $0x1, %edi
jmp 0x8b32e
movq 0x8(%r15), %xmm2
movq %xmm2, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jl 0x8b242
movq 0x1470(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0xc37c4(%rip), %rdx     # 0x14e958
movq 0x140(%rbx), %r8
movq 0xc7896(%rip), %r9      # 0x152a38
movq %rbx, %rdi
movq %r15, %rcx
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb31d
movq 0x1470(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x8b1e1
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movl $0x200001, %edx         # imm = 0x200001
movq %rdx, (%rax)
movq %r14, 0x8(%rax)
movq %r13, 0x10(%rax)
movq 0x90(%rbx), %rcx
leaq -0x8(%rcx), %rsi
movq %rsi, 0x90(%rbx)
movq -0x8(%rcx), %rcx
movq %rdx, (%rcx)
movq %r15, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl $0xd, %r8d
movl $0x1, %r9d
jmp 0x8b30f
movzbl (%r14), %eax
cmpl $0xd, %eax
je 0x8b491
cmpl $0xc, %eax
je 0x8b44d
cmpl $0xb, %eax
jne 0x8b28d
movq 0x8(%r14), %r12
testq %r12, %r12
je 0x8b362
cvtsi2sd %r12, %xmm1
movdqa %xmm2, %xmm0
divsd %xmm1, %xmm0
cmpb $0x0, 0xc798a(%rip)     # 0x152c08
jne 0x8b5e9
xorpd %xmm1, %xmm1
jmp 0x8b5f1
movq 0x1470(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x8b2b3
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movl $0x200001, %edx         # imm = 0x200001
movq %rdx, (%rax)
movq %r14, 0x8(%rax)
movq %r13, 0x10(%rax)
movq 0x90(%rbx), %rcx
leaq -0x8(%rcx), %rsi
movq %rsi, 0x90(%rbx)
movq -0x8(%rcx), %rcx
movq %rdx, (%rcx)
movq %r15, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl $0xd, %r8d
movl $0x2, %r9d
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf1ae
movq 0x10(%r15), %r8
movq 0x8(%r14), %r13
movq 0x10(%r14), %rdi
movq 0x8(%r15), %rbp
cmpq %rdi, %r8
jne 0x8b3e0
movq %rbp, %rax
cqto
idivq %r13
jmp 0x8b3f1
movsd 0x8(%r14), %xmm2
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x8b508
jp 0x8b508
movq 0x1470(%rbx), %rsi
movq 0x6e0(%rbx), %rax
movq %r15, 0x8(%rax)
movq 0x6e0(%rbx), %rax
movq 0x10(%rax), %rax
movq %r14, 0x8(%rax)
movq 0x6e0(%rbx), %rdx
movq %rbx, %rdi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe1ae
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8b3b8
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r12
movq $0xb, (%r12)
movq %r14, 0x8(%r12)
jmp 0x8b98c
cmpq %r13, %rbp
jne 0x8b4a8
movq %rdi, %rax
cqto
idivq %r8
testq %rax, %rax
je 0x8b445
imulq %rax, %r13
movb $0x1, %al
jo 0x8b643
cmpq %rdi, %r8
jne 0x8b413
movq %rbp, %rsi
subq %r13, %rsi
jno 0x8b633
imulq %rdi, %rbp
jo 0x8b643
imulq %r8, %r13
jo 0x8b643
subq %r13, %rbp
jo 0x8b643
imulq %rdi, %r8
jo 0x8b643
movq %rbx, %rdi
movq %rbp, %rsi
jmp 0x8b636
movq %r15, %r12
jmp 0x8b98c
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rax, 0x60(%rsp)
fildll 0x60(%rsp)
movq %rcx, 0x58(%rsp)
fildll 0x58(%rsp)
fdivrp %st, %st(1)
fstpl 0x50(%rsp)
movsd 0x50(%rsp), %xmm3
movapd %xmm2, %xmm0
divsd %xmm3, %xmm0
cmpb $0x0, 0xc7786(%rip)     # 0x152c08
jne 0x8b54c
xorpd %xmm1, %xmm1
jmp 0x8b554
movsd 0x8(%r14), %xmm1
movq %rbx, %rdi
movdqa %xmm2, %xmm0
callq 0x10d624
jmp 0x8b8bc
movq %rbp, %rax
imulq %rdi, %rax
jo 0x8b4be
movq %r13, %rcx
imulq %r8, %rcx
jno 0x8b6fd
movq %rbp, 0x18(%rsp)
fildll 0x18(%rsp)
movq %r13, 0x20(%rsp)
fildll 0x20(%rsp)
fdivrp %st, %st(1)
movq %rdi, 0x28(%rsp)
fildll 0x28(%rsp)
movq %r8, 0x30(%rsp)
fildll 0x30(%rsp)
fdivrp %st, %st(1)
fmulp %st, %st(1)
fstpl 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
cmpb $0x0, 0xc770f(%rip)     # 0x152c08
jne 0x8b5b8
xorpd %xmm1, %xmm1
jmp 0x8b5c0
movq %xmm2, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jl 0x8b574
movq 0x1470(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0xc342d(%rip), %rdx     # 0x14e960
movq 0x140(%rbx), %r8
movq 0xc74f7(%rip), %r9      # 0x152a38
movq %rbx, %rdi
movq %r14, %rcx
jmp 0x8b1a8
movsd 0x83acc(%rip), %xmm1    # 0x10f020
ucomisd %xmm1, %xmm0
ja 0x8b80b
cmpb $0x0, 0xc74c3(%rip)     # 0x152a28
jne 0x8b611
xorpd %xmm1, %xmm1
jmp 0x8b619
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq %rax, 0x48(%rsp)
fildll 0x48(%rsp)
movq %rcx, 0x40(%rsp)
fildll 0x40(%rsp)
fdivrp %st, %st(1)
fstpl 0x38(%rsp)
movsd 0x38(%rsp), %xmm3
movapd %xmm3, %xmm0
divsd %xmm2, %xmm0
cmpb $0x0, 0xc765f(%rip)     # 0x152c08
jne 0x8b709
xorpd %xmm1, %xmm1
jmp 0x8b711
movsd 0x83a60(%rip), %xmm1    # 0x10f020
ucomisd %xmm1, %xmm0
movq %r8, (%rsp)
movq %rdi, 0x8(%rsp)
ja 0x8b73f
cmpb $0x0, 0xc744e(%rip)     # 0x152a28
jne 0x8b731
xorpd %xmm1, %xmm1
jmp 0x8b739
movsd 0x83a2f(%rip), %xmm1    # 0x10f020
ucomisd %xmm1, %xmm0
ja 0x8b80b
cmpb $0x0, 0xc7426(%rip)     # 0x152a28
jne 0x8b7d2
xorpd %xmm1, %xmm1
jmp 0x8b7da
movsd 0x83a0f(%rip), %xmm1    # 0x10f028
ucomisd %xmm0, %xmm1
ja 0x8b80b
movsd %xmm3, 0x8(%rsp)
movsd %xmm2, (%rsp)
jmp 0x8b886
movq %rbx, %rdi
movq %r8, %rdx
callq 0xdd7f
movq %rax, %r12
xorl %eax, %eax
testb %al, %al
je 0x8b98c
movq 0x1470(%rbx), %rax
movq 0x8(%rax), %rax
movq 0x6e0(%rbx), %rcx
movq %r15, 0x8(%rcx)
movq 0x6e0(%rbx), %rcx
movq 0x10(%rcx), %rcx
movq %r14, 0x8(%rcx)
movq 0x6e0(%rbx), %rcx
movq 0x820(%rbx), %rdx
movslq 0x7dc(%rbx), %rsi
movq (%rdx,%rsi,8), %rdx
incl %esi
andl $0x7, %esi
movl %esi, 0x7dc(%rbx)
leaq 0x98f7d(%rip), %rsi     # 0x124618
movq %rsi, 0x10(%rdx)
movq $0x1f, 0x8(%rdx)
jmp 0x8b83e
movq 0x8(%r14), %r13
movq 0x10(%r14), %rdi
movl $0x1, %r8d
jmp 0x8b32e
movsd 0x8(%r14), %xmm3
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm3
jne 0x8b6d5
jnp 0x8b362
movq %xmm3, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jge 0x8b521
cvtsi2sdq 0x8(%r15), %xmm2
jmp 0x8b473
cqto
idivq %rcx
movb $0x1, %cl
jmp 0x8b91d
movsd 0x8390f(%rip), %xmm1    # 0x10f020
ucomisd %xmm1, %xmm0
ja 0x8b80b
cmpb $0x0, 0xc7306(%rip)     # 0x152a28
jne 0x8b7fd
xorpd %xmm1, %xmm1
jmp 0x8b805
movsd 0x838ef(%rip), %xmm1    # 0x10f028
ucomisd %xmm0, %xmm1
jbe 0x8b7ba
movq 0x1470(%rbx), %rax
movq 0x8(%rax), %rax
movq 0x6e0(%rbx), %rcx
movq %r15, 0x8(%rcx)
movq 0x6e0(%rbx), %rcx
movq 0x10(%rcx), %rcx
movq %r14, 0x8(%rcx)
movq 0x6e0(%rbx), %rcx
movq 0xc72ce(%rip), %rdx     # 0x152a40
movq 0x1ef8(%rbx), %rsi
movq 0x10(%rsi), %rsi
movq %rax, 0x8(%rsi)
movq 0x10(%rsi), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rax), %rax
movq %rdx, 0x8(%rax)
movq 0x1948(%rbx), %r12
movq 0x1ef8(%rbx), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b366
movq 0x8(%rsp), %rdi
movq (%rsp), %r8
xorl %ecx, %ecx
jmp 0x8b91d
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8b908
callq 0x95f0
jmp 0x8b90d
movsd 0x8384e(%rip), %xmm1    # 0x10f028
ucomisd %xmm0, %xmm1
ja 0x8b80b
movq %xmm2, (%rsp)
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8b926
callq 0x95f0
jmp 0x8b92b
movsd 0x83823(%rip), %xmm1    # 0x10f028
ucomisd %xmm0, %xmm1
jbe 0x8b87b
movq 0x1470(%rbx), %rax
movq 0x8(%rax), %rax
movq 0x6e0(%rbx), %rcx
movq %r15, 0x8(%rcx)
movq 0x6e0(%rbx), %rcx
movq 0x10(%rcx), %rcx
movq %r14, 0x8(%rcx)
movq 0x6e0(%rbx), %rcx
movq 0xc7202(%rip), %rdx     # 0x152a40
movq 0x1ef8(%rbx), %rsi
movq 0x10(%rsi), %rsi
movq %rax, 0x8(%rsi)
movq 0x10(%rsi), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rax), %rax
movq %rdx, 0x8(%rax)
movq 0x1948(%rbx), %r12
movq 0x1ef8(%rbx), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b366
jmp 0x8b98c
movsd %xmm3, (%rsp)
movsd %xmm2, 0x8(%rsp)
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8b897
callq 0x95f0
jmp 0x8b89c
callq 0x96c0
cvttsd2si %xmm0, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd (%rsp), %xmm0
subsd %xmm1, %xmm0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8b8de
movq %rbx, %rdi
movsd %xmm0, (%rsp)
callq 0xb389
movsd (%rsp), %xmm0
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r12
movq $0xd, (%r12)
movsd %xmm0, 0x8(%r12)
jmp 0x8b98c
callq 0x96c0
cvttsd2si %xmm0, %rax
movb $0x1, %cl
movq (%rsp), %r8
movq 0x8(%rsp), %rdi
testb %cl, %cl
je 0x8b98c
jmp 0x8b3f1
callq 0x96c0
cvttsd2si %xmm0, %rax
imulq %rax, %r12
xorps %xmm0, %xmm0
cvtsi2sd %r12, %xmm0
movsd (%rsp), %xmm1
subsd %xmm0, %xmm1
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8b967
movq %rbx, %rdi
movsd %xmm1, (%rsp)
callq 0xb389
movsd (%rsp), %xmm1
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r12
movq $0xd, (%r12)
movsd %xmm1, 0x8(%r12)
movq %r12, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq