// File: /workspace/github_cpp_makefile_star2_O1/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), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0xbff7
movq 0x8fbf(%rip), %rcx      # 0x14fa8
cmpb $0x0, (%rcx)
je 0xbff3
incl 0x8(%rax)
jmp 0xbff7
lock
incl 0x8(%rax)
movq 0x10(%r13), %rax
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
testq %rax, %rax
setne %cl
movq (%r14), %rdx
movb $0x1, %sil
movl %esi, 0xc(%rsp)
movq %rax, %rsi
orq %rdx, %rsi
je 0xc18f
leaq 0x8(%r12), %rsi
movq %rsi, 0x10(%rsp)
movq %r12, 0x18(%rsp)
cmpq %rdx, %rax
jne 0xc040
movq 0x10(%rbx), %rdx
cmpq 0x10(%r14), %rdx
je 0xc18f
movq 0x8(%rbx), %rbp
testq %rbp, %rbp
je 0xc05e
movq 0x8f58(%rip), %rdx      # 0x14fa8
cmpb $0x0, (%rdx)
je 0xc05a
incl 0x8(%rbp)
jmp 0xc05e
lock
incl 0x8(%rbp)
movq 0x10(%rbx), %rsi
movq (%r14), %rdx
movq 0x8(%r14), %r13
testq %r13, %r13
je 0xc085
movq 0x8f33(%rip), %rdi      # 0x14fa8
cmpb $0x0, (%rdi)
je 0xc080
incl 0x8(%r13)
jmp 0xc085
lock
incl 0x8(%r13)
movq 0x10(%r14), %r12
testq %rdx, %rdx
setne %dil
orb %dil, %cl
testb $0x1, %cl
je 0xc0a9
movq %rax, %rcx
xorq %rdx, %rcx
movq %rsi, %rdi
xorq %r12, %rdi
orq %rcx, %rdi
jne 0xc0b1
movq %r13, %rax
xorl %r13d, %r13d
jmp 0xc0bc
movq %rax, %rdx
movq %rsi, %r12
movq %rbp, %rax
xorl %ebp, %ebp
movq %rdx, (%rbx)
movq 0x8(%rbx), %rdi
movq %rax, 0x8(%rbx)
testq %rdi, %rdi
je 0xc0d1
callq 0x8d2e
movq %r12, 0x10(%rbx)
testq %r13, %r13
je 0xc0e2
movq %r13, %rdi
callq 0x8d2e
testq %rbp, %rbp
je 0xc0ef
movq %rbp, %rdi
callq 0x8d2e
movq (%rbx), %rax
movq (%r14), %rcx
movq %rax, %rdx
orq %rcx, %rdx
je 0xc18f
cmpq %rcx, %rax
jne 0xc110
movq 0x10(%rbx), %rax
cmpq 0x10(%r14), %rax
je 0xc18f
movq 0x18(%rsp), %r12
movq (%r12), %rdi
addq $0x28, %rdi
movq 0x10(%rsp), %rsi
movq %r15, %rdx
callq 0xc2da
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 0xc21e
cmpl $0x0, (%r15)
je 0xc1f6
movq %rbx, %rdi
callq 0xcbd4
movq (%rbx), %rax
testq %rax, %rax
setne %cl
movq (%r14), %rdx
movq %rdx, %rsi
orq %rax, %rsi
jne 0xc02d
movb $0x1, %al
movl %eax, 0xc(%rsp)
xorl %eax, %eax
testb %al, %al
jne 0xc1a3
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xc1a3
callq 0x8d2e
cmpb $0x0, 0xc(%rsp)
je 0xc1e4
cmpl $0x0, (%r15)
jne 0xc1bd
movq %r15, %rdi
movl $0x3, %esi
callq 0xc2aa
movq (%r14), %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x8(%r14), %rcx
movq %rax, 0x8(%r14)
movq %rcx, 0x8(%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
movb $0x1, %al
movl $0x0, 0xc(%rsp)
jmp 0xc191
jmp 0xc204
movq %rax, %r14
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xc215
callq 0x8d2e
movq %r14, %rdi
callq 0x5540
nop