// File: /workspace/github_c_makefile_star2_O1/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), %rcx
cmpq %rsi, %rcx
je 0x6ee16
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %r15
movq 0x10(%rsi), %r13
movzbl (%r15), %eax
cmpq %rcx, %r13
je 0x6ee22
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x6f112
leaq 0xa1c57(%rip), %rcx     # 0x1109f4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r15), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rbp
movq %rax, %rsi
movq 0x8(%r13), %r12
movq 0x10(%r13), %r13
movzbl (%r12), %eax
cmpl $0xb, %eax
jne 0x6f134
movq 0x8(%r12), %rax
movq %rsi, %rbp
addq %rax, %rbp
jo 0x6f5fc
movq %rbp, %rax
cmpq 0x110(%rbx), %r13
jne 0x6edb9
movq %rsi, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
cmpq $0x7ff, %rbp            # imm = 0x7FF
ja 0x6f79b
leaq 0xdfb43(%rip), %rax     # 0x14e950
movq (%rax,%rbp,8), %r15
jmp 0x6f6b8
movq 0xdfb33(%rip), %r15     # 0x14e950
jmp 0x6f6b8
leaq 0xe3b47(%rip), %rcx     # 0x152970
cmpb $0x0, (%rax,%rcx)
jne 0x6f6b8
movq 0xba8(%rbx), %rdx
movq 0xee55f(%rip), %r8      # 0x15d3a0
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 0x103001
movsd 0x8(%r15), %xmm0
leaq 0xa1b97(%rip), %rax     # 0x110a04
jmp 0x6eea8
cmpq 0x110(%rbx), %r13
je 0x6f4c3
movq 0x8(%r12), %rcx
movq 0x10(%r12), %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(%r13), %r12
movq 0x10(%r13), %r13
movzbl (%r12), %ecx
addl $-0xb, %ecx
cmpl $0x3, %ecx
ja 0x6f3f4
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
xorps %xmm1, %xmm1
cvtsi2sdq 0x8(%r12), %xmm1
jmp 0x6eedd
movsd 0x8(%r12), %xmm1
cmpq 0x110(%rbx), %r13
jne 0x6eea4
addsd %xmm1, %xmm0
jmp 0x6f673
movsd 0x8(%r15), %xmm0
addq $0x10, %r15
jmp 0x6f245
movq 0x8(%r15), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %r12
movsd %xmm0, (%rsp)
movq 0x8(%r13), %rbp
movq 0x10(%r13), %r13
movzbl (%rbp), %eax
cmpl $0xb, %eax
jne 0x6ef7a
movq 0x10(%rsp), %rdx
movq 0x8(%rbp), %rax
movq %rdx, %rsi
imulq %rax, %rsi
jo 0x6f1d1
addq 0x8(%rsp), %rsi
jo 0x6f1d1
cmpq 0x110(%rbx), %r13
je 0x6f782
movq %rsi, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x103995
movsd (%rsp), %xmm0
cmpl $0xb, %eax
jne 0x6ef1a
jmp 0x6edaf
cmpl $0xc, %eax
jne 0x6f16b
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %r8
movq 0x8(%rbp), %rsi
movq 0x10(%rbp), %rdi
cmpq %rdi, %rdx
jne 0x6efb4
addq %r8, %rsi
cmpq 0x110(%rbx), %r13
je 0x6f04a
movq %rsi, 0x8(%rsp)
jmp 0x6f0b8
movq %rdx, %rax
imulq %rdi, %rax
movq %rax, 0x10(%rsp)
jo 0x6efe2
movq %r8, %rcx
imulq %rdi, %rcx
jo 0x6efe2
movq %rsi, %r9
imulq %rdx, %r9
jo 0x6efe2
addq %r9, %rcx
movq %rcx, 0x8(%rsp)
jno 0x6f0eb
cmpq 0x110(%rbx), %r13
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), %xmm1
je 0x6f061
xorl %ecx, %ecx
movl $0x7, %eax
movapd %xmm1, %xmm0
jmp 0x6f0b4
movq %rbx, %rdi
callq 0xdd7f
movsd (%rsp), %xmm0
movq %rax, %r15
movl $0x1, %eax
jmp 0x6f0dd
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6f08a
movq %rbx, %rdi
movsd %xmm1, 0x18(%rsp)
callq 0xb389
movsd 0x18(%rsp), %xmm1
movsd (%rsp), %xmm0
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r15
movq $0xd, (%r15)
movsd %xmm1, 0x8(%r15)
movl $0x1, %eax
xorl %ecx, %ecx
testb %cl, %cl
je 0x6f0dd
movsd %xmm0, (%rsp)
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x103995
movsd (%rsp), %xmm0
xorl %ecx, %ecx
cmpl $0xb, %eax
setne %cl
leal (%rcx,%rcx,8), %eax
addl $0x3, %eax
cmpl $0xc, %eax
je 0x6ef15
jmp 0x6f7d9
cmpq 0x110(%rbx), %r13
je 0x6f0fa
xorl %eax, %eax
movb $0x1, %cl
jmp 0x6f0b4
movq %rbx, %rdi
movq %rcx, %rsi
movq %rax, %rdx
callq 0xdd7f
movsd (%rsp), %xmm0
movq %rax, %r15
jmp 0x6f0ad
movq 0xba8(%rbx), %rdx
movq 0xee280(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rcx
movl $0x1, %r9d
jmp 0x6f76c
cmpl $0xc, %eax
je 0x6f518
cmpl $0xd, %eax
je 0x6f4fa
cmpl $0xe, %eax
jne 0x6f55b
movq %rsi, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
leaq 0x10(%r12), %r15
xorps %xmm0, %xmm0
cvtsi2sd %rsi, %xmm0
jmp 0x6f235
cmpl $0xd, %eax
je 0x6f629
cmpl $0xe, %eax
jne 0x6f6cd
leaq 0x10(%rbp), %r15
movq 0x8(%rsp), %rax
cmpq 0x110(%rbx), %r13
movq %rax, 0x138(%rsp)
fildll 0x138(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x140(%rsp)
fildll 0x140(%rsp)
fdivrp %st, %st(1)
faddl 0x8(%rbp)
fstpl 0x130(%rsp)
movsd 0x130(%rsp), %xmm0
jne 0x6f245
movsd (%r15), %xmm1
jmp 0x6f3db
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
cmpq 0x110(%rbx), %r13
movsd %xmm0, 0xd8(%rsp)
movq 0x8(%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
jne 0x6ee66
jmp 0x6f673
leaq 0x10(%r12), %r15
addsd 0x8(%r12), %xmm0
cmpq 0x110(%rbx), %r13
je 0x6f1c7
movsd (%r15), %xmm1
leaq 0xa17c3(%rip), %rax     # 0x110a14
xorpd %xmm3, %xmm3
movq 0x8(%r13), %r15
movq 0x10(%r13), %r13
movzbl (%r15), %ecx
addl $-0xb, %ecx
cmpl $0x3, %ecx
ja 0x6f311
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
xorps %xmm2, %xmm2
cvtsi2sdq 0x8(%r15), %xmm2
jmp 0x6f287
movsd 0x8(%r15), %xmm2
cmpq 0x110(%rbx), %r13
jne 0x6f2d1
jmp 0x6f308
cmpq 0x110(%rbx), %r13
je 0x6f3ab
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 0x6f255
addsd 0x8(%r15), %xmm0
addsd 0x10(%r15), %xmm1
cmpq 0x110(%rbx), %r13
je 0x6f3db
ucomisd %xmm3, %xmm1
jne 0x6f255
jp 0x6f255
jmp 0x6ee66
addsd %xmm2, %xmm0
jmp 0x6f3db
movq 0xba8(%rbx), %r12
movq %rbx, %rdi
callq 0xe101
movq %rax, %rbp
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6f33b
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 %r15, 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 %rbp, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq 0xee017(%rip), %r8      # 0x15d3a0
xorl %r9d, %r9d
cmpq %r14, %r13
je 0x6f39d
movq 0x10(%r14), %r14
incl %r9d
cmpq %r13, %r14
jne 0x6f391
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
jmp 0x6f76c
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
movq %rbx, %rdi
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe101
movq 0xba8(%rbx), %r15
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6f41d
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), %rbp
movq $0xd, (%rbp)
movsd %xmm0, 0x8(%rbp)
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6f458
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 %r12, 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 %rbp, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq 0xedefa(%rip), %r8      # 0x15d3a0
xorl %r9d, %r9d
cmpq %r14, %r13
je 0x6f5f1
movq 0x10(%r14), %r14
incl %r9d
cmpq %r13, %r14
jne 0x6f4b2
jmp 0x6f5f1
movsd %xmm0, 0x28(%rsp)
movq 0x8(%r12), %rax
movq 0x10(%r12), %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 0x6f673
movq %rsi, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %rsi, %xmm0
addsd 0x8(%r12), %xmm0
jmp 0x6f61a
movq %rsi, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq 0x10(%r12), %rdx
movq %rdx, 0x10(%rsp)
movq %rdx, %rax
imulq %rsi, %rax
jo 0x6f7f0
addq 0x8(%r12), %rax
jo 0x6f7f0
cmpq 0x110(%rbx), %r13
je 0x6f84b
movq %rax, 0x8(%rsp)
jmp 0x6ef10
movq %rsi, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq 0xba8(%rbx), %r15
movq %rbx, %rdi
callq 0xdff8
movq %rax, %rbp
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6f58f
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 %r12, 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 %rbp, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq 0xeddc3(%rip), %r8      # 0x15d3a0
xorl %r9d, %r9d
cmpq %r14, %r13
je 0x6f5f1
movq 0x10(%r14), %r14
incl %r9d
cmpq %r13, %r14
jne 0x6f5e5
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x6f769
movq %rsi, 0x8(%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %rsi, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movq %rbp, 0x10(%rsp)
addsd %xmm1, %xmm0
cmpq 0x110(%rbx), %r13
jne 0x6ee66
jmp 0x6f673
movq 0x8(%rsp), %rax
cmpq 0x110(%rbx), %r13
movq %rax, 0x120(%rsp)
fildll 0x120(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x128(%rsp)
fildll 0x128(%rsp)
fdivrp %st, %st(1)
faddl 0x8(%rbp)
fstpl 0x118(%rsp)
movsd 0x118(%rsp), %xmm0
jne 0x6ee66
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6f695
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), %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 0xba8(%rbx), %r15
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0xdd7f
movq %rax, %r12
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6f701
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 %rbp, 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 %r12, 0x8(%rcx)
movq %rax, 0x10(%rcx)
movq 0xedc51(%rip), %r8      # 0x15d3a0
xorl %r9d, %r9d
cmpq %r14, %r13
je 0x6f763
movq 0x10(%r14), %r14
incl %r9d
cmpq %r13, %r14
jne 0x6f757
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xf3da
movq %rbx, %rdi
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xdd7f
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6f7b3
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r15
movq $0xb, (%r15)
movq %rbp, 0x8(%r15)
jmp 0x6f6b8
cmpl $0x3, %eax
je 0x6edaf
cmpl $0x7, %eax
je 0x6ee66
jmp 0x6f6b8
cmpq 0x110(%rbx), %r13
je 0x6f856
xorps %xmm0, %xmm0
cvtsi2sd %rsi, %xmm0
movsd %xmm0, 0xb8(%rsp)
movq 0x8(%r12), %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 0x6ee66
movq %rbx, %rdi
movq %rax, %rsi
jmp 0x6f785
testq %rsi, %rsi
je 0x6f8a6
movq %rsi, 0x98(%rsp)
fildll 0x98(%rsp)
movq 0x8(%r12), %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 0x6f673
movq %r12, %r15
jmp 0x6f6b8