// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/curl_easy.cpp
// Function: CURL_sp::Curl::process(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&)
void Curl::process (const string &url,
                    const string &error_msg_action)
{
  QC_ASSERT (! url. empty ());  

  char err [CURL_ERROR_SIZE + 1] = "";
  curl_easy_setopt (eh, CURLOPT_ERRORBUFFER, err);
  
  curl_easy_setopt (eh, CURLOPT_URL, url. c_str ());
  if (isLeft (url, "ftp://"))
    curl_easy_setopt (eh, CURLOPT_FTP_USE_EPSV, 0);

  const CURLcode cc = curl_easy_perform (eh);
  if (cc)
  {
    const SoftwareVersion ver (CURL_sp::getLibVersion ());
    throw runtime_error ("CURL: Cannot " + error_msg_action
                         + "\n  from " + url 
                         + "\n  code=" + to_string ((int) cc) 
                         + "\n  error: " + err
                         + "\n  version: " + ver. str ()
                         );
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0x9930
movl $0x0, (%rax)
cmpq $0x0, 0x8(%r14)
je 0x59f54
leaq 0x180(%rsp), %r12
movl $0x101, %edx            # imm = 0x101
movq %r12, %rdi
xorl %esi, %esi
callq 0x9260
movq (%rbx), %rdi
movl $0x271a, %esi           # imm = 0x271A
movq %r12, %rdx
xorl %eax, %eax
callq 0x97c0
movq (%rbx), %rdi
movq (%r14), %rdx
movl $0x2712, %esi           # imm = 0x2712
xorl %eax, %eax
callq 0x97c0
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x5922(%rip), %rsi      # 0x5f7b8
leaq 0x5921(%rip), %rdx      # 0x5f7be
leaq 0x8(%rsp), %rdi
callq 0x10cc2
movq 0x10(%rsp), %rcx
leaq 0x68(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x9900
movq 0x70(%rsp), %rdx
cmpq 0x10(%rsp), %rdx
jne 0x59ee3
testq %rdx, %rdx
je 0x59ee7
movq 0x8(%rsp), %rsi
movq 0x68(%rsp), %rdi
callq 0x9630
testl %eax, %eax
sete %bpl
jmp 0x59eea
xorl %ebp, %ebp
jmp 0x59eea
movb $0x1, %bpl
leaq 0x78(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x59f05
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x9100
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x59f1c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x9100
testb %bpl, %bpl
je 0x59f32
movq (%rbx), %rdi
movl $0x55, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x97c0
movq (%rbx), %rdi
callq 0x9600
testl %eax, %eax
jne 0x59fea
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x9750
testl %eax, %eax
jne 0x5a055
leaq 0x58(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x5787(%rip), %rsi      # 0x5f6f8
leaq 0x5796(%rip), %rdx      # 0x5f70e
leaq 0x48(%rsp), %rdi
callq 0x10cc2
leaq 0xc8(%rsp), %rdi
movl $0x8d, %esi
callq 0x11774
leaq 0x88(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0x11471
leaq 0x1539(%rip), %rsi      # 0x5b4ee
leaq 0x88(%rsp), %rdi
callq 0x95e0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5a168
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5a175
movl %eax, %ebp
leaq 0x168(%rsp), %rdi
callq 0x59118
movl $0x10, %edi
callq 0x9320
movq %rax, %rbx
leaq 0x57b2(%rip), %rsi      # 0x5f7bf
leaq 0x148(%rsp), %rdi
movq %r15, %rdx
callq 0x1161c
leaq 0x57a9(%rip), %rsi      # 0x5f7cd
leaq 0x148(%rsp), %rdi
callq 0x95e0
leaq 0xf8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5a05f
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5a072
movl $0x1, %edi
callq 0x95f0
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
movq 0x8(%rax), %rdx
leaq 0xe8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa8(%rsp), %rdi
movq %r14, %rdx
callq 0x4581f
leaq 0x572e(%rip), %rsi      # 0x5f7d6
leaq 0xa8(%rsp), %rdi
callq 0x95e0
leaq 0x38(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5a0da
movups (%rcx), %xmm0
leaq 0x38(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x5a0e7
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x128(%rsp), %rdi
movl %ebp, %esi
callq 0x11774
leaq 0xc8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x128(%rsp), %rdx
callq 0x11471
leaq 0x56b0(%rip), %rsi      # 0x5f7df
leaq 0xc8(%rsp), %rdi
callq 0x95e0
leaq 0x58(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5a25f
movups (%rcx), %xmm0
leaq 0x58(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x5a26c
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xb8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x55cb(%rip), %rsi      # 0x5f76c
leaq 0x55ff(%rip), %rdx      # 0x5f7a7
leaq 0xa8(%rsp), %rdi
callq 0x10cc2
leaq 0x1de5(%rip), %rsi      # 0x5bfa1
leaq 0xa8(%rsp), %rdi
callq 0x95e0
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5a1eb
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5a1f8
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rsi
leaq 0x28(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x11471
leaq 0x557e(%rip), %rsi      # 0x5f7a8
leaq 0x68(%rsp), %rdi
callq 0x95e0
leaq 0x190(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5a31c
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5a32f
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x180(%rsp), %rsi
callq 0x95e0
leaq 0x98(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5a2c0
movups (%rcx), %xmm0
leaq 0x98(%rsp), %rdx
movups %xmm0, (%rdx)
jmp 0x5a2d3
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x54f1(%rip), %rsi      # 0x5f7ea
callq 0x95e0
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5a353
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x5a360
movq %rdx, 0x180(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x190(%rsp)
movq 0x8(%rax), %rdx
leaq 0x180(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x16073
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x108(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x13296
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x108(%rsp), %rdx
callq 0x11471
movb $0x1, %bpl
leaq 0x68(%rsp), %rsi
movq %rbx, %rdi
callq 0x9220
xorl %ebp, %ebp
movq 0x1bbf3(%rip), %rsi     # 0x75fb0
movq 0x1bbc4(%rip), %rdx     # 0x75f88
movq %rbx, %rdi
callq 0x9570
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x5a3ee
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a3ee
movq %rax, %r14
movb $0x1, %bpl
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a417
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a417
movq %rax, %r14
movb $0x1, %bpl
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5a436
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a436
movq %rax, %r14
movb $0x1, %bpl
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x5a4a5
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a4a5
movq %rax, %r14
movq 0x180(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5a482
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a482
movq %rax, %r14
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a4c6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a4c6
movq %rax, %r14
movb $0x1, %bpl
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5a4e5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a4e5
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5a50b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a50b
movq %rax, %r14
movb $0x1, %bpl
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a530
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a530
movq %rax, %r14
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5a556
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a556
movq %rax, %r14
movb $0x1, %bpl
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a575
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a575
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5a596
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a596
movq %rax, %r14
movb $0x1, %bpl
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x5a5bf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a5bf
movq %rax, %r14
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a5e5
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a5e5
movq %rax, %r14
movb $0x1, %bpl
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a60e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a60e
movq %rax, %r14
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a630
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a630
movq %rax, %r14
movb $0x1, %bpl
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5a647
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a647
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5a6a0
movq 0x58(%rsp), %rsi
jmp 0x5a693
movq %rax, %r14
movb $0x1, %bpl
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a672
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a672
jmp 0x5a69d
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x5a6a0
movq %rbx, %rdi
callq 0x97f0
jmp 0x5a6a0
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5a6a0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x9100
jmp 0x5a6a0
movq %rax, %r14
movq %r14, %rdi
callq 0x95b0