// File: /workspace/github_cpp_makefile_star2_O3/UTAP[P]APHTTP/utils/request.cpp
// Function: Request::serializeToFile(Request*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Request::serializeToFile(Request *req, string filePath) {
  string reqString = to_string(req->getMethod());
  reqString += "\n";
  reqString += req->getPath();
  reqString += "\n";
  reqString += req->getHeadersString();
  reqString += "\n";
  reqString += req->getBody();
  reqString += "\n";
  reqString += req->getQueryString();
  writeToFile(reqString, filePath);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, -0x70(%rbp)
movq %rdi, %r14
movl 0x20(%rdi), %ebx
movl %ebx, %r15d
negl %r15d
cmovsl %ebx, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0xe4ab
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0xe4a2
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0xe4a8
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0xe4ab
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0xe46f
addl $-0x3, %r12d
jmp 0xe4ab
addl $-0x2, %r12d
jmp 0xe4ab
decl %r12d
shrl $0x1f, %ebx
movl %ebx, %esi
addl %r12d, %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x68(%rbp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x43d0
movq (%r13), %rdi
addq %rbx, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x7cb1
leaq 0xb18f(%rip), %rsi      # 0x19674
movq %r13, %rdi
callq 0x45f0
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x7dfa
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x4130
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xe527
callq 0x4310
leaq 0xb146(%rip), %rsi      # 0x19674
leaq -0x68(%rbp), %rdi
callq 0x45f0
leaq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xdf7c
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x4130
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xe562
callq 0x4310
leaq 0xb10b(%rip), %rsi      # 0x19674
leaq -0x68(%rbp), %rdi
callq 0x45f0
leaq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xb548
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x4130
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xe59d
callq 0x4310
leaq 0xb0d0(%rip), %rsi      # 0x19674
leaq -0x68(%rbp), %rdi
callq 0x45f0
leaq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xde7e
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x4130
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xe5d8
callq 0x4310
leaq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0xf8ac
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0xe5f7
callq 0x4310
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xe612
jmp 0xe627
jmp 0xe612
jmp 0xe627
jmp 0xe612
jmp 0xe627
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xe62a
callq 0x4310
jmp 0xe62a
jmp 0xe627
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0xe63c
callq 0x4310
movq %rbx, %rdi
callq 0x45a0