// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: g_subtract_1
static s7_pointer g_subtract_1(s7_scheme *sc, s7_pointer args)
    {
        s7_pointer p;

        p = car(args);
        switch (type(p))
        {
            case T_INTEGER:
                if (integer(p) == s7_int_min)
#if WITH_GMP
                    return(big_negate(sc, set_plist_1(sc, promote_number(sc, T_BIG_INTEGER, p))));
#else
                return(simple_out_of_range(sc, sc->subtract_symbol, p, wrap_string(sc, "most-negative-fixnum can't be negated", 37)));
#endif
                return(make_integer(sc, -integer(p)));

            case T_RATIO:
                return(make_simple_ratio(sc, -numerator(p), denominator(p)));

            case T_REAL:
                return(make_real(sc, -real(p)));

            case T_COMPLEX:
                return(s7_make_complex(sc, -real_part(p), -imag_part(p)));

            default:
                return(method_or_bust_with_type(sc, p, sc->subtract_symbol, args, a_number_string, 1));
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x8(%rsi), %rsi
movzbl (%rsi), %eax
addl $-0xb, %eax
cmpl $0x3, %eax
ja 0x10063a
leaq 0x89ed(%rip), %rcx      # 0x108ef0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rsi), %r15
movl 0x4a512(%rip), %eax     # 0x14aa28
shlq $0x3f, %rax
cmpq %rax, %r15
jne 0x10065f
movq 0x1588(%rbx), %rax
movq 0x8(%rax), %rax
movq 0x820(%rbx), %rcx
movslq 0x7dc(%rbx), %rdx
movq (%rcx,%rdx,8), %rcx
incl %edx
andl $0x7, %edx
movl %edx, 0x7dc(%rbx)
leaq 0x1b1b0(%rip), %rdx     # 0x11b702
movq %rdx, 0x10(%rcx)
movq $0x25, 0x8(%rcx)
movq 0x1ef8(%rbx), %rdx
movq 0x10(%rdx), %rdx
movq %rax, 0x8(%rdx)
movq 0x10(%rdx), %rax
movq %rsi, 0x8(%rax)
movq 0x10(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x1948(%rbx), %r14
movq 0x1ef8(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x38dfa
jmp 0x1005e7
movsd 0x8(%rsi), %xmm0
xorps 0x990c(%rip), %xmm0     # 0x109eb0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x1005cb
movq %rbx, %rdi
movaps %xmm0, (%rsp)
callq 0xa550
movaps (%rsp), %xmm0
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r14
movq $0xd, (%r14)
movsd %xmm0, 0x8(%r14)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movaps 0x98b5(%rip), %xmm2     # 0x109eb0
movsd 0x8(%rsi), %xmm0
movsd 0x10(%rsi), %xmm1
xorps %xmm2, %xmm0
xorps %xmm2, %xmm1
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xd387
xorl %eax, %eax
subq 0x8(%rsi), %rax
movq 0x10(%rsi), %rdx
movq %rbx, %rdi
movq %rax, %rsi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xfa58d
movq 0x1588(%rbx), %rdx
movq 0x54d58(%rip), %r8      # 0x1553a0
movq %rbx, %rdi
movl $0x1, %r9d
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xe659
negq %r15
cmpq $0x7ff, %r15            # imm = 0x7FF
ja 0x10067b
leaq 0x462de(%rip), %rax     # 0x146950
movq (%rax,%r15,8), %r14
jmp 0x1005e7
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x10069a
movq %rbx, %rdi
callq 0xa550
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r14
movq $0xb, (%r14)
movq %r15, 0x8(%r14)
jmp 0x1005e7