// File: /workspace/github_cpp_makefile_star2_O3/nurseiit[P]cpp-server/./include/asio/impl/connect.hpp
// Function: asio::ip::basic_resolver_iterator<asio::ip::tcp> asio::connect<asio::ip::tcp, asio::executor, asio::ip::basic_resolver_iterator<asio::ip::tcp>, asio::detail::default_connect_condition>(asio::basic_socket<asio::ip::tcp, asio::executor>&, asio::ip::basic_resolver_iterator<asio::ip::tcp>, asio::ip::basic_resolver_iterator<asio::ip::tcp>, asio::detail::default_connect_condition, std::error_code&)
Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin,
    Iterator end, ConnectCondition connect_condition,
    asio::error_code& ec)
{
  ec = asio::error_code();

  for (Iterator iter = begin; iter != end; ++iter)
  {
    iter = (detail::call_connect_condition(connect_condition, ec, iter, end));
    if (iter != end)
    {
      s.close(ec);
      s.connect(*iter, ec);
      if (!ec)
        return iter;
    }
    else
      break;
  }

  if (!ec)
    ec = asio::error::not_found;

  return end;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r15
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
callq 0x51d0
movl $0x0, (%r15)
movq %rax, 0x8(%r15)
movq (%r13), %rax
movq %rax, (%rbx)
movq 0x8(%r13), %rcx
movq %rcx, 0x8(%rbx)
testq %rcx, %rcx
je 0xbe73
movq 0x8146(%rip), %rdx      # 0x13fa8
cmpb $0x0, (%rdx)
je 0xbe6c
incl 0x8(%rcx)
jmp 0xbe73
lock
incl 0x8(%rcx)
movq (%rbx), %rax
movq 0x10(%r13), %rcx
movq %rcx, 0x10(%rbx)
testq %rax, %rax
setne %cl
movq (%r14), %rdx
movq %rax, %rsi
orq %rdx, %rsi
je 0xc015
leaq 0x8(%r12), %rsi
movq %rsi, 0x8(%rsp)
movq %r15, 0x10(%rsp)
cmpq %rdx, %rax
jne 0xbeb2
movq 0x10(%rbx), %rdx
cmpq 0x10(%r14), %rdx
je 0xc015
movq 0x8(%rbx), %rbp
testq %rbp, %rbp
je 0xbed0
movq 0x80e6(%rip), %rdx      # 0x13fa8
cmpb $0x0, (%rdx)
je 0xbecc
incl 0x8(%rbp)
jmp 0xbed0
lock
incl 0x8(%rbp)
movq 0x10(%rbx), %rdx
movq %rdx, (%rsp)
movq (%r14), %rdx
movq 0x8(%r14), %r13
testq %r13, %r13
je 0xbefb
movq 0x80bd(%rip), %rsi      # 0x13fa8
cmpb $0x0, (%rsi)
je 0xbef6
incl 0x8(%r13)
jmp 0xbefb
lock
incl 0x8(%r13)
movq %r12, %r15
movq 0x10(%r14), %r12
movq %r12, 0x18(%rsp)
testq %rdx, %rdx
setne %sil
orb %sil, %cl
testb $0x1, %cl
je 0xbf2b
movq %rax, %rsi
xorq %rdx, %rsi
movq (%rsp), %rcx
movq %rcx, %rdi
xorq %r12, %rdi
orq %rsi, %rdi
jne 0xbf38
movq %r13, %rax
xorl %r13d, %r13d
leaq 0x18(%rsp), %rcx
jmp 0xbf46
movq %rax, %rdx
movq %rcx, %r12
movq %rbp, %rax
xorl %ebp, %ebp
movq %rsp, %rcx
movq $0x0, (%rcx)
movq %rdx, (%rbx)
movq 0x8(%rbx), %rdi
movq %rax, 0x8(%rbx)
testq %rdi, %rdi
je 0xbf62
callq 0x8ca0
movq %r12, 0x10(%rbx)
testq %r13, %r13
je 0xbf73
movq %r13, %rdi
callq 0x8ca0
testq %rbp, %rbp
movq %r15, %r12
je 0xbf83
movq %rbp, %rdi
callq 0x8ca0
movq (%rbx), %rax
movq (%r14), %rcx
movq %rax, %rdx
orq %rcx, %rdx
movq 0x10(%rsp), %r15
je 0xc015
cmpq %rcx, %rax
jne 0xbfa5
movq 0x10(%rbx), %rax
cmpq 0x10(%r14), %rax
je 0xc015
movq (%r12), %rdi
addq $0x28, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
callq 0xc142
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movq (%rax), %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x5, %rcx
movups (%rax,%rcx), %xmm0
movups 0xc(%rax,%rcx), %xmm1
movups %xmm1, 0x2c(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %r12, %rdi
leaq 0x20(%rsp), %rsi
movq %r15, %rdx
callq 0xc080
cmpl $0x0, (%r15)
je 0xc052
movq %rbx, %rdi
callq 0xca18
movq (%rbx), %rax
testq %rax, %rax
setne %cl
movq (%r14), %rdx
movq %rdx, %rsi
orq %rax, %rsi
jne 0xbe9f
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xc023
callq 0x8ca0
cmpl $0x0, (%r15)
jne 0xc036
movq %r15, %rdi
movl $0x3, %esi
callq 0xc112
movups (%r14), %xmm0
xorl %eax, %eax
movq %rax, 0x8(%r14)
movups %xmm0, (%rbx)
movq %rax, (%r14)
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x10(%r14)
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc066
movq %rax, %r14
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xc077
callq 0x8ca0
movq %r14, %rdi
callq 0x5540
nop