// File: /workspace/github_cpp_makefile_star2_O2/solaldunckel[P]webserv/srcs/HTTP/Response.cpp
// Function: Response::GET()
int Response::GET() {
  if (config_.getAutoindex() && file_.is_directory()) {
    headers_["Content-Type"] = g_mimes.getType(".html");
    body_ = file_.autoIndex(config_.getRequestTarget());
    headers_["Content-Length"] = ft::to_string(body_.length());
  }
  else {
    headers_["Content-Type"] = g_mimes.getType(file_.getMimeExtension());
    if (!charset_.empty())
      headers_["Content-Type"] += "; charset=" + charset_;
    body_ = file_.getContent();
    headers_["Content-Length"] = ft::to_string(body_.length());
  }
  return 200;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x8e10
testb %al, %al
je 0xfc1a
leaq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x17768
testb %al, %al
je 0xfc1a
leaq 0xcc92(%rip), %rsi      # 0x1c7c6
leaq 0x48(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x5328
leaq 0x1ba1e(%rip), %rsi     # 0x2b568
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x1ab78
leaq 0xca6a(%rip), %rsi      # 0x1c5ca
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x5328
leaq 0x190(%rbx), %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0xdd56
leaq 0x28(%rsp), %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x4560
leaq 0x8(%rsp), %rdi
callq 0x4898
movq %r12, %rdi
callq 0x4898
leaq 0x48(%rsp), %rdi
callq 0x4898
movq (%rbx), %rdi
callq 0x8da4
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1708a
leaq 0xe0(%rbx), %rdi
movq %r12, %rsi
callq 0x4560
movq %r12, %rdi
callq 0x4898
movq 0xe8(%rbx), %rsi
leaq 0x28(%rsp), %rdi
callq 0xddbc
leaq 0xc9c2(%rip), %rsi      # 0x1c5bb
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x5328
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0xdd56
jmp 0xfd61
leaq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x17be8
leaq 0x68(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x45e0
leaq 0x1b92b(%rip), %rsi     # 0x2b568
leaq 0x28(%rsp), %rdi
movq %r15, %rdx
callq 0x1ab78
leaq 0xc979(%rip), %rsi      # 0x1c5ca
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x5328
leaq 0x190(%rbx), %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0xdd56
leaq 0x28(%rsp), %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x4560
leaq 0x8(%rsp), %rdi
callq 0x4898
movq %r12, %rdi
callq 0x4898
leaq 0x68(%rsp), %rdi
callq 0x4898
cmpq $0x0, 0x148(%rbx)
je 0xfd06
leaq 0x140(%rbx), %rdx
leaq 0xcbcd(%rip), %rsi      # 0x1c885
leaq 0x28(%rsp), %rdi
callq 0x52b1
leaq 0xc901(%rip), %rsi      # 0x1c5ca
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x5328
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0xdd56
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x4840
leaq 0x8(%rsp), %rdi
callq 0x4898
leaq 0x28(%rsp), %rdi
callq 0x4898
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x17a2e
leaq 0xe0(%rbx), %rdi
movq %r12, %rsi
callq 0x4560
movq %r12, %rdi
callq 0x4898
movq 0xe8(%rbx), %rsi
leaq 0x28(%rsp), %rdi
callq 0xddbc
leaq 0xc876(%rip), %rsi      # 0x1c5bb
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x5328
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0xdd56
leaq 0x28(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4560
leaq 0x8(%rsp), %rdi
callq 0x4898
movq %rbx, %rdi
callq 0x4898
movl $0xc8, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xfdf9
jmp 0xfdcc
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4898
jmp 0xfdad
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4898
jmp 0xfdbc
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0xfe0b
movq %rax, %rbx
jmp 0xfe10
jmp 0xfdcc
jmp 0xfdf9
movq %rax, %rbx
jmp 0xfe06
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4898
jmp 0xfde3
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4898
jmp 0xfdf2
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0xfe0b
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4898
leaq 0x28(%rsp), %rdi
callq 0x4898
movq %rbx, %rdi
callq 0x4750