// File: /workspace/github_c_makefile_star2_O1/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 0x10a27
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsp)
movq 0x110(%rbx), %rax
movq %rax, 0x8(%rbx)
movl 0x180(%rbx), %eax
cmpl %eax, 0x184(%rbx)
jb 0x1099e
addl %eax, %eax
movl %eax, 0x180(%rbx)
movq 0x178(%rbx), %rdi
movl %eax, %esi
shlq $0x3, %rsi
callq 0x9510
movq %rax, 0x178(%rbx)
movq 0x170(%rbx), %rax
movq 0x178(%rbx), %rcx
movl 0x184(%rbx), %edx
movl %edx, %esi
incl %esi
movl %esi, 0x184(%rbx)
movq %rax, (%rcx,%rdx,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 0x93e0
movb $0x1, 0x678(%rbx)
movl $0x1, 0x67c(%rbx)
movq %r14, %rdi
callq 0x9350
movl %eax, %ebp
testl %eax, %eax
je 0x10a50
cmpl $0x4, %ebp
je 0x10afd
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
callq 0x10b83
jmp 0x10afd
movq 0x1460(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x140(%rbx), %rcx
movq 0x1421c0(%rip), %r8     # 0x152c00
movq %rbx, %rdi
movq %r15, %rdx
callq 0xfac8
jmp 0x10b64
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 0x10b83
cmpl $0x0, 0x30(%rbx)
jne 0x10abe
movq 0x13dca6(%rip), %rax    # 0x14e760
movq %rax, 0x20(%rbx)
cmpq $0x1df, 0x18(%rbx)      # imm = 0x1DF
jne 0x10afd
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 0x10afd
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 0x10b1c
decl %eax
movl %eax, 0x184(%rbx)
shlq $0x3, %rax
addq 0x178(%rbx), %rax
jmp 0x10b23
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 0x93e0
cmpl $0x4, %ebp
jne 0x10b60
testb %r13b, %r13b
jne 0x10b76
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 0x9530