// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_complex
static s7_pointer g_complex(s7_scheme *sc, s7_pointer args)
    {
        s7_pointer x, y;
#define H_complex "(complex x1 x2) returns a complex number with real-part x1 and imaginary-part x2"
#define Q_complex s7_make_signature(sc, 3, sc->is_number_symbol, sc->is_real_symbol, sc->is_real_symbol)

        x = car(args);
        y = cadr(args);

        switch (type(y))
        {
            case T_INTEGER:
                switch (type(x))
                {
                    case T_INTEGER:
                        if (integer(y) == 0) return(x);
                        return(c_complex(sc, (s7_double)integer(x), (s7_double)integer(y)));

                    case T_RATIO:
                        if (integer(y) == 0) return(x);
                        return(c_complex(sc, (s7_double)fraction(x), (s7_double)integer(y)));

                    case T_REAL:
                        if (integer(y) == 0) return(x);
                        return(c_complex(sc, real(x), (s7_double)integer(y)));

                    default:
                        return(method_or_bust(sc, x, sc->complex_symbol, args, T_REAL, 1));
                }

            case T_RATIO:
                switch (type(x))
                {
                    case T_INTEGER: return(c_complex(sc, (s7_double)integer(x), (s7_double)fraction(y)));
                    case T_RATIO:   return(c_complex(sc, (s7_double)fraction(x), (s7_double)fraction(y)));
                    case T_REAL:    return(c_complex(sc, real(x), (s7_double)fraction(y)));
                    default:
                                    return(method_or_bust(sc, x, sc->complex_symbol, args, T_REAL, 1));
                }

            case T_REAL:
                switch (type(x))
                {
                    case T_INTEGER:
                        if (real(y) == 0.0) return(x);
                        return(c_complex(sc, (s7_double)integer(x), real(y)));

                    case T_RATIO:
                        if (real(y) == 0.0) return(x);
                        return(c_complex(sc, (s7_double)fraction(x), real(y)));

                    case T_REAL:
                        if (real(y) == 0.0) return(x);
                        return(c_complex(sc, real(x), real(y)));

                    default:
                        return(method_or_bust(sc, x, sc->complex_symbol, args, T_REAL, 1));
                }

            default:
                return(method_or_bust(sc, (is_let(x)) ? x : y, sc->complex_symbol, args, T_REAL, 2));
        }
    }

// Assembly:
subq $0xd8, %rsp
movq %rdi, 0xc8(%rsp)
movq %rsi, 0xc0(%rsp)
movq 0xc0(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xb8(%rsp)
movq 0xc0(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movzbl (%rax), %eax
movl %eax, 0x1c(%rsp)
subl $0xb, %eax
je 0x70eea
jmp 0x70ec9
movl 0x1c(%rsp), %eax
subl $0xc, %eax
je 0x7108f
jmp 0x70ed8
movl 0x1c(%rsp), %eax
subl $0xd, %eax
je 0x7123a
jmp 0x71406
movq 0xb8(%rsp), %rax
movzbl (%rax), %eax
movl %eax, 0x18(%rsp)
subl $0xb, %eax
je 0x70f1d
jmp 0x70f00
movl 0x18(%rsp), %eax
subl $0xc, %eax
je 0x70f77
jmp 0x70f0b
movl 0x18(%rsp), %eax
subl $0xd, %eax
je 0x70ff1
jmp 0x7104a
movq 0xb0(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x70f41
movq 0xb8(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rax
cvtsi2sdq 0x8(%rax), %xmm0
movq 0xb0(%rsp), %rax
cvtsi2sdq 0x8(%rax), %xmm1
callq 0x1bb000
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xb0(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x70f9b
movq 0xb8(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
movq %rcx, 0x30(%rsp)
fildll 0x30(%rsp)
movq %rax, 0x28(%rsp)
fildll 0x28(%rsp)
fdivrp %st, %st(1)
fstpl 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
movq 0xb0(%rsp), %rax
cvtsi2sdq 0x8(%rax), %xmm1
callq 0x1bb000
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xb0(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x71015
movq 0xb8(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq 0xb0(%rsp), %rax
cvtsi2sdq 0x8(%rax), %xmm1
callq 0x1bb000
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movq 0xc8(%rsp), %rax
movq 0xe10(%rax), %rdx
movq 0xc0(%rsp), %rcx
movl $0xd, %r8d
movl $0x1, %r9d
callq 0x13c50
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xb8(%rsp), %rax
movzbl (%rax), %eax
movl %eax, 0x14(%rsp)
subl $0xb, %eax
je 0x710c2
jmp 0x710a5
movl 0x14(%rsp), %eax
subl $0xc, %eax
je 0x71118
jmp 0x710b0
movl 0x14(%rsp), %eax
subl $0xd, %eax
je 0x7118e
jmp 0x711f5
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rax
cvtsi2sdq 0x8(%rax), %xmm0
movq 0xb0(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
movq %rcx, 0x48(%rsp)
fildll 0x48(%rsp)
movq %rax, 0x40(%rsp)
fildll 0x40(%rsp)
fdivrp %st, %st(1)
fstpl 0x38(%rsp)
movsd 0x38(%rsp), %xmm1
callq 0x1bb000
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
movq %rcx, 0x68(%rsp)
fildll 0x68(%rsp)
movq %rax, 0x60(%rsp)
fildll 0x60(%rsp)
fdivrp %st, %st(1)
fstpl 0x58(%rsp)
movsd 0x58(%rsp), %xmm0
movq 0xb0(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
movq %rcx, 0x78(%rsp)
fildll 0x78(%rsp)
movq %rax, 0x70(%rsp)
fildll 0x70(%rsp)
fdivrp %st, %st(1)
fstpl 0x50(%rsp)
movsd 0x50(%rsp), %xmm1
callq 0x1bb000
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq 0xb0(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
movq %rcx, 0x90(%rsp)
fildll 0x90(%rsp)
movq %rax, 0x88(%rsp)
fildll 0x88(%rsp)
fdivrp %st, %st(1)
fstpl 0x80(%rsp)
movsd 0x80(%rsp), %xmm1
callq 0x1bb000
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movq 0xc8(%rsp), %rax
movq 0xe10(%rax), %rdx
movq 0xc0(%rsp), %rcx
movl $0xd, %r8d
movl $0x1, %r9d
callq 0x13c50
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xb8(%rsp), %rax
movzbl (%rax), %eax
movl %eax, 0x10(%rsp)
subl $0xb, %eax
je 0x7126d
jmp 0x71250
movl 0x10(%rsp), %eax
subl $0xc, %eax
je 0x712cf
jmp 0x7125b
movl 0x10(%rsp), %eax
subl $0xd, %eax
je 0x71363
jmp 0x713c4
movq 0xb0(%rsp), %rax
movsd 0x8(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x7129a
jp 0x7129a
movq 0xb8(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rax
cvtsi2sdq 0x8(%rax), %xmm0
movq 0xb0(%rsp), %rax
movsd 0x8(%rax), %xmm1
callq 0x1bb000
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xb0(%rsp), %rax
movsd 0x8(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x712fc
jp 0x712fc
movq 0xb8(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
movq %rcx, 0xa8(%rsp)
fildll 0xa8(%rsp)
movq %rax, 0xa0(%rsp)
fildll 0xa0(%rsp)
fdivrp %st, %st(1)
fstpl 0x98(%rsp)
movsd 0x98(%rsp), %xmm0
movq 0xb0(%rsp), %rax
movsd 0x8(%rax), %xmm1
callq 0x1bb000
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xb0(%rsp), %rax
movsd 0x8(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x71390
jp 0x71390
movq 0xb8(%rsp), %rax
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rax
movsd 0x8(%rax), %xmm0
movq 0xb0(%rsp), %rax
movsd 0x8(%rax), %xmm1
callq 0x1bb000
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rdi
movq 0xb8(%rsp), %rsi
movq 0xc8(%rsp), %rax
movq 0xe10(%rax), %rdx
movq 0xc0(%rsp), %rcx
movl $0xd, %r8d
movl $0x1, %r9d
callq 0x13c50
movq %rax, 0xd0(%rsp)
jmp 0x71476
movq 0xc8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xb8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1c, %eax
jne 0x71431
movq 0xb8(%rsp), %rax
movq %rax, (%rsp)
jmp 0x7143d
movq 0xb0(%rsp), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
movq 0xc8(%rsp), %rax
movq 0xe10(%rax), %rdx
movq 0xc0(%rsp), %rcx
movl $0xd, %r8d
movl $0x2, %r9d
callq 0x13c50
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rax
addq $0xd8, %rsp
retq
nopw %cs:(%rax,%rax)