// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movl $0x3, %edi
callq 0x40b0
callq 0x4290
movq %rax, %r14
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movb %al, 0x10(%rbx)
leaq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %rcx
movq %rcx, 0x28(%rbx)
movq %rax, 0x30(%rbx)
movb %al, 0x38(%rbx)
leaq 0x58(%rbx), %rcx
movq %rcx, 0x48(%rbx)
movq %rax, 0x50(%rbx)
movb %al, 0x58(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rbx)
movq %rax, 0x78(%rbx)
movq %r12, %rsi
callq 0x42e0
leaq 0x8945(%rip), %rsi      # 0xe1e8
movq %rbx, %rdi
callq 0x42e0
testq %r14, %r14
je 0x59b9
movq (%r12), %rdx
movq %r14, %rdi
movl $0x2712, %esi           # imm = 0x2712
xorl %eax, %eax
callq 0x4210
leaq -0x68(%rbp), %rdi
movq %r15, %rsi
callq 0x5733
movq -0x68(%rbp), %rdx
movq %r14, %rdi
movl $0x271f, %esi           # imm = 0x271F
xorl %eax, %eax
callq 0x4210
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x58f8
callq 0x4130
movq %r14, %rdi
callq 0x41a0
testl %eax, %eax
je 0x5910
movl %eax, %edi
callq 0x47a1
jmp 0x59b1
leaq -0x24(%rbp), %rdx
movq %r14, %rdi
movl $0x200002, %esi         # imm = 0x200002
xorl %eax, %eax
callq 0x4270
movl -0x24(%rbp), %eax
movl %eax, 0x20(%rbx)
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x88cf(%rip), %rsi      # 0xe208
movq 0x88d0(%rip), %rdx      # 0xe210
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x65ba
leaq -0x80(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x452c
movups 0x68(%rbx), %xmm0
movq 0x78(%rbx), %rax
leaq -0x80(%rbp), %r15
movq (%r15), %rcx
movq %rcx, 0x68(%rbx)
movq 0x8(%r15), %rcx
movq %rcx, 0x70(%rbx)
movq 0x10(%r15), %rcx
movq %rcx, 0x78(%rbx)
leaq -0x68(%rbp), %rdi
movups %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
callq 0x5e02
movq %r15, %rdi
callq 0x5e02
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x59b1
callq 0x4130
movq %r14, %rdi
callq 0x4070
callq 0x4260
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
jne 0x59f0
jmp 0x59fc
jmp 0x59f9
jmp 0x59f9
movq %rax, %r14
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59fc
callq 0x4130
jmp 0x59fc
jmp 0x59f9
movq %rax, %r14
movq %rbx, %rdi
callq 0x5e36
movq %r14, %rdi
callq 0x4180