// File: /workspace/github_cpp_makefile_star2_O3/flightaware[P]beast-splitter/beast_output.cc
// Function: beast::SocketConnector::resolve_and_connect(boost::system::error_code const&)
void SocketConnector::resolve_and_connect(const boost::system::error_code &ec) {
        if (!running) {
            return;
        }

        if (ec) {
            assert(ec == boost::asio::error::operation_aborted);
            return;
        }

        auto self(shared_from_this());

        tcp::resolver::query query(host, port_or_service);
        resolver.async_resolve(query, [this, self](const boost::system::error_code &ec, tcp::resolver::iterator it) {
            if (!ec) {
                next_endpoint = it;
                try_next_endpoint();
            } else if (ec == boost::asio::error::operation_aborted) {
                return;
            } else {
                std::cerr << host << ":" << port_or_service << ": could not resolve address: " << ec.message() << std::endl;
                schedule_reconnect();
                return;
            }
        });
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
cmpb $0x1, 0x1a0(%rdi)
jne 0x25a6e
cmpb $0x1, 0x4(%rsi)
jne 0x257c8
cmpl $0x7d, (%rsi)
jne 0x257a9
movq 0x8(%rsi), %rax
movabsq $-0x70502de1da3a1f65, %rcx # imm = 0x8FAFD21E25C5E09B
cmpq %rcx, 0x8(%rax)
je 0x25a6e
leaq 0x29a11(%rip), %rdi     # 0x4f1c1
leaq 0x2a699(%rip), %rsi     # 0x4fe50
leaq 0x2a6a2(%rip), %rcx     # 0x4fe60
movl $0x185, %edx            # imm = 0x185
callq 0xe440
movq %rdi, %r14
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x2b0b4
leaq 0x128(%r14), %rsi
leaq 0x148(%r14), %rdx
leaq 0x48(%rsp), %rdi
movl $0x20, %ecx
callq 0x2142c
movq %r14, (%rsp)
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x25827
movq 0x4b767(%rip), %rcx     # 0x70f80
cmpb $0x0, (%rcx)
je 0x25823
incl 0x8(%rax)
jmp 0x25827
lock
incl 0x8(%rax)
movq 0x20(%r14), %r15
movq %rsp, %rax
movq %rax, 0x18(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x25847
movq 0x8(%rax), %rdi
jmp 0x25849
xorl %edi, %edi
movl $0x100, %esi            # imm = 0x100
callq 0x136c4
movq %rax, %r12
movq %rax, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x28(%r14), %rax
movq 0x30(%r14), %rbx
testq %rbx, %rbx
je 0x25886
movq 0x4b708(%rip), %rcx     # 0x70f80
cmpb $0x0, (%rcx)
je 0x25882
incl 0xc(%rbx)
jmp 0x25886
lock
incl 0xc(%rbx)
xorl %ecx, %ecx
movq 0x28(%r15), %rdx
movq %rdx, 0x40(%rsp)
movq $0x0, (%r12)
leaq 0x27c4(%rip), %rdx      # 0x28064
movq %rdx, 0x8(%r12)
movl %ecx, 0x10(%r12)
movl %ecx, 0x18(%r12)
movb $0x0, 0x1c(%r12)
leaq 0x48a74(%rip), %rcx     # 0x6e330
movq %rcx, 0x20(%r12)
movq %rax, 0x28(%r12)
movq %rbx, 0x30(%r12)
testq %rbx, %rbx
je 0x258e5
movq 0x4b6a9(%rip), %rax     # 0x70f80
cmpb $0x0, (%rax)
je 0x258e1
incl 0xc(%rbx)
jmp 0x258e5
lock
incl 0xc(%rbx)
movups 0x48(%rsp), %xmm0
movups 0x58(%rsp), %xmm1
movups 0x68(%rsp), %xmm2
movups %xmm2, 0x58(%r12)
movups %xmm1, 0x48(%r12)
movups %xmm0, 0x38(%r12)
leaq 0x68(%r12), %r13
leaq 0x78(%r12), %rbp
movq %rbp, 0x68(%r12)
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x1640a
leaq 0x88(%r12), %rdi
leaq 0x98(%r12), %rax
movq %rax, 0x88(%r12)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq %rsi, %rdx
callq 0x1640a
addq $0x38, %r14
addq $0x28, %r15
movq 0x40(%rsp), %rax
movq %rax, 0xa8(%r12)
movaps (%rsp), %xmm0
movups %xmm0, 0xb0(%r12)
movq 0x10(%rsp), %rax
xorl %r13d, %r13d
movq %r13, 0x10(%rsp)
movq %rax, 0xc0(%r12)
movq %r13, 0x8(%rsp)
movq %r12, %rdi
addq $0xc8, %rdi
movq %r14, %rsi
callq 0x140a4
movq %r13, 0xf8(%r12)
movq %r12, 0x28(%rsp)
testq %rbx, %rbx
je 0x259ec
movq 0x4b5bc(%rip), %rax     # 0x70f80
cmpb $0x0, (%rax)
je 0x259d4
movl 0xc(%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rbx)
jmp 0x259de
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rbx)
cmpl $0x1, %eax
jne 0x259ec
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x217fe
leaq 0x20(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x18(%rsp), %rdi
callq 0x28658
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x25a1d
callq 0x14590
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25a3e
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xe650
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25a5f
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xe650
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x25a6e
callq 0x14590
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25b2b
movq %rax, %r14
jmp 0x25ae7
movq %rax, %r14
movq (%r13), %rdi
cmpq %rbp, %rdi
je 0x25aa7
movq (%rbp), %rsi
incq %rsi
callq 0xe650
jmp 0x25aa7
movq %rax, %r14
addq $0x28, %r12
movq %r12, %rdi
callq 0x217c8
testq %rbx, %rbx
je 0x25ae7
movq 0x4b4c1(%rip), %rax     # 0x70f80
cmpb $0x0, (%rax)
jne 0x25ad0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rbx)
jmp 0x25ad9
movl 0xc(%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rbx)
cmpl $0x1, %eax
jne 0x25ae7
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
leaq 0x18(%rsp), %rdi
callq 0x28658
jmp 0x25af6
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x25b05
callq 0x14590
leaq 0x48(%rsp), %rdi
callq 0x214ca
jmp 0x25b14
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x25b23
callq 0x14590
movq %r14, %rdi
callq 0xeb40
movq %rax, %rdi
callq 0xf7cb
nop