// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x9ec6
testb %al, %al
je 0x12c3f
leaq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x1e7fc
testb %al, %al
je 0x12c3f
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x12d4a(%rip), %rsi     # 0x25827
leaq 0x12d48(%rip), %rdx     # 0x2582c
leaq 0x48(%rsp), %rdi
callq 0x578e
leaq 0x1fa63(%rip), %rsi     # 0x32558
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x237e0
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x12acc(%rip), %rsi     # 0x255e0
leaq 0x12ad1(%rip), %rdx     # 0x255ec
leaq 0x28(%rsp), %rdi
callq 0x578e
leaq 0x190(%rbx), %r15
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x104da
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x4560
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x12b5d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
leaq 0x18(%rsp), %rbp
movq -0x10(%rbp), %rdi
cmpq %rbp, %rdi
je 0x12b78
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x12b8f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4460
movq (%rbx), %rdi
callq 0x9e5a
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1d968
leaq 0xe0(%rbx), %rdi
movq %r12, %rsi
callq 0x4560
movq (%r12), %rdi
cmpq %rbp, %rdi
je 0x12bcf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0xe8(%rbx), %rsi
leaq 0x8(%rsp), %rdi
callq 0x10556
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x129e2(%rip), %rsi     # 0x255d1
leaq 0x129e9(%rip), %rdx     # 0x255df
callq 0x578e
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x104da
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x4560
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x12c2c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
jne 0x12e35
jmp 0x12e42
leaq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x1ef7c
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %r15
movq %r15, %rdi
callq 0x6bac
leaq 0x1f8e5(%rip), %rsi     # 0x32558
leaq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0x237e0
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x12950(%rip), %rsi     # 0x255e0
leaq 0x12955(%rip), %rdx     # 0x255ec
leaq 0x28(%rsp), %rdi
callq 0x578e
leaq 0x190(%rbx), %r15
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x104da
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x4560
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12cd9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
leaq 0x18(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x12cf4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x12d0b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4460
cmpq $0x0, 0x148(%rbx)
je 0x12d99
leaq 0x140(%rbx), %rdx
leaq 0x12bbf(%rip), %rsi     # 0x258e6
leaq 0x8(%rsp), %rdi
callq 0x567a
leaq 0x28(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x128a0(%rip), %rsi     # 0x255e0
leaq 0x128a5(%rip), %rdx     # 0x255ec
callq 0x578e
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x104da
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rax, %rdi
callq 0x4100
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12d82
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x12d99
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x1ecda
leaq 0xe0(%rbx), %rdi
movq %r12, %rsi
callq 0x4560
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x12dce
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0xe8(%rbx), %rsi
leaq 0x8(%rsp), %rdi
callq 0x10556
leaq 0x28(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x127e3(%rip), %rsi     # 0x255d1
leaq 0x127ea(%rip), %rdx     # 0x255df
callq 0x578e
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x104da
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x4560
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12e2b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x12e42
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
movl $0xc8, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x12e78
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x12e78
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
jne 0x12f67
jmp 0x12f74
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x12eaa
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x12eaa
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12eca
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x12eca
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x12f74
movq 0x58(%rsp), %rsi
jmp 0x12f6c
movq %rax, %rbx
jmp 0x12f74
jmp 0x12eee
jmp 0x12f43
movq %rax, %rbx
jmp 0x12f5d
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12f12
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x12f12
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12f32
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
jmp 0x12f32
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x12f74
movq 0x78(%rsp), %rsi
jmp 0x12f6c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12f5d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4460
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x12f74
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4460
movq %rbx, %rdi
callq 0x4780