// File: /workspace/github_cpp_makefile_star2_O3/flightaware[P]beast-splitter/beast_input_net.cc
// Function: beast::NetInput::start_reading(boost::system::error_code const&)
void NetInput::start_reading(const boost::system::error_code &ec) {
    if (ec) {
        assert(ec == boost::asio::error::operation_aborted);
        return;
    }

    auto self(std::static_pointer_cast<NetInput>(shared_from_this()));
    std::shared_ptr<helpers::bytebuf> buf;

    buf.swap(readbuf);
    if (buf) {
        buf->resize(read_buffer_size);
    } else {
        buf = std::make_shared<helpers::bytebuf>(read_buffer_size);
    }

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

            start_reading();
        }
    });
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
cmpb $0x1, 0x4(%rsi)
jne 0x1ec42
cmpl $0x7d, (%rsi)
jne 0x1ec23
movq 0x8(%rsi), %rax
movabsq $-0x70502de1da3a1f65, %rcx # imm = 0x8FAFD21E25C5E09B
cmpq %rcx, 0x8(%rax)
je 0x1ef0b
leaq 0x30597(%rip), %rdi     # 0x4f1c1
leaq 0x3097e(%rip), %rsi     # 0x4f5af
leaq 0x3098a(%rip), %rcx     # 0x4f5c2
movl $0x88, %edx
callq 0xe440
movq %rdi, %r15
leaq 0x8(%rdi), %rsi
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x185ac
movq (%r14), %r12
movq 0x8(%r14), %rbx
testq %rbx, %rbx
je 0x1ec89
movq 0x52317(%rip), %rax     # 0x70f80
cmpb $0x0, (%rax)
je 0x1ec76
incl 0x8(%rbx)
movq %rbx, %rdi
jmp 0x1ec84
lock
incl 0x8(%rbx)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x1ec89
callq 0x14590
movq 0x3e8(%r15), %r13
movq 0x3f0(%r15), %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x3e8(%r15)
testq %r13, %r13
movq %rbx, 0x10(%rsp)
je 0x1ecc3
movq 0x280(%r15), %rsi
movq %r13, %rdi
callq 0x1b56a
movq %r14, %rdx
movq %rbp, %rcx
jmp 0x1ed1a
leaq 0x280(%r15), %rcx
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x1c4f0
movq 0x20(%rsp), %r13
movq 0x28(%rsp), %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
testq %rbp, %rbp
je 0x1ed14
movq %rbp, %rdi
callq 0x14590
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x1ed14
callq 0x14590
movq %r14, %rdx
movq %rbx, %rcx
movq (%r13), %rbp
movq 0x8(%r13), %r14
xorl %ebx, %ebx
movq %r14, 0x70(%rsp)
subq %rbp, %r14
cmovneq %rbp, %rbx
movq %r15, 0x20(%rsp)
movq %r12, 0x28(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x1ed68
movq 0x52230(%rip), %rax     # 0x70f80
cmpb $0x0, (%rax)
je 0x1ed5f
movq 0x10(%rsp), %rax
incl 0x8(%rax)
jmp 0x1ed68
movq 0x10(%rsp), %rax
lock
incl 0x8(%rax)
movq %r13, 0x38(%rsp)
movq %rcx, 0x40(%rsp)
testq %rcx, %rcx
je 0x1ed8c
movq 0x52202(%rip), %rax     # 0x70f80
cmpb $0x0, (%rax)
je 0x1ed88
incl 0x8(%rcx)
jmp 0x1ed8c
lock
incl 0x8(%rcx)
movq %rcx, 0x18(%rsp)
movq 0x310(%r15), %r13
movq %rdx, 0x48(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x1edb1
movq 0x8(%rax), %rdi
jmp 0x1edb3
xorl %edi, %edi
movl $0xb0, %esi
callq 0x136c4
movq %rax, %r12
leaq 0x28(%r13), %rax
movq %rax, 0x68(%rsp)
leaq 0x318(%r15), %rax
movq %rax, 0x60(%rsp)
leaq 0x330(%r15), %rsi
cmpq %rbp, 0x70(%rsp)
sete %bpl
movq %r12, 0x50(%rsp)
movl 0x318(%r15), %eax
movb 0x31c(%r15), %cl
xorl %edx, %edx
movq %rdx, (%r12)
leaq 0x2087(%rip), %rdi      # 0x20e8c
movq %rdi, 0x8(%r12)
movl %edx, 0x10(%r12)
movups 0x30(%r13), %xmm0
movups %xmm0, 0x18(%r12)
movq %rdx, 0x28(%r12)
leaq 0x414c(%rip), %rdi      # 0x22f72
movq %rdi, 0x30(%r12)
movl %eax, 0x38(%r12)
movb %cl, 0x3c(%r12)
movq %rbx, 0x40(%r12)
movq %r14, 0x48(%r12)
movl %edx, 0x50(%r12)
movaps 0x20(%rsp), %xmm0
movups %xmm0, 0x58(%r12)
xorps %xmm1, %xmm1
movaps 0x30(%rsp), %xmm0
movups %xmm1, 0x28(%rsp)
movups %xmm0, 0x68(%r12)
movq 0x40(%rsp), %rax
movq %rdx, 0x40(%rsp)
movq %rax, 0x78(%r12)
movq %rdx, 0x38(%rsp)
movq %r12, %rdi
subq $-0x80, %rdi
callq 0x140a4
movq %r12, 0x58(%rsp)
movb 0x31c(%r15), %al
shrb $0x4, %al
andb %bpl, %al
movzbl %al, %eax
movl %eax, (%rsp)
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
xorl %edx, %edx
movq %r12, %rcx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0x22d82
leaq 0x50(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x48(%rsp), %rdi
callq 0x2117e
movq 0x10(%rsp), %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1eee0
callq 0x14590
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1eeef
callq 0x14590
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1eefe
callq 0x14590
testq %rbx, %rbx
je 0x1ef0b
movq %rbx, %rdi
callq 0x14590
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1ef1c
movq %rax, %r15
movq %rbp, 0x18(%rsp)
jmp 0x1ef4c
jmp 0x1ef37
movq %rax, %r15
leaq 0x48(%rsp), %rdi
callq 0x2117e
jmp 0x1ef42
movq %rax, %rdi
callq 0xf7cb
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0x1f3d6
cmpq $0x0, 0x18(%rsp)
je 0x1ef5e
movq 0x18(%rsp), %rdi
callq 0x14590
cmpq $0x0, 0x10(%rsp)
je 0x1ef70
movq 0x10(%rsp), %rdi
callq 0x14590
movq %r15, %rdi
callq 0xeb40