// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: s7_read
s7_pointer s7_read(s7_scheme *sc, s7_pointer port)
    {
        if (is_input_port(port))
        {
            s7_pointer old_envir;
            declare_jump_info();

            old_envir = sc->envir;
            sc->envir = sc->nil;
            push_input_port(sc, port);

            store_jump_info(sc);
            set_jump_info(sc, READ_SET_JUMP);
            if (jump_loc != NO_JUMP)
            {
                if (jump_loc != ERROR_JUMP)
                    eval(sc, sc->cur_op);
            }
            else
            {
                push_stack_no_let_no_code(sc, OP_BARRIER, port);
                push_stack(sc, OP_EVAL_DONE, sc->args, sc->code);

                eval(sc, OP_READ_INTERNAL);

                if (sc->tok == TOKEN_EOF)
                    sc->value = eof_object;

                if ((sc->cur_op == OP_EVAL_DONE) &&
                        (stack_op(sc->stack, s7_stack_top(sc) - 1) == OP_BARRIER))
                    pop_stack(sc);
            }
            pop_input_port(sc);
            sc->envir = old_envir;

            restore_jump_info(sc);
            return(sc->value);
        }
        return(simple_wrong_type_argument_with_type(sc, sc->read_symbol, port, an_input_port_string));
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r15
movq %rdi, %rbx
cmpb $0x23, (%rsi)
jne 0xfb81
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsp)
movq 0x110(%rbx), %rax
movq %rax, 0x8(%rbx)
movl 0x184(%rbx), %eax
movl 0x180(%rbx), %ecx
cmpl %ecx, %eax
jae 0xfbaa
movq 0x178(%rbx), %rcx
jmp 0xfbd4
movq 0x1460(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x140(%rbx), %rcx
movq 0x13b066(%rip), %r8     # 0x14ac00
movq %rbx, %rdi
movq %r15, %rdx
callq 0xed2a
jmp 0xfd66
addl %ecx, %ecx
movl %ecx, 0x180(%rbx)
movq 0x178(%rbx), %rdi
movl %ecx, %esi
shlq $0x3, %rsi
callq 0x8510
movq %rax, 0x178(%rbx)
movq %rax, %rcx
movl 0x184(%rbx), %eax
movq 0x170(%rbx), %rdx
movl %eax, %esi
incl %eax
movl %eax, 0x184(%rbx)
movl %esi, %eax
movq %rdx, (%rcx,%rax,8)
movq %r15, 0x170(%rbx)
movb 0x678(%rbx), %r13b
movl 0x67c(%rbx), %r12d
leaq 0x5b0(%rbx), %r14
leaq 0x10(%rsp), %rdi
movl $0xc8, %edx
movq %r14, %rsi
callq 0x83e0
movb $0x1, 0x678(%rbx)
movl $0x1, 0x67c(%rbx)
movq %r14, %rdi
callq 0x8350
movl %eax, %ebp
testl %eax, %eax
je 0xfc52
cmpl $0x4, %ebp
je 0xfcff
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
callq 0xfd85
jmp 0xfcff
movq 0x50(%rbx), %rax
movq %r15, 0x10(%rax)
movq 0x50(%rbx), %rax
movq $0x203, 0x18(%rax)      # imm = 0x203
movq (%rbx), %rax
movq 0x50(%rbx), %rcx
leaq 0x20(%rcx), %rdx
movq %rdx, 0x50(%rbx)
movq %rax, 0x20(%rcx)
movq 0x8(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x10(%rbx), %rax
movq 0x50(%rbx), %rcx
movq %rax, 0x10(%rcx)
movq 0x50(%rbx), %rax
movq $0x1df, 0x18(%rax)      # imm = 0x1DF
addq $0x20, 0x50(%rbx)
movl $0x190, %esi            # imm = 0x190
movq %rbx, %rdi
callq 0xfd85
cmpl $0x0, 0x30(%rbx)
jne 0xfcc0
movq 0x136aa4(%rip), %rax    # 0x146760
movq %rax, 0x20(%rbx)
cmpq $0x1df, 0x18(%rbx)      # imm = 0x1DF
jne 0xfcff
movq 0x38(%rbx), %rcx
movq 0x50(%rbx), %rax
movq 0x10(%rcx), %rcx
movq %rax, %rdx
subq 0x48(%rbx), %rdx
cmpq $0x203, -0x8(%rcx,%rdx) # imm = 0x203
jne 0xfcff
leaq -0x20(%rax), %rcx
movq %rcx, 0x50(%rbx)
movups -0x20(%rax), %xmm0
movups -0x10(%rax), %xmm1
movups %xmm0, (%rbx)
movups %xmm1, 0x10(%rbx)
movl 0x184(%rbx), %eax
testl %eax, %eax
je 0xfd1e
decl %eax
movl %eax, 0x184(%rbx)
shlq $0x3, %rax
addq 0x178(%rbx), %rax
jmp 0xfd25
leaq 0x1c8(%rbx), %rax
movq (%rax), %rax
movq %rax, 0x170(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0x8(%rbx)
movb %r13b, 0x678(%rbx)
movl %r12d, 0x67c(%rbx)
leaq 0x10(%rsp), %rsi
movl $0xc8, %edx
movq %r14, %rdi
callq 0x83e0
cmpl $0x4, %ebp
jne 0xfd62
testb %r13b, %r13b
jne 0xfd78
movq 0x20(%rbx), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movl $0x4, %esi
callq 0x8530