// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: add_p_pp
static inline s7_pointer add_p_pp(s7_scheme *sc, s7_pointer x, s7_pointer y)
    {
        /* "inline" here is mostly ignored, but not in g_add_2 where it affects trec and other timing tests */
        if (type(x) == type(y))
        {
            if (is_t_integer(x))
#if HAVE_OVERFLOW_CHECKS
            {
                s7_int val;
                if (add_overflow(integer(x), integer(y), &val))
                    return(make_real(sc, (double)integer(x) + (double)integer(y)));
                return(make_integer(sc, val));
            }
#else
            return(make_integer(sc, integer(x) + integer(y)));
#endif

            switch (type(x))
            {
                case T_RATIO:   return(add_ratios(sc, x, y));
                case T_REAL:    return(make_real(sc, real(x) + real(y)));
                case T_COMPLEX: return(make_complex(sc, real_part(x) + real_part(y), imag_part(x) + imag_part(y)));
                default:
                                if (!is_number(x))
                                    return(add_out_x(sc, x, y));
                                return(add_out_y(sc, x, y));
            }
        }

        switch (type(x))
        {
            case T_INTEGER:
                switch (type(y))
                {
                    case T_INTEGER: return(make_integer(sc, integer(x) + integer(y)));
                    case T_RATIO:   return(add_ratios(sc, x, y));
                    case T_REAL:    return(make_real(sc, integer(x) + real(y)));
                    case T_COMPLEX: return(make_complex(sc, integer(x) + real_part(y), imag_part(y)));
                    default:
                                    return(add_out_y(sc, x, y));
                }

            case T_RATIO:
                switch (type(y))
                {
                    case T_INTEGER:
                    case T_RATIO:   return(add_ratios(sc, x, y));
                    case T_REAL:    return(make_real(sc, fraction(x) + real(y)));
                    case T_COMPLEX: return(s7_make_complex(sc, fraction(x) + real_part(y), imag_part(y)));
                    default:
                                    return(add_out_y(sc, x, y));
                }

            case T_REAL:
                switch (type(y))
                {
                    case T_INTEGER: return(make_real(sc, real(x) + integer(y)));
                    case T_RATIO:   return(make_real(sc, real(x) + fraction(y)));
                    case T_REAL:    return(make_real(sc, real(x) + real(y)));
                    case T_COMPLEX: return(make_complex(sc, real(x) + real_part(y), imag_part(y)));
                    default:
                                    return(add_out_y(sc, x, y));
                }

            case T_COMPLEX:
                switch (type(y))
                {
                    case T_INTEGER: return(s7_make_complex(sc, real_part(x) + integer(y), imag_part(x)));
                    case T_RATIO:   return(s7_make_complex(sc, real_part(x) + fraction(y), imag_part(x)));
                    case T_REAL:    return(s7_make_complex(sc, real_part(x) + real(y), imag_part(x)));
                    case T_COMPLEX: return(make_complex(sc, real_part(x) + real_part(y), imag_part(x) + imag_part(y)));
                    default:
                                    return(add_out_y(sc, x, y));
                }

            default:
                return(add_out_x(sc, x, y));
        }
        return(x);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movzbl (%rsi), %ecx
movzbl (%rdx), %eax
cmpb %al, %cl
jne 0x6bfa9
leal -0xb(%rcx), %eax
cmpl $0x3, %eax
ja 0x6c13b
leaq 0x67e0d(%rip), %rcx     # 0xd3d40
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r15), %rax
movq 0x8(%r14), %rcx
movq %rax, %r14
addq %rcx, %r14
jno 0x6bfe9
cvtsi2sd %rax, %xmm0
cvtsi2sd %rcx, %xmm1
addsd %xmm0, %xmm1
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6bf89
movq %rbx, %rdi
movsd %xmm1, 0x8(%rsp)
callq 0x9c27
movsd 0x8(%rsp), %xmm1
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xd, (%rax)
movsd %xmm1, 0x8(%rax)
jmp 0x6c0cf
addl $-0xb, %ecx
cmpl $0x3, %ecx
ja 0x6c15f
leaq 0x67d44(%rip), %rdx     # 0xd3d00
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x6c148
leaq 0x67d58(%rip), %rcx     # 0xd3d30
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %r14
addq 0x8(%r15), %r14
cmpq $0x7ff, %r14            # imm = 0x7FF
ja 0x6c1d2
leaq 0xa9953(%rip), %rax     # 0x115950
movq (%rax,%r14,8), %rax
jmp 0x6c0cf
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x6c148
leaq 0x67d07(%rip), %rcx     # 0xd3d20
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cvtsi2sdq 0x8(%r14), %xmm0
addsd 0x8(%r15), %xmm0
jmp 0x6c089
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x6c148
leaq 0x67ccd(%rip), %rcx     # 0xd3d10
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cvtsi2sdq 0x8(%r14), %xmm0
addsd 0x8(%r15), %xmm0
jmp 0x6c2b1
movsd 0x10(%r15), %xmm1
addsd 0x10(%r14), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x6c176
jp 0x6c176
movsd 0x8(%r15), %xmm0
addsd 0x8(%r14), %xmm0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6c0b4
movq %rbx, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x9c27
movsd 0x8(%rsp), %xmm0
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xd, (%rax)
movsd %xmm0, 0x8(%rax)
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
leal -0xb(%rax), %ecx
cmpl $0x2, %ecx
jb 0x6c124
cmpl $0xd, %eax
je 0x6c276
cmpl $0xe, %eax
jne 0x6c148
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 0x8(%r14)
fstpl 0x28(%rsp)
movsd 0x28(%rsp), %xmm0
movsd 0x10(%r14), %xmm1
jmp 0x6c2b7
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x92283
leaq 0xad82e(%rip), %rax     # 0x119970
cmpb $0x0, (%rcx,%rax)
je 0x6c15f
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xd0860
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xd0764
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6c1a1
movq %rbx, %rdi
movsd %xmm1, 0x8(%rsp)
callq 0x9c27
movsd 0x8(%rsp), %xmm1
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xe, (%rax)
movsd 0x8(%r15), %xmm0
addsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rax)
movsd %xmm1, 0x10(%rax)
jmp 0x6c0cf
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6c1f1
movq %rbx, %rdi
callq 0x9c27
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r14, 0x8(%rax)
jmp 0x6c0cf
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rax, 0x50(%rsp)
fildll 0x50(%rsp)
movq %rcx, 0x48(%rsp)
fildll 0x48(%rsp)
fdivrp %st, %st(1)
faddl 0x8(%r15)
fstpl 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
jmp 0x6c089
movsd 0x10(%r14), %xmm1
jmp 0x6c069
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rax, 0x68(%rsp)
fildll 0x68(%rsp)
movq %rcx, 0x60(%rsp)
fildll 0x60(%rsp)
fdivrp %st, %st(1)
faddl 0x8(%r15)
fstpl 0x58(%rsp)
movsd 0x58(%rsp), %xmm0
jmp 0x6c2b1
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
movq %rax, 0x20(%rsp)
fildll 0x20(%rsp)
movq %rcx, 0x18(%rsp)
fildll 0x18(%rsp)
fdivrp %st, %st(1)
faddl 0x8(%r14)
fstpl 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
jmp 0x6c089
movsd 0x8(%r15), %xmm0
addsd 0x8(%r14), %xmm0
movsd 0x10(%r15), %xmm1
movq %rbx, %rdi
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xc152
movsd 0x10(%r14), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x6c2e5
jp 0x6c2e5
cvtsi2sdq 0x8(%r15), %xmm0
jmp 0x6c083
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x6c310
movq %rbx, %rdi
movsd %xmm1, 0x8(%rsp)
callq 0x9c27
movsd 0x8(%rsp), %xmm1
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xe, (%rax)
cvtsi2sdq 0x8(%r15), %xmm0
jmp 0x6c1bd