// File: ewhitebloom[P]fetch/src/././request/post.cc
// Function: post::post(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::vector<Param<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<Param<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
Response post(string& url, vector< Param<string> >& params) {
    CURL *curl;
    CURLcode res;

    curl_global_init(CURL_GLOBAL_ALL);

    curl = curl_easy_init();

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

    if (curl) {
      curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
      curl_easy_setopt(curl, CURLOPT_POSTFIELDS, encode(params).c_str());

      res = curl_easy_perform(curl);

      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);
      }

      curl_easy_cleanup(curl);
    }
    curl_global_cleanup();

    return response;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0xa0(%rbp)
movq %rdi, %rax
movq %rax, -0xa8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x3, %edi
callq 0x5110
callq 0x53c0
movq -0xa0(%rbp), %rdi
movq %rax, -0x20(%rbp)
movb $0x0, -0x25(%rbp)
callq 0x8210
movq -0xa0(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x28, %rdi
callq 0x5440
jmp 0x6bd1
movq -0xa0(%rbp), %rdi
leaq 0x126d9(%rip), %rsi     # 0x192b8
callq 0x5440
jmp 0x6be6
cmpq $0x0, -0x20(%rbp)
je 0x6d57
movq -0x20(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x50c0
movq -0xb0(%rbp), %rdi
movq %rax, %rdx
xorl %eax, %eax
movl $0x2712, %esi           # imm = 0x2712
callq 0x5310
jmp 0x6c1d
movq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x18(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x69d0
jmp 0x6c37
leaq -0x58(%rbp), %rdi
callq 0x50c0
movq -0xb8(%rbp), %rdi
movq %rax, %rdx
xorl %eax, %eax
movl $0x271f, %esi           # imm = 0x271F
callq 0x5310
jmp 0x6c58
leaq -0x58(%rbp), %rdi
callq 0x5498
movq -0x20(%rbp), %rdi
callq 0x5290
movl %eax, -0xbc(%rbp)
jmp 0x6c72
movl -0xbc(%rbp), %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x6cbb
movl -0x24(%rbp), %edi
callq 0x5940
jmp 0x6c8b
jmp 0x6d4a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x6d84
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x5498
jmp 0x6d84
movq -0x20(%rbp), %rdi
xorl %eax, %eax
movl $0x200002, %esi         # imm = 0x200002
leaq -0x5c(%rbp), %rdx
callq 0x53b0
jmp 0x6cd1
movq -0xa0(%rbp), %rax
movl -0x5c(%rbp), %ecx
movl %ecx, 0x20(%rax)
leaq 0x125f3(%rip), %rsi     # 0x192d8
leaq -0x98(%rbp), %rdi
callq 0x50d0
jmp 0x6cf3
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x56a0
jmp 0x6d05
movq -0xa0(%rbp), %rdi
addq $0x68, %rdi
leaq -0x78(%rbp), %rsi
callq 0x8260
leaq -0x78(%rbp), %rdi
callq 0x73d0
leaq -0x98(%rbp), %rdi
callq 0x5498
jmp 0x6d4a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x5498
jmp 0x6d84
movq -0x20(%rbp), %rdi
callq 0x50e0
jmp 0x6d55
jmp 0x6d57
callq 0x5370
jmp 0x6d5e
movb $0x1, -0x25(%rbp)
testb $0x1, -0x25(%rbp)
jne 0x6d74
movq -0xa0(%rbp), %rdi
callq 0x8290
movq -0xa8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq -0xa0(%rbp), %rdi
callq 0x8290
movq -0x30(%rbp), %rdi
callq 0x5270
nopl (%rax)