// File: /workspace/github_cpp_makefile_star2_O2/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 0x1d2f8
movq %rsi, %rbx
pushq $0x7d
popq %rdi
callq 0x15246
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x1a65d
testb %al, %al
jne 0x1d4e4
leaq 0x26f01(%rip), %rdi     # 0x441e1
leaq 0x272b8(%rip), %rsi     # 0x4459f
leaq 0x272c4(%rip), %rcx     # 0x445b2
movl $0x88, %edx
callq 0xf460
movq %rdi, %r14
leaq 0x8(%rdi), %rsi
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x1824e
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0x1f0bd
leaq 0x18(%rsp), %rdi
callq 0x14e02
movq 0x3e8(%r14), %rdi
leaq 0x48(%rsp), %rcx
movq %rdi, -0x8(%rcx)
xorps %xmm0, %xmm0
movq 0x3f0(%r14), %rax
movups %xmm0, 0x3e8(%r14)
movq %rax, (%rcx)
testq %rdi, %rdi
je 0x1d35b
movq 0x280(%r14), %rsi
callq 0x1a6a8
jmp 0x1d385
leaq 0x280(%r14), %rsi
leaq 0x10(%rsp), %rdi
callq 0x1a38b
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1c822
leaq 0x18(%rsp), %rdi
callq 0x14e02
leaq 0x40(%rsp), %r12
movq (%r12), %rax
movq (%rax), %rbx
movq 0x8(%rax), %r13
leaq 0x18(%rsp), %rdi
movq %r14, -0x8(%rdi)
leaq 0x50(%rsp), %rsi
callq 0x2096e
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x14e7e
movq 0x310(%r14), %rbp
movq %r15, 0x60(%rsp)
movl $0xb0, %edi
movq %r15, %rsi
xorl %eax, %eax
callq 0x13dbd
movq %rax, %r15
xorl %eax, %eax
subq %rbx, %r13
cmovneq %rbx, %rax
sete %bl
movq %r15, 0x68(%rsp)
movl 0x318(%r14), %ecx
movb 0x31c(%r14), %dl
andq $0x0, (%r15)
leaq 0x171f(%rip), %rsi      # 0x1eb1c
movq %rsi, 0x8(%r15)
andl $0x0, 0x10(%r15)
movups 0x30(%rbp), %xmm0
movups %xmm0, 0x18(%r15)
andq $0x0, 0x28(%r15)
leaq 0x33ef(%rip), %rsi      # 0x2080a
movq %rsi, 0x30(%r15)
movl %ecx, 0x38(%r15)
movb %dl, 0x3c(%r15)
movq %rax, 0x40(%r15)
movq %r13, 0x48(%r15)
andl $0x0, 0x50(%r15)
leaq 0x330(%r14), %rsi
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x58(%r15)
xorps %xmm1, %xmm1
movaps 0x20(%rsp), %xmm0
movups %xmm1, 0x18(%rsp)
movups %xmm0, 0x68(%r15)
movq 0x30(%rsp), %rax
andq $0x0, 0x30(%rsp)
movq %rax, 0x78(%r15)
andq $0x0, 0x28(%rsp)
leaq 0x318(%r14), %r12
leaq 0x28(%rbp), %r13
movq %r15, %rdi
subq $-0x80, %rdi
callq 0x14776
movq %r15, 0x70(%rsp)
movb 0x31c(%r14), %al
shrb $0x4, %al
andb %bl, %al
movzbl %al, %eax
movl %eax, (%rsp)
pushq $0x1
popq %r9
movq %r13, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x20640
leaq 0x68(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x60(%rsp), %rdi
callq 0x1eb0c
leaq 0x10(%rsp), %rdi
callq 0x1d83e
leaq 0x48(%rsp), %rdi
callq 0x14e02
leaq 0x58(%rsp), %rdi
callq 0x14e02
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1d4f5
movq %rax, %r14
jmp 0x1d516
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x1eb0c
jmp 0x1d50c
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x1d83e
leaq 0x48(%rsp), %rdi
callq 0x14e02
leaq 0x58(%rsp), %rdi
callq 0x14e02
movq %r14, %rdi
callq 0xfba0