// File: /workspace/github_cpp_makefile_star2_O1/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 0x27566
cmpb $0x1, 0x4(%rsi)
jne 0x272ac
cmpl $0x7d, (%rsi)
jne 0x2728d
movq 0x8(%rsi), %rax
movabsq $-0x70502de1da3a1f65, %rcx # imm = 0x8FAFD21E25C5E09B
cmpq %rcx, 0x8(%rax)
je 0x27566
leaq 0x29e9d(%rip), %rdi     # 0x51131
leaq 0x2ab65(%rip), %rsi     # 0x51e00
leaq 0x2ab6e(%rip), %rcx     # 0x51e10
movl $0x185, %edx            # imm = 0x185
callq 0xf440
movq %rdi, %r14
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x2ce24
leaq 0x128(%r14), %rsi
leaq 0x148(%r14), %rdx
leaq 0x48(%rsp), %rdi
movl $0x20, %ecx
callq 0x22c3c
movq %r14, (%rsp)
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x2730b
movq 0x4bc83(%rip), %rcx     # 0x72f80
cmpb $0x0, (%rcx)
je 0x27307
incl 0x8(%rax)
jmp 0x2730b
lock
incl 0x8(%rax)
movq 0x20(%r14), %r15
movq %rsp, %rax
movq %rax, 0x18(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x2732b
movq 0x8(%rax), %rdi
jmp 0x2732d
xorl %edi, %edi
movl $0x100, %esi            # imm = 0x100
callq 0x148a2
movq %rax, %r12
movq %rax, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x28(%r14), %rax
movq 0x30(%r14), %rbx
testq %rbx, %rbx
je 0x2736a
movq 0x4bc24(%rip), %rcx     # 0x72f80
cmpb $0x0, (%rcx)
je 0x27366
incl 0xc(%rbx)
jmp 0x2736a
lock
incl 0xc(%rbx)
xorl %ecx, %ecx
movq 0x28(%r15), %rdx
movq %rdx, 0x40(%rsp)
movq $0x0, (%r12)
leaq 0x28e8(%rip), %rdx      # 0x29c6c
movq %rdx, 0x8(%r12)
movl %ecx, 0x10(%r12)
movl %ecx, 0x18(%r12)
movb $0x0, 0x1c(%r12)
leaq 0x48e70(%rip), %rcx     # 0x70210
movq %rcx, 0x20(%r12)
movq %rax, 0x28(%r12)
movq %rbx, 0x30(%r12)
testq %rbx, %rbx
je 0x273c9
movq 0x4bbc5(%rip), %rax     # 0x72f80
cmpb $0x0, (%rax)
je 0x273c5
incl 0xc(%rbx)
jmp 0x273c9
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 0x17760
leaq 0x88(%r12), %rdi
leaq 0x98(%r12), %rax
movq %rax, 0x88(%r12)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq %rsi, %rdx
callq 0x17760
addq $0x38, %r14
addq $0x28, %r15
movq 0x40(%rsp), %rax
movq %rax, 0xa8(%r12)
movq (%rsp), %rax
movq %rax, 0xb0(%r12)
movq 0x8(%rsp), %rax
movq %rax, 0xb8(%r12)
xorl %r13d, %r13d
movq %r13, 0xc0(%r12)
movq 0x10(%rsp), %rax
movq %r13, 0x10(%rsp)
movq %rax, 0xc0(%r12)
movq %r13, 0x8(%rsp)
movq %r12, %rdi
addq $0xc8, %rdi
movq %r14, %rsi
callq 0x15310
movq %r13, 0xf8(%r12)
movq %r12, 0x28(%rsp)
testq %rbx, %rbx
je 0x274e4
movq 0x4bac4(%rip), %rax     # 0x72f80
cmpb $0x0, (%rax)
je 0x274cc
movl 0xc(%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rbx)
jmp 0x274d6
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rbx)
cmpl $0x1, %eax
jne 0x274e4
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x23024
leaq 0x20(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x18(%rsp), %rdi
callq 0x2a25a
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x27515
callq 0x1581a
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27536
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xf650
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27557
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xf650
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x27566
callq 0x1581a
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x27623
movq %rax, %r14
jmp 0x275df
movq %rax, %r14
movq (%r13), %rdi
cmpq %rbp, %rdi
je 0x2759f
movq (%rbp), %rsi
incq %rsi
callq 0xf650
jmp 0x2759f
movq %rax, %r14
addq $0x28, %r12
movq %r12, %rdi
callq 0x22fee
testq %rbx, %rbx
je 0x275df
movq 0x4b9c9(%rip), %rax     # 0x72f80
cmpb $0x0, (%rax)
jne 0x275c8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rbx)
jmp 0x275d1
movl 0xc(%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rbx)
cmpl $0x1, %eax
jne 0x275df
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
leaq 0x18(%rsp), %rdi
callq 0x2a25a
jmp 0x275ee
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x275fd
callq 0x1581a
leaq 0x48(%rsp), %rdi
callq 0x22cda
jmp 0x2760c
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2761b
callq 0x1581a
movq %r14, %rdi
callq 0xfb40
movq %rax, %rdi
callq 0x10886
nop