// File: Kei18[P]pibt/./src/solver/tp.cpp
// Function: TP::getPath(Agent*, Node*, Node*, int, bool)
Nodes TP::getPath(Agent* a,
                  Node* s,
                  Node* g,
                  int startTime,
                  bool futureCollision)
{
  Nodes path;
  Nodes C;
  AN_OLD *l, *n;
  int t, f, cost;
  std::string key;
  bool prohibited, goalCheck;

  Nodes pathends;
  Node* v;
  for (auto p : paths) {
    v = p[p.size() - 1];
    if (v != s && v != a->getNode()) pathends.push_back(v);
  }

  std::unordered_set<std::string> OPEN;
  std::unordered_map<std::string, AN_OLD*> table;

  t = startTime - 1;
  l = new AN_OLD { s, true, startTime - 1, pathDist(s, g), nullptr };
  key = getKey(t, s);
  table.emplace(key, l);
  OPEN = { key };

  bool invalid = true;
  while (!OPEN.empty()) {
    // argmin
    auto itr1 = std::min_element(OPEN.begin(), OPEN.end(),
                                 [&table] (std::string a, std::string b)
                                 { auto eleA = table.at(a);
                                   auto eleB = table.at(b);
                                   if (eleA->f == eleB->f) {
                                     return eleA->t > eleB->t;
                                   }
                                   return eleA->f < eleB->f;
                                 });
    key = *itr1;
    n = table.at(key);
    t = n->t;

    // check goal
    if (n->v == g) {
      goalCheck = true;

      if (futureCollision) {
        for (auto p : paths) {
          if (t + 1 >= p.size()) continue;

          for (auto itr = p.begin() + t + 1; itr < p.end(); ++itr) {
            if ((*itr) == n->v) {  // collision in future
              goalCheck = false;
              break;
            }
          }
          if (!goalCheck) break;
        }
      }

      if (goalCheck) {
        invalid = false;
        break;
      }
    }

    // update list
    n->open = false;
    OPEN.erase(itr1);

    // search neighbor
    C = { n->v };
    for (auto u : G->neighbor(n->v)) {
      if (!inArray(u, pathends)) C.push_back(u);
    }

    for (auto m : C) {
      t = n->t + 1;

      if (t > 0) {
        prohibited = false;

        for (auto p : paths) {
          if (t + 1 > p.size()) continue;
          if (p[t] == m) { // collision
            prohibited = true;
            break;
          }
          if (p[t] == n->v && p[t-1] == m) {  // intersection
            prohibited = true;
            break;
          }
        }

        if (prohibited) continue;
      }

      key = getKey(t, m);
      auto itr2 = table.find(key);
      if (itr2 == table.end()) {
        table.emplace(key, new AN_OLD { m, true, t, 100000, n });
      }
      l = table.at(key);
      if (!l->open) continue;

      cost = pathDist(m, g);
      f = t + cost;

      if (l->f > f) {
        l->t = t;
        l->f = f;
        l->p = n;
      }

      OPEN.insert(key);
    }
  }

  // back tracking
  if (!invalid) {  // check failed or not
    while (n->p) {
      path.push_back(n->v);
      n = n->p;
    }
    path.push_back(s);
    std::reverse(path.begin(), path.end());
  }

  return path;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x4a0, %rsp            # imm = 0x4A0
movq %rdi, -0x378(%rbp)
movq %rdi, %rax
movq %rax, -0x370(%rbp)
movb 0x10(%rbp), %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
andb $0x1, %al
movb %al, -0x2d(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x368(%rbp)
movb $0x0, -0x2e(%rbp)
callq 0x3e880
leaq -0x48(%rbp), %rdi
callq 0x3e880
leaq -0x88(%rbp), %rdi
callq 0x86b0
leaq -0xa8(%rbp), %rdi
callq 0x3e880
movq -0x368(%rbp), %rax
addq $0x88, %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rdi
callq 0x377e0
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rdi
callq 0x37500
movq %rax, -0xc8(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x4e640
testb $0x1, %al
jne 0xa2e27
jmp 0xa2f1f
leaq -0xc0(%rbp), %rdi
callq 0x37d00
movq %rax, %rsi
leaq -0xe0(%rbp), %rdi
callq 0x3aff0
jmp 0xa2e44
leaq -0xe0(%rbp), %rdi
callq 0x3b0e0
movq %rax, %rsi
subq $0x1, %rsi
leaq -0xe0(%rbp), %rdi
callq 0xda90
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0xa2f02
movq -0xb0(%rbp), %rax
movq %rax, -0x388(%rbp)
movq -0x18(%rbp), %rdi
callq 0x51cb0
movq %rax, -0x380(%rbp)
jmp 0xa2e9e
movq -0x388(%rbp), %rax
movq -0x380(%rbp), %rcx
cmpq %rcx, %rax
je 0xa2f02
leaq -0xa8(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x3f490
jmp 0xa2ec6
jmp 0xa2f02
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
jmp 0xa3b24
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0xd7d0
jmp 0xa3b24
leaq -0xe0(%rbp), %rdi
callq 0xd7d0
leaq -0xc0(%rbp), %rdi
callq 0x4e750
jmp 0xa2e0b
leaq -0x128(%rbp), %rdi
callq 0x636e0
leaq -0x160(%rbp), %rdi
callq 0xa5550
movl -0x2c(%rbp), %eax
decl %eax
movl %eax, -0x5c(%rbp)
movl $0x20, %edi
callq 0x84e0
movq %rax, -0x390(%rbp)
jmp 0xa2f52
movq -0x368(%rbp), %rdi
movq -0x390(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, (%rax)
movb $0x1, 0x8(%rax)
movl -0x2c(%rbp), %ecx
decl %ecx
movl %ecx, 0xc(%rax)
addq $0x10, %rax
movq %rax, -0x3a0(%rbp)
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x9d410
movl %eax, -0x394(%rbp)
jmp 0xa2f93
movq -0x390(%rbp), %rax
movq -0x3a0(%rbp), %rcx
movl -0x394(%rbp), %edx
movl %edx, (%rcx)
movq $0x0, 0x18(%rax)
movq %rax, -0x50(%rbp)
movl -0x5c(%rbp), %esi
movq -0x20(%rbp), %rdx
leaq -0x180(%rbp), %rdi
callq 0x9d8c0
jmp 0xa2fca
leaq -0x88(%rbp), %rdi
movq %rdi, -0x3b8(%rbp)
leaq -0x180(%rbp), %rsi
movq %rsi, -0x3c0(%rbp)
callq 0x85f0
movq -0x3c0(%rbp), %rdi
callq 0x8330
movq -0x3b8(%rbp), %rsi
leaq -0x160(%rbp), %rdi
leaq -0x50(%rbp), %rdx
callq 0xa5570
movb %dl, -0x3a9(%rbp)
movq %rax, -0x3a8(%rbp)
jmp 0xa301d
movb -0x3a9(%rbp), %al
movq -0x3a8(%rbp), %rcx
movq %rcx, -0x190(%rbp)
movb %al, -0x188(%rbp)
leaq -0x1c0(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
leaq -0x88(%rbp), %rsi
callq 0x8230
jmp 0xa3053
leaq -0x1c0(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq $0x1, -0x198(%rbp)
movq -0x1a0(%rbp), %rsi
movq -0x198(%rbp), %rdx
leaq -0x128(%rbp), %rdi
callq 0xa55c0
jmp 0xa3088
leaq -0x1c0(%rbp), %rax
movq %rax, -0x3d0(%rbp)
addq $0x20, %rax
movq %rax, -0x3c8(%rbp)
movq -0x3c8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3d8(%rbp)
callq 0x8330
movq -0x3d0(%rbp), %rcx
movq -0x3d8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x3c8(%rbp)
jne 0xa30a1
movb $0x1, -0x1c9(%rbp)
leaq -0x128(%rbp), %rdi
callq 0xa5610
xorb $-0x1, %al
testb $0x1, %al
jne 0xa30f0
jmp 0xa3a38
leaq -0x128(%rbp), %rdi
movq %rdi, -0x3e8(%rbp)
callq 0xa5630
movq -0x3e8(%rbp), %rdi
movq %rax, -0x1e0(%rbp)
callq 0x637f0
movq %rax, -0x1e8(%rbp)
leaq -0x160(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0x1e0(%rbp), %rdi
movq -0x1e8(%rbp), %rsi
movq -0x1f0(%rbp), %rdx
callq 0xa3de0
movq %rax, -0x3e0(%rbp)
jmp 0xa314e
movq -0x3e0(%rbp), %rax
movq %rax, -0x1d8(%rbp)
leaq -0x1d8(%rbp), %rdi
callq 0xa5660
movq %rax, %rsi
leaq -0x88(%rbp), %rdi
callq 0x8070
jmp 0xa3179
leaq -0x160(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xa5690
movq %rax, -0x3f0(%rbp)
jmp 0xa3195
movq -0x3f0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x5c(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rax
cmpq -0x28(%rbp), %rax
jne 0xa3498
movb $0x1, -0x8a(%rbp)
testb $0x1, -0x2d(%rbp)
je 0xa3481
movq -0x368(%rbp), %rax
addq $0x88, %rax
movq %rax, -0x1f8(%rbp)
movq -0x1f8(%rbp), %rdi
callq 0x377e0
movq %rax, -0x200(%rbp)
movq -0x1f8(%rbp), %rdi
callq 0x37500
movq %rax, -0x208(%rbp)
leaq -0x200(%rbp), %rdi
leaq -0x208(%rbp), %rsi
callq 0x4e640
testb $0x1, %al
jne 0xa3225
jmp 0xa347f
leaq -0x200(%rbp), %rdi
callq 0x37d00
movq %rax, %rsi
leaq -0x220(%rbp), %rdi
callq 0x3aff0
jmp 0xa3242
movl -0x5c(%rbp), %eax
addl $0x1, %eax
cltq
movq %rax, -0x3f8(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x3b0e0
movq %rax, %rcx
movq -0x3f8(%rbp), %rax
cmpq %rcx, %rax
jb 0xa3381
movl $0x7, -0x224(%rbp)
jmp 0xa343f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
jmp 0xa3b0c
movq -0x390(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
movl $0x20, %esi
callq 0x84f0
jmp 0xa3b0c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
movq -0x1c8(%rbp), %rax
leaq -0x1c0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x400(%rbp)
je 0xa331b
movq -0x400(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x408(%rbp)
callq 0x8330
movq -0x408(%rbp), %rax
leaq -0x1c0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x400(%rbp)
jne 0xa32ea
jmp 0xa3b0c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
leaq -0x1c0(%rbp), %rax
movq %rax, -0x418(%rbp)
addq $0x20, %rax
movq %rax, -0x410(%rbp)
movq -0x410(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x420(%rbp)
callq 0x8330
movq -0x418(%rbp), %rcx
movq -0x420(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x410(%rbp)
jne 0xa334b
jmp 0xa3b0c
leaq -0x220(%rbp), %rdi
callq 0x3b730
movq %rax, -0x240(%rbp)
movslq -0x5c(%rbp), %rsi
leaq -0x240(%rbp), %rdi
callq 0x413f0
movq %rax, -0x238(%rbp)
leaq -0x238(%rbp), %rdi
movl $0x1, %esi
callq 0x413f0
movq %rax, -0x230(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x3b760
movq %rax, -0x248(%rbp)
leaq -0x230(%rbp), %rdi
leaq -0x248(%rbp), %rsi
callq 0x468e0
testb $0x1, %al
jne 0xa33ef
jmp 0xa3420
leaq -0x230(%rbp), %rdi
callq 0x3bb00
movq (%rax), %rax
movq -0x58(%rbp), %rcx
cmpq (%rcx), %rax
jne 0xa3410
movb $0x0, -0x8a(%rbp)
jmp 0xa3420
jmp 0xa3412
leaq -0x230(%rbp), %rdi
callq 0x3bad0
jmp 0xa33c3
testb $0x1, -0x8a(%rbp)
jne 0xa3435
movl $0x6, -0x224(%rbp)
jmp 0xa343f
movl $0x0, -0x224(%rbp)
leaq -0x220(%rbp), %rdi
callq 0xd7d0
movl -0x224(%rbp), %eax
movl %eax, -0x424(%rbp)
testl %eax, %eax
je 0xa346c
jmp 0xa345d
movl -0x424(%rbp), %eax
subl $0x6, %eax
je 0xa347f
jmp 0xa346a
jmp 0xa346e
jmp 0xa346e
leaq -0x200(%rbp), %rdi
callq 0x4e750
jmp 0xa3209
jmp 0xa3481
testb $0x1, -0x8a(%rbp)
je 0xa3496
movb $0x0, -0x1c9(%rbp)
jmp 0xa3a38
jmp 0xa3498
movq -0x58(%rbp), %rax
movb $0x0, 0x8(%rax)
movq -0x1d8(%rbp), %rax
movq %rax, -0x250(%rbp)
movq -0x250(%rbp), %rsi
leaq -0x128(%rbp), %rdi
callq 0xa56c0
movq %rax, -0x430(%rbp)
jmp 0xa34ca
movq -0x430(%rbp), %rax
movq %rax, -0x258(%rbp)
movq -0x58(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x270(%rbp)
leaq -0x270(%rbp), %rax
movq %rax, -0x268(%rbp)
movq $0x1, -0x260(%rbp)
movq -0x268(%rbp), %rsi
movq -0x260(%rbp), %rdx
leaq -0x48(%rbp), %rdi
callq 0x97100
jmp 0xa3518
movq -0x368(%rbp), %rax
movq 0x38(%rax), %rsi
movq -0x58(%rbp), %rax
movq (%rax), %rdx
leaq -0x290(%rbp), %rdi
callq 0x3c8d0
jmp 0xa3538
leaq -0x290(%rbp), %rax
movq %rax, -0x278(%rbp)
movq -0x278(%rbp), %rdi
callq 0x3b730
movq %rax, -0x298(%rbp)
movq -0x278(%rbp), %rdi
callq 0x3b760
movq %rax, -0x2a0(%rbp)
leaq -0x298(%rbp), %rdi
leaq -0x2a0(%rbp), %rsi
callq 0x3b790
testb $0x1, %al
jne 0xa359e
movl $0xb, -0x224(%rbp)
leaq -0x290(%rbp), %rdi
callq 0xd7d0
jmp 0xa3625
leaq -0x298(%rbp), %rdi
callq 0x3bb00
movq (%rax), %rax
movq %rax, -0x2a8(%rbp)
movq -0x2a8(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0xa3e40
movb %al, -0x431(%rbp)
jmp 0xa35cf
movb -0x431(%rbp), %al
testb $0x1, %al
jne 0xa3612
jmp 0xa35db
leaq -0x48(%rbp), %rdi
leaq -0x2a8(%rbp), %rsi
callq 0x3f490
jmp 0xa35ed
jmp 0xa3612
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
leaq -0x290(%rbp), %rdi
callq 0xd7d0
jmp 0xa3b0c
jmp 0xa3614
leaq -0x298(%rbp), %rdi
callq 0x3bad0
jmp 0xa356c
leaq -0x48(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movq -0x2b0(%rbp), %rdi
callq 0x3b730
movq %rax, -0x2b8(%rbp)
movq -0x2b0(%rbp), %rdi
callq 0x3b760
movq %rax, -0x2c0(%rbp)
leaq -0x2b8(%rbp), %rdi
leaq -0x2c0(%rbp), %rsi
callq 0x3b790
testb $0x1, %al
jne 0xa3672
jmp 0xa3a33
leaq -0x2b8(%rbp), %rdi
callq 0x3bb00
movq (%rax), %rax
movq %rax, -0x2c8(%rbp)
movq -0x58(%rbp), %rax
movl 0xc(%rax), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
cmpl $0x0, -0x5c(%rbp)
jle 0xa382b
movq -0x368(%rbp), %rax
movb $0x0, -0x89(%rbp)
addq $0x88, %rax
movq %rax, -0x2d0(%rbp)
movq -0x2d0(%rbp), %rdi
callq 0x377e0
movq %rax, -0x2d8(%rbp)
movq -0x2d0(%rbp), %rdi
callq 0x37500
movq %rax, -0x2e0(%rbp)
leaq -0x2d8(%rbp), %rdi
leaq -0x2e0(%rbp), %rsi
callq 0x4e640
testb $0x1, %al
jne 0xa36fc
jmp 0xa381b
leaq -0x2d8(%rbp), %rdi
callq 0x37d00
movq %rax, %rsi
leaq -0x2f8(%rbp), %rdi
callq 0x3aff0
jmp 0xa3719
movl -0x5c(%rbp), %eax
addl $0x1, %eax
cltq
movq %rax, -0x440(%rbp)
leaq -0x2f8(%rbp), %rdi
callq 0x3b0e0
movq %rax, %rcx
movq -0x440(%rbp), %rax
cmpq %rcx, %rax
jbe 0xa3752
movl $0x10, -0x224(%rbp)
jmp 0xa37db
movslq -0x5c(%rbp), %rsi
leaq -0x2f8(%rbp), %rdi
callq 0xda90
movq (%rax), %rax
cmpq -0x2c8(%rbp), %rax
jne 0xa3781
movb $0x1, -0x89(%rbp)
movl $0xf, -0x224(%rbp)
jmp 0xa37db
movslq -0x5c(%rbp), %rsi
leaq -0x2f8(%rbp), %rdi
callq 0xda90
movq (%rax), %rax
movq -0x58(%rbp), %rcx
cmpq (%rcx), %rax
jne 0xa37d1
movl -0x5c(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rsi
leaq -0x2f8(%rbp), %rdi
callq 0xda90
movq (%rax), %rax
cmpq -0x2c8(%rbp), %rax
jne 0xa37d1
movb $0x1, -0x89(%rbp)
movl $0xf, -0x224(%rbp)
jmp 0xa37db
movl $0x0, -0x224(%rbp)
leaq -0x2f8(%rbp), %rdi
callq 0xd7d0
movl -0x224(%rbp), %eax
movl %eax, -0x444(%rbp)
testl %eax, %eax
je 0xa3808
jmp 0xa37f9
movl -0x444(%rbp), %eax
subl $0xf, %eax
je 0xa381b
jmp 0xa3806
jmp 0xa380a
jmp 0xa380a
leaq -0x2d8(%rbp), %rdi
callq 0x4e750
jmp 0xa36e0
testb $0x1, -0x89(%rbp)
je 0xa3829
jmp 0xa3a22
jmp 0xa382b
movl -0x5c(%rbp), %esi
movq -0x2c8(%rbp), %rdx
leaq -0x318(%rbp), %rdi
callq 0x9d8c0
jmp 0xa3843
leaq -0x88(%rbp), %rdi
movq %rdi, -0x458(%rbp)
leaq -0x318(%rbp), %rsi
movq %rsi, -0x460(%rbp)
callq 0x85f0
movq -0x460(%rbp), %rdi
callq 0x8330
movq -0x458(%rbp), %rsi
leaq -0x160(%rbp), %rdi
callq 0xa5700
movq %rax, -0x450(%rbp)
jmp 0xa388c
movq -0x450(%rbp), %rax
movq %rax, -0x320(%rbp)
leaq -0x160(%rbp), %rdi
callq 0xa5760
movq %rax, -0x328(%rbp)
leaq -0x320(%rbp), %rdi
leaq -0x328(%rbp), %rsi
callq 0xa5730
testb $0x1, %al
jne 0xa38c9
jmp 0xa3950
movl $0x20, %edi
callq 0x84e0
movq %rax, -0x468(%rbp)
jmp 0xa38dc
movq -0x468(%rbp), %rax
movq -0x2c8(%rbp), %rcx
movq %rcx, (%rax)
movb $0x1, 0x8(%rax)
movl -0x5c(%rbp), %ecx
movl %ecx, 0xc(%rax)
movl $0x186a0, 0x10(%rax)    # imm = 0x186A0
movq -0x58(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq %rax, -0x330(%rbp)
leaq -0x160(%rbp), %rdi
leaq -0x88(%rbp), %rsi
leaq -0x330(%rbp), %rdx
callq 0xa5790
movb %dl, -0x471(%rbp)
movq %rax, -0x470(%rbp)
jmp 0xa3936
movb -0x471(%rbp), %al
movq -0x470(%rbp), %rcx
movq %rcx, -0x340(%rbp)
movb %al, -0x338(%rbp)
leaq -0x160(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xa5690
movq %rax, -0x480(%rbp)
jmp 0xa396c
movq -0x480(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
testb $0x1, 0x8(%rax)
jne 0xa3989
jmp 0xa3a22
movq -0x368(%rbp), %rdi
movq -0x2c8(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x9d410
movl %eax, -0x484(%rbp)
jmp 0xa39a8
movl -0x484(%rbp), %eax
movl %eax, -0x64(%rbp)
movl -0x5c(%rbp), %eax
addl -0x64(%rbp), %eax
movl %eax, -0x60(%rbp)
movq -0x50(%rbp), %rax
movl 0x10(%rax), %eax
cmpl -0x60(%rbp), %eax
jle 0xa39e6
movl -0x5c(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0xc(%rax)
movl -0x60(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x58(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x18(%rax)
leaq -0x128(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xa57e0
movb %dl, -0x491(%rbp)
movq %rax, -0x490(%rbp)
jmp 0xa3a08
movb -0x491(%rbp), %al
movq -0x490(%rbp), %rcx
movq %rcx, -0x350(%rbp)
movb %al, -0x348(%rbp)
leaq -0x2b8(%rbp), %rdi
callq 0x3bad0
jmp 0xa3656
jmp 0xa30d9
testb $0x1, -0x1c9(%rbp)
jne 0xa3abd
jmp 0xa3a43
movq -0x58(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0xa3a6e
movq -0x378(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x3f490
jmp 0xa3a60
movq -0x58(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0xa3a43
movq -0x378(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x3f490
jmp 0xa3a80
movq -0x378(%rbp), %rdi
callq 0x3b730
movq -0x378(%rbp), %rdi
movq %rax, -0x358(%rbp)
callq 0x3b760
movq %rax, -0x360(%rbp)
movq -0x358(%rbp), %rdi
movq -0x360(%rbp), %rsi
callq 0x3f500
jmp 0xa3abb
jmp 0xa3abd
movb $0x1, -0x2e(%rbp)
movl $0x1, -0x224(%rbp)
leaq -0x160(%rbp), %rdi
callq 0xa5820
leaq -0x128(%rbp), %rdi
callq 0x63930
leaq -0xa8(%rbp), %rdi
callq 0xd7d0
leaq -0x88(%rbp), %rdi
callq 0x8330
leaq -0x48(%rbp), %rdi
callq 0xd7d0
testb $0x1, -0x2e(%rbp)
jne 0xa3b5f
jmp 0xa3b53
leaq -0x160(%rbp), %rdi
callq 0xa5820
leaq -0x128(%rbp), %rdi
callq 0x63930
leaq -0xa8(%rbp), %rdi
callq 0xd7d0
leaq -0x88(%rbp), %rdi
callq 0x8330
leaq -0x48(%rbp), %rdi
callq 0xd7d0
movq -0x378(%rbp), %rdi
callq 0xd7d0
jmp 0xa3b6f
movq -0x378(%rbp), %rdi
callq 0xd7d0
movq -0x370(%rbp), %rax
addq $0x4a0, %rsp            # imm = 0x4A0
popq %rbp
retq
movq -0xe8(%rbp), %rdi
callq 0x8880
nopl (%rax,%rax)