// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: s7_negate
static s7_pointer s7_negate(s7_scheme *sc, s7_pointer p)     /* can't use "negate" because it confuses C++! */
    {
        switch (type(p))
        {
            case T_INTEGER:
                if (integer(p) == s7_int_min)
                    return(simple_out_of_range(sc, sc->subtract_symbol, p, wrap_string(sc, "most-negative-fixnum can't be negated", 37)));
                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)));
            default:        return(s7_make_complex(sc, -real_part(p), -imag_part(p)));
        }
    }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq 0x60(%rsp), %rax
movzbl (%rax), %eax
movl %eax, 0x24(%rsp)
subl $0xb, %eax
je 0x1bc972
jmp 0x1bc951
movl 0x24(%rsp), %eax
subl $0xc, %eax
je 0x1bcaa9
jmp 0x1bc960
movl 0x24(%rsp), %eax
subl $0xd, %eax
je 0x1bcad3
jmp 0x1bcb73
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0x5dbd6(%rip), %rax     # 0x21a558
jne 0x1bc9e4
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x68(%rsp), %rax
movq 0x1588(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x68(%rsp), %rdi
leaq 0x36ca4(%rip), %rsi     # 0x1f365d
movl $0x25, %edx
callq 0xb880
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rax, %rcx
callq 0x45240
movq %rax, 0x70(%rsp)
jmp 0x1bcbc4
movq 0x60(%rsp), %rcx
xorl %eax, %eax
subq 0x8(%rcx), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x1bca1b
movq 0x58(%rsp), %rcx
leaq 0x59a6f(%rip), %rax     # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, (%rsp)
jmp 0x1bca91
jmp 0x1bca1d
movq 0x68(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x68(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1bca41
movq 0x68(%rsp), %rdi
callq 0xc670
movq 0x68(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq $0xb, (%rax)
movq 0x58(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x70(%rsp)
jmp 0x1bcbc4
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, %esi
subq 0x8(%rax), %rsi
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rdx
callq 0x1bb0a0
movq %rax, 0x70(%rsp)
jmp 0x1bcbc4
movq 0x60(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x30(%rsp)
movq 0x68(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x68(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x1bcb1e
movq 0x68(%rsp), %rdi
callq 0xc670
movq 0x68(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq $0xd, (%rax)
movsd 0x30(%rsp), %xmm0
movq 0x38(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x70(%rsp)
jmp 0x1bcbc4
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movq 0x60(%rsp), %rax
movsd 0x10(%rax), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
callq 0x122a0
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
addq $0x78, %rsp
retq
nop