// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rax
movzbl (%rax), %eax
addl $-0xb, %eax
movl %eax, %ecx
movq %rcx, 0x28(%rsp)
subl $0x3, %eax
ja 0x1d1398
movq 0x28(%rsp), %rax
leaq 0x100de(%rip), %rcx     # 0x1e1204
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0x49419(%rip), %rax     # 0x21a558
jne 0x1d11a4
movq 0x78(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x78(%rsp), %rax
movq 0x1588(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rdi
leaq 0x224e7(%rip), %rsi     # 0x1f365d
movl $0x25, %edx
callq 0xb880
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %rax, %rcx
callq 0x45240
movq %rax, 0x80(%rsp)
jmp 0x1d13cd
movq 0x68(%rsp), %rcx
xorl %eax, %eax
subq 0x8(%rcx), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x1d11dc
movq 0x60(%rsp), %rcx
leaq 0x452af(%rip), %rax     # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rsp)
jmp 0x1d1253
jmp 0x1d11de
movq 0x78(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x78(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1d1202
movq 0x78(%rsp), %rdi
callq 0xc670
movq 0x78(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq $0xb, (%rax)
movq 0x60(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x50(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1d13cd
movq 0x78(%rsp), %rdi
movq 0x68(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, %esi
subq 0x8(%rax), %rsi
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rdx
callq 0x1bb0a0
movq %rax, 0x80(%rsp)
jmp 0x1d13cd
movq 0x68(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x38(%rsp)
movq 0x78(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x78(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1d12e7
movq 0x78(%rsp), %rdi
callq 0xc670
movq 0x78(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq $0xd, (%rax)
movsd 0x38(%rsp), %xmm0
movq 0x40(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1d13cd
movq 0x78(%rsp), %rdi
movq 0x68(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movq 0x68(%rsp), %rax
movsd 0x10(%rax), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
callq 0x122a0
movq %rax, 0x80(%rsp)
jmp 0x1d13cd
movq 0x78(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x78(%rsp), %rax
movq 0x1588(%rax), %rdx
movq 0x70(%rsp), %rcx
movq 0x53b36(%rip), %r8      # 0x224ef0
movl $0x1, %r9d
callq 0x14130
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
addq $0x88, %rsp
retq
nopl (%rax)