// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: nan1_or_bust
static s7_pointer nan1_or_bust(s7_scheme *sc, s7_double x, char *p, char *q, int32_t radix, bool want_symbol)
    {
        s7_int len;
        len = safe_strlen(p);
        if (p[len - 1] == 'i')        /* +nan.0[+/-]...i */
        {
            char *ip;
            s7_pointer imag;
            if (len == 6)            /* +nan.0+i */
                return(make_complex(sc, x, (p[4] == '+') ? 1.0 : -1.0));
            ip = copy_string_with_length((const char *)(p + 4), len - 5);
            imag = make_atom(sc, ip, radix, false, false);
            free(ip);
            if (s7_is_real(imag))
                return(make_complex(sc, x, real_to_double(sc, imag, __func__))); /* +nan.0+2/3i etc */
        }
        return((want_symbol) ? make_symbol(sc, q) : sc->F);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movl %ecx, %r15d
movq %rsi, %r12
movq %rdi, %rbx
testq %rsi, %rsi
je 0x92b64
cmpb $0x0, (%r12)
je 0x92b64
xorl %eax, %eax
leaq 0x1(%rax), %r13
cmpb $0x0, 0x1(%r12,%rax)
movq %r13, %rax
jne 0x92b53
jmp 0x92b67
xorl %r13d, %r13d
cmpb $0x69, -0x1(%r12,%r13)
jne 0x92c63
cmpq $0x6, %r13
jne 0x92bec
xorl %eax, %eax
cmpb $0x2b, 0x4(%r12)
sete %al
leaq 0x77425(%rip), %rcx     # 0x109fb0
movsd (%rcx,%rax,8), %xmm1
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x92bc7
movq %rbx, %rdi
movsd %xmm0, 0x8(%rsp)
movsd %xmm1, 0x10(%rsp)
callq 0xa550
movsd 0x10(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xe, (%rax)
movsd %xmm0, 0x8(%rax)
movsd %xmm1, 0x10(%rax)
jmp 0x92c88
movq %rdx, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
leaq -0x4(%r13), %rdi
callq 0x8480
movq %rax, %r14
addq $-0x5, %r13
je 0x92c1b
addq $0x4, %r12
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x83e0
movb $0x0, (%r14,%r13)
movq %rbx, %rdi
movq %r14, %rsi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0x91b3a
movq %rax, %r15
movq %r14, %rdi
callq 0x8050
movzbl (%r15), %eax
leaq 0xb7d6a(%rip), %rcx     # 0x14a9b0
cmpb $0x1, (%rax,%rcx)
movsd 0x8(%rsp), %xmm1
movq 0x10(%rsp), %rdx
jne 0x92c63
cmpb $0xd, %al
jne 0x92c97
movsd 0x8(%r15), %xmm0
jmp 0x92caf
testb %bpl, %bpl
je 0x92c81
movq %rbx, %rdi
movq %rdx, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9afc
movq 0x120(%rbx), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x83ce1(%rip), %rdx     # 0x11697f
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd498
movsd 0x8(%rsp), %xmm1
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm0
movq 0x90(%rbx), %rax
movq 0x98(%rbx), %rcx
jne 0x92d00
jp 0x92d00
cmpq %rcx, %rax
ja 0x92ce3
movq %rbx, %rdi
callq 0xa550
movsd 0x8(%rsp), %xmm1
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xd, (%rax)
movsd %xmm1, 0x8(%rax)
jmp 0x92c88
cmpq %rcx, %rax
ja 0x92d26
movq %rbx, %rdi
movsd %xmm0, 0x10(%rsp)
callq 0xa550
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xe, (%rax)
movsd %xmm1, 0x8(%rax)
movsd %xmm0, 0x10(%rax)
jmp 0x92c88