// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_is_infinite
static s7_pointer g_is_infinite(s7_scheme *sc, s7_pointer args)
    {
#define H_is_infinite "(infinite? obj) returns #t if obj is an infinite real"
#define Q_is_infinite sc->pl_bt

        s7_pointer x;
        x = car(args);
        switch (type(x))
        {
            case T_INTEGER:
            case T_RATIO:
                return(sc->F);

            case T_REAL:
                return(make_boolean(sc, is_inf(real(x))));

            case T_COMPLEX:
                return(make_boolean(sc, (is_inf(real_part(x))) || (is_inf(imag_part(x)))));

#if WITH_GMP
            case T_BIG_INTEGER:
            case T_BIG_RATIO:
                return(sc->F);

            case T_BIG_REAL:
                return(make_boolean(sc, mpfr_inf_p(big_real(x)) != 0));

            case T_BIG_COMPLEX:
                return(make_boolean(sc,
                            (mpfr_inf_p(big_real(g_real_part(sc, list_1(sc, x)))) != 0) ||
                            (mpfr_inf_p(big_real(g_imag_part(sc, list_1(sc, x)))) != 0)));
#endif

            default:
                if (g_is_number(sc, args) != sc->F)
                    return(method_or_bust_with_type_one_arg(sc, x, sc->is_infinite_symbol, list_1(sc, x), a_number_string));
        }
        return(sc->F);
    }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movzbl (%rax), %eax
movl %eax, 0x34(%rsp)
addl $-0xb, %eax
subl $0x2, %eax
jb 0x709af
jmp 0x70992
movl 0x34(%rsp), %eax
subl $0xd, %eax
je 0x709c5
jmp 0x7099d
movl 0x34(%rsp), %eax
subl $0xe, %eax
je 0x70a46
jmp 0x70b15
movq 0x68(%rsp), %rax
movq 0x120(%rax), %rax
movq %rax, 0x70(%rsp)
jmp 0x70c29
movq 0x58(%rsp), %rax
movsd 0x8(%rax), %xmm1
movaps %xmm1, %xmm0
movaps 0x1710c7(%rip), %xmm2   # 0x1e1aa0
pand %xmm2, %xmm0
movq %xmm1, %rdx
movl $0x1, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovll %eax, %ecx
movsd 0x170f75(%rip), %xmm1   # 0x1e1970
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
je 0x70a26
movq 0x68(%rsp), %rax
movq 0x118(%rax), %rax
movq %rax, 0x28(%rsp)
jmp 0x70a37
movq 0x68(%rsp), %rax
movq 0x120(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x70(%rsp)
jmp 0x70c29
movq 0x58(%rsp), %rax
movsd 0x8(%rax), %xmm1
movaps %xmm1, %xmm0
movaps 0x171046(%rip), %xmm2   # 0x1e1aa0
pand %xmm2, %xmm0
movq %xmm1, %rdx
movl $0x1, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovll %eax, %ecx
movsd 0x170ef4(%rip), %xmm1   # 0x1e1970
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
jne 0x70ae2
movq 0x58(%rsp), %rax
movsd 0x10(%rax), %xmm1
movaps %xmm1, %xmm0
movaps 0x170ff8(%rip), %xmm2   # 0x1e1aa0
pand %xmm2, %xmm0
movq %xmm1, %rdx
movl $0x1, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x0, %rdx
cmovll %eax, %ecx
movsd 0x170ea6(%rip), %xmm1   # 0x1e1970
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
je 0x70af5
movq 0x68(%rsp), %rax
movq 0x118(%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x70b06
movq 0x68(%rsp), %rax
movq 0x120(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x70(%rsp)
jmp 0x70c29
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x63910
movq 0x68(%rsp), %rcx
cmpq 0x120(%rcx), %rax
je 0x70c16
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rax
movq 0x10b8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x68(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x68(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x68(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x70b9a
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, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x40(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x50(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rcx
movq 0x1b42e6(%rip), %r8     # 0x224ef0
callq 0x1ba7e0
movq %rax, 0x70(%rsp)
jmp 0x70c29
jmp 0x70c18
movq 0x68(%rsp), %rax
movq 0x120(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)