// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: string_read_name_no_free
static s7_pointer string_read_name_no_free(s7_scheme *sc, s7_pointer pt)
    {
        /* sc->strbuf[0] has the first char of the string we're reading */
        s7_pointer result;
        char *str;

        str = (char *)(port_data(pt) + port_position(pt));

        if (char_ok_in_a_name[(uint8_t)*str])
        {
            s7_int k;
            char *orig_str;

            orig_str = (char *)(str - 1);
            str++;
            while (char_ok_in_a_name[(uint8_t)(*str)]) {str++;}
            k = str - orig_str;
            if (*str != 0)
                port_position(pt) += (k - 1);
            else port_position(pt) = port_data_size(pt);

            /* this is equivalent to:
             *    str = strpbrk(str, "(); \"\t\r\n");
             *    if (!str)
             *      {
             *        k = strlen(orig_str);
             *        str = (char *)(orig_str + k);
             *      }
             *    else k = str - orig_str;
             * but slightly faster.
             */

            if (!number_table[(uint8_t)(*orig_str)])
                return(make_symbol_with_length(sc, orig_str, k));

            /* eval_c_string string is a constant so we can't set and unset the token's end char */
            if ((k + 1) >= sc->strbuf_size)
                resize_strbuf(sc, k + 1);

            memcpy((void *)(sc->strbuf), (void *)orig_str, k);
            sc->strbuf[k] = '\0';
            return(make_atom(sc, sc->strbuf, BASE_10, SYMBOL_OK, WITH_OVERFLOW_ERROR));
        }

        result = sc->singletons[(uint8_t)(sc->strbuf[0])];
        if (!result)
        {
            sc->strbuf[1] = '\0';
            result = make_symbol_with_length(sc, sc->strbuf, 1);
            sc->singletons[(uint8_t)(sc->strbuf[0])] = result;
        }
        return(result);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rsi), %r14
movq 0x20(%rsi), %rax
movzbl (%r14,%rax), %edx
leaq 0xc2d84(%rip), %rcx     # 0x15da60
cmpb $0x1, (%rdx,%rcx)
jne 0x9ad0a
leaq (%r14,%rax), %rdx
incq %rdx
addq %rax, %r14
xorl %r12d, %r12d
movzbl (%rdx,%r12), %edi
incq %r12
cmpb $0x0, (%rdi,%rcx)
jne 0x9acef
decq %r14
testb %dil, %dil
je 0x9ad66
addq %r12, %rax
jmp 0x9ad6a
movq 0x488(%rbx), %rcx
movq 0x4b0(%rbx), %rax
movzbl (%rax), %edx
movq (%rcx,%rdx,8), %r14
testq %r14, %r14
jne 0x9af7c
movb $0x0, 0x1(%rax)
movq 0x4b0(%rbx), %r12
movzbl (%r12), %r15d
movq 0x148(%rbx), %rax
movq 0x10(%rax), %rax
movq (%rax,%r15,8), %rax
cmpb $0x1, (%rax)
jne 0x9adf2
cmpq %r15, 0x18(%rax)
jne 0x9ad60
cmpl $0x1, 0x2c(%rax)
je 0x9af89
movq 0x10(%rax), %rax
jmp 0x9ad47
movq 0x18(%rsi), %rax
leaq 0x1(%r12), %r15
movq %rax, 0x20(%rsi)
movzbl (%r14), %eax
leaq 0xc2de2(%rip), %rcx     # 0x15db60
cmpb $0x0, (%rax,%rcx)
je 0x9addb
leaq 0x2(%r12), %rsi
cmpq 0x4a8(%rbx), %rsi
jl 0x9ad9a
movq %rbx, %rdi
callq 0x9a3a8
movq 0x4b0(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x93e0
movq 0x4b0(%rbx), %rax
movb $0x0, 0x1(%rax,%r12)
movq 0x4b0(%rbx), %rsi
movq %rbx, %rdi
movl $0xa, %edx
movl $0x1, %ecx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x97c6d
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x9d9f
cmpl $0x2e00, 0x7f8(%rbx)    # imm = 0x2E00
jne 0x9ae19
movl $0x2e00, %edi           # imm = 0x2E00
callq 0x9480
movq %rax, 0x828(%rbx)
movl $0x0, 0x7f8(%rbx)
movq 0x828(%rbx), %rax
movl 0x7f8(%rbx), %ecx
leaq (%rax,%rcx), %r14
leal 0xb8(%rcx), %edx
movl %edx, 0x7f8(%rbx)
leaq (%rax,%rcx), %r13
addq $0x30, %r13
movq 0x8c8(%rbx), %rax
addq $0x8, %rax
cmpq $0x10001, %rax          # imm = 0x10001
jb 0x9ae72
movl $0x10000, %edi          # imm = 0x10000
callq 0x9480
movq %rax, 0x8d0(%rbx)
movq $0x0, 0x8c8(%rbx)
movl $0x8, %eax
movq 0x8c8(%rbx), %rcx
movq 0x8d0(%rbx), %rdx
leaq (%rdx,%rcx), %rsi
movq %rax, 0x8c8(%rbx)
movb (%r12), %al
movb %al, (%rdx,%rcx)
movb $0x0, 0x1(%rdx,%rcx)
movabsq $0x400000000000000a, %rax # imm = 0x400000000000000A
leaq 0x1000009(%rax), %rcx
movq %rcx, 0x30(%r14)
movq $0x1, 0x38(%r14)
movq %rsi, 0x40(%r14)
movq %r15, 0x48(%r14)
movq %rax, (%r14)
movq %r13, 0x8(%r14)
movq 0x128(%rbx), %rcx
movq %rcx, 0x10(%r14)
leaq 0x90(%r14), %rcx
movq %rcx, 0x50(%r14)
movq 0x128(%rbx), %rcx
movq %rcx, 0xb0(%r14)
movq 0x110(%rbx), %rcx
movq %rcx, 0x18(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movl $0x0, 0x9c(%r14)
movq 0x20(%r13), %rcx
movq $0x0, 0x10(%rcx)
leaq 0x60(%r14), %rcx
addq $0xfffff7, %rax         # imm = 0xFFFFF7
movq %rax, 0x60(%r14)
movq %r14, 0x68(%r14)
movq 0x148(%rbx), %rax
movq 0x10(%rax), %rax
leal (,%r15,8), %edx
movq (%rax,%rdx), %rax
movq %rax, 0x70(%r14)
movq 0x148(%rbx), %rax
movq 0x10(%rax), %rax
movq %rcx, (%rax,%rdx)
movq %r15, 0x78(%r14)
movl $0x1, 0x8c(%r14)
movq 0x40(%r14), %rax
movq %rax, 0x80(%r14)
movq 0x488(%rbx), %rax
movq 0x4b0(%rbx), %rcx
movzbl (%rcx), %ecx
movq %r14, (%rax,%rcx,8)
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x8(%rax), %r14
jmp 0x9af67