// File: /workspace/github_cpp_makefile_star2_O2/AlgoLab[P]bwt-lcp-parallel/bwt_lcp.cpp
// Function: compute_interleave_LCP(unsigned char, unsigned int, std::vector<std::array<unsigned long, 6ul>, std::allocator<std::array<unsigned long, 6ul>>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void compute_interleave_LCP(
    const strlen_t k, const strnum_t m,
    const occ_countv_t& occv,
    const fnames_t& B_tpl,
    const fname_t& IXk_name
) {
  const fnames_t IX_names = {
    "supportfile-IX0.tmp",
    "supportfile-IX1.tmp",
  };
  const fnames_t Q_tpls[] = {
    template_generator("supportfile-Q0_%.3d.tmp", 0, k+1),
    template_generator("supportfile-Q1_%.3d.tmp", 0, k+1),
  };

  const luint_t tot = static_cast<luint_t>(m)*(k+1);
  const fnames_t L_tpl = template_generator("supportfile-L_%d.tmp", 0, ALPHSIZE);

  const fname_t LCP_name = "outfile-LCP.bin";
  { // IX0/1 and LCP
    strlen_writer_t IX0(IX_names[0]);
    for (strlen_t l = 0; l <= k; ++l) {
      for (strnum_t i = 0; i < m; ++i) {
        IX0.write(l);
      }
    }
    create_empty_file<strlen_t>(LCP_name, tot);
    create_empty_file<strlen_t>(IX_names[1], tot);
  }

  compute_Q1_l(k, occv, Q_tpls[0]);

  lcp_writer_t LCP(LCP_name);
  LCP.seek(0);
  LCP.write(static_cast<strlen_t>(-1));

  bool has_pseg_wider_than_1 = true;
  base_env_t base_env{k, m, IX_names, LCP};

  std::vector<luint_t> end_pos(concurrency_level+1, tot);
  end_pos[0] = 0;
  std::vector<std::vector<strnum_t>> end_pos_Qp(concurrency_level+1, std::vector<strnum_t>(k+1, 0));
  std::vector<bfv_env_t> bfv_envs;
  for (unsigned idx = 0; idx < concurrency_level; ++idx)
    bfv_envs.emplace_back(base_env);

  while (has_pseg_wider_than_1) {
    has_pseg_wider_than_1 = false;
    ++base_env.p;
    std::cout << " - iteration " << static_cast<fuint_t>(base_env.p) << std::endl;
    const fnames_t& prevQ_tpl = Q_tpls[(base_env.p-1)%2];
    const fnames_t& currQ_tpl = Q_tpls[base_env.p%2];
    std::vector<luint_t> this_end_pos = end_pos;
    std::vector<std::vector<strnum_t>> this_end_pos_Qp = end_pos_Qp;
    {
      std::cout << "   - compute IX";
      for (strlen_t l = base_env.p+1; l <= k+1; ++l) {
        base_env.Qp.emplace_back(prevQ_tpl[l-1]);
      }
      std::vector<std::thread> threads;
      unsigned idx;
      for (idx = 1; idx <= concurrency_level && this_end_pos[idx-1] < tot; ++idx) {
        threads
          .emplace_back(worker_IX,
                        idx, std::ref(base_env), std::ref(bfv_envs[idx-1]),
                        std::cref(this_end_pos), std::cref(this_end_pos_Qp)
                        );
      }
      for (auto& t: threads) {
        t.join();
      }
      for (unsigned j = 0; j < idx-1; ++j) {
        has_pseg_wider_than_1 |= bfv_envs[j].has_pseg_wider_than_1;
      }
      std::vector<size_t> pos(idx-1, 0);
      unsigned midi = 0;
      unsigned finished = 0;
      for (unsigned j = 0; j < idx-1; ++j) {
        while (pos[j] < bfv_envs[j].end_pos.size() &&
               bfv_envs[j].end_pos[pos[j]] <  base_env.midpoints[midi]) {
          ++pos[j];
        }
        if (pos[j] >= bfv_envs[j].end_pos.size()) ++finished;
      }
      while (finished < idx - 1) {
        luint_t cmin_j = 0;
        for (unsigned j = 0; j < idx-1; ++j) {
          if (
              pos[j] < bfv_envs[j].end_pos.size() &&
              bfv_envs[j].end_pos[pos[j]] >= base_env.midpoints[midi] &&
              (bfv_envs[j].end_pos[pos[j]] < bfv_envs[cmin_j].end_pos[pos[cmin_j]] ||
               bfv_envs[cmin_j].end_pos[pos[cmin_j]] < base_env.midpoints[midi])
              ) {
            cmin_j = j;
          }
        }
        if (pos[cmin_j] >= bfv_envs[cmin_j].end_pos.size()) break;
        end_pos[midi+1]= bfv_envs[cmin_j].end_pos[pos[cmin_j]];
        end_pos_Qp[midi+1] = bfv_envs[cmin_j].end_pos_Qp[pos[cmin_j]];
        ++midi;
        ++pos[cmin_j];
        finished = 0;
        for (unsigned j = 0; j < idx-1; ++j) {
          while (pos[j] < bfv_envs[j].end_pos.size() &&
                 bfv_envs[j].end_pos[pos[j]] <  base_env.midpoints[midi]) {
            ++pos[j];
          }
          if (pos[j] >= bfv_envs[j].end_pos.size()) ++finished;
        }
      }
      base_env.Qp.clear();
      std::cout << std::endl;
    }
    if (has_pseg_wider_than_1) {
      std::cout << "   - compute Qp" << std::endl;
      remove_file(currQ_tpl[base_env.p-1]);
      remove_file(prevQ_tpl[k]);
      std::vector<std::thread> threads;
      std::atomic<luint_t> shared_l(base_env.p+1);
      for (unsigned idx = 0; idx < concurrency_level; ++idx) {
        threads
          .emplace_back(worker_Qp,
                        std::ref(shared_l), k, m, std::cref(occv),
                        std::cref(B_tpl), std::cref(prevQ_tpl), std::cref(currQ_tpl)
                        );
      }
      for (auto& t: threads) {
        t.join();
      }
    } else {
      remove_file(currQ_tpl[base_env.p-1]);
      remove_file(prevQ_tpl[k]);
      for (strlen_t l = base_env.p+1; l <= k; ++l) {
        remove_file(prevQ_tpl[l-1]);
      }
    }
  }
  rename_file(IX_names[base_env.p%2], IXk_name);
  remove_file(IX_names[(base_env.p-1)%2]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %r8, %r12
movq %rcx, 0x148(%rsp)
movq %rdx, 0x88(%rsp)
movb %dil, 0xb(%rsp)
movl %esi, 0xc(%rsp)
leaq 0x5d5b(%rip), %rsi      # 0x9052
leaq 0xa8(%rsp), %rdi
leaq 0x200(%rsp), %rdx
callq 0x4ad4
leaq 0xc8(%rsp), %rdi
leaq 0x5d4b(%rip), %rsi      # 0x9066
leaq 0x1a0(%rsp), %rdx
callq 0x4ad4
leaq 0x90(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
pushq $0x2
popq %rdx
leaq 0x1c8(%rsp), %rcx
callq 0x54be
pushq $0x20
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0xa8, %rdi
callq 0x20d0
addq $-0x20, %rbx
cmpq $-0x20, %rbx
jne 0x334b
leaq 0x5d0e(%rip), %rsi      # 0x907a
leaq 0xa8(%rsp), %rdi
leaq 0x1c8(%rsp), %rdx
callq 0x4ad4
movzbl 0xb(%rsp), %ecx
incl %ecx
leaq 0x200(%rsp), %r15
leaq 0xa8(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x256c
leaq 0x218(%rsp), %r14
leaq 0x5ce1(%rip), %rsi      # 0x9092
leaq 0x1a0(%rsp), %rdi
leaq 0x230(%rsp), %rdx
callq 0x4ad4
movzbl 0xb(%rsp), %ecx
incl %ecx
leaq 0x1a0(%rsp), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x256c
leaq 0x1a0(%rsp), %rdi
callq 0x20d0
leaq 0xa8(%rsp), %rdi
callq 0x20d0
movl 0xc(%rsp), %eax
movzbl 0xb(%rsp), %ecx
incq %rcx
imulq %rax, %rcx
movq %rcx, 0x40(%rsp)
leaq 0x5c95(%rip), %rsi      # 0x90aa
leaq 0xa8(%rsp), %rdi
leaq 0x1a0(%rsp), %rdx
callq 0x4ad4
leaq 0x230(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
pushq $0x6
popq %rcx
xorl %edx, %edx
callq 0x256c
leaq 0xa8(%rsp), %rdi
callq 0x20d0
leaq 0x5c67(%rip), %rsi      # 0x90bf
leaq 0x1c8(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
callq 0x4ad4
movq 0x90(%rsp), %rax
movq (%rax), %rdi
leaq 0x5bcd(%rip), %rsi      # 0x904c
callq 0x2290
leaq 0xa8(%rsp), %rbx
movq %rax, (%rbx)
xorl %r14d, %r14d
cmpb 0xb(%rsp), %r14b
ja 0x34bb
xorl %r15d, %r15d
movzbl %r14b, %ebp
cmpl 0xc(%rsp), %r15d
jae 0x34b6
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4e7e
incl %r15d
jmp 0x34a0
incb %r14b
jmp 0x3492
movq 0x40(%rsp), %rsi
leaq 0x1c8(%rsp), %rdi
callq 0x5460
movq 0x90(%rsp), %rdi
addq $0x20, %rdi
movq 0x40(%rsp), %rsi
callq 0x5460
leaq 0xa8(%rsp), %rdi
callq 0x4e8a
movzbl 0xb(%rsp), %edi
leaq 0x200(%rsp), %rdx
movq 0x88(%rsp), %rsi
callq 0x2af6
leaq 0x1a0(%rsp), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0x54f8
leaq 0x1a0(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4d36
movq %rbx, %rdi
movl $0xff, %esi
callq 0x4dea
movzbl 0xb(%rsp), %esi
movl 0xc(%rsp), %edx
leaq 0xa8(%rsp), %rdi
leaq 0x90(%rsp), %rcx
movq %rbx, %r8
callq 0x551a
movl 0xbcdb(%rip), %esi      # 0xf240
incl %esi
leaq 0x188(%rsp), %rdi
leaq 0x40(%rsp), %rdx
leaq 0x170(%rsp), %rcx
callq 0x562a
movq 0x188(%rsp), %rax
andq $0x0, (%rax)
movl 0xbcad(%rip), %ebx      # 0xf240
movzbl 0xb(%rsp), %esi
incq %rsi
leaq 0x158(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x50(%rsp), %rdi
leaq 0x1e8(%rsp), %rcx
callq 0x5680
incl %ebx
leaq 0x170(%rsp), %rdi
leaq 0x50(%rsp), %rdx
leaq 0x20(%rsp), %rcx
movq %rbx, %rsi
callq 0x56d6
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x67ee
andq $0x0, 0x10(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
xorl %ebp, %ebp
cmpl 0xbc4c(%rip), %ebp      # 0xf240
jae 0x360a
movq %rbx, %rdi
leaq 0xa8(%rsp), %rsi
callq 0x572c
incl %ebp
jmp 0x35ee
movq %r12, 0x138(%rsp)
movb $0x1, %r13b
leaq 0xc0(%rsp), %rbp
leaq 0xa8(%rsp), %r12
movzbl 0xd8(%rsp), %edi
testb $0x1, %r13b
je 0x3b8f
incb %dil
movb %dil, 0xd8(%rsp)
movq 0xb987(%rip), %rdi      # 0xefd0
leaq 0x5a7f(%rip), %rsi      # 0x90cf
callq 0x2230
movzbl 0xd8(%rsp), %esi
movq %rax, %rdi
callq 0x2170
movq %rax, %rdi
callq 0x20f0
movzbl 0xd8(%rsp), %r14d
leal -0x1(%r14), %eax
cwtd
movw $0x2, %cx
idivw %cx
movl %edx, %r15d
leaq 0x158(%rsp), %rdi
leaq 0x188(%rsp), %rsi
callq 0x5768
leaq 0x1e8(%rsp), %rdi
leaq 0x170(%rsp), %rsi
callq 0x57b6
movq 0xb919(%rip), %rdi      # 0xefd0
leaq 0x5a1f(%rip), %rsi      # 0x90dd
callq 0x2230
movswq %r15w, %rax
imulq $0x18, %rax, %rax
leaq (%rsp,%rax), %rbx
addq $0x200, %rbx            # imm = 0x200
andl $0x1, %r14d
imulq $0x18, %r14, %rax
leaq (%rsp,%rax), %r15
addq $0x200, %r15            # imm = 0x200
movb 0xd8(%rsp), %r14b
incb %r14b
movzbl %r14b, %r14d
movzbl 0xb(%rsp), %eax
incl %eax
cmpl %r14d, %eax
jb 0x3722
movq (%rbx), %rax
movl %r14d, %ecx
shll $0x5, %ecx
leaq (%rax,%rcx), %rsi
addq $-0x20, %rsi
incb %r14b
movq %rbp, %rdi
callq 0x5810
jmp 0x36f4
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
pushq $0x1
popq %rax
leaq 0x158(%rsp), %r14
movl %eax, 0x10(%rsp)
cmpl 0xbafb(%rip), %eax      # 0xf240
ja 0x37ba
decl %eax
movq 0x158(%rsp), %rcx
movq (%rcx,%rax,8), %rcx
cmpq 0x40(%rsp), %rcx
jae 0x37ba
imulq $0x60, %rax, %rax
addq 0x50(%rsp), %rax
movq %r12, 0x70(%rsp)
movq %rax, 0x18(%rsp)
movq %r14, 0x38(%rsp)
leaq 0x1e8(%rsp), %rax
movq %rax, 0x48(%rsp)
subq $0x8, %rsp
leaq 0x28(%rsp), %rdi
leaq -0x6a4(%rip), %rsi      # 0x30ed
leaq 0x18(%rsp), %rdx
leaq 0x78(%rsp), %rcx
leaq 0x20(%rsp), %r8
leaq 0x40(%rsp), %r9
leaq 0x50(%rsp), %rax
pushq %rax
callq 0x584c
popq %rcx
popq %rdx
movl 0x10(%rsp), %eax
incl %eax
jmp 0x373b
movq %r15, 0x140(%rsp)
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %r14
cmpq %r14, %r15
je 0x37df
movq %r15, %rdi
callq 0x23b0
addq $0x8, %r15
jmp 0x37cc
movl 0x10(%rsp), %esi
decl %esi
movq 0x50(%rsp), %rax
imulq $0x60, %rsi, %rcx
xorl %edx, %edx
xorl %r13d, %r13d
cmpq %rdx, %rcx
je 0x3803
orb 0x29(%rax,%rdx), %r13b
addq $0x60, %rdx
jmp 0x37f3
andq $0x0, 0x18(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x18(%rsp), %rdx
leaq 0x38(%rsp), %rcx
callq 0x562a
movl 0x10(%rsp), %eax
leal -0x1(%rax), %edx
movq 0x70(%rsp), %rsi
movq 0x50(%rsp), %rdi
xorl %r8d, %r8d
xorl %ecx, %ecx
cmpq %rdx, %r8
je 0x387b
imulq $0x60, %r8, %r9
movq 0x30(%rdi,%r9), %r10
movq 0x38(%rdi,%r9), %r9
subq %r10, %r9
sarq $0x3, %r9
movq (%rsi,%r8,8), %r11
movq 0xe0(%rsp), %r14
cmpq %r9, %r11
jae 0x3870
movq (%r10,%r11,8), %r15
cmpq (%r14), %r15
jae 0x3870
incq %r11
movq %r11, (%rsi,%r8,8)
jmp 0x3859
cmpq %r9, %r11
sbbl $-0x1, %ecx
incq %r8
jmp 0x3833
xorl %r15d, %r15d
decl %eax
cmpl %eax, %ecx
jae 0x39ba
movq 0x70(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq 0xe0(%rsp), %rsi
movl %r15d, %edi
movl %eax, %eax
leaq 0x38(%rcx), %r8
xorl %r9d, %r9d
xorl %ebp, %ebp
cmpq %r9, %rax
je 0x3901
movq (%rdx,%r9,8), %r10
movq -0x8(%r8), %r11
movq (%r8), %r14
subq %r11, %r14
sarq $0x3, %r14
cmpq %r14, %r10
jae 0x38f8
movq (%r11,%r10,8), %r10
movq (%rsi,%rdi,8), %r12
cmpq %r12, %r10
jb 0x38f8
imulq $0x60, %rbp, %r11
movq (%rdx,%rbp,8), %r14
movq 0x30(%rcx,%r11), %r11
movq (%r11,%r14,8), %r11
movq %r9, %r14
cmpq %r12, %r11
jb 0x38ed
movq %rbp, %r14
movq %r9, %rbp
cmpq %r11, %r10
jb 0x38f8
movq %r14, %rbp
incq %r9
addq $0x60, %r8
jmp 0x38a8
movq (%rdx,%rbp,8), %rax
imulq $0x60, %rbp, %rdi
movq 0x30(%rcx,%rdi), %rsi
movq 0x38(%rcx,%rdi), %r8
subq %rsi, %r8
sarq $0x3, %r8
cmpq %r8, %rax
jae 0x39ba
addq %rdi, %rcx
movq (%rsi,%rax,8), %rax
incl %r15d
movq 0x188(%rsp), %rsi
movq %rax, (%rsi,%r15,8)
imulq $0x18, (%rdx,%rbp,8), %rsi
addq 0x48(%rcx), %rsi
imulq $0x18, %r15, %rdi
addq 0x170(%rsp), %rdi
callq 0x58b2
movq 0x70(%rsp), %rdx
incq (%rdx,%rbp,8)
movl 0x10(%rsp), %eax
leal -0x1(%rax), %esi
movq 0x50(%rsp), %rdi
xorl %r8d, %r8d
xorl %ecx, %ecx
cmpq %rsi, %r8
je 0x387e
imulq $0x60, %r8, %r9
movq 0x30(%rdi,%r9), %r10
movq 0x38(%rdi,%r9), %r9
subq %r10, %r9
sarq $0x3, %r9
movq (%rdx,%r8,8), %r11
movq 0xe0(%rsp), %r14
cmpq %r9, %r11
jae 0x39af
movq (%r10,%r11,8), %r12
cmpq (%r14,%r15,8), %r12
jae 0x39af
incq %r11
movq %r11, (%rdx,%r8,8)
jmp 0x3997
cmpq %r9, %r11
sbbl $-0x1, %ecx
incq %r8
jmp 0x396d
leaq 0xc0(%rsp), %rbp
movq %rbp, %rdi
callq 0x597c
movq 0xb5ff(%rip), %rdi      # 0xefd0
callq 0x20f0
leaq 0x70(%rsp), %rdi
callq 0x6178
leaq 0x20(%rsp), %rdi
callq 0x5984
testb $0x1, %r13b
leaq 0xa8(%rsp), %r12
movq 0x140(%rsp), %r15
je 0x3af3
movq 0xb5c5(%rip), %rdi      # 0xefd0
leaq 0x56db(%rip), %rsi      # 0x90ed
callq 0x2230
movq %rax, %rdi
callq 0x20f0
movzbl 0xd8(%rsp), %eax
movq (%r15), %rcx
shll $0x5, %eax
leaq (%rcx,%rax), %rdi
addq $-0x20, %rdi
callq 0x2692
movzbl 0xb(%rsp), %edi
shll $0x5, %edi
addq (%rbx), %rdi
callq 0x2692
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movzbl 0xd8(%rsp), %eax
incq %rax
movq %rax, 0x70(%rsp)
xorl %r14d, %r14d
cmpl 0xb7ce(%rip), %r14d     # 0xf240
jae 0x3b49
leaq 0x70(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0x48(%rsp)
movq %rbx, 0x10(%rsp)
movq %r15, 0x150(%rsp)
subq $0x8, %rsp
leaq 0x28(%rsp), %rdi
leaq -0x997(%rip), %rsi      # 0x3122
leaq 0x20(%rsp), %rdx
leaq 0x13(%rsp), %rcx
leaq 0x14(%rsp), %r8
leaq 0x40(%rsp), %r9
leaq 0x158(%rsp), %rax
pushq %rax
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0x60(%rsp), %rax
pushq %rax
callq 0x59a6
addq $0x20, %rsp
incl %r14d
jmp 0x3a6b
movzbl 0xd8(%rsp), %eax
movq (%r15), %rcx
shll $0x5, %eax
leaq (%rcx,%rax), %rdi
addq $-0x20, %rdi
callq 0x2692
movzbl 0xb(%rsp), %edi
shll $0x5, %edi
addq (%rbx), %rdi
callq 0x2692
movb 0xd8(%rsp), %r14b
incb %r14b
cmpb 0xb(%rsp), %r14b
ja 0x3b70
movq (%rbx), %rax
movzbl %r14b, %ecx
shll $0x5, %ecx
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
callq 0x2692
jmp 0x3b26
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %rbx
cmpq %rbx, %r15
je 0x3b66
movq %r15, %rdi
callq 0x23b0
addq $0x8, %r15
jmp 0x3b53
leaq 0x20(%rsp), %rdi
callq 0x5984
leaq 0x1e8(%rsp), %rdi
callq 0x5a2c
leaq 0x158(%rsp), %rdi
callq 0x6178
jmp 0x3625
andl $0x1, %edi
shll $0x5, %edi
addq 0x90(%rsp), %rdi
movq 0x138(%rsp), %rsi
callq 0x26c0
leaq 0xa8(%rsp), %rbx
movzbl 0x30(%rbx), %eax
decl %eax
movw $0x2, %cx
cwtd
idivw %cx
movswq %dx, %rdi
shlq $0x5, %rdi
addq 0x90(%rsp), %rdi
callq 0x2692
leaq 0x50(%rsp), %rdi
callq 0x5a4e
leaq 0x170(%rsp), %rdi
callq 0x5a2c
leaq 0x188(%rsp), %rdi
callq 0x6178
movq %rbx, %rdi
callq 0x5a70
leaq 0x1a0(%rsp), %rdi
callq 0x5a98
leaq 0x1c8(%rsp), %rdi
callq 0x20d0
leaq 0x230(%rsp), %rdi
callq 0x4ab2
pushq $0x18
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x200, %rdi            # imm = 0x200
callq 0x4ab2
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x3c2c
leaq 0x90(%rsp), %rdi
callq 0x4ab2
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x67ee
jmp 0x3dce
movq %rax, %rbx
jmp 0x3dce
movq %rax, %rbx
jmp 0x3ddb
movq %rax, %rbx
jmp 0x3de8
jmp 0x3c91
movq %rax, %rbx
jmp 0x3df5
movq %rax, %rbx
jmp 0x3e02
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x20d0
jmp 0x3e0f
movq %rax, %rbx
jmp 0x3e0f
movq %rax, %rbx
leaq 0x1a0(%rsp), %rdi
callq 0x20d0
jmp 0x3cdb
movq %rax, %rbx
jmp 0x3cdb
movq %rax, %rbx
movq %r15, %r14
leaq 0xa8(%rsp), %rdi
callq 0x20d0
cmpq %r14, %r15
je 0x3e2d
leaq 0x200(%rsp), %r15
addq $-0x18, %r14
movq %r14, %rdi
callq 0x4ab2
cmpq %r15, %r14
jne 0x3cf9
jmp 0x3e2d
movq %rax, %rbx
jmp 0x3e2d
movq %rax, %rbx
pushq $0x20
popq %r14
leaq (%rsp,%r14), %rdi
addq $0xa8, %rdi
callq 0x20d0
addq $-0x20, %r14
cmpq $-0x20, %r14
jne 0x3d1e
jmp 0x3e3a
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x20d0
jmp 0x3e3a
movq %rax, %rbx
jmp 0x3e3a
jmp 0x3e42
jmp 0x3d73
jmp 0x3d8b
movq %rax, %rbx
jmp 0x3daa
jmp 0x3d6e
jmp 0x3d6e
jmp 0x3d9a
movq %rax, %rbx
jmp 0x3db7
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x6178
jmp 0x3d8e
jmp 0x3d8b
jmp 0x3d86
movq %rax, %rbx
jmp 0x3d8e
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x5984
jmp 0x3d9d
movq %rax, %rbx
leaq 0x1e8(%rsp), %rdi
callq 0x5a2c
leaq 0x158(%rsp), %rdi
callq 0x6178
leaq 0x50(%rsp), %rdi
callq 0x5a4e
leaq 0x170(%rsp), %rdi
callq 0x5a2c
leaq 0x188(%rsp), %rdi
callq 0x6178
leaq 0xa8(%rsp), %rdi
callq 0x5a70
leaq 0x1a0(%rsp), %rdi
callq 0x5a98
leaq 0x1c8(%rsp), %rdi
callq 0x20d0
leaq 0x230(%rsp), %rdi
callq 0x4ab2
pushq $0x18
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x200, %rdi            # imm = 0x200
callq 0x4ab2
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x3e13
leaq 0x90(%rsp), %rdi
callq 0x4ab2
movq %rbx, %rdi
callq 0x23d0
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x4e8a
jmp 0x3df5