// File: /workspace/github_c_makefile_star2_O3/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
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x10(%rsi), %r15
movq 0x20(%rsi), %r12
movzbl (%r15,%r12), %edx
leaq 0xc4f18(%rip), %rcx     # 0x155a60
cmpb $0x1, (%rdx,%rcx)
jne 0x90bbd
movq %rsi, %rax
leaq (%r15,%r12), %rsi
movq $-0x1, %rbp
movzbl 0x1(%r15,%r12), %edx
incq %r12
decq %rbp
cmpb $0x0, (%rdx,%rcx)
jne 0x90b5c
leaq -0x1(%rsi), %r14
movq %r12, %rcx
testb %dl, %dl
jne 0x90b7d
movq 0x18(%rax), %rcx
movq %rcx, 0x20(%rax)
movzbl (%r14), %eax
leaq 0xc4fd4(%rip), %rcx     # 0x155b60
cmpb $0x0, (%rax,%rcx)
je 0x90c19
movb (%r15,%r12), %bpl
movb $0x0, (%r15,%r12)
movq %rbx, %rdi
movq %r14, %rsi
movl $0xa, %edx
movl $0x1, %ecx
callq 0x91b3a
movb %bpl, (%r15,%r12)
jmp 0x90eda
movq 0x488(%rbx), %rcx
movq 0x4b0(%rbx), %rax
movzbl (%rax), %edx
movq (%rcx,%rdx,8), %r14
testq %r14, %r14
jne 0x90ed7
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 0x90c9d
cmpq %r15, 0x18(%rax)
jne 0x90c13
cmpl $0x1, 0x2c(%rax)
je 0x90ee9
movq 0x10(%rax), %rax
jmp 0x90bfa
movq %rbp, %r15
negq %r15
movq $0x0, 0x8(%rsp)
cmpq $0x8, %r15
jg 0x90cc7
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x83e0
movq (%r12), %r12
movabsq $-0x7fecfd2d94c4151b, %rcx # imm = 0x801302D26B3BEAE5
movq %r12, %rax
mulq %rcx
shrq $0xe, %rdx
imulq $0x7fed, %rdx, %rax     # imm = 0x7FED
movq %r12, %r8
subq %rax, %r8
movq 0x148(%rbx), %rax
movq 0x10(%rax), %rax
movl %r8d, %ecx
movq (%rax,%rcx,8), %rax
cmpb $0x1, (%rax)
jne 0x90d66
cmpq 0x18(%rax), %r12
jne 0x90c97
movl 0x2c(%rax), %ecx
addq %rbp, %rcx
je 0x90eef
movq 0x10(%rax), %rax
jmp 0x90c7c
movl 0x7f8(%rbx), %ecx
cmpl $0x2e00, %ecx           # imm = 0x2E00
jne 0x90d85
movl $0x2e00, %edi           # imm = 0x2E00
callq 0x8480
movq %rax, 0x828(%rbx)
xorl %ecx, %ecx
jmp 0x90d8c
movq -0x1(%rsi), %r12
leaq 0x10(%rsp), %r13
movq $0x0, (%r13)
addq $0x7, %rsi
cmpq $0x10, %r15
movl $0x10, %edx
cmovbq %r15, %rdx
addq $-0x8, %rdx
movq %r13, %rdi
callq 0x83e0
addq (%r13), %r12
movabsq $-0x7fecfd2d94c4151b, %rcx # imm = 0x801302D26B3BEAE5
movq %r12, %rax
mulq %rcx
shrq $0xe, %rdx
imulq $0x7fed, %rdx, %rax     # imm = 0x7FED
movq %r12, %rcx
subq %rax, %rcx
movq 0x148(%rbx), %rax
movq 0x10(%rax), %rax
movq %rcx, (%rsp)
movl %ecx, %ecx
movq (%rax,%rcx,8), %r13
cmpb $0x1, (%r13)
jne 0x90d62
cmpq 0x18(%r13), %r12
jne 0x90d5c
movl 0x2c(%r13), %eax
addq %rbp, %rax
jne 0x90d5c
movq 0x20(%r13), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x8c146
testb %al, %al
jne 0x90ef5
movq 0x10(%r13), %r13
jmp 0x90d2f
movq (%rsp), %r8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9632
movq 0x828(%rbx), %rax
movl %ecx, %edx
leaq (%rax,%rdx), %r14
addl $0xb8, %ecx
movl %ecx, 0x7f8(%rbx)
leaq (%rax,%rdx), %r13
addq $0x30, %r13
movq 0x8c8(%rbx), %rcx
leaq 0x8(%rcx), %rdx
cmpq $0x10000, %rdx          # imm = 0x10000
jbe 0x90dd4
movl $0x10000, %edi          # imm = 0x10000
callq 0x8480
movq %rax, 0x8d0(%rbx)
movl $0x8, %edx
xorl %ecx, %ecx
jmp 0x90ddb
movq 0x8d0(%rbx), %rax
leaq (%rax,%rcx), %rsi
movq %rdx, 0x8c8(%rbx)
movb (%r12), %dl
movb %dl, (%rax,%rcx)
movb $0x0, 0x1(%rax,%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)
movl $0x0, 0x9c(%r14)
movq $0x0, 0xa0(%r14)
leaq 0x60(%r14), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
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 0x4b0(%rbx), %rax
movzbl (%rax), %r15d
movq 0x488(%rbx), %rax
movq %r14, (%rax,%r15,8)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rax), %r14
jmp 0x90ecc
movq 0x8(%rax), %r14
jmp 0x90ed7
movq 0x8(%r13), %r14
jmp 0x90ed7