// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: subtract_p_pp
static inline s7_pointer subtract_p_pp(s7_scheme *sc, s7_pointer x, s7_pointer y)
    {
        if (type(x) == type(y))
        {
            if (is_t_real(x))
                return(make_real(sc, real(x) - real(y)));
            switch (type(x))
            {
#if HAVE_OVERFLOW_CHECKS
                case T_INTEGER:
                    {
                        s7_int val;
                        if (subtract_overflow(integer(x), integer(y), &val))
                            return(make_real(sc, (double)integer(x) - (double)integer(y)));
                        return(make_integer(sc, val));
                    }
#else
                case T_INTEGER: return(make_integer(sc, integer(x) - integer(y)));
#endif
                case T_RATIO:   return(g_subtract(sc, set_plist_2(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(method_or_bust_with_type(sc, x, sc->subtract_symbol, list_2(sc, x, y), a_number_string, 1));
                                return(method_or_bust_with_type(sc, y, sc->subtract_symbol, list_2(sc, x, y), a_number_string, 2));
            }
        }

        switch (type(x))
        {
            case T_INTEGER:
                switch (type(y))
                {
                    case T_INTEGER: return(make_integer(sc, integer(x) - integer(y)));
                    case T_RATIO:   return(g_subtract(sc, set_plist_2(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(method_or_bust_with_type(sc, y, sc->subtract_symbol, list_2(sc, x, y), a_number_string, 2));
                }

            case T_RATIO:
                switch (type(y))
                {
                    case T_INTEGER:
                    case T_RATIO:   return(g_subtract(sc, set_plist_2(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(method_or_bust_with_type(sc, y, sc->subtract_symbol, list_2(sc, x, y), a_number_string, 2));
                }

            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(method_or_bust_with_type(sc, y, sc->subtract_symbol, list_2(sc, x, y), a_number_string, 2));
                }

            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(method_or_bust_with_type(sc, y, sc->subtract_symbol, list_2(sc, x, y), a_number_string, 2));
                }

            default:
                return(method_or_bust_with_type(sc, x, sc->subtract_symbol, list_2(sc, x, y), a_number_string, 1));
        }
        return(x);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movzbl (%rsi), %ecx
movzbl (%rdx), %eax
cmpb %al, %cl
jne 0x8d53d
leal -0xb(%rcx), %eax
cmpl $0x3, %eax
ja 0x8d746
leaq 0x8381f(%rip), %rcx     # 0x110d30
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r15), %rax
movq 0x8(%r14), %rcx
movq %rax, %r14
subq %rcx, %r14
jno 0x8d89e
cvtsi2sd %rax, %xmm1
cvtsi2sd %rcx, %xmm0
jmp 0x8d5c2
addl $-0xb, %ecx
cmpl $0x3, %ecx
ja 0x8d781
leaq 0x837a0(%rip), %rdx     # 0x110cf0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x8d809
leaq 0x837b4(%rip), %rcx     # 0x110d20
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r15), %r15
subq 0x8(%r14), %r15
cmpq $0x7ff, %r15            # imm = 0x7FF
ja 0x8da7f
leaq 0xc13bf(%rip), %rax     # 0x14e950
movq (%rax,%r15,8), %rax
jmp 0x8d6b0
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x8d809
leaq 0x83763(%rip), %rcx     # 0x110d10
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsd 0x8(%r15), %xmm1
cvtsi2sdq 0x8(%r14), %xmm0
subsd %xmm0, %xmm1
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8d5e8
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), %rax
movq $0xd, (%rax)
movsd %xmm1, 0x8(%rax)
jmp 0x8d6b0
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x8d809
leaq 0x836de(%rip), %rcx     # 0x110d00
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cvtsi2sdq 0x8(%r14), %xmm1
movsd 0x8(%r15), %xmm0
subsd %xmm1, %xmm0
jmp 0x8da3c
movsd 0x10(%r15), %xmm1
subsd 0x10(%r14), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x8d8c5
jp 0x8d8c5
movsd 0x8(%r15), %xmm0
subsd 0x8(%r14), %xmm0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8d68e
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), %rax
movq $0xd, (%rax)
movsd %xmm0, 0x8(%rax)
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leal -0xb(%rax), %ecx
cmpl $0x2, %ecx
jb 0x8d714
cmpl $0xd, %eax
je 0x8da01
cmpl $0xe, %eax
jne 0x8d809
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)
fsubl 0x8(%r14)
fstpl 0x28(%rsp)
movsd 0x10(%r14), %xmm1
xorps 0x856b7(%rip), %xmm1    # 0x112dc0
movsd 0x28(%rsp), %xmm0
jmp 0x8da42
movq 0x708(%rbx), %rax
movq %r15, 0x8(%rax)
movq 0x710(%rbx), %rax
movq %r14, 0x8(%rax)
movq 0x708(%rbx), %rsi
movq %rbx, %rdi
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x6f8ae
leaq 0xc5223(%rip), %rsi     # 0x152970
movq 0x1588(%rbx), %r12
movq 0x110(%rbx), %r13
movq 0x90(%rbx), %rax
movq 0x98(%rbx), %rdx
cmpb $0x0, (%rcx,%rsi)
je 0x8d8b7
cmpq %rdx, %rax
jbe 0x8d827
jmp 0x8d82f
movq 0x1588(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x8d7a7
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 0xcfbab(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl $0x1, %r9d
jmp 0x8d88c
movq 0x1588(%rbx), %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0x8d82f
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 0xcfb23(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl $0x2, %r9d
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xf3da
cmpq $0x7ff, %r14            # imm = 0x7FF
ja 0x8d91f
leaq 0xc10a2(%rip), %rax     # 0x14e950
movq (%rax,%r14,8), %rax
jmp 0x8d6b0
cmpq %rdx, %rax
jbe 0x8d79f
jmp 0x8d7a7
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8d8e7
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), %rax
movq $0xe, (%rax)
movsd 0x8(%r15), %xmm0
subsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rax)
movsd %xmm1, 0x10(%rax)
jmp 0x8d6b0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8d937
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r14, 0x8(%rax)
jmp 0x8d6b0
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)
fsubrl 0x8(%r15)
fstpl 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
jmp 0x8d66c
movsd 0x10(%r14), %xmm0
movapd 0x85426(%rip), %xmm1    # 0x112dc0
xorpd %xmm0, %xmm1
ucomisd %xmm1, %xmm0
jne 0x8d9aa
jnp 0x8d660
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8d8e7
movq %rbx, %rdi
movapd %xmm1, (%rsp)
callq 0xb389
movapd (%rsp), %xmm1
jmp 0x8d8e7
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)
fsubrl 0x8(%r15)
fstpl 0x58(%rsp)
movsd 0x58(%rsp), %xmm0
jmp 0x8da3c
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)
fsubl 0x8(%r14)
fstpl 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
jmp 0x8d66c
movsd 0x8(%r15), %xmm0
subsd 0x8(%r14), %xmm0
movsd 0x10(%r15), %xmm1
movq %rbx, %rdi
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xe101
movsd 0x10(%r14), %xmm0
movapd 0x8535b(%rip), %xmm1    # 0x112dc0
xorpd %xmm0, %xmm1
ucomisd %xmm1, %xmm0
jne 0x8dabd
jp 0x8dabd
xorps %xmm0, %xmm0
cvtsi2sdq 0x8(%r15), %xmm0
jmp 0x8d666
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8da97
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r15, 0x8(%rax)
jmp 0x8d6b0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x8dadf
movq %rbx, %rdi
movapd %xmm1, (%rsp)
callq 0xb389
movapd (%rsp), %xmm1
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xe, (%rax)
xorps %xmm0, %xmm0
cvtsi2sdq 0x8(%r15), %xmm0
jmp 0x8d90a