// File: /workspace/github_cpp_makefile_star2_O3/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 $0x2a8, %rsp            # imm = 0x2A8
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x4c378(%rip), %rsi     # 0x5b311
movq %rsp, %r14
movq %r14, %rdi
callq 0x1162c
leaq 0x50802(%rip), %rsi     # 0x5f7ad
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 0xefda
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xefe1
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 0x128(%rsp), %rdi
movq %rbx, %rsi
callq 0x5a64c
leaq 0x108(%rsp), %rdi
leaq 0x128(%rsp), %rsi
movl $0xa, %edx
movl $0x1, %ecx
callq 0x23c02
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf04d
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x9100
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xf064
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x9100
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf07f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
xorl %edi, %edi
callq 0x208af
testb %al, %al
je 0xf0d1
movq 0x66ebf(%rip), %rbx     # 0x75f50
leaq 0x108(%rsp), %rsi
movq %rbx, %rdi
movl $0xa, %edx
callq 0x127f8
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x9970
movsbl %al, %esi
movq 0x66e8c(%rip), %rdi     # 0x75f50
callq 0x94b0
movq %rax, %rdi
callq 0x9420
xorps %xmm0, %xmm0
movups %xmm0, 0x29(%rsp)
movaps %xmm0, 0x20(%rsp)
movq 0x108(%rsp), %r14
movq 0x110(%rsp), %r13
cmpq %r13, %r14
je 0xf860
movq %r15, 0x100(%rsp)
movq %rsp, %rbp
leaq 0x128(%rsp), %rbx
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rbp, %rdi
leaq 0x4c70a(%rip), %rsi     # 0x5b827
leaq 0x4c70b(%rip), %rdx     # 0x5b82f
callq 0x10cc8
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x9900
movq 0x130(%rsp), %rdx
cmpq 0x8(%rsp), %rdx
jne 0xf16b
movq 0x128(%rsp), %r15
testq %rdx, %rdx
je 0xf178
movq (%rsp), %rsi
movq %r15, %rdi
callq 0x9630
testl %eax, %eax
sete %r12b
jmp 0xf17b
movq 0x128(%rsp), %r15
xorl %r12d, %r12d
jmp 0xf17b
movb $0x1, %r12b
leaq 0x138(%rsp), %rax
cmpq %rax, %r15
je 0xf19b
movq 0x138(%rsp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x9100
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf1b6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
testb %r12b, %r12b
je 0xf2a3
movq %r14, %rdi
movl $0x3e, %esi
xorl %edx, %edx
callq 0x99b0
movq %rax, %r12
callq 0x9930
movl $0x0, (%rax)
cmpq $-0x1, %r12
je 0xf2b5
movq %rax, %r15
incq %r12
movq %r14, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x9650
movl $0x2, %ecx
movq %r14, %rdi
leaq 0x4c672(%rip), %rsi     # 0x5b87a
xorl %edx, %edx
callq 0x92e0
movl $0x0, (%r15)
cmpq $-0x1, %rax
je 0xf35d
movq 0x8(%r14), %rcx
cmpq %rax, %rcx
jb 0xf405
movq %rax, 0x8(%r14)
movq (%r14), %rcx
movb $0x0, (%rcx,%rax)
movq %rbx, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x93d0
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x3359c
leaq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x13354
movq 0x28(%rsp), %rax
subq 0x20(%rsp), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq $0x2, %rax
jb 0xf287
movb $0x0, 0x38(%rsp)
movq %rbx, %rdi
movq 0x66d2f(%rip), %rsi     # 0x75fc0
callq 0x9840
leaq 0x1a0(%rsp), %rdi
callq 0x9660
addq $0x20, %r14
cmpq %r13, %r14
jne 0xf10a
jmp 0xf82f
callq 0x9750
testl %eax, %eax
jne 0xf8a9
leaq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
leaq 0xa0(%rsp), %rdi
leaq 0x4c1ef(%rip), %rsi     # 0x5b4d0
leaq 0x4c205(%rip), %rdx     # 0x5b4ed
callq 0x10cc8
leaq 0xc0(%rsp), %rdi
movl $0x92, %esi
callq 0x11784
leaq 0xe0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x11481
leaq 0xe0(%rsp), %rdi
leaq 0x4c1c3(%rip), %rsi     # 0x5b4ee
callq 0x95e0
leaq 0x70(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf422
movups (%rcx), %xmm0
leaq 0x70(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0xf42f
callq 0x9750
testl %eax, %eax
jne 0xf8a9
leaq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
leaq 0xa0(%rsp), %rdi
leaq 0x4c147(%rip), %rsi     # 0x5b4d0
leaq 0x4c15d(%rip), %rdx     # 0x5b4ed
callq 0x10cc8
leaq 0xc0(%rsp), %rdi
movl $0x96, %esi
callq 0x11784
leaq 0xe0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x11481
leaq 0xe0(%rsp), %rdi
leaq 0x4c11b(%rip), %rsi     # 0x5b4ee
callq 0x95e0
leaq 0x70(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf4b3
movups (%rcx), %xmm0
leaq 0x70(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0xf4c0
leaq 0x4bddc(%rip), %rdi     # 0x5b1e8
leaq 0x4c47f(%rip), %rsi     # 0x5b892
movq %rax, %rdx
xorl %eax, %eax
callq 0x9060
jmp 0xf8b3
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x80(%rsp), %rdi
leaq 0x4c45a(%rip), %rsi     # 0x5b8c0
leaq 0x4c49d(%rip), %rdx     # 0x5b90a
callq 0x10cc8
leaq 0x80(%rsp), %rdi
leaq 0x4cb20(%rip), %rsi     # 0x5bfa1
callq 0x95e0
leaq 0x50(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf544
movups (%rcx), %xmm0
leaq 0x50(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0xf551
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x80(%rsp), %rdi
leaq 0x4c3c9(%rip), %rsi     # 0x5b8c0
leaq 0x4c40c(%rip), %rdx     # 0x5b90a
callq 0x10cc8
leaq 0x80(%rsp), %rdi
leaq 0x4ca8f(%rip), %rsi     # 0x5bfa1
callq 0x95e0
leaq 0x50(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf5c0
movups (%rcx), %xmm0
leaq 0x50(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0xf5cd
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbp, %rdi
leaq 0x60(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x11481
movq %rbp, %rdi
leaq 0x4c2e0(%rip), %rsi     # 0x5b865
callq 0x95e0
leaq 0x138(%rsp), %rcx
movq %rcx, 0x128(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf635
movups (%rcx), %xmm0
leaq 0x138(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0xf648
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbp, %rdi
leaq 0x60(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x11481
movq %rbp, %rdi
leaq 0x4c27c(%rip), %rsi     # 0x5b87d
callq 0x95e0
leaq 0x138(%rsp), %rcx
movq %rcx, 0x128(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0xf670
movups (%rcx), %xmm0
leaq 0x138(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0xf683
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x130(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x16026
jmp 0xf8b3
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x130(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x16026
jmp 0xf8b3
jmp 0xf6af
jmp 0xf6d9
movq %rax, %r15
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0xf6dc
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf6dc
movq %rax, %r15
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf6fe
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf6fe
jmp 0xf6fb
movq %rax, %r15
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xf721
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf721
jmp 0xf71e
movq %rax, %r15
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xf74d
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf74d
jmp 0xf74a
movq %rax, %r15
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xf770
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf770
jmp 0xf76d
movq %rax, %r15
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0xf79c
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf79c
jmp 0xf799
movq %rax, %r15
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0xf7c8
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf7c8
jmp 0xf7c5
movq %rax, %r15
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xf81d
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf81d
jmp 0xf81a
jmp 0xf81a
jmp 0xf7f5
movq %rax, %r15
movq %rbx, %rdi
movq 0x667be(%rip), %rsi     # 0x75fc0
callq 0x9840
leaq 0x1a0(%rsp), %rdi
callq 0x9660
jmp 0xf81d
jmp 0xf81a
jmp 0xf81a
movq %rax, %r15
movq %r15, %rdi
callq 0x9080
callq 0x9710
jmp 0xf2a3
movq 0x20(%rsp), %rax
cmpq 0x28(%rsp), %rax
movq 0x100(%rsp), %r15
je 0xf860
leaq 0x20(%rsp), %rdi
callq 0x13222
movq 0x28(%rsp), %rsi
addq $-0x18, %rsi
movq %r15, %rdi
callq 0x13282
jmp 0xf880
leaq 0x10(%r15), %rax
movq %rax, (%r15)
leaq 0x671ba(%rip), %rax     # 0x76a28
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x11084
leaq 0x20(%rsp), %rdi
callq 0x1330c
leaq 0x108(%rsp), %rdi
callq 0x11b1e
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %edi
callq 0x95f0
jmp 0xf91e
movq %rax, %rbx
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf8de
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf8de
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xf8fa
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf8fa
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf958
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0xf958
jmp 0xf91e
movq %rax, %rbx
jmp 0xf94b
movq %rax, %rbx
jmp 0xf941
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xf941
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x9100
leaq 0x20(%rsp), %rdi
callq 0x1330c
leaq 0x108(%rsp), %rdi
callq 0x11b1e
movq %rbx, %rdi
callq 0x95b0