// File: /workspace/github_cpp_makefile_star2_O3/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 $0x2a8, %rsp            # imm = 0x2A8
cmpb $0x1, 0x1a0(%rdi)
jne 0x26145
movq %rdi, %rbx
cmpq $0x0, 0x1a8(%rdi)
je 0x25c44
leaq 0x1a8(%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 0x25c05
callq 0x14590
leaq 0x90(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b0b4
movq %rbx, 0x30(%rsp)
movq (%r14), %rcx
movq 0x8(%r14), %rax
movq %rcx, 0x38(%rsp)
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x25c61
movq 0x4b346(%rip), %rcx     # 0x70f80
cmpb $0x0, (%rcx)
je 0x25c5d
incl 0x8(%rax)
jmp 0x25c61
movq %rbx, %rdi
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x26274
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 0x486a2(%rip), %rax     # 0x6e330
movq %rax, 0x18(%rsp)
leaq 0x70(%rbx), %r14
cmpl $-0x1, 0x70(%rbx)
jne 0x25e3b
xorl %eax, %eax
cmpw $0x2, 0x70(%rsp)
setne %al
leal 0x2(,%rax,8), %eax
leaq 0xf0(%rsp), %rdx
movl %eax, (%rdx)
movq 0x68(%rbx), %rdi
leaq 0x10(%rsp), %rcx
movq %r14, %rsi
callq 0x224fc
testb $0x1, 0x14(%rsp)
je 0x25e3b
leaq 0x38(%rsp), %rax
addq $0x88, %rbx
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 0x29b88(%rip), %rdx     # 0x4f8e3
leaq 0x200(%rsp), %rdi
movq %rax, %rsi
callq *%rbx
leaq 0x28d15(%rip), %rsi     # 0x4ea84
leaq 0x29b6e(%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 0x25f69
leaq 0x2ca0(%rip), %rsi      # 0x28ac4
leaq 0xc0(%rsp), %rdi
leaq 0x170(%rsp), %rdx
callq *%rax
jmp 0x260dc
movq 0x68(%rbx), %r15
leaq 0x30(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x25e60
movq 0x8(%rax), %rdi
jmp 0x25e62
xorl %edi, %edi
movl $0xa8, %esi
callq 0x136c4
movq %rax, %r12
addq $0x88, %rbx
movq %rax, 0xf8(%rsp)
movl (%r14), %eax
xorl %ecx, %ecx
movq %rcx, (%r12)
leaq 0x31da(%rip), %rdx      # 0x29068
movq %rdx, 0x8(%r12)
movl $0x0, 0x10(%r12)
movups 0x30(%r15), %xmm0
movups %xmm0, 0x18(%r12)
movq %rcx, 0x28(%r12)
leaq -0x326d(%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 0x291e6
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x26133
callq 0x14590
jmp 0x26133
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 0x48522(%rip), %rax     # 0x6e500
movq %rax, 0x58(%r12)
leaq 0x7(%rsp), %rax
movq %rax, 0x260(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x26002
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 0x48482(%rip), %rax     # 0x6e500
movq %rax, 0x58(%r13)
leaq 0x2e6d(%rip), %rax      # 0x28ef6
movq %rax, (%r15)
movq %r15, 0x8(%rsp)
movq %rbp, 0x8(%r12)
movq %r12, %rdi
callq 0x28fe6
leaq 0xc0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq *0x20(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x260bd
xorl %esi, %esi
callq *(%rdi)
movq 0x148(%rsp), %rax
movq %r14, %rdi
callq *(%rax)
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x260dc
callq 0x14590
movq 0x1c8(%rsp), %rax
movq %rbx, %rdi
callq *(%rax)
movq 0x180(%rsp), %rdi
testq %rdi, %rdi
je 0x260fb
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 0x26145
callq 0x14590
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x26240
jmp 0x26240
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x26181
xorl %esi, %esi
callq *(%rdi)
jmp 0x26181
jmp 0x26240
jmp 0x26240
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x28a9c
jmp 0x26193
movq %rax, %rbx
leaq 0x170(%rsp), %rdi
callq 0x28a9c
jmp 0x261d5
jmp 0x26240
jmp 0x26240
jmp 0x26240
jmp 0x26240
jmp 0x26240
movq %rax, %rbx
jmp 0x261e6
movq %rax, %rbx
movq 0x180(%rsp), %rdi
testq %rdi, %rdi
je 0x261d5
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 0x261fd
jmp 0x26240
jmp 0x26240
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 0x2624b
movq %r14, %rdi
callq 0x14590
jmp 0x2624b
jmp 0x26240
jmp 0x26240
jmp 0x26240
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x291e6
jmp 0x2624b
movq %rax, %rdi
callq 0xf7cb
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x2625a
callq 0x14590
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x2626c
callq 0x14590
movq %rbx, %rdi
callq 0xeb40