// File: ewhitebloom[P]fetch/src/././request/get.cc
// Function: get::get(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
Response get(string& url) {
    CURL* curl;
    CURLcode res;
    curl_global_init(CURL_GLOBAL_ALL);
    curl = curl_easy_init();

    curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
    curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &writeCallback);
    curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
    curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, header_callback);

    res = curl_easy_perform(curl);

    curl_easy_cleanup(curl);
    curl_global_cleanup();

    Response response;
    response.url = url;
    response.body = fetchResponse;

    if (res != CURLE_OK) {
      raiseCurlCode(res);
    } else {
      int response_code;
      curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response_code);

      response.status = response_code;
      response.headers = parseHeaders(headers);
    }

    return response;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x70(%rbp)
movq %rdi, %rax
movq %rax, -0x88(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x3, %edi
callq 0x5110
callq 0x53c0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
callq 0x50c0
movq -0x80(%rbp), %rdi
movq %rax, %rdx
xorl %eax, %eax
movb %al, -0x71(%rbp)
movl $0x2712, %esi           # imm = 0x2712
callq 0x5310
movb -0x71(%rbp), %al
movq -0x18(%rbp), %rdi
leaq -0xd9(%rip), %rdx       # 0x6330
movl $0x4e2b, %esi           # imm = 0x4E2B
callq 0x5310
movb -0x71(%rbp), %al
movq -0x18(%rbp), %rdi
movl $0x2a, %esi
movl $0x1, %edx
callq 0x5310
movb -0x71(%rbp), %al
movq -0x18(%rbp), %rdi
leaq 0x139(%rip), %rdx       # 0x6570
movl $0x4e6f, %esi           # imm = 0x4E6F
callq 0x5310
movq -0x18(%rbp), %rdi
callq 0x5290
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rdi
callq 0x50e0
callq 0x5370
movq -0x70(%rbp), %rdi
movb $0x0, -0x1d(%rbp)
callq 0x8210
movq -0x70(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x28, %rdi
callq 0x5440
jmp 0x647b
movq -0x70(%rbp), %rdi
leaq 0x12df2(%rip), %rsi     # 0x19278
callq 0x5440
jmp 0x648d
cmpl $0x0, -0x1c(%rbp)
je 0x64b3
movl -0x1c(%rbp), %edi
callq 0x5940
jmp 0x649d
jmp 0x6530
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x6553
movq -0x18(%rbp), %rdi
xorl %eax, %eax
movl $0x200002, %esi         # imm = 0x200002
leaq -0x30(%rbp), %rdx
callq 0x53b0
jmp 0x64c9
movq -0x70(%rbp), %rax
movl -0x30(%rbp), %ecx
movl %ecx, 0x20(%rax)
leaq 0x12dbe(%rip), %rsi     # 0x19298
leaq -0x68(%rbp), %rdi
callq 0x50d0
jmp 0x64e5
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x56a0
jmp 0x64f4
movq -0x70(%rbp), %rdi
addq $0x68, %rdi
leaq -0x48(%rbp), %rsi
callq 0x8260
leaq -0x48(%rbp), %rdi
callq 0x73d0
leaq -0x68(%rbp), %rdi
callq 0x5498
jmp 0x6530
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x5498
jmp 0x6553
movb $0x1, -0x1d(%rbp)
testb $0x1, -0x1d(%rbp)
jne 0x6543
movq -0x70(%rbp), %rdi
callq 0x8290
movq -0x88(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x8290
movq -0x28(%rbp), %rdi
callq 0x5270
nopw %cs:(%rax,%rax)