// File: /workspace/github_cpp_makefile_star2_O2/ncbi[P]amr/curl_easy.cpp
// Function: CURL_sp::Curl::download(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::download (const string &url,
                     const string &fName) 
{
  ASSERT (! fName. empty ());  
  
  {
    OFStream f (fName);
    curl_easy_setopt (eh, CURLOPT_WRITEFUNCTION, write_stream_cb);
    curl_easy_setopt (eh, CURLOPT_WRITEDATA, & f);
    process (url, "download");
  }
  
  IFStream f (fName);
  string s;
  f >> s;
  if (s == "<?xml")
    throw runtime_error ("Cannot download " + strQuote (fName));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0xa970
andl $0x0, (%rax)
cmpq $0x0, 0x8(%rbx)
je 0x3d468
leaq 0xf0(%rsp), %rdi
movq %rbx, %rsi
callq 0x2c476
movq (%r15), %rdi
leaq 0x303(%rip), %rdx       # 0x3d69c
movl $0x4e2b, %esi           # imm = 0x4E2B
xorl %eax, %eax
callq 0xa800
movq (%r15), %rdi
leaq 0xf0(%rsp), %rdx
movl $0x2711, %esi           # imm = 0x2711
xorl %eax, %eax
callq 0xa800
leaq 0x6349(%rip), %rsi      # 0x4370c
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0xe1e4
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x3da34
leaq 0x10(%rsp), %rdi
callq 0xab20
leaq 0xf0(%rsp), %rdi
callq 0x2c4fa
leaq 0xf0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1f01e
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0xa3b0
leaq 0x62e4(%rip), %rsi      # 0x43715
leaq 0x10(%rsp), %rdi
callq 0x2c528
testb %al, %al
jne 0x3d53a
leaq 0x10(%rsp), %rdi
callq 0xab20
leaq 0xf0(%rsp), %rdi
callq 0x10eac
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0xa770
testl %eax, %eax
jne 0x3d593
leaq 0x623c(%rip), %rsi      # 0x436b8
leaq 0xd0(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xe1e4
leaq 0xb0(%rsp), %rdi
pushq $0x6c
popq %rsi
callq 0xee49
leaq 0x50(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
callq 0xea95
leaq 0x1ff8(%rip), %rdx      # 0x3f4b7
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xeafc
leaq 0x61fa(%rip), %rsi      # 0x436cf
leaq 0x70(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xe1e4
leaq 0x2a81(%rip), %rdx      # 0x3ff6c
leaq 0x90(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xeafc
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0xea95
leaq 0x24ce(%rip), %rdx      # 0x3f9e9
leaq 0xf0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xeafc
leaq 0xf0(%rsp), %rdi
callq 0x1235c
pushq $0x10
popq %rdi
callq 0xa320
movq %rax, %r14
leaq 0x50(%rsp), %rdi
pushq $0x22
popq %rdx
movq %rbx, %rsi
callq 0x14211
leaq 0x61bf(%rip), %rsi      # 0x4371b
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0xeed6
movb $0x1, %bpl
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0xa220
xorl %ebp, %ebp
movq 0x20a2c(%rip), %rsi     # 0x5dfb0
movq 0x20a05(%rip), %rdx     # 0x5df90
movq %r14, %rdi
callq 0xa590
pushq $0x1
popq %rdi
callq 0xa620
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0xab20
jmp 0x3d5b0
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xab20
jmp 0x3d5bf
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xab20
jmp 0x3d5d1
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xab20
jmp 0x3d5e0
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xab20
jmp 0x3d5ef
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xab20
jmp 0x3d5fe
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xab20
jmp 0x3d610
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xab20
jmp 0x3d694
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xab20
jmp 0x3d634
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x50(%rsp), %rdi
callq 0xab20
testb %bpl, %bpl
jne 0x3d64d
jmp 0x3d65a
movq %rax, %rbx
jmp 0x3d694
movq %rax, %rbx
movq %r14, %rdi
callq 0xa830
jmp 0x3d65a
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xab20
leaq 0xf0(%rsp), %rdi
callq 0x10eac
jmp 0x3d694
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xab20
jmp 0x3d687
jmp 0x3d684
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x2c4fa
movq %rbx, %rdi
callq 0xa5d0