// File: /workspace/github_c_makefile_star2_O2/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 0xe006
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsp)
movq 0x110(%rbx), %rax
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe138
movb 0x678(%rbx), %r12b
movl 0x67c(%rbx), %r13d
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 0xe02f
cmpl $0x4, %ebp
je 0xe0dc
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
callq 0xe1a8
jmp 0xe0dc
movq 0x1460(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x140(%rbx), %rcx
movq 0x10bbe1(%rip), %r8     # 0x119c00
movq %rbx, %rdi
movq %r15, %rdx
callq 0xd456
jmp 0xe11b
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 0xe1a8
cmpl $0x0, 0x30(%rbx)
jne 0xe09d
movq 0x1076c7(%rip), %rax    # 0x115760
movq %rax, 0x20(%rbx)
cmpq $0x1df, 0x18(%rbx)      # imm = 0x1DF
jne 0xe0dc
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 0xe0dc
leaq -0x20(%rax), %rcx
movq %rcx, 0x50(%rbx)
movups -0x20(%rax), %xmm0
movups -0x10(%rax), %xmm1
movups %xmm0, (%rbx)
movups %xmm1, 0x10(%rbx)
movq %rbx, %rdi
callq 0x29472
movq 0x8(%rsp), %rax
movq %rax, 0x8(%rbx)
movb %r12b, 0x678(%rbx)
movl %r13d, 0x67c(%rbx)
leaq 0x10(%rsp), %rsi
movl $0xc8, %edx
movq %r14, %rdi
callq 0x83e0
cmpl $0x4, %ebp
jne 0xe117
testb %r12b, %r12b
jne 0xe12d
movq 0x20(%rbx), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x4
popq %rsi
movq %r14, %rdi
callq 0x8530