// File: /workspace/github_c_makefile_star2_O1/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 %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
testq %rsi, %rsi
je 0x991fa
cmpb $0x0, (%r12)
je 0x991fa
movq $-0x1, %rax
leaq 0x1(%rax), %r13
cmpb $0x0, 0x1(%r12,%rax)
movq %r13, %rax
jne 0x991e9
jmp 0x991fd
xorl %r13d, %r13d
cmpb $0x69, -0x1(%r12,%r13)
jne 0x99362
cmpq $0x6, %r13
jne 0x99280
xorl %eax, %eax
cmpb $0x2b, 0x4(%r12)
sete %al
leaq 0x79c9f(%rip), %rcx     # 0x112ec0
movsd (%rcx,%rax,8), %xmm1
movq 0x90(%r14), %rax
cmpq 0x98(%r14), %rax
ja 0x99254
movq %r14, %rdi
movsd %xmm0, 0x8(%rsp)
movsd %xmm1, (%rsp)
callq 0xb389
movsd (%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
movq 0x90(%r14), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%r14)
movq -0x8(%rax), %rax
movq $0xe, (%rax)
movsd %xmm0, 0x8(%rax)
movsd %xmm1, 0x10(%rax)
jmp 0x9935c
movsd %xmm0, 0x8(%rsp)
movq %rbx, (%rsp)
leaq -0x4(%r13), %rdi
callq 0x9480
movq %rax, %rbx
addq $-0x5, %r13
je 0x992ae
addq $0x4, %r12
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x93e0
movb $0x0, (%rbx,%r13)
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0x97c6d
movq %rax, %r15
movq %rbx, %rdi
callq 0x9050
movzbl (%r15), %eax
leaq 0xb96d7(%rip), %rcx     # 0x1529b0
cmpb $0x1, (%rax,%rcx)
jne 0x992ef
cmpb $0xd, %al
movq (%rsp), %rbx
jne 0x992f7
movsd 0x8(%r15), %xmm1
jmp 0x9930d
movb $0x1, %cl
movq (%rsp), %rbx
jmp 0x9935e
leaq 0x86571(%rip), %rdx     # 0x11f86f
movq %r14, %rdi
movq %r15, %rsi
callq 0xe212
movapd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
movq 0x90(%r14), %rax
movq 0x98(%r14), %rcx
jne 0x99396
jp 0x99396
cmpq %rcx, %rax
ja 0x99334
movq %r14, %rdi
callq 0xb389
movq 0x90(%r14), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%r14)
movq -0x8(%rax), %rax
movq $0xd, (%rax)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rax)
xorl %ecx, %ecx
testb %cl, %cl
je 0x99387
testb %bpl, %bpl
je 0x99380
movq %r14, %rdi
movq %rbx, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xaa9f
movq 0x120(%r14), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq %rcx, %rax
ja 0x993af
movq %r14, %rdi
movsd %xmm1, 0x10(%rsp)
callq 0xb389
movsd 0x10(%rsp), %xmm1
movq 0x90(%r14), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%r14)
movq -0x8(%rax), %rax
movq $0xe, (%rax)
movsd 0x8(%rsp), %xmm0
jmp 0x99271