// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: g_add
static s7_pointer g_add(s7_scheme *sc, s7_pointer args)
    {
#define H_add "(+ ...) adds its arguments"
#define Q_add sc->pcl_n
        s7_pointer x, p;
        s7_int num_a, den_a, dn;
        s7_double rl_a, im_a;

#if (!WITH_GMP)
        if (is_null(args))
            return(small_int(0));
#endif

        x = car(args);
        p = cdr(args);
        if (is_null(p))
        {
            if (!is_number(x))
                return(method_or_bust_with_type_one_arg(sc, x, sc->add_symbol, args, a_number_string));
            return(x);
        }

        switch (type(x))
        {
            case T_INTEGER:
                num_a = integer(x);

ADD_INTEGERS:
#if WITH_GMP
                if ((num_a > s7_int32_max) ||
                        (num_a < s7_int32_min))
                    return(big_add(sc, cons(sc, s7_int_to_big_integer(sc, num_a), p)));
#endif
                x = car(p);
                p = cdr(p);

                switch (type(x))
                {
                    case T_INTEGER:
#if HAVE_OVERFLOW_CHECKS
                        if (add_overflow(num_a, integer(x), &den_a))
                        {
                            rl_a = (s7_double)num_a + (s7_double)integer(x);
                            if (is_null(p)) return(make_real(sc, rl_a));
                            goto ADD_REALS;
                        }
#else
                        den_a = num_a + integer(x);
                        if (den_a < 0)
                        {
                            if ((num_a > 0) && (integer(x) > 0))
                            {
                                rl_a = (s7_double)num_a + (s7_double)integer(x);
                                if (is_null(p)) return(make_real(sc, rl_a));
                                goto ADD_REALS;
                            }
                        }
                        else
                        {
                            if ((num_a < 0) && (integer(x) < 0))
                            {
                                rl_a = (s7_double)num_a + (s7_double)integer(x);
                                if (is_null(p)) return(make_real(sc, rl_a));
                                /* this is not ideal!  piano.scm has its own noise generator that wants integer
                                 *    arithmetic to overflow as an integer.  Perhaps 'safety==0 would not check anywhere?
                                 */
                                goto ADD_REALS;
                            }
                        }
#endif
                        if (is_null(p)) return(make_integer(sc, den_a));
                        num_a = den_a;
                        /* (+ 4611686018427387904 4611686018427387904) -> -9223372036854775808
                         * (+ most-positive-fixnum most-positive-fixnum) -> -2
                         * (+ most-negative-fixnum most-negative-fixnum) -> 0
                         * can't check result - arg: (- 0 most-negative-fixnum) -> most-negative-fixnum
                         */
                        goto ADD_INTEGERS;

                    case T_RATIO:
                        den_a = denominator(x);
#if HAVE_OVERFLOW_CHECKS
                        if ((multiply_overflow(den_a, num_a, &dn)) ||
                                (add_overflow(dn, numerator(x), &dn)))
                        {
                            if (is_null(p))
                            {
                                if (num_a == 0)                /* (+ 0 1/9223372036854775807) */
                                    return(x);
                                return(make_real(sc, num_a + fraction(x)));
                            }
                            rl_a = (s7_double)num_a + fraction(x);
                            goto ADD_REALS;
                        }
#else
                        dn = numerator(x) + (num_a * den_a);
#endif
                        if (is_null(p)) return(s7_make_ratio(sc, dn, den_a));
                        num_a = dn;

                        /* overflow examples:
                         *   (+ 100000 1/142857142857140) -> -832205957599110323/28571428571428
                         *   (+ 4611686018427387904 3/4) -> 3/4
                         * see s7test for more
                         */
                        goto ADD_RATIOS;

                    case T_REAL:
                        if (is_null(p)) return(make_real(sc, num_a + real(x)));
                        rl_a = (s7_double)num_a + real(x);
                        goto ADD_REALS;

                    case T_COMPLEX:
                        if (is_null(p)) return(s7_make_complex(sc, num_a + real_part(x), imag_part(x)));
                        rl_a = (s7_double)num_a + real_part(x);
                        im_a = imag_part(x);
                        goto ADD_COMPLEX;

                    default:
                        return(method_or_bust_with_type(sc, x, sc->add_symbol, cons_unchecked(sc, s7_make_integer(sc, num_a), cons(sc, x, p)), a_number_string, position_of(p, args) - 1));
                }
                break;

            case T_RATIO:
                num_a = numerator(x);
                den_a = denominator(x);
ADD_RATIOS:
#if WITH_GMP
                if ((num_a > s7_int32_max) ||
                        (den_a > s7_int32_max) ||
                        (num_a < s7_int32_min))
                    return(big_add(sc, cons(sc, s7_ratio_to_big_ratio(sc, num_a, den_a), p)));
#endif
                x = car(p);
                p = cdr(p);

                switch (type(x))
                {
                    case T_INTEGER:
#if HAVE_OVERFLOW_CHECKS
                        if ((multiply_overflow(den_a, integer(x), &dn)) ||
                                (add_overflow(dn, num_a, &dn)))
                        {
                            /* (+ 3/4 4611686018427387904) -> 3/4
                             * (+ 1/17179869184 1073741824) -> 1/17179869184
                             * (+ 1/8589934592 1073741824) -> -9223372036854775807/8589934592
                             */
                            if (is_null(p))
                                return(make_real(sc, (s7_double)integer(x) + ((long_double)num_a / (long_double)den_a)));
                            rl_a = (s7_double)integer(x) + ((long_double)num_a / (long_double)den_a);
                            goto ADD_REALS;
                        }
#else
                        dn = num_a + (integer(x) * den_a);
#endif
                        if (is_null(p)) return(s7_make_ratio(sc, dn, den_a));
                        num_a = dn;
                        if (reduce_fraction(&num_a, &den_a) == T_INTEGER)
                            goto ADD_INTEGERS;
                        goto ADD_RATIOS;

                    case T_RATIO:
                        {
                            s7_int d1, d2, n1, n2;
                            d1 = den_a;
                            n1 = num_a;
                            d2 = denominator(x);
                            n2 = numerator(x);
                            if (d1 == d2)                                     /* the easy case -- if overflow here, it matches the int32_t case */
                            {
                                if (is_null(p))
                                    return(s7_make_ratio(sc, n1 + n2, d1));
                                num_a += n2;                  /* d1 can't be zero */
                            }
                            else
                            {
#if (!WITH_GMP)
#if HAVE_OVERFLOW_CHECKS
                                s7_int n1d2, n2d1;
                                if ((multiply_overflow(d1, d2, &den_a)) ||
                                        (multiply_overflow(n1, d2, &n1d2)) ||
                                        (multiply_overflow(n2, d1, &n2d1)) ||
                                        (add_overflow(n1d2, n2d1, &num_a)))
                                {
                                    if (is_null(p))
                                        return(make_real(sc, ((long_double)n1 / (long_double)d1) + ((long_double)n2 / (long_double)d2)));
                                    rl_a = ((long_double)n1 / (long_double)d1) + ((long_double)n2 / (long_double)d2);
                                    goto ADD_REALS;
                                }
#else
                                num_a = n1 * d2 + n2 * d1;
                                den_a = d1 * d2;
#endif
#else
                                num_a = n1 * d2 + n2 * d1;
                                den_a = d1 * d2;
#endif
                                if (is_null(p))
                                    return(s7_make_ratio(sc, num_a, den_a));
                            }
                            /* (+ 1/100 99/100 (- most-positive-fixnum 2)) should not be converted to real */
                            if (reduce_fraction(&num_a, &den_a) == T_INTEGER)
                                goto ADD_INTEGERS;
                            goto ADD_RATIOS;
                        }

                    case T_REAL:
                        if (is_null(p)) return(make_real(sc, ((long_double)num_a / (long_double)den_a) + real(x)));
                        rl_a = ((long_double)num_a / (long_double)den_a) + real(x);
                        goto ADD_REALS;

                    case T_COMPLEX:
                        if (is_null(p)) return(s7_make_complex(sc, ((long_double)num_a / (long_double)den_a) + real_part(x), imag_part(x)));
                        rl_a = ((long_double)num_a / (long_double)den_a) + real_part(x);
                        im_a = imag_part(x);
                        goto ADD_COMPLEX;

                    default:
                        return(method_or_bust_with_type(sc, x, sc->add_symbol, cons_unchecked(sc, s7_make_ratio(sc, num_a, den_a), cons(sc, x, p)), a_number_string, position_of(p, args) - 1));
                }
                break;

            case T_REAL:
                rl_a = real(x);

ADD_REALS:
                x = car(p);
                p = cdr(p);

                switch (type(x))
                {
                    case T_INTEGER:
                        if (is_null(p)) return(make_real(sc, rl_a + integer(x)));
                        rl_a += (s7_double)integer(x);
                        goto ADD_REALS;

                    case T_RATIO:
                        if (is_null(p)) return(make_real(sc, rl_a + fraction(x)));
                        rl_a += (s7_double)fraction(x);
                        goto ADD_REALS;

                    case T_REAL:
                        if (is_null(p)) return(make_real(sc, rl_a + real(x)));
                        rl_a += real(x);
                        goto ADD_REALS;

                    case T_COMPLEX:
                        if (is_null(p)) return(s7_make_complex(sc, rl_a + real_part(x), imag_part(x)));
                        rl_a += real_part(x);
                        im_a = imag_part(x);
                        goto ADD_COMPLEX;

                    default:
                        return(method_or_bust_with_type(sc, x, sc->add_symbol, cons_unchecked(sc, make_real(sc, rl_a), cons(sc, x, p)), a_number_string, position_of(p, args) - 1));
                }
                break;

            case T_COMPLEX:
                rl_a = real_part(x);
                im_a = imag_part(x);

ADD_COMPLEX:
                x = car(p);
                p = cdr(p);

                switch (type(x))
                {
                    case T_INTEGER:
                        if (is_null(p)) return(s7_make_complex(sc, rl_a + integer(x), im_a));
                        rl_a += (s7_double)integer(x);
                        goto ADD_COMPLEX;

                    case T_RATIO:
                        if (is_null(p)) return(s7_make_complex(sc, rl_a + fraction(x), im_a));
                        rl_a += (s7_double)fraction(x);
                        goto ADD_COMPLEX;

                    case T_REAL:
                        if (is_null(p)) return(s7_make_complex(sc, rl_a + real(x), im_a));
                        rl_a += real(x);
                        goto ADD_COMPLEX;

                    case T_COMPLEX:
                        if (is_null(p)) return(s7_make_complex(sc, rl_a + real_part(x), im_a + imag_part(x)));
                        rl_a += real_part(x);
                        im_a += imag_part(x);
                        if (im_a == 0.0)
                            goto ADD_REALS;
                        goto ADD_COMPLEX;

                    default:
                        return(method_or_bust_with_type(sc, x, sc->add_symbol, cons_unchecked(sc, s7_make_complex(sc, rl_a, im_a), cons(sc, x, p)), a_number_string, position_of(p, args) - 1));
                }
                break;

            default:
                return(method_or_bust_with_type(sc, x, sc->add_symbol, args, a_number_string, 1));
        }
        return(NULL); /* make the compiler happy */
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq 0x110(%rdi), %r13
cmpq %rsi, %r13
je 0x69b61
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %r15
movq 0x10(%rsi), %rbp
movzbl (%r15), %eax
cmpq %r13, %rbp
je 0x69b6d
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x69cba
leaq 0x9df72(%rip), %rcx     # 0x107a74
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, 0x8(%rsp)
addq $0x8, %r15
movq (%r15), %rsi
movq 0x8(%rbp), %r15
movq 0x10(%rbp), %rbp
movzbl (%r15), %eax
cmpl $0xb, %eax
jne 0x69cdc
movq 0x8(%r15), %rax
movq %rsi, %rbx
addq %rax, %rbx
jo 0x6a03f
movq %rbx, %rsi
cmpq %r13, %rbp
jne 0x69b17
cmpq $0x7ff, %rbx            # imm = 0x7FF
ja 0x6a396
leaq 0xdcdf8(%rip), %rax     # 0x146950
movq (%rax,%rbx,8), %r15
jmp 0x6a281
movq 0xdcde8(%rip), %r15     # 0x146950
jmp 0x6a281
leaq 0xe0dfc(%rip), %rcx     # 0x14a970
cmpb $0x0, (%rax,%rcx)
jne 0x6a281
movq 0xba8(%rbx), %rdx
movq 0xeb814(%rip), %r8      # 0x1553a0
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rcx
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xfa261
movsd 0x8(%r15), %xmm0
jmp 0x6a0a6
movsd 0x8(%r15), %xmm0
addq $0x10, %r15
movq %r15, %rax
jmp 0x69d14
movq 0x8(%r15), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%r15), %rax
movq %rax, 0x18(%rsp)
movq %rbx, 0x8(%rsp)
leaq 0x9de9e(%rip), %rbx     # 0x107a84
leaq 0x10(%rsp), %r15
movq 0x8(%rbp), %r12
movq 0x10(%rbp), %rbp
movzbl (%r12), %eax
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x6a2ed
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
movq 0x18(%rsp), %rdx
movq 0x8(%r12), %rax
movq %rdx, %rsi
imulq %rax, %rsi
jo 0x69eb4
addq 0x10(%rsp), %rsi
jno 0x69c4c
jmp 0x69eb4
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %r8
movq 0x8(%r12), %rsi
movq 0x10(%r12), %rdi
cmpq %rdi, %rdx
jne 0x69c5c
addq %r8, %rsi
cmpq %r13, %rbp
je 0x6a04f
movq %rsi, 0x10(%rsp)
jmp 0x69c9f
movq %rdx, %rax
imulq %rdi, %rax
movq %rax, 0x18(%rsp)
jo 0x69f03
movq %r8, %rcx
imulq %rdi, %rcx
jo 0x69f03
movq %rsi, %r9
imulq %rdx, %r9
jo 0x69f03
addq %r9, %rcx
movq %rcx, 0x10(%rsp)
jo 0x69f03
cmpq %r13, %rbp
je 0x6a3d9
movq %r15, %rdi
leaq 0x18(%rsp), %rsi
callq 0xfabb8
cmpl $0xb, %eax
jne 0x69beb
jmp 0x69b14
movq 0xba8(%rbx), %rdx
movq 0xeb6d8(%rip), %r8      # 0x1553a0
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rcx
movl $0x1, %r9d
jmp 0x6a1ef
cmpl $0xc, %eax
je 0x69f73
cmpl $0xd, %eax
movq 0x8(%rsp), %rbx
je 0x69f5a
cmpl $0xe, %eax
jne 0x69fab
cvtsi2sd %rsi, %xmm0
leaq 0x10(%r15), %rax
addsd 0x8(%r15), %xmm0
cmpq %r13, %rbp
je 0x69e97
movsd (%rax), %xmm1
leaq 0x9dd85(%rip), %rax     # 0x107aa4
xorpd %xmm3, %xmm3
movq 0x8(%rbp), %r15
movq 0x10(%rbp), %rbp
movzbl (%r15), %ecx
addl $-0xb, %ecx
cmpl $0x3, %ecx
ja 0x69dd0
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
xorps %xmm2, %xmm2
cvtsi2sdq 0x8(%r15), %xmm2
jmp 0x69d55
movsd 0x8(%r15), %xmm2
cmpq %r13, %rbp
jne 0x69d97
jmp 0x69dc7
cmpq %r13, %rbp
je 0x69e65
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rdx
movq %rcx, 0x88(%rsp)
fildll 0x88(%rsp)
movq %rdx, 0x80(%rsp)
fildll 0x80(%rsp)
fdivrp %st, %st(1)
fstpl 0x78(%rsp)
movsd 0x78(%rsp), %xmm2
addsd %xmm2, %xmm0
jmp 0x69d23
addsd 0x8(%r15), %xmm0
addsd 0x10(%r15), %xmm1
cmpq %r13, %rbp
je 0x69e9b
ucomisd %xmm3, %xmm1
jne 0x69d23
jp 0x69d23
jmp 0x6a0a6
addsd %xmm2, %xmm0
jmp 0x69e9b
movq 0xba8(%rbx), %r12
movq %rbx, %rdi
callq 0xd387
movq %rax, %r13
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x69e01
movq %rbx, %rdi
callq 0xa550
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 %r15, 0x8(%rax)
movq %rbp, 0x10(%rax)
movq 0x90(%rbx), %rcx
leaq -0x8(%rcx), %rsi
movq %rsi, 0x90(%rbx)
movq -0x8(%rcx), %rcx
movq %rdx, (%rcx)
movq %r13, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq 0xeb558(%rip), %r8      # 0x1553a0
xorl %r9d, %r9d
cmpq %r14, %rbp
je 0x6a037
movq 0x10(%r14), %r14
incl %r9d
cmpq %rbp, %r14
jne 0x69e54
jmp 0x6a037
movsd %xmm0, 0x60(%rsp)
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq %rax, 0x70(%rsp)
fildll 0x70(%rsp)
movq %rcx, 0x68(%rsp)
fildll 0x68(%rsp)
fdivrp %st, %st(1)
faddl 0x60(%rsp)
fstpl 0x58(%rsp)
movsd 0x58(%rsp), %xmm0
jmp 0x69e9b
movsd (%rax), %xmm1
movq %rbx, %rdi
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd387
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0xd8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0xe0(%rsp)
fildll 0xe0(%rsp)
movq %rdx, 0xe8(%rsp)
fildll 0xe8(%rsp)
fdivrp %st, %st(1)
faddl 0xd8(%rsp)
fstpl 0xd0(%rsp)
movsd 0xd0(%rsp), %xmm0
jmp 0x6a098
movq %r8, 0xf8(%rsp)
fildll 0xf8(%rsp)
movq %rdx, 0x100(%rsp)
fildll 0x100(%rsp)
fdivrp %st, %st(1)
movq %rsi, 0x108(%rsp)
fildll 0x108(%rsp)
movq %rdi, 0x110(%rsp)
fildll 0x110(%rsp)
fdivrp %st, %st(1)
faddp %st, %st(1)
fstpl 0xf0(%rsp)
movsd 0xf0(%rsp), %xmm0
jmp 0x6a098
cvtsi2sd %rsi, %xmm0
addsd 0x8(%r15), %xmm0
cmpq %r13, %rbp
jne 0x6a0a6
jmp 0x6a23c
movq 0x10(%r15), %rdx
movq %rdx, 0x18(%rsp)
movq %rdx, %rax
imulq %rsi, %rax
movq 0x8(%rsp), %rbx
jo 0x6a408
addq 0x8(%r15), %rax
jo 0x6a408
cmpq %r13, %rbp
je 0x6a45b
movq %rax, 0x10(%rsp)
jmp 0x69bda
movq 0xba8(%rbx), %r12
movq %rbx, %rdi
callq 0xd27e
movq %rax, %r13
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x69fdc
movq %rbx, %rdi
callq 0xa550
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 %r15, 0x8(%rax)
movq %rbp, 0x10(%rax)
movq 0x90(%rbx), %rcx
leaq -0x8(%rcx), %rsi
movq %rsi, 0x90(%rbx)
movq -0x8(%rcx), %rcx
movq %rdx, (%rcx)
movq %r13, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq 0xeb37d(%rip), %r8      # 0x1553a0
xorl %r9d, %r9d
cmpq %r14, %rbp
je 0x6a037
movq 0x10(%r14), %r14
incl %r9d
cmpq %rbp, %r14
jne 0x6a02b
movq %rbx, %rdi
jmp 0x6a1e9
cvtsi2sd %rsi, %xmm1
cvtsi2sd %rax, %xmm0
addsd %xmm1, %xmm0
jmp 0x6a098
movq 0x8(%rsp), %rdi
jmp 0x6a3e4
movq 0x10(%rsp), %rax
movq %rax, 0x120(%rsp)
fildll 0x120(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x128(%rsp)
fildll 0x128(%rsp)
fdivrp %st, %st(1)
faddl 0x8(%r12)
fstpl 0x118(%rsp)
movsd 0x118(%rsp), %xmm0
cmpq %r13, %rbp
je 0x6a237
movq 0x8(%rsp), %rbx
leaq 0x9d9e7(%rip), %rax     # 0x107a94
jmp 0x6a0e2
cmpq %r13, %rbp
je 0x6a205
movq 0x8(%r15), %rcx
movq 0x10(%r15), %rdx
movq %rcx, 0x50(%rsp)
fildll 0x50(%rsp)
movq %rdx, 0x48(%rsp)
fildll 0x48(%rsp)
fdivrp %st, %st(1)
fstpl 0x40(%rsp)
movsd 0x40(%rsp), %xmm1
addsd %xmm1, %xmm0
movq 0x8(%rbp), %r15
movq 0x10(%rbp), %rbp
movzbl (%r15), %ecx
addl $-0xb, %ecx
cmpl $0x3, %ecx
ja 0x6a11e
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
xorps %xmm1, %xmm1
cvtsi2sdq 0x8(%r15), %xmm1
jmp 0x6a110
movsd 0x8(%r15), %xmm1
cmpq %r13, %rbp
jne 0x6a0de
addsd %xmm1, %xmm0
jmp 0x6a23c
movq 0xba8(%rbx), %r12
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6a14e
movq %rbx, %rdi
movsd %xmm0, (%rsp)
callq 0xa550
movsd (%rsp), %xmm0
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq %rbx, %r13
movq -0x8(%rax), %rbx
movq $0xd, (%rbx)
movsd %xmm0, 0x8(%rbx)
movq 0x90(%r13), %rax
cmpq 0x98(%r13), %rax
ja 0x6a18b
movq %r13, %rdi
callq 0xa550
movq 0x90(%r13), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%r13)
movq -0x8(%rax), %rax
movl $0x200001, %edx         # imm = 0x200001
movq %rdx, (%rax)
movq %r15, 0x8(%rax)
movq %rbp, 0x10(%rax)
movq 0x90(%r13), %rcx
leaq -0x8(%rcx), %rsi
movq %r13, %rdi
movq %rsi, 0x90(%r13)
movq -0x8(%rcx), %rcx
movq %rdx, (%rcx)
movq %rbx, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq 0xeb1cb(%rip), %r8      # 0x1553a0
xorl %r9d, %r9d
cmpq %r14, %rbp
je 0x6a1e9
movq 0x10(%r14), %r14
incl %r9d
cmpq %rbp, %r14
jne 0x6a1dd
movq %r15, %rsi
movq %r12, %rdx
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe659
movsd %xmm0, 0x28(%rsp)
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq %rax, 0x38(%rsp)
fildll 0x38(%rsp)
movq %rcx, 0x30(%rsp)
fildll 0x30(%rsp)
fdivrp %st, %st(1)
faddl 0x28(%rsp)
fstpl 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
jmp 0x6a23c
movq 0x8(%rsp), %rbx
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6a265
movq %rbx, %rdi
movsd %xmm0, (%rsp)
callq 0xa550
movsd (%rsp), %xmm0
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r15
movq $0xd, (%r15)
movsd %xmm0, 0x8(%r15)
movq %r15, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %rax
movq %rax, 0x138(%rsp)
fildll 0x138(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x140(%rsp)
fildll 0x140(%rsp)
fdivrp %st, %st(1)
faddl 0x8(%r12)
leaq 0x10(%r12), %rax
fstpl 0x130(%rsp)
movsd 0x130(%rsp), %xmm0
cmpq %r13, %rbp
je 0x6a3fa
movq 0x8(%rsp), %rbx
jmp 0x69d14
movq 0x8(%rsp), %rbx
movq 0xba8(%rbx), %r15
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0xcfa8
movq %rax, %r13
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6a32d
movq %rbx, %rdi
callq 0xa550
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 %r12, 0x8(%rax)
movq %rbp, 0x10(%rax)
movq 0x90(%rbx), %rcx
leaq -0x8(%rcx), %rsi
movq %rsi, 0x90(%rbx)
movq -0x8(%rcx), %rcx
movq %rdx, (%rcx)
movq %r13, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq 0xeb02c(%rip), %r8      # 0x1553a0
xorl %r9d, %r9d
cmpq %r14, %rbp
je 0x6a388
movq 0x10(%r14), %r14
incl %r9d
cmpq %rbp, %r14
jne 0x6a37c
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
jmp 0x6a1ef
movq 0x8(%rsp), %r14
movq 0x90(%r14), %rax
cmpq 0x98(%r14), %rax
ja 0x6a3ba
movq %r14, %rdi
callq 0xa550
movq 0x90(%r14), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%r14)
movq -0x8(%rax), %r15
movq $0xb, (%r15)
movq %rbx, 0x8(%r15)
jmp 0x6a281
movq 0x8(%rsp), %rdi
movq %rcx, %rsi
movq %rax, %rdx
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xcfa8
movsd (%rax), %xmm1
movq 0x8(%rsp), %rdi
jmp 0x69e9e
cmpq %r13, %rbp
je 0x6a463
cvtsi2sd %rsi, %xmm0
movsd %xmm0, 0xb8(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0xc8(%rsp)
fildll 0xc8(%rsp)
movq %rdx, 0xc0(%rsp)
fildll 0xc0(%rsp)
fdivrp %st, %st(1)
faddl 0xb8(%rsp)
fstpl 0xb0(%rsp)
movsd 0xb0(%rsp), %xmm0
jmp 0x6a0a6
movq %rbx, %rdi
movq %rax, %rsi
jmp 0x6a3e4
testq %rsi, %rsi
je 0x6a281
movq %rsi, 0x98(%rsp)
fildll 0x98(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0xa8(%rsp)
fildll 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
fildll 0xa0(%rsp)
fdivrp %st, %st(1)
faddp %st, %st(1)
fstpl 0x90(%rsp)
movsd 0x90(%rsp), %xmm0
jmp 0x6a23c