// File: /workspace/github_cpp_makefile_star2_O3/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 0x9f1c
testb %al, %al
je 0x12ce7
leaq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x1e834
testb %al, %al
je 0x12ce7
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x12ca2(%rip), %rsi     # 0x25827
leaq 0x12ca0(%rip), %rdx     # 0x2582c
leaq 0x48(%rsp), %rdi
callq 0x579e
leaq 0x1f9cb(%rip), %rsi     # 0x32568
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x23764
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x12a24(%rip), %rsi     # 0x255e0
leaq 0x12a29(%rip), %rdx     # 0x255ec
leaq 0x28(%rsp), %rdi
callq 0x579e
leaq 0x190(%rbx), %r15
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x105ca
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x4570
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x12c05
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x18(%rsp), %rbp
movq -0x10(%rbp), %rdi
cmpq %rbp, %rdi
je 0x12c20
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x12c37
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4470
movq (%rbx), %rdi
callq 0x9eb0
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1d9c4
leaq 0xe0(%rbx), %rdi
movq %r12, %rsi
callq 0x4570
movq (%r12), %rdi
cmpq %rbp, %rdi
je 0x12c77
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0xe8(%rbx), %rsi
leaq 0x8(%rsp), %rdi
callq 0x10646
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x1293a(%rip), %rsi     # 0x255d1
leaq 0x12941(%rip), %rdx     # 0x255df
callq 0x579e
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x105ca
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x4570
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x12cd4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
jne 0x12edd
jmp 0x12eea
leaq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x1efa0
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 0x6c2a
leaq 0x1f84d(%rip), %rsi     # 0x32568
leaq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0x23764
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x128a8(%rip), %rsi     # 0x255e0
leaq 0x128ad(%rip), %rdx     # 0x255ec
leaq 0x28(%rsp), %rdi
callq 0x579e
leaq 0x190(%rbx), %r15
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x105ca
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x4570
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12d81
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x18(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x12d9c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x12db3
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4470
cmpq $0x0, 0x148(%rbx)
je 0x12e41
leaq 0x140(%rbx), %rdx
leaq 0x12b17(%rip), %rsi     # 0x258e6
leaq 0x8(%rsp), %rdi
callq 0x568a
leaq 0x28(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x127f8(%rip), %rsi     # 0x255e0
leaq 0x127fd(%rip), %rdx     # 0x255ec
callq 0x579e
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x105ca
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rax, %rdi
callq 0x4100
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12e2a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x12e41
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x1ed12
leaq 0xe0(%rbx), %rdi
movq %r12, %rsi
callq 0x4570
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x12e76
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0xe8(%rbx), %rsi
leaq 0x8(%rsp), %rdi
callq 0x10646
leaq 0x28(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x1273b(%rip), %rsi     # 0x255d1
leaq 0x12742(%rip), %rdx     # 0x255df
callq 0x579e
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x105ca
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x4570
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12ed3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x12eea
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
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 0x12f20
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x12f20
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
jne 0x1300f
jmp 0x1301c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x12f52
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x12f52
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12f72
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x12f72
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x1301c
movq 0x58(%rsp), %rsi
jmp 0x13014
movq %rax, %rbx
jmp 0x1301c
jmp 0x12f96
jmp 0x12feb
movq %rax, %rbx
jmp 0x13005
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12fba
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x12fba
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12fda
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x12fda
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x1301c
movq 0x78(%rsp), %rsi
jmp 0x13014
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x13005
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1301c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4790