// File: /workspace/github_cpp_makefile_star2_O3/flightaware[P]beast-splitter/beast_output.cc
// Function: beast::SocketOutput::read_commands()
void SocketOutput::read_commands() {
        auto self(shared_from_this());
        auto buf = std::make_shared<std::vector<std::uint8_t>>(512);

        socket.async_read_some(asio::buffer(*buf), [this, self, buf](const boost::system::error_code &ec, std::size_t len) {
            if (ec) {
                handle_error(ec);
            } else {
                buf->resize(len);
                process_commands(*buf);
                read_commands();
            }
        });
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0x48(%rsp), %rdi
movq %rbx, %rsi
callq 0x2ac22
leaq 0x20(%rsp), %r14
movl $0x200, (%r14)          # imm = 0x200
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0x58(%rsp), %rdx
movq %r14, %rcx
callq 0x2ac78
movq 0x10(%rsp), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
xorl %ebp, %ebp
movq %r13, 0x80(%rsp)
subq %r15, %r13
cmovneq %r15, %rbp
movq %rbx, 0x20(%rsp)
movq 0x48(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq %rdx, 0x28(%rsp)
movq %rcx, 0x30(%rsp)
testq %rcx, %rcx
je 0x23fed
movq 0x4cfa6(%rip), %rdx     # 0x70f80
cmpb $0x0, (%rdx)
je 0x23fe4
incl 0x8(%rcx)
jmp 0x23fed
lock
incl 0x8(%rcx)
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x24016
movq 0x4cf78(%rip), %rcx     # 0x70f80
cmpb $0x0, (%rcx)
je 0x24012
incl 0x8(%rax)
jmp 0x24016
lock
incl 0x8(%rax)
movq 0x20(%rbx), %r12
movq %r14, 0x58(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x24033
movq 0x8(%rax), %rdi
jmp 0x24035
xorl %edi, %edi
movl $0xb0, %esi
callq 0x136c4
movq %rax, %r14
leaq 0x28(%r12), %rax
movq %rax, 0x78(%rsp)
leaq 0x28(%rbx), %rax
movq %rax, 0x70(%rsp)
leaq 0x40(%rbx), %rsi
cmpq %r15, 0x80(%rsp)
sete %r15b
movq %r14, 0x60(%rsp)
movl 0x28(%rbx), %eax
movb 0x2c(%rbx), %cl
xorl %edx, %edx
movq %rdx, (%r14)
leaq 0x278a(%rip), %rdi      # 0x26806
movq %rdi, 0x8(%r14)
movl %edx, 0x10(%r14)
movups 0x30(%r12), %xmm0
movups %xmm0, 0x18(%r14)
movq %rdx, 0x28(%r14)
leaq -0x1128(%rip), %rdi     # 0x22f72
movq %rdi, 0x30(%r14)
movl %eax, 0x38(%r14)
movb %cl, 0x3c(%r14)
movq %rbp, 0x40(%r14)
movq %r13, 0x48(%r14)
movl %edx, 0x50(%r14)
movaps 0x20(%rsp), %xmm0
movups %xmm0, 0x58(%r14)
xorps %xmm1, %xmm1
movaps 0x30(%rsp), %xmm0
movups %xmm1, 0x28(%rsp)
movups %xmm0, 0x68(%r14)
movq 0x40(%rsp), %rax
movq %rdx, 0x40(%rsp)
movq %rax, 0x78(%r14)
movq %rdx, 0x38(%rsp)
movq %r14, %rdi
subq $-0x80, %rdi
callq 0x140a4
movq %r14, 0x68(%rsp)
movb 0x2c(%rbx), %al
shrb $0x4, %al
andb %r15b, %al
movzbl %al, %eax
movl %eax, (%rsp)
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
xorl %edx, %edx
movq %r14, %rcx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0x22d82
leaq 0x60(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x58(%rsp), %rdi
callq 0x26af8
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x24142
callq 0x14590
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x24151
callq 0x14590
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x24160
callq 0x14590
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2416f
callq 0x14590
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x24192
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x26af8
jmp 0x2419d
movq %rax, %rdi
callq 0xf7cb
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x241d2
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x241bb
callq 0x14590
jmp 0x241bb
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x241ca
callq 0x14590
movq %rbx, %rdi
callq 0xeb40