// File: /workspace/github_cpp_makefile_star2_O1/nurseiit[P]cpp-server/./include/asio/ip/basic_resolver_results.hpp
// Function: asio::ip::basic_resolver_results<asio::ip::tcp>::create(addrinfo*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static basic_resolver_results create(
      asio::detail::addrinfo_type* address_info,
      const std::string& host_name, const std::string& service_name)
  {
    basic_resolver_results results;
    if (!address_info)
      return results;

    std::string actual_host_name = host_name;
    if (address_info->ai_canonname)
      actual_host_name = address_info->ai_canonname;

    results.values_.reset(new values_type);

    while (address_info)
    {
      if (address_info->ai_family == ASIO_OS_DEF(AF_INET)
          || address_info->ai_family == ASIO_OS_DEF(AF_INET6))
      {
        using namespace std; // For memcpy.
        typename InternetProtocol::endpoint endpoint;
        endpoint.resize(static_cast<std::size_t>(address_info->ai_addrlen));
        memcpy(endpoint.data(), address_info->ai_addr,
            address_info->ai_addrlen);
        results.values_->push_back(
            basic_resolver_entry<InternetProtocol>(endpoint,
              actual_host_name, service_name));
      }
      address_info = address_info->ai_next;
    }

    return results;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
testq %rsi, %rsi
je 0xa50d
movq %rcx, %r14
movq %rsi, %r15
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x8d9e
movq 0x20(%r15), %r12
testq %r12, %r12
je 0xa435
movq %rsp, %r13
movq 0x8(%r13), %rbp
movq %r12, %rdi
callq 0x5170
movq %r13, %rdi
xorl %esi, %esi
movq %rbp, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x54d0
movl $0x18, %edi
callq 0x5320
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa6b0
leaq 0x20(%rsp), %r12
leaq 0x48(%rsp), %r13
movl 0x4(%r15), %eax
orl $0x8, %eax
cmpl $0xa, %eax
jne 0xa4ed
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movups %xmm0, 0x2c(%rsp)
movq $0x2, 0x20(%rsp)
movl 0x10(%r15), %esi
movq %r12, %rdi
callq 0xa6fa
movq 0x18(%r15), %rsi
movl 0x10(%r15), %edx
movq %r12, %rdi
callq 0x52b0
movq (%rbx), %rbp
movq %r13, %rdi
movq %r12, %rsi
movq %rsp, %rdx
movq %r14, %rcx
callq 0xa75e
movq %rbp, %rdi
movq %r13, %rsi
callq 0xa924
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xa4d9
callq 0x52f0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xa4ed
callq 0x52f0
movq 0x28(%r15), %r15
testq %r15, %r15
jne 0xa462
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xa50d
callq 0x52f0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0xa550
jmp 0xa52b
jmp 0xa52b
movq %rax, %r14
jmp 0xa53d
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0xa7d8
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xa550
callq 0x52f0
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xa55e
callq 0x8d2e
movq %r14, %rdi
callq 0x5540