// File: /workspace/github_cpp_makefile_star2_O2/solaldunckel[P]webserv/srcs/HTTP/Response.cpp
// Function: Response::response_log[abi:cxx11](LogLevel)
std::string Response::response_log(LogLevel level) {
  std::string ret;

  if (level == INFO) {
    ret = "[status: " + ft::to_string(status_code_) + " " + g_status[status_code_] + "]";
    if (headers_.count("Content-Length"))
      ret = ret + " [length: " + headers_["Content-Length"] + "]";
  } else if (level > INFO) {
    ret = "\n\n" + response_.substr(0, header_size_ - 4) + "\n";
    if (body_size_) {
      if (body_size_ < 200)
        ret = ret + "\n" + response_.substr(header_size_);
      else
        ret = ret + "\n" + response_.substr(header_size_, 200) + "...";
    }
  }
  return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movq %rsi, %r14
movb $0x0, 0x10(%rdi)
cmpl $0x1, %edx
jne 0x12637
movl 0xb8(%r14), %esi
leaq 0x88(%rsp), %rdi
callq 0x6118
leaq 0xa465(%rip), %rsi      # 0x1c94f
leaq 0x68(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0x8234
leaq 0xa323(%rip), %rdx      # 0x1c826
leaq 0x28(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x5292
movl 0xb8(%r14), %esi
leaq 0x19018(%rip), %rdi     # 0x2b538
callq 0x1b1e4
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %rax, %rdx
callq 0x5273
leaq 0x9e03(%rip), %rdx      # 0x1c341
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x5292
leaq 0x48(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4560
movq %r15, %rdi
callq 0x4898
leaq 0x8(%rsp), %rdi
callq 0x4898
leaq 0x28(%rsp), %rdi
callq 0x4898
leaq 0x68(%rsp), %rdi
callq 0x4898
leaq 0x88(%rsp), %rdi
callq 0x4898
leaq 0xa024(%rip), %rsi      # 0x1c5bb
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x5328
addq $0x190, %r14            # imm = 0x190
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0xdd3c
movq %rax, %r15
leaq 0x48(%rsp), %rdi
callq 0x4898
testq %r15, %r15
je 0x127c6
leaq 0xa382(%rip), %rdx      # 0x1c959
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x60d3
leaq 0x9fd0(%rip), %rsi      # 0x1c5bb
leaq 0x68(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0x5328
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0xdd56
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %rax, %rdx
callq 0x5273
leaq 0x9d1e(%rip), %rdx      # 0x1c341
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x5292
jmp 0x12790
jle 0x127c6
leaq 0xc0(%r14), %r15
movq 0x130(%r14), %rcx
addq $-0x4, %rcx
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x44a0
leaq 0x9b91(%rip), %rsi      # 0x1c1f6
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x8234
leaq 0x9b7c(%rip), %rdx      # 0x1c1f7
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x5292
leaq 0x48(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4560
movq %r12, %rdi
callq 0x4898
leaq 0x8(%rsp), %rdi
callq 0x4898
leaq 0x28(%rsp), %rdi
callq 0x4898
movq 0x138(%r14), %rax
testq %rax, %rax
je 0x127c6
cmpq $0xc7, %rax
ja 0x12739
leaq 0x9b22(%rip), %rdx      # 0x1c1f7
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x60d3
movq 0x130(%r14), %rdx
leaq 0x28(%rsp), %rdi
pushq $-0x1
popq %rcx
movq %r15, %rsi
callq 0x44a0
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x61d5
leaq 0x48(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4560
movq %r14, %rdi
callq 0x4898
leaq 0x28(%rsp), %rdi
callq 0x4898
leaq 0x8(%rsp), %rdi
jmp 0x127c1
leaq 0x9ab7(%rip), %rdx      # 0x1c1f7
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x60d3
movq 0x130(%r14), %rdx
leaq 0x68(%rsp), %rdi
movl $0xc8, %ecx
movq %r15, %rsi
callq 0x44a0
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x61d5
leaq 0xa1e3(%rip), %rdx      # 0x1c964
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x5292
leaq 0x48(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4560
movq %r14, %rdi
callq 0x4898
leaq 0x8(%rsp), %rdi
callq 0x4898
leaq 0x68(%rsp), %rdi
callq 0x4898
leaq 0x28(%rsp), %rdi
callq 0x4898
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x1280c
jmp 0x1284c
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x4898
jmp 0x127f0
jmp 0x1281b
movq %rax, %r14
leaq 0x8(%rsp), %rdi
jmp 0x1287f
jmp 0x12847
jmp 0x12847
movq %rax, %r14
leaq 0x8(%rsp), %rdi
jmp 0x12854
jmp 0x1281b
jmp 0x12847
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x4898
jmp 0x1284f
movq %rax, %r14
jmp 0x12859
jmp 0x12847
movq %rax, %r14
leaq 0x48(%rsp), %rdi
jmp 0x1287f
jmp 0x12847
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x4898
jmp 0x12863
movq %rax, %r14
jmp 0x1286d
movq %rax, %r14
jmp 0x12877
movq %rax, %r14
jmp 0x12884
movq %rax, %r14
leaq 0x68(%rsp), %rdi
callq 0x4898
leaq 0x28(%rsp), %rdi
jmp 0x1287f
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x4898
leaq 0x68(%rsp), %rdi
callq 0x4898
leaq 0x88(%rsp), %rdi
callq 0x4898
movq %rbx, %rdi
callq 0x4898
movq %r14, %rdi
callq 0x4750