// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: string_read_name
static s7_pointer string_read_name(s7_scheme *sc, s7_pointer pt)
    {
        /* port_string was allocated (and read from a file) so we can mess with it directly */
        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 endc;
            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);

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

            endc = (*str);
            (*str) = '\0';
            result = make_atom(sc, orig_str, BASE_10, SYMBOL_OK, WITH_OVERFLOW_ERROR);
            (*str) = endc;
            return(result);
        }
        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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rsi), %r15
movq 0x20(%rsi), %rcx
movzbl (%r15,%rcx), %edx
leaq 0xc6cd8(%rip), %rax     # 0x15da60
cmpb $0x1, (%rdx,%rax)
jne 0x96db0
addq %rcx, %r15
xorl %r14d, %r14d
movzbl 0x1(%r15,%r14), %edx
incq %r14
cmpb $0x0, (%rdx,%rax)
jne 0x96d94
leaq -0x1(%r15), %rax
testb %dl, %dl
je 0x96e08
addq %r14, %rcx
jmp 0x96e0c
movq 0x488(%rbx), %rcx
movq 0x4b0(%rbx), %rax
movzbl (%rax), %edx
movq (%rcx,%rdx,8), %r14
testq %r14, %r14
jne 0x96ff0
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 0x96e66
cmpq %r15, 0x18(%rax)
jne 0x96e02
cmpl $0x1, 0x2c(%rax)
je 0x97002
movq 0x10(%rax), %rax
jmp 0x96ded
movq 0x18(%rsi), %rcx
movq %rcx, 0x20(%rsi)
movzbl (%rax), %ecx
leaq 0xc6d46(%rip), %rdx     # 0x15db60
cmpb $0x0, (%rcx,%rdx)
je 0x96e47
movb (%r15,%r14), %bpl
movb $0x0, (%r15,%r14)
movq %rbx, %rdi
movq %rax, %rsi
movl $0xa, %edx
movl $0x1, %ecx
callq 0x97c6d
movb %bpl, (%r15,%r14)
jmp 0x96ff3
incq %r14
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9d9f
cmpl $0x2e00, 0x7f8(%rbx)    # imm = 0x2E00
jne 0x96e8d
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 0x96ee6
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
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rax), %r14
jmp 0x96fdb