// File: /workspace/github_cpp_makefile_star2_O1/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 $0x70, %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 0x892e(%rip), %rsi      # 0xe1e8
movq %rbx, %rdi
callq 0x42e0
testq %r14, %r14
je 0x59eb
movq (%r12), %rdx
movq %r14, %rdi
movl $0x2712, %esi           # imm = 0x2712
xorl %eax, %eax
callq 0x4210
leaq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x574a
movq -0x50(%rbp), %rdx
movq %r14, %rdi
movl $0x271f, %esi           # imm = 0x271F
xorl %eax, %eax
callq 0x4210
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x590f
callq 0x4130
movq %r14, %rdi
callq 0x41a0
testl %eax, %eax
je 0x5927
movl %eax, %edi
callq 0x47a1
jmp 0x59e3
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 -0x60(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x88b8(%rip), %rsi      # 0xe208
movq 0x88b9(%rip), %rdx      # 0xe210
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x65e2
leaq -0x88(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x452c
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x68(%rbx), %rax
movups 0x70(%rbx), %xmm0
leaq -0x88(%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)
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rsi
movq %rax, (%rdi)
movups %xmm0, 0x8(%rdi)
movq %rcx, (%r15)
movq %rdx, 0x8(%r15)
movq %rsi, 0x10(%r15)
callq 0x5e2a
movq %r15, %rdi
callq 0x5e2a
movq -0x70(%rbp), %rdi
cmpq %r12, %rdi
je 0x59e3
callq 0x4130
movq %r14, %rdi
callq 0x4070
callq 0x4260
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r12, %rdi
jne 0x5a22
jmp 0x5a2e
jmp 0x5a2b
jmp 0x5a2b
movq %rax, %r14
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a2e
callq 0x4130
jmp 0x5a2e
jmp 0x5a2b
movq %rax, %r14
movq %rbx, %rdi
callq 0x5e5e
movq %r14, %rdi
callq 0x4180