// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/amrfinder_update.cpp
// Function: (anonymous namespace)::getLatestDataVersion(CURL_sp::Curl&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string getLatestDataVersion (Curl &curl,
                             const string &minor)
// Return: empty() <=> failure
{
  StringVector dir (curl. read (URL + minor + "/"), '\n', true);
  if (verbose ())
  {
    save (cout, dir, '\n');
    cout << endl;
  }
    
  Vector<DataVersion> dataVersions;  
  for (string& line : dir)
  #if HTTPS
    if (isLeft (line, "<a href="))
      try
      {
        const size_t pos1 = line. find ('>');
        QC_ASSERT (pos1 != string::npos);
        line. erase (0, pos1 + 1);

        const size_t pos2 = line. find ("/<");
        QC_ASSERT (pos2 != string::npos);
        line. erase (pos2);
        
    	  istringstream iss (line);
  		  DataVersion dv (iss);
  		  dataVersions << std::move (dv);
    	}
  		catch (...) {}
  #else
    if (! contains (line, " -> "))
    {
      trimTrailing (line);
      const size_t pos = line. rfind (' ');
      if (pos != string::npos)
      {
    	  istringstream iss (line. substr (pos + 1));
    	  try 
    	  {
    		  DataVersion dv (iss);
    		  dataVersions << std::move (dv);
    		}
  		  catch (...) {}    		
      }
    }
  #endif
  if (dataVersions. empty ())
    return noString;
    
  dataVersions. sort ();
  return dataVersions. back (). str ();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x4c368(%rip), %rsi     # 0x5b311
movq %rsp, %r14
movq %r14, %rdi
callq 0x1161c
leaq 0x50802(%rip), %rsi     # 0x5f7bd
movq %r14, %rdi
callq 0x95e0
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xefea
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xeff1
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rsi
leaq 0x20(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x138(%rsp), %rdi
movq %rbx, %rsi
callq 0x5a6a8
leaq 0x118(%rsp), %rdi
leaq 0x138(%rsp), %rsi
movl $0xa, %edx
movl $0x1, %ecx
callq 0x23e14
leaq 0x148(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0xf05e
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x9100
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xf075
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x9100
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf090
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
movq %r15, 0xc8(%rsp)
xorl %edi, %edi
callq 0x20aa4
testb %al, %al
je 0xf0ea
movq 0x66ea6(%rip), %rbx     # 0x75f50
leaq 0x118(%rsp), %rsi
movq %rbx, %rdi
movl $0xa, %edx
callq 0x1280c
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x9970
movsbl %al, %esi
movq 0x66e73(%rip), %rdi     # 0x75f50
callq 0x94b0
movq %rax, %rdi
callq 0x9420
xorps %xmm0, %xmm0
movups %xmm0, 0x29(%rsp)
movaps %xmm0, 0x20(%rsp)
movq 0x118(%rsp), %r14
movq 0x120(%rsp), %rax
movq %rax, 0x110(%rsp)
cmpq %rax, %r14
je 0xf817
movq %rsp, %r13
leaq 0x138(%rsp), %rbx
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
leaq 0x4c6f1(%rip), %rsi     # 0x5b827
leaq 0x4c6f2(%rip), %rdx     # 0x5b82f
callq 0x10cc2
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x9900
movq 0x140(%rsp), %rdx
cmpq 0x8(%rsp), %rdx
jne 0xf181
testq %rdx, %rdx
je 0xf186
movq (%rsp), %rsi
movq 0x138(%rsp), %rdi
callq 0x9630
testl %eax, %eax
sete %r15b
jmp 0xf189
xorl %r15d, %r15d
jmp 0xf189
movb $0x1, %r15b
movq 0x138(%rsp), %rdi
cmpq %r12, %rdi
je 0xf1a6
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x9100
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf1c1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
testb %r15b, %r15b
je 0xf2b7
movq %r12, %rbp
movq %r14, %rdi
movl $0x3e, %esi
xorl %edx, %edx
callq 0x99b0
movq %rax, %r12
callq 0x9930
movl $0x0, (%rax)
cmpq $-0x1, %r12
je 0xf2ce
movq %rax, %r15
incq %r12
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x9650
movl $0x2, %ecx
movq %r14, %rdi
leaq 0x4c664(%rip), %rsi     # 0x5b87a
xorl %edx, %edx
callq 0x92e0
movl $0x0, (%r15)
cmpq $-0x1, %rax
je 0xf376
movq 0x8(%r14), %rcx
cmpq %rax, %rcx
jb 0xf41e
movq %rbp, %r12
movq %rax, 0x8(%r14)
movq (%r14), %rcx
movb $0x0, (%rcx,%rax)
movq %rbx, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x93d0
movq %r13, %r15
movq %r13, %rdi
movq %rbx, %rsi
callq 0x33850
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x13362
movq 0x28(%rsp), %rax
subq 0x20(%rsp), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq $0x2, %rax
jb 0xf29b
movb $0x0, 0x38(%rsp)
movq %rbx, %rdi
movq 0x66d1b(%rip), %rsi     # 0x75fc0
callq 0x9840
leaq 0x1b0(%rsp), %rdi
callq 0x9660
addq $0x20, %r14
cmpq 0x110(%rsp), %r14
jne 0xf123
jmp 0xf817
callq 0x9750
testl %eax, %eax
jne 0xf89c
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
leaq 0xa8(%rsp), %rdi
leaq 0x4c1d6(%rip), %rsi     # 0x5b4d0
leaq 0x4c1ec(%rip), %rdx     # 0x5b4ed
callq 0x10cc2
leaq 0xd0(%rsp), %rdi
movl $0x92, %esi
callq 0x11774
leaq 0xf0(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x11471
leaq 0xf0(%rsp), %rdi
leaq 0x4c1aa(%rip), %rsi     # 0x5b4ee
callq 0x95e0
leaq 0x78(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf43b
movups (%rcx), %xmm0
leaq 0x78(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0xf448
callq 0x9750
testl %eax, %eax
jne 0xf89c
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
leaq 0xa8(%rsp), %rdi
leaq 0x4c12e(%rip), %rsi     # 0x5b4d0
leaq 0x4c144(%rip), %rdx     # 0x5b4ed
callq 0x10cc2
leaq 0xd0(%rsp), %rdi
movl $0x96, %esi
callq 0x11774
leaq 0xf0(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x11471
leaq 0xf0(%rsp), %rdi
leaq 0x4c102(%rip), %rsi     # 0x5b4ee
callq 0x95e0
leaq 0x78(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf4cc
movups (%rcx), %xmm0
leaq 0x78(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0xf4d9
leaq 0x4bdc3(%rip), %rdi     # 0x5b1e8
leaq 0x4c466(%rip), %rsi     # 0x5b892
movq %rax, %rdx
xorl %eax, %eax
callq 0x9060
jmp 0xf8a6
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x98(%rsp), %rax
movq %rax, 0x88(%rsp)
leaq 0x88(%rsp), %rdi
leaq 0x4c441(%rip), %rsi     # 0x5b8c0
leaq 0x4c484(%rip), %rdx     # 0x5b90a
callq 0x10cc2
leaq 0x88(%rsp), %rdi
leaq 0x4cb07(%rip), %rsi     # 0x5bfa1
callq 0x95e0
leaq 0x58(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf556
movups (%rcx), %xmm0
leaq 0x58(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0xf563
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x98(%rsp), %rax
movq %rax, 0x88(%rsp)
leaq 0x88(%rsp), %rdi
leaq 0x4c3b0(%rip), %rsi     # 0x5b8c0
leaq 0x4c3f3(%rip), %rdx     # 0x5b90a
callq 0x10cc2
leaq 0x88(%rsp), %rdi
leaq 0x4ca76(%rip), %rsi     # 0x5bfa1
callq 0x95e0
leaq 0x58(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf5bc
movups (%rcx), %xmm0
leaq 0x58(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0xf5c9
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r13, %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x11471
movq %r13, %rdi
leaq 0x4c2ce(%rip), %rsi     # 0x5b865
callq 0x95e0
movq %rbp, 0x138(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf622
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0xf635
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r13, %rdi
leaq 0x68(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x11471
movq %r13, %rdi
leaq 0x4c280(%rip), %rsi     # 0x5b87d
callq 0x95e0
movq %rbp, 0x138(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf65d
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0xf670
movq %rdx, 0x138(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x148(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x140(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x16073
jmp 0xf8a6
movq %rdx, 0x138(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x148(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x140(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x16073
jmp 0xf8a6
jmp 0xf69c
jmp 0xf6be
movq %rax, %r15
movq 0x138(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf6c1
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf6c1
movq %rax, %r15
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf6e3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf6e3
jmp 0xf6e0
movq %rax, %r15
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xf706
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf706
jmp 0xf703
movq %rax, %r15
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xf732
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf732
jmp 0xf72f
movq %rax, %r15
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xf755
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf755
jmp 0xf752
movq %rax, %r15
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0xf781
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf781
jmp 0xf77e
movq %rax, %r15
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xf7ad
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf7ad
jmp 0xf7aa
movq %rax, %r15
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xf802
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf802
jmp 0xf7ff
jmp 0xf7ff
jmp 0xf7da
movq %rax, %r15
movq %rbx, %rdi
movq 0x667d9(%rip), %rsi     # 0x75fc0
callq 0x9840
leaq 0x1b0(%rsp), %rdi
callq 0x9660
jmp 0xf802
jmp 0xf7ff
jmp 0xf7ff
movq %rax, %r15
movq %r15, %rdi
callq 0x9080
callq 0x9710
movq %rbp, %r12
jmp 0xf2b7
movq 0x20(%rsp), %rax
cmpq 0x28(%rsp), %rax
je 0xf848
leaq 0x20(%rsp), %rdi
callq 0x13236
movq 0xc8(%rsp), %rbx
movq 0x28(%rsp), %rsi
addq $-0x18, %rsi
movq %rbx, %rdi
callq 0x13296
jmp 0xf870
movq 0xc8(%rsp), %rbx
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x671ca(%rip), %rax     # 0x76a28
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x1107a
leaq 0x20(%rsp), %rdi
callq 0x13320
leaq 0x118(%rsp), %rdi
callq 0x11b30
movq %rbx, %rax
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %edi
callq 0x95f0
jmp 0xf911
movq %rax, %rbx
leaq 0x148(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf8d1
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf8d1
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xf8ed
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf8ed
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf94b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf94b
jmp 0xf911
movq %rax, %rbx
jmp 0xf93e
movq %rax, %rbx
jmp 0xf934
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf934
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
leaq 0x20(%rsp), %rdi
callq 0x13320
leaq 0x118(%rsp), %rdi
callq 0x11b30
movq %rbx, %rdi
callq 0x95b0
nop