// File: /workspace/github_cpp_makefile_star2_O1/flightaware[P]beast-splitter/beast_output.cc
// Function: beast::SocketConnector::try_next_endpoint()
void SocketConnector::try_next_endpoint() {
        if (!running) {
            return;
        }

        if (next_endpoint == tcp::resolver::iterator()) {
            // No more addresses to try
            schedule_reconnect();
            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 << host << ":" << port_or_service << ": 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
cmpb $0x1, 0x1a0(%rdi)
jne 0x27c51
movq %rdi, %rbx
cmpq $0x0, 0x1a8(%rdi)
je 0x2773c
leaq 0x1a8(%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 0x276fd
callq 0x1581a
leaq 0x80(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ce24
movq %rbx, 0x20(%rsp)
movq (%r14), %rcx
movq 0x8(%r14), %rax
movq %rcx, 0x28(%rsp)
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x27759
movq 0x4b84e(%rip), %rcx     # 0x72f80
cmpb $0x0, (%rcx)
je 0x27755
incl 0x8(%rax)
jmp 0x27759
movq %rbx, %rdi
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x27d8e
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 0x48a8f(%rip), %rax     # 0x70210
movq %rax, 0x18(%rsp)
leaq 0x70(%rbx), %r14
cmpl $-0x1, 0x70(%rbx)
jne 0x277bd
xorl %eax, %eax
cmpw $0x2, 0x60(%rsp)
setne %al
leal 0x2(,%rax,8), %eax
leaq 0xe8(%rsp), %rdx
movl %eax, (%rdx)
movq 0x68(%rbx), %rdi
leaq 0x10(%rsp), %rcx
movq %r14, %rsi
callq 0x23cfc
leaq 0x38(%rsp), %r13
cmpb $0x1, 0x14(%rsp)
jne 0x27930
leaq 0x28(%rsp), %rax
addq $0x88, %rbx
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 0x2a006(%rip), %rdx     # 0x51853
leaq 0x1f0(%rsp), %rdi
movq %rax, %rsi
callq *%rbx
leaq 0x29183(%rip), %rsi     # 0x509e4
leaq 0x29fec(%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 0x27a61
leaq 0x2dc7(%rip), %rsi      # 0x2a6e0
leaq 0xb8(%rsp), %rdi
leaq 0x160(%rsp), %rdx
callq *%rax
jmp 0x27bd9
movq 0x68(%rbx), %r15
leaq 0x20(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x27955
movq 0x8(%rax), %rdi
jmp 0x27957
xorl %edi, %edi
movl $0xa8, %esi
callq 0x148a2
movq %rax, %r12
addq $0x88, %rbx
movq %rax, 0xf0(%rsp)
xorl %eax, %eax
movq %rax, 0xf8(%rsp)
movl (%r14), %ecx
movq %rax, (%r12)
leaq 0x3325(%rip), %rdx      # 0x2acb0
movq %rdx, 0x8(%r12)
movl $0x0, 0x10(%r12)
movups 0x30(%r15), %xmm0
movups %xmm0, 0x18(%r12)
movq %rax, 0x28(%r12)
leaq -0x344c(%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 0x2ae40
jmp 0x27c30
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 0x48915(%rip), %rax     # 0x703e0
movq %rax, 0x58(%r15)
leaq 0x7(%rsp), %rax
movq %rax, 0x250(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x27af0
movq 0x8(%rax), %rdi
jmp 0x27af2
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 0x48865(%rip), %rax     # 0x703e0
movq %rax, 0x58(%r13)
leaq 0x2fa8(%rip), %rax      # 0x2ab2e
movq %rax, (%r15)
movq %r15, 0x8(%rsp)
movq %rbp, 0x8(%r12)
movq %r12, %rdi
callq 0x2ac2a
leaq 0xb8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq *0x58(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x27bba
xorl %esi, %esi
callq *(%rdi)
movq 0x140(%rsp), %rax
movq %r14, %rdi
callq *(%rax)
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x27bd9
callq 0x1581a
movq 0x1b8(%rsp), %rax
movq %rbx, %rdi
callq *(%rax)
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0x27bf8
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 0x27c3f
callq 0x1581a
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x27c51
callq 0x1581a
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x27d85
jmp 0x27d85
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x27c8d
xorl %esi, %esi
callq *(%rdi)
jmp 0x27c8d
jmp 0x27d85
jmp 0x27d85
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x2a6b8
jmp 0x27c9f
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0x2a6b8
jmp 0x27d29
jmp 0x27d85
jmp 0x27d85
jmp 0x27d85
jmp 0x27d85
jmp 0x27d85
jmp 0x27d85
movq %rax, %rbx
jmp 0x27d3a
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x2ae40
jmp 0x27ceb
jmp 0x27d85
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x27cfa
callq 0x1581a
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x27d0c
callq 0x1581a
movq %rbx, %rdi
callq 0xfb40
movq %rax, %rbx
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0x27d29
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 0x27d51
jmp 0x27d85
jmp 0x27d85
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 0x27ceb
movq %r14, %rdi
callq 0x1581a
jmp 0x27ceb
jmp 0x27d85
movq %rax, %rdi
callq 0x10886
nop