// File: /workspace/github_cpp_makefile_star2_O3/flightaware[P]beast-splitter/beast_input_net.cc
// Function: beast::NetInput::try_next_endpoint()
void NetInput::try_next_endpoint() {
    if (next_endpoint == tcp::resolver::iterator()) {
        // No more addresses to try
        connection_failed();
        return;
    }

    tcp::endpoint endpoint = *next_endpoint++;

    auto self(shared_from_this());
    socket.async_connect(endpoint, [this, self, endpoint](const boost::system::error_code &ec) {
        if (!ec) {
            connection_established(endpoint);
        } else if (ec == boost::asio::error::operation_aborted) {
            return;
        } else {
            std::cerr << what() << ": connection to " << endpoint << " failed: " << ec.message() << std::endl;
            socket.close();
            try_next_endpoint();
        }
    });
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rdi, %rbx
cmpq $0x0, 0x3d0(%rdi)
je 0x1e4be
leaq 0x3d0(%rbx), %rsi
leaq 0xf0(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x21502
movq 0x10(%r14), %rax
movq (%r14), %rcx
movq 0x8(%r14), %rdi
movq (%rcx), %rcx
leaq (%rax,%rax,2), %rax
shlq $0x5, %rax
movups (%rcx,%rax), %xmm0
movups 0xc(%rcx,%rax), %xmm1
movaps %xmm0, 0x70(%rsp)
movups %xmm1, 0x7c(%rsp)
testq %rdi, %rdi
je 0x1e47e
callq 0x14590
leaq 0x8(%rbx), %rsi
leaq 0x90(%rsp), %r14
movq %r14, %rdi
callq 0x185ac
movq %rbx, 0x30(%rsp)
movq (%r14), %rcx
movq 0x8(%r14), %rax
movq %rcx, 0x38(%rsp)
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x1e4db
movq 0x52acc(%rip), %rcx     # 0x70f80
cmpb $0x0, (%rcx)
je 0x1e4d7
incl 0x8(%rax)
jmp 0x1e4db
movq %rbx, %rdi
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11890
lock
incl 0x8(%rax)
leaq 0x48(%rsp), %r13
movups 0x7c(%rsp), %xmm0
movups %xmm0, 0xc(%r13)
movaps 0x70(%rsp), %xmm0
movups %xmm0, (%r13)
movl $0x0, 0x10(%rsp)
movb $0x0, 0x14(%rsp)
leaq 0x4fe28(%rip), %rax     # 0x6e330
movq %rax, 0x18(%rsp)
leaq 0x318(%rbx), %r14
cmpl $-0x1, 0x318(%rbx)
jne 0x1e6be
xorl %eax, %eax
cmpw $0x2, 0x70(%rsp)
setne %al
leal 0x2(,%rax,8), %eax
leaq 0xf0(%rsp), %rdx
movl %eax, (%rdx)
movq 0x310(%rbx), %rdi
leaq 0x10(%rsp), %rcx
movq %r14, %rsi
callq 0x224fc
testb $0x1, 0x14(%rsp)
je 0x1e6be
leaq 0x38(%rsp), %rax
addq $0x330, %rbx            # imm = 0x330
movaps -0x8(%rax), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x8(%rax), %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups (%r13), %xmm0
movups 0xc(%r13), %xmm1
movups %xmm1, 0xac(%rsp)
movaps %xmm0, 0xa0(%rsp)
movups 0x10(%rsp), %xmm0
movups %xmm0, 0x1f0(%rsp)
leaq 0x278(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x228c6
leaq 0x230(%rsp), %rdi
movq %r15, %rsi
callq 0x228c6
movq 0x10(%r15), %rax
movq 0x28(%r15), %rcx
movq 0x20(%rcx), %rbx
movq %r15, %rdi
callq *0x18(%rax)
leaq 0x31305(%rip), %rdx     # 0x4f8e3
leaq 0x200(%rsp), %rdi
movq %rax, %rsi
callq *%rbx
leaq 0x30492(%rip), %rsi     # 0x4ea84
leaq 0x312eb(%rip), %rcx     # 0x4f8e4
leaq 0xc0(%rsp), %rdi
leaq 0x200(%rsp), %rdx
leaq 0x6(%rsp), %r8
callq 0x22856
leaq 0x1f0(%rsp), %rax
movaps 0x20(%rsp), %xmm0
movaps %xmm0, 0x170(%rsp)
movq %r14, 0x180(%rsp)
movups 0xac(%rsp), %xmm0
movups %xmm0, 0x194(%rsp)
movaps 0xa0(%rsp), %xmm0
movups %xmm0, 0x188(%rsp)
movups (%rax), %xmm0
movups %xmm0, 0x1a8(%rsp)
leaq 0x230(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x28(%rdi), %rcx
movq 0x58(%rcx), %r14
callq *0x18(%rax)
leaq 0x1b8(%rsp), %rbx
leaq 0xf0(%rsp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq *%r14
movq 0xe0(%rsp), %rcx
movq 0x18(%rcx), %rax
testq %rax, %rax
je 0x1e7ef
leaq 0x17cd(%rip), %rsi      # 0x1fe74
leaq 0xc0(%rsp), %rdi
leaq 0x170(%rsp), %rdx
callq *%rax
jmp 0x1e962
movq 0x310(%rbx), %r15
leaq 0x30(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x1e6e6
movq 0x8(%rax), %rdi
jmp 0x1e6e8
xorl %edi, %edi
movl $0xa8, %esi
callq 0x136c4
movq %rax, %r12
addq $0x330, %rbx            # imm = 0x330
movq %rax, 0xf8(%rsp)
movl (%r14), %eax
xorl %ecx, %ecx
movq %rcx, (%r12)
leaq 0x1d20(%rip), %rdx      # 0x20434
movq %rdx, 0x8(%r12)
movl $0x0, 0x10(%r12)
movups 0x30(%r15), %xmm0
movups %xmm0, 0x18(%r12)
movq %rcx, 0x28(%r12)
leaq 0x450d(%rip), %rdx      # 0x22c46
movq %rdx, 0x30(%r12)
movl %eax, 0x38(%r12)
movaps 0x30(%rsp), %xmm0
movups %xmm0, 0x40(%r12)
movq 0x40(%rsp), %rax
movq %rcx, 0x40(%rsp)
movq %rax, 0x50(%r12)
movq %rcx, 0x38(%rsp)
movups (%r13), %xmm0
movups 0xc(%r13), %xmm1
movups %xmm1, 0x64(%r12)
movups %xmm0, 0x58(%r12)
movq %r12, %rdi
addq $0x78, %rdi
movq %rbx, %rsi
callq 0x140a4
addq $0x28, %r15
movq %r12, 0x100(%rsp)
leaq 0x70(%rsp), %r8
cmpw $0x2, (%r8)
movl $0x10, %eax
movl $0x1c, %r9d
cmoveq %rax, %r9
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x22a7c
leaq 0xf8(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0xf0(%rsp), %rdi
callq 0x205b2
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1e9b9
callq 0x14590
jmp 0x1e9b9
leaq 0x188(%rsp), %r12
movq 0x10(%rcx), %rax
movq %rax, 0x20(%rsp)
movaps -0x18(%r12), %xmm0
leaq 0x138(%rsp), %r14
movaps %xmm0, -0x48(%r14)
movq -0x8(%r12), %rax
xorl %r15d, %r15d
movq %r15, -0x8(%r12)
movq %rax, -0x38(%r14)
movq %r15, -0x10(%r12)
movups (%r12), %xmm0
movups 0xc(%r12), %xmm1
movups %xmm0, -0x30(%r14)
movups %xmm1, -0x24(%r14)
movups 0x20(%r12), %xmm0
movups %xmm0, -0x10(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13724
movq 0x58(%r12), %rax
movq %rax, 0x28(%r14)
leaq 0x4fc9c(%rip), %rax     # 0x6e500
movq %rax, 0x58(%r12)
leaq 0x7(%rsp), %rax
movq %rax, 0x260(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x1e888
movq 0x8(%rax), %r15
movl $0x88, %esi
movq %r15, %rdi
callq 0x14042
movq %rax, %r15
leaq 0x108(%rsp), %r13
xorl %ebp, %ebp
leaq 0x260(%rsp), %r12
movq %rbp, 0x10(%r12)
movaps -0x18(%r13), %xmm0
movups %xmm0, 0x8(%rax)
movq -0x8(%r13), %rax
movq %rbp, -0x8(%r13)
movq %rax, 0x18(%r15)
movq %rbp, -0x10(%r13)
movups (%r13), %xmm0
movups 0xc(%r13), %xmm1
movups %xmm1, 0x2c(%r15)
movups %xmm0, 0x20(%r15)
movups 0x20(%r13), %xmm0
movups %xmm0, 0x40(%r15)
movq %r15, %rdi
addq $0x50, %rdi
movq %r14, %rsi
callq 0x13724
movq 0x58(%r13), %rax
movq %rax, 0x78(%r15)
leaq 0x4fbfc(%rip), %rax     # 0x6e500
movq %rax, 0x58(%r13)
leaq 0x19b3(%rip), %rax      # 0x202c2
movq %rax, (%r15)
movq %r15, 0x8(%rsp)
movq %rbp, 0x8(%r12)
movq %r12, %rdi
callq 0x203b2
leaq 0xc0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq *0x20(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1e943
xorl %esi, %esi
callq *(%rdi)
movq 0x148(%rsp), %rax
movq %r14, %rdi
callq *(%rax)
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x1e962
callq 0x14590
movq 0x1c8(%rsp), %rax
movq %rbx, %rdi
callq *(%rax)
movq 0x180(%rsp), %rdi
testq %rdi, %rdi
je 0x1e981
callq 0x14590
leaq 0xc0(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
leaq 0x200(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
leaq 0x230(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
leaq 0x278(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x1e9cb
callq 0x14590
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1eac6
jmp 0x1eac6
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1ea07
xorl %esi, %esi
callq *(%rdi)
jmp 0x1ea07
jmp 0x1eac6
jmp 0x1eac6
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x1fe4c
jmp 0x1ea19
movq %rax, %rbx
leaq 0x170(%rsp), %rdi
callq 0x1fe4c
jmp 0x1ea5b
jmp 0x1eac6
jmp 0x1eac6
jmp 0x1eac6
jmp 0x1eac6
jmp 0x1eac6
movq %rax, %rbx
jmp 0x1ea6c
movq %rax, %rbx
movq 0x180(%rsp), %rdi
testq %rdi, %rdi
je 0x1ea5b
callq 0x14590
leaq 0xc0(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
xorl %r14d, %r14d
leaq 0x200(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
jmp 0x1ea83
jmp 0x1eac6
jmp 0x1eac6
movq %rax, %rbx
leaq 0x230(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
leaq 0x278(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
testq %r14, %r14
je 0x1ead1
movq %r14, %rdi
callq 0x14590
jmp 0x1ead1
jmp 0x1eac6
jmp 0x1eac6
jmp 0x1eac6
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x205b2
jmp 0x1ead1
movq %rax, %rdi
callq 0xf7cb
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1eae0
callq 0x14590
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x1eaf2
callq 0x14590
movq %rbx, %rdi
callq 0xeb40