// File: /workspace/github_cpp_makefile_star2_O3/solaldunckel[P]webserv/srcs/HTTP/Response.cpp
// Function: Response::handleMethods()
int Response::handleMethods() {
  std::string &method = config_.getMethod();
  std::string path;

  if (method == "GET" || method == "HEAD") {
    if (file_.is_directory()) {
      std::string index = file_.find_index(config_.getIndexes());
      if (index.length()) {
        redirect_ = true;
        redirect_target_ = ft::unique_char("/" + config_.getRequestTarget() + "/" + index);
        return 200;
      }
      else if (!config_.getAutoindex())
        return 404;
    }

    path = file_.getPath();
    if (!file_.is_directory()) {
      if (!file_.exists())
        return 404;
      file_.parse_match();
      std::vector<std::string> &matches = file_.getMatches();

      if (!config_.getHeader("Accept-Language").empty()) {
        if (localization(matches))
          file_.set_path(path.substr(0, path.find_last_of("/") + 1) + matches.front(), true);
      }
      if (!config_.getHeader("Accept-Charset").empty()) {
        charset_ = accept_charset(matches);
        file_.set_path(path.substr(0, path.find_last_of("/") + 1) + matches.front(), true);
      }

      if (!file_.open())
        return 403;

      headers_["Last-Modified"] = file_.last_modified();
    }
  }

  if (isCGI(file_.getMimeExtension())) {
    CGI cgi(file_, config_, config_.getHeaders(), config_.getBody());
    cgi.init(worker_id_);
    if ((status_code_ = cgi.execute()) > 400)
      return status_code_;
    cgi.parseHeaders(headers_);
    body_ = cgi.getBody();
    headers_["Content-Length"] = ft::to_string(body_.length());
    return status_code_;
  }

  if (method == "PUT" || method == "POST") {
    std::string path = config_.getUri() + "/" + config_.getTarget();

    if (!config_.getUpload().empty()) {
      File dir(config_.getRoot() + "/" + config_.getUpload());

      path = config_.getUri() + "/" + config_.getUpload() + "/" + config_.getTarget();
      if (dir.exists() && !dir.is_directory()) {
        dir.unlink();
      }

      if (!dir.exists()) {
        if (mkdir(dir.getPath().c_str(), 0755) == -1)
          Log.print(DEBUG, "mkdir : " + std::string(strerror(errno)), RED, true);
      }
      file_.set_path(dir.getPath() + "/" + config_.getTarget());
    }
    headers_["Location"] = ft::unique_char(path);
  }

  return (this->*(Response::methods_[method]))();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x9f5a
movq %rax, %r14
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x11085(%rip), %rsi     # 0x2579b
movq %rax, %rdi
callq 0x40f0
testl %eax, %eax
je 0x14739
leaq 0x11076(%rip), %rsi     # 0x2579f
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
jne 0x14956
leaq 0x8(%rbx), %r15
movq %r15, %rdi
callq 0x1e834
testb %al, %al
je 0x14931
movq (%rbx), %rdi
callq 0x9f32
leaq 0x230(%rsp), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1e8f6
cmpq $0x0, 0x238(%rsp)
je 0x147ce
movb $0x1, 0x100(%rbx)
movq (%rbx), %rdi
callq 0x9eb0
leaq 0x10e0b(%rip), %rsi     # 0x25594
leaq 0x48(%rsp), %rdi
movq %rax, %rdx
callq 0x568a
leaq 0x10df7(%rip), %rsi     # 0x25594
leaq 0x48(%rsp), %rdi
callq 0x4840
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x147e3
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x147eb
movq (%rbx), %rdi
callq 0x9f1c
movl %eax, %r12d
movl $0x194, %ebp            # imm = 0x194
jmp 0x14907
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x230(%rsp), %rsi
movq 0x238(%rsp), %rdx
callq 0x4100
leaq 0x180(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1484c
movq %rdx, 0x170(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x180(%rsp)
jmp 0x14853
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x170(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
callq 0x243cc
leaq 0x108(%rbx), %rdi
leaq 0x28(%rsp), %r12
movq %r12, %rsi
callq 0x4570
movq (%r12), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x148ab
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x170(%rsp), %rdi
cmpq %rbp, %rdi
je 0x148c8
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x148df
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x78(%rsp), %r13
je 0x148ff
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4470
movl $0xc8, %ebp
xorl %r12d, %r12d
leaq 0x240(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14928
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x4470
testb %r12b, %r12b
je 0x1567d
movq %r15, %rdi
callq 0x1f480
leaq 0x68(%rsp), %rdi
movq %rax, %rsi
callq 0x4230
movq %r15, %rdi
callq 0x1e834
testb %al, %al
je 0x14b9c
leaq 0x8(%rbx), %r15
movq %r15, %rdi
callq 0x1efa0
leaq 0x1e0(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x1d0(%rsp), %rdi
callq 0x6c2a
leaq 0x1d0(%rsp), %rsi
movq %rbx, %rdi
callq 0x13462
movl %eax, %ebp
movq 0x1d0(%rsp), %rdi
cmpq %r12, %rdi
je 0x149b5
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x4470
testb %bpl, %bpl
je 0x14ae9
movq (%rbx), %r14
movq %r14, %rdi
callq 0x9f72
movq %rax, %r12
movq (%rbx), %rdi
callq 0x9f50
leaq 0x230(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0xe7ee
movl 0xac(%rbx), %esi
leaq 0x230(%rsp), %rdi
callq 0xea52
leaq 0x230(%rsp), %rdi
callq 0xf432
movl %eax, %ebp
movl %eax, 0xb8(%rbx)
cmpl $0x190, %eax            # imm = 0x190
jg 0x14ad7
leaq 0x190(%rbx), %r14
leaq 0x230(%rsp), %rdi
movq %r14, %rsi
callq 0x102a2
leaq 0x230(%rsp), %rdi
callq 0x105c2
leaq 0xe0(%rbx), %rdi
movq %rax, %rsi
callq 0x4230
movq 0xe8(%rbx), %rsi
leaq 0x28(%rsp), %rdi
callq 0x10646
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x10b5d(%rip), %rsi     # 0x255d1
leaq 0x10b64(%rip), %rdx     # 0x255df
leaq 0x8(%rsp), %rdi
callq 0x579e
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x105ca
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x4570
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x14ab6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14ad1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
movl 0xb8(%rbx), %ebp
leaq 0x230(%rsp), %rdi
callq 0xf302
jmp 0x1567d
leaq 0x10ca7(%rip), %rsi     # 0x25797
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
je 0x14b13
leaq 0x10a8c(%rip), %rsi     # 0x2558f
movq %r14, %rdi
callq 0x40f0
testl %eax, %eax
jne 0x15653
movq (%rbx), %rdi
callq 0x9ef4
leaq 0x240(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x230(%rsp), %rdi
callq 0x6c2a
leaq 0x10a4f(%rip), %rsi     # 0x25594
leaq 0x230(%rsp), %rdi
callq 0x4840
movq (%rbx), %rdi
callq 0x9eaa
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x230(%rsp), %rdi
callq 0x4100
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x14cc0
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x14cc7
movq %r15, %rdi
callq 0x1d8e2
movl $0x194, %ebp            # imm = 0x194
testb %al, %al
je 0x1567d
movq %r15, %rdi
callq 0x1efa6
movq %r15, %rdi
callq 0x1f47a
movq %rax, %r12
movq (%rbx), %r13
leaq 0x220(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x10cb5(%rip), %rsi     # 0x2588f
leaq 0x10cbd(%rip), %rdx     # 0x2589e
leaq 0x210(%rsp), %rdi
callq 0x579e
leaq 0x210(%rsp), %rsi
movq %r13, %rdi
callq 0x9f62
movq 0x8(%rax), %r13
movq 0x210(%rsp), %rdi
cmpq %rbp, %rdi
je 0x14c1f
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x4470
testq %r13, %r13
je 0x15153
movq %rbx, %rdi
movq %r12, %rsi
callq 0x16392
testb %al, %al
je 0x15153
leaq 0x10952(%rip), %rsi     # 0x25594
leaq 0x68(%rsp), %r13
movl $0x1, %ecx
movq %r13, %rdi
movq $-0x1, %rdx
callq 0x4870
leaq 0x1(%rax), %rcx
leaq 0x230(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x4490
movq (%r12), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x230(%rsp), %rdi
callq 0x4100
leaq 0x160(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x150e1
movq %rdx, 0x150(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x160(%rsp)
jmp 0x150e9
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x230(%rsp), %rdi
leaq 0x240(%rsp), %rax
cmpq %rax, %rdi
je 0x14d04
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x4470
movq (%rbx), %rdi
callq 0x9f28
cmpq $0x0, 0x8(%rax)
je 0x15565
movq (%rbx), %rdi
callq 0x9ee0
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x6c2a
leaq 0x10850(%rip), %rsi     # 0x25594
leaq 0x8(%rsp), %rdi
callq 0x4840
movq (%rbx), %rdi
callq 0x9f28
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
callq 0x4100
leaq 0x120(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x14d98
movq %rdx, 0x110(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x120(%rsp)
jmp 0x14da0
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x110(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x230(%rsp), %rdi
callq 0x1c604
movq 0x110(%rsp), %rdi
cmpq %r12, %rdi
je 0x14de9
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r12
cmpq %r12, %rdi
je 0x14e05
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq (%rbx), %rdi
callq 0x9ef4
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x6c2a
leaq 0x1075d(%rip), %rsi     # 0x25594
leaq 0x88(%rsp), %rdi
callq 0x4840
movq (%rbx), %rdi
callq 0x9f28
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rdi
callq 0x4100
leaq 0xd8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x14e90
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x14e97
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0xc8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x106d7(%rip), %rsi     # 0x25594
callq 0x4840
movq %r14, 0xe8(%rsp)
leaq 0x58(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x14ef4
movq %rsi, %r14
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x14efd
movups (%rcx), %xmm0
movq %rsi, %r14
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rdi
callq 0x9eaa
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
callq 0x4100
movq %r12, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
movq %r13, %rbp
cmpq %rcx, %rdx
je 0x14f54
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x14f5c
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %r13
movq %rdx, 0x8(%r13)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
movq %r13, %rsi
callq 0x4570
movq (%r13), %rdi
cmpq %r12, %rdi
je 0x14f9b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
movq %rbp, %r13
je 0x14fb5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
leaq 0x38(%rsp), %rbp
movq 0xe8(%rsp), %r14
je 0x14fe7
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x78(%rsp), %r13
je 0x15009
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x230(%rsp), %rdi
callq 0x1d8e2
testb %al, %al
je 0x15038
leaq 0x230(%rsp), %rdi
callq 0x1e834
testb %al, %al
jne 0x15038
leaq 0x230(%rsp), %rdi
callq 0x1d5e4
leaq 0x230(%rsp), %rdi
callq 0x1d8e2
testb %al, %al
jne 0x1546f
leaq 0x230(%rsp), %rdi
callq 0x1f480
movq (%rax), %rdi
movl $0x1ed, %esi            # imm = 0x1ED
callq 0x41b0
cmpl $-0x1, %eax
jne 0x1546f
callq 0x4050
movl (%rax), %edi
callq 0x4140
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
movq %rax, %rsi
callq 0x5712
leaq 0x10827(%rip), %rcx     # 0x258bc
leaq 0x8(%rsp), %rdi
movl $0x8, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x44d0
leaq 0xb8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x153a3
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x153ab
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x150(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
movl $0x1, %edx
callq 0x1c752
movq 0x150(%rsp), %rdi
cmpq %r13, %rdi
je 0x15132
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x240(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15153
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x4470
movq (%rbx), %r13
leaq 0x200(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x10736(%rip), %rsi     # 0x2589f
leaq 0x1073d(%rip), %rdx     # 0x258ad
leaq 0x1f0(%rsp), %rdi
callq 0x579e
leaq 0x1f0(%rsp), %rsi
movq %r13, %rdi
callq 0x9f62
movq 0x8(%rax), %r13
movq 0x1f0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x151ae
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x4470
testq %r13, %r13
leaq 0x78(%rsp), %r13
je 0x152f9
leaq 0x230(%rsp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x169b2
leaq 0x140(%rbx), %rdi
leaq 0x230(%rsp), %r13
movq %r13, %rsi
callq 0x4570
movq (%r13), %rdi
leaq 0x240(%rsp), %rbp
cmpq %rbp, %rdi
je 0x15207
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x10386(%rip), %rsi     # 0x25594
leaq 0x68(%rsp), %r13
movl $0x1, %ecx
movq %r13, %rdi
movq $-0x1, %rdx
callq 0x4870
leaq 0x1(%rax), %rcx
leaq 0x230(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x4490
movq (%r12), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x230(%rsp), %rdi
leaq 0x78(%rsp), %r13
callq 0x4100
leaq 0x140(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1528b
movq %rdx, 0x130(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x140(%rsp)
jmp 0x15293
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x130(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
movl $0x1, %edx
callq 0x1c752
movq 0x130(%rsp), %rdi
cmpq %r12, %rdi
je 0x152dc
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x230(%rsp), %rdi
cmpq %rbp, %rdi
je 0x152f9
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x4470
movq %r15, %rdi
xorl %esi, %esi
callq 0x1cd66
movl $0x193, %ebp            # imm = 0x193
testb %al, %al
je 0x1567d
leaq 0x230(%rsp), %rdi
movq %r15, %rsi
callq 0x1e88a
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1057e(%rip), %rsi     # 0x258ae
leaq 0x10584(%rip), %rdx     # 0x258bb
leaq 0x28(%rsp), %rdi
callq 0x579e
leaq 0x190(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x105ca
leaq 0x230(%rsp), %rsi
movq %rax, %rdi
callq 0x4570
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x15379
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x240(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14956
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x14956
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0xb0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1c0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xfc47(%rip), %rsi      # 0x25020
leaq 0xfc45(%rip), %rdx      # 0x25025
leaq 0x1b0(%rsp), %rdi
callq 0x579e
leaq 0x1d0f4(%rip), %rdi     # 0x324e8
leaq 0xa8(%rsp), %rdx
leaq 0x1b0(%rsp), %rcx
movl $0x2, %esi
movl $0x1, %r8d
callq 0x20f32
movq 0x1b0(%rsp), %rdi
cmpq %r13, %rdi
je 0x15431
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
leaq 0x78(%rsp), %r13
je 0x15453
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r12
cmpq %r12, %rdi
je 0x1546f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x230(%rsp), %rdi
callq 0x1f480
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x6c2a
leaq 0x100fa(%rip), %rsi     # 0x25594
leaq 0x8(%rsp), %rdi
callq 0x4840
movq (%rbx), %rdi
callq 0x9eaa
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
callq 0x4100
leaq 0x100(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x154ee
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x154f6
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0xf0(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
xorl %edx, %edx
callq 0x1c752
movq 0xf0(%rsp), %rdi
cmpq %r12, %rdi
je 0x1553c
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x15558
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x230(%rsp), %rdi
callq 0x1c818
leaq 0x1a0(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x190(%rsp), %rdi
callq 0x6c2a
leaq 0x230(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x243cc
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x10314(%rip), %rsi     # 0x258c5
leaq 0x10315(%rip), %rdx     # 0x258cd
leaq 0x8(%rsp), %rdi
callq 0x579e
leaq 0x190(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x105ca
leaq 0x230(%rsp), %rsi
movq %rax, %rdi
callq 0x4570
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x155fa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x230(%rsp), %rdi
leaq 0x240(%rsp), %rax
cmpq %rax, %rdi
je 0x1561f
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x190(%rsp), %rdi
cmpq %r15, %rdi
je 0x1563c
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x15653
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
leaq 0x160(%rbx), %rdi
movq %r14, %rsi
callq 0x17bec
movq (%rax), %rcx
addq 0x8(%rax), %rbx
testb $0x1, %cl
je 0x15676
movq (%rbx), %rax
movq -0x1(%rax,%rcx), %rcx
movq %rbx, %rdi
callq *%rcx
movl %eax, %ebp
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x15694
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4470
movl %ebp, %eax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x1b0(%rsp), %rdi
cmpq %r13, %rdi
je 0x156cd
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x156cd
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1598c
movq 0xb8(%rsp), %rsi
jmp 0x157f7
jmp 0x15989
jmp 0x15a68
movq %rax, %rbx
movq 0x150(%rsp), %rdi
cmpq %r13, %rdi
je 0x15a36
movq 0x160(%rsp), %rsi
jmp 0x15906
jmp 0x15a33
jmp 0x15ac6
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x15a36
movq 0x38(%rsp), %rsi
jmp 0x15906
jmp 0x15a33
jmp 0x15ac6
movq %rax, %rbx
movq 0x130(%rsp), %rdi
cmpq %r12, %rdi
je 0x1576a
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x1576a
movq %rax, %rbx
movq 0x230(%rsp), %rdi
cmpq %rbp, %rdi
jne 0x15a5c
jmp 0x15ac9
jmp 0x15ac6
jmp 0x15ac6
movq %rax, %rbx
movq 0x1f0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x15ac9
movq 0x200(%rsp), %rsi
jmp 0x15a8c
jmp 0x15ac6
movq %rax, %rbx
movq 0x210(%rsp), %rdi
cmpq %rbp, %rdi
je 0x15ac9
movq 0x220(%rsp), %rsi
jmp 0x15a8c
jmp 0x15ac6
jmp 0x15a33
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r12, %rdi
je 0x1598c
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x1598c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x1599f
jmp 0x15a6b
movq %rax, %rbx
jmp 0x159c5
jmp 0x159e4
movq %rax, %rbx
movq 0x110(%rsp), %rdi
cmpq %r12, %rdi
je 0x15a0b
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x15a0b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x15a1a
jmp 0x15a78
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x15885
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x15885
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15ab7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x15ab7
jmp 0x15ab4
movq %rax, %rbx
movq 0x170(%rsp), %rdi
cmpq %rbp, %rdi
je 0x158d3
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x158d3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x158ef
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x158ef
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15a36
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x15a36
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x15932
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x15932
movq %rax, %rbx
movq 0x230(%rsp), %rdi
leaq 0x240(%rsp), %rax
cmpq %rax, %rdi
je 0x1595c
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x1595c
movq %rax, %rbx
movq 0x190(%rsp), %rdi
cmpq %r15, %rdi
je 0x15a78
movq 0x1a0(%rsp), %rsi
jmp 0x15a1f
jmp 0x15a29
jmp 0x15a29
jmp 0x15a44
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x15a6b
movq 0x18(%rsp), %rsi
jmp 0x159fc
jmp 0x15a68
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x159c5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4470
movq 0xc8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x159e7
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x159e7
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x15a6b
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x15a6b
jmp 0x15a68
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x15a78
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x15a78
movq %rax, %rbx
jmp 0x15a78
jmp 0x15ac6
movq %rax, %rbx
leaq 0x240(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x15a57
movq %rax, %rbx
movq 0x230(%rsp), %rdi
leaq 0x240(%rsp), %rax
cmpq %rax, %rdi
je 0x15ac9
movq 0x240(%rsp), %rsi
jmp 0x15a8c
jmp 0x15ac6
movq %rax, %rbx
leaq 0x230(%rsp), %rdi
callq 0x1c818
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x15ac9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4470
jmp 0x15ac9
jmp 0x15ac6
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
cmpq %r12, %rdi
je 0x15ac9
movq 0x1e0(%rsp), %rsi
jmp 0x15a8c
jmp 0x15ac6
movq %rax, %rbx
leaq 0x230(%rsp), %rdi
callq 0xf302
jmp 0x15ac9
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x15ae5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4790
nop