// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rsp), %rcx
addq 0x20(%rcx), %rax
movq %rax, 0x10(%rsp)
movq 0x152dc4(%rip), %rax    # 0x221e10
movq 0x10(%rsp), %rcx
movzbl (%rcx), %ecx
testb $0x1, (%rax,%rcx)
je 0xcf19e
movq 0x10(%rsp), %rax
addq $-0x1, %rax
movq %rax, (%rsp)
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
movq 0x152d90(%rip), %rax    # 0x221e10
movq 0x10(%rsp), %rcx
movzbl (%rcx), %ecx
testb $0x1, (%rax,%rcx)
je 0xcf09e
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0xcf079
movq 0x10(%rsp), %rax
movq (%rsp), %rcx
subq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0xcf0d4
movq 0x8(%rsp), %rcx
subq $0x1, %rcx
movq 0x20(%rsp), %rax
addq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
jmp 0xcf0e6
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x152d33(%rip), %rax    # 0x221e20
movq (%rsp), %rcx
movzbl (%rcx), %ecx
testb $0x1, (%rax,%rcx)
jne 0xcf117
movq 0x28(%rsp), %rdi
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0xa2b0
movq %rax, 0x30(%rsp)
jmp 0xcf228
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq 0x28(%rsp), %rcx
cmpq 0x4a8(%rcx), %rax
jl 0xcf141
movq 0x28(%rsp), %rdi
movq 0x8(%rsp), %rsi
addq $0x1, %rsi
callq 0xce2e0
movq 0x28(%rsp), %rax
movq 0x4b0(%rax), %rdi
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x93e0
movq 0x28(%rsp), %rax
movq 0x4b0(%rax), %rax
movq 0x8(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x28(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x4b0(%rax), %rsi
movl $0xa, %edx
movl $0x1, %r8d
movl %r8d, %ecx
callq 0xca470
movq %rax, 0x30(%rsp)
jmp 0xcf228
movq 0x28(%rsp), %rax
movq 0x488(%rax), %rax
movq 0x28(%rsp), %rcx
movq 0x4b0(%rcx), %rcx
movzbl (%rcx), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0xcf21e
movq 0x28(%rsp), %rax
movq 0x4b0(%rax), %rax
movb $0x0, 0x1(%rax)
movq 0x28(%rsp), %rdi
movq 0x28(%rsp), %rax
movq 0x4b0(%rax), %rsi
movl $0x1, %edx
callq 0xa2b0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdx
movq 0x28(%rsp), %rax
movq 0x488(%rax), %rax
movq 0x28(%rsp), %rcx
movq 0x4b0(%rcx), %rcx
movzbl (%rcx), %ecx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)