// File: /workspace/github_c_makefile_star2_O1/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 0x1099db
leaq 0x85e0(%rip), %rcx      # 0x111e84
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rsi), %r15
movl 0x49171(%rip), %eax     # 0x152a28
shlq $0x3f, %rax
cmpq %rax, %r15
jne 0x109a00
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 0x1acff(%rip), %rdx     # 0x1245f2
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 0x3b366
jmp 0x109988
movsd 0x8(%rsi), %xmm0
xorps 0x947b(%rip), %xmm0     # 0x112dc0
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x109965
movq %rbx, %rdi
movaps %xmm0, (%rsp)
callq 0xb389
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 0x9424(%rip), %xmm2     # 0x112dc0
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 0xe101
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 0x103338
movq 0x1588(%rbx), %rdx
movq 0x539b7(%rip), %r8      # 0x15d3a0
movq %rbx, %rdi
movl $0x1, %r9d
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xf3da
negq %r15
cmpq $0x7ff, %r15            # imm = 0x7FF
ja 0x109a1c
leaq 0x44f3d(%rip), %rax     # 0x14e950
movq (%rax,%r15,8), %r14
jmp 0x109988
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x109a34
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r14
movq $0xb, (%r14)
movq %r15, 0x8(%r14)
jmp 0x109988