// File: /workspace/github_cpp_makefile_star2_O1/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 $0x298, %rsp            # imm = 0x298
movq %rdi, %rbx
cmpq $0x0, 0x3d0(%rdi)
je 0x1fba0
leaq 0x3d0(%rbx), %rsi
leaq 0xe8(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x22d12
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, 0x60(%rsp)
movups %xmm1, 0x6c(%rsp)
testq %rdi, %rdi
je 0x1fb60
callq 0x1581a
leaq 0x8(%rbx), %rsi
leaq 0x80(%rsp), %r14
movq %r14, %rdi
callq 0x19994
movq %rbx, 0x20(%rsp)
movq (%r14), %rcx
movq 0x8(%r14), %rax
movq %rcx, 0x28(%rsp)
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x1fbbd
movq 0x533ea(%rip), %rcx     # 0x72f80
cmpb $0x0, (%rcx)
je 0x1fbb9
incl 0x8(%rax)
jmp 0x1fbbd
movq %rbx, %rdi
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x129ce
lock
incl 0x8(%rax)
movups 0x6c(%rsp), %xmm0
movups %xmm0, 0x44(%rsp)
movaps 0x60(%rsp), %xmm0
movups %xmm0, 0x38(%rsp)
movl $0x0, 0x10(%rsp)
movb $0x0, 0x14(%rsp)
leaq 0x5062b(%rip), %rax     # 0x70210
movq %rax, 0x18(%rsp)
leaq 0x318(%rbx), %r14
cmpl $-0x1, 0x318(%rbx)
jne 0x1fc2a
xorl %eax, %eax
cmpw $0x2, 0x60(%rsp)
setne %al
leal 0x2(,%rax,8), %eax
leaq 0xe8(%rsp), %rdx
movl %eax, (%rdx)
movq 0x310(%rbx), %rdi
leaq 0x10(%rsp), %rcx
movq %r14, %rsi
callq 0x23cfc
leaq 0x38(%rsp), %r13
cmpb $0x1, 0x14(%rsp)
jne 0x1fd9d
leaq 0x28(%rsp), %rax
addq $0x330, %rbx            # imm = 0x330
movq -0x8(%rax), %r12
movq (%rax), %rbp
movq 0x8(%rax), %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups (%r13), %xmm0
movups 0xc(%r13), %xmm1
movups %xmm1, 0x9c(%rsp)
movaps %xmm0, 0x90(%rsp)
movups 0x10(%rsp), %xmm0
movups %xmm0, 0x1e0(%rsp)
leaq 0x268(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x24128
leaq 0x220(%rsp), %rdi
movq %r15, %rsi
callq 0x24128
movq 0x10(%r15), %rax
movq 0x28(%r15), %rcx
movq 0x20(%rcx), %rbx
movq %r15, %rdi
callq *0x18(%rax)
leaq 0x31b99(%rip), %rdx     # 0x51853
leaq 0x1f0(%rsp), %rdi
movq %rax, %rsi
callq *%rbx
leaq 0x30d16(%rip), %rsi     # 0x509e4
leaq 0x31b7f(%rip), %rcx     # 0x51854
leaq 0xb8(%rsp), %rdi
leaq 0x1f0(%rsp), %rdx
leaq 0x6(%rsp), %r8
callq 0x240b8
leaq 0x1e0(%rsp), %rax
movq %r12, 0x160(%rsp)
movq %rbp, 0x168(%rsp)
movq %r14, 0x170(%rsp)
movups 0x9c(%rsp), %xmm0
movups %xmm0, 0x184(%rsp)
movaps 0x90(%rsp), %xmm0
movups %xmm0, 0x178(%rsp)
movups (%rax), %xmm0
movups %xmm0, 0x198(%rsp)
leaq 0x220(%rsp), %rdi
movq 0x10(%rdi), %rax
movq 0x28(%rdi), %rcx
movq 0x58(%rcx), %r14
callq *0x18(%rax)
leaq 0x1a8(%rsp), %rbx
leaq 0xe8(%rsp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq *%r14
movq 0xd8(%rsp), %rcx
movq 0x18(%rcx), %rax
testq %rax, %rax
je 0x1fed1
leaq 0x1812(%rip), %rsi      # 0x21598
leaq 0xb8(%rsp), %rdi
leaq 0x160(%rsp), %rdx
callq *%rax
jmp 0x20049
movq 0x310(%rbx), %r15
leaq 0x20(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x1fdc5
movq 0x8(%rax), %rdi
jmp 0x1fdc7
xorl %edi, %edi
movl $0xa8, %esi
callq 0x148a2
movq %rax, %r12
addq $0x330, %rbx            # imm = 0x330
movq %rax, 0xf0(%rsp)
xorl %eax, %eax
movq %rax, 0xf8(%rsp)
movl (%r14), %ecx
movq %rax, (%r12)
leaq 0x1d89(%rip), %rdx      # 0x21b84
movq %rdx, 0x8(%r12)
movl $0x0, 0x10(%r12)
movups 0x30(%r15), %xmm0
movups %xmm0, 0x18(%r12)
movq %rax, 0x28(%r12)
leaq 0x4744(%rip), %rdx      # 0x24564
movq %rdx, 0x30(%r12)
movl %ecx, 0x38(%r12)
movq 0x20(%rsp), %rcx
movq %rcx, 0x40(%r12)
movq 0x28(%rsp), %rcx
movq %rcx, 0x48(%r12)
movq %rax, 0x50(%r12)
movq 0x30(%rsp), %rcx
movq %rax, 0x30(%rsp)
movq %rcx, 0x50(%r12)
movq %rax, 0x28(%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 0x15310
addq $0x28, %r15
movq %r12, 0xf8(%rsp)
leaq 0x60(%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 0x242de
leaq 0xf0(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0xe8(%rsp), %rdi
callq 0x21d14
jmp 0x200a0
leaq 0x178(%rsp), %r15
movq 0x10(%rcx), %rax
movq %rax, 0x58(%rsp)
movq -0x18(%r15), %rax
leaq 0x130(%rsp), %r14
movq %rax, -0x48(%r14)
movups -0x10(%r15), %xmm0
movups %xmm0, -0x40(%r14)
xorps %xmm0, %xmm0
movups %xmm0, -0x10(%r15)
movups (%r15), %xmm0
movups 0xc(%r15), %xmm1
movups %xmm0, -0x30(%r14)
movups %xmm1, -0x24(%r14)
movups 0x20(%r15), %xmm0
movups %xmm0, -0x10(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1491c
movq 0x58(%r15), %rax
movq %rax, 0x28(%r14)
leaq 0x504a5(%rip), %rax     # 0x703e0
movq %rax, 0x58(%r15)
leaq 0x7(%rsp), %rax
movq %rax, 0x250(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x1ff60
movq 0x8(%rax), %rdi
jmp 0x1ff62
xorl %edi, %edi
movl $0x88, %esi
callq 0x15294
movq %rax, %r15
leaq 0x100(%rsp), %r13
leaq 0x250(%rsp), %r12
movq %rax, 0x8(%r12)
xorl %ebp, %ebp
movq %rbp, 0x10(%r12)
movq -0x18(%r13), %rax
movq %rax, 0x8(%r15)
movq -0x10(%r13), %rax
movq %rax, 0x10(%r15)
movq %rbp, 0x18(%r15)
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 0x1491c
movq 0x58(%r13), %rax
movq %rax, 0x78(%r15)
leaq 0x503f5(%rip), %rax     # 0x703e0
movq %rax, 0x58(%r13)
leaq 0x1a0c(%rip), %rax      # 0x21a02
movq %rax, (%r15)
movq %r15, 0x8(%rsp)
movq %rbp, 0x8(%r12)
movq %r12, %rdi
callq 0x21afe
leaq 0xb8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq *0x58(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2002a
xorl %esi, %esi
callq *(%rdi)
movq 0x140(%rsp), %rax
movq %r14, %rdi
callq *(%rax)
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x20049
callq 0x1581a
movq 0x1b8(%rsp), %rax
movq %rbx, %rdi
callq *(%rax)
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0x20068
callq 0x1581a
leaq 0xb8(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
leaq 0x1f0(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
leaq 0x220(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
leaq 0x268(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x200af
callq 0x1581a
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x200c1
callq 0x1581a
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x201f5
jmp 0x201f5
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x200fd
xorl %esi, %esi
callq *(%rdi)
jmp 0x200fd
jmp 0x201f5
jmp 0x201f5
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x21570
jmp 0x2010f
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0x21570
jmp 0x20199
jmp 0x201f5
jmp 0x201f5
jmp 0x201f5
jmp 0x201f5
jmp 0x201f5
jmp 0x201f5
movq %rax, %rbx
jmp 0x201aa
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x21d14
jmp 0x2015b
jmp 0x201f5
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2016a
callq 0x1581a
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x2017c
callq 0x1581a
movq %rbx, %rdi
callq 0xfb40
movq %rax, %rbx
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0x20199
callq 0x1581a
leaq 0xb8(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
xorl %r14d, %r14d
leaq 0x1f0(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
jmp 0x201c1
jmp 0x201f5
jmp 0x201f5
movq %rax, %rbx
leaq 0x220(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
leaq 0x268(%rsp), %rdi
movq 0x10(%rdi), %rax
callq *(%rax)
testq %r14, %r14
je 0x2015b
movq %r14, %rdi
callq 0x1581a
jmp 0x2015b
jmp 0x201f5
movq %rax, %rdi
callq 0x10886
nop