// File: /workspace/github_cpp_makefile_star2_O2/ikatanic[P]lcskpp/./utils.h
// Function: calc_matches(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&, int, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>>*)
void calc_matches(const string& a, const string& b, int k,
                 vector<pair<int, int>>* matches) {
  // First, remap characters to interval [0, sigma>,
  // where sigma is alphabet size.
  vector<int> map(256, -1);
  int sigma = 0;
  int n = a.size();
  int m = b.size();
  for (int i = 0; i < n; ++i) {
    if (map[(uint8_t)a[i]] == -1) {
      map[(uint8_t)a[i]] = sigma++;
    }
  }
  for (int i = 0; i < m; ++i) {
    if (map[(uint8_t)b[i]] == -1) {
      map[(uint8_t)b[i]] = sigma++;
    }
  }
  // sigma_to_k is number of possible k length strings
  uint64_t sigma_to_k;
  if (!power_fits_in_63bits(sigma, k, &sigma_to_k)) {
    fprintf(stderr, "This implementation works only when sigma^k < 2^63.");
    return;
  }
  // increase sigma_to_k to the next power of two, for cheaper mod operation
  sigma_to_k = next_pw2(sigma_to_k);
  uint64_t mod_mask = sigma_to_k - 1;


  // Now to find actual pairs, we use perfect hash-table if sigma_to_k is small
  // enough, and otherwise:
  //   a) throw k-length substrings hashes from both string, into 16 buckets,
  //      based on first 4 bits of the hash.
  //   b) radix sort each bucket
  //   c) find consecutive hashes of the same value and save pairs of hashes
  //      from different strings.

  if (sigma_to_k <= (1 << 20) && sigma_to_k <= 4 * (n + m)) {
    // for each value of hash build a linked list containing such substrings
    // from the second string
    vector<int> last(sigma_to_k, -1);
    vector<int> prev(m);
    uint64_t current_hash = 0;
    for (int i = 0; i < m; ++i) {
      current_hash = (current_hash * sigma + map[(uint8_t)b[i]]) & mod_mask;
      if (i >= k-1) {
        prev[i] = last[current_hash];
        last[current_hash] = i;
      }
    }

    // now for each substring of the first string, fetch equal substrings from
    // the linked list
    current_hash = 0;
    for (int i = 0; i < n; ++i) {
      current_hash = (current_hash * sigma + map[(uint8_t)a[i]]) & mod_mask;
      if (i >= k-1) {
        int sz = matches->size();
        for (int j = last[current_hash]; j != -1; j = prev[j]) {
          matches->push_back({i, j});
        }
        reverse(matches->begin() + sz, matches->end());
      }
    }
  } else {
    // Now we need to store pairs (hash, position in string), if both things
    // can fit into single 64-bit integer, we do so. Otherwise we use std::pair.

    uint64_t _tmp;
    if (product_fits_in_63bits(sigma_to_k, n + m, &_tmp)) {
      const int P = 16; // number of buckets
      vector<uint64_t> hashes[P];
      for (int p = 0; p < P; ++p) {
        hashes[p].reserve((n + m) / P);
      }

      // we use bitwise shifting instead of div/mul by sigma_to_k
      int shift = log2(sigma_to_k);

      uint64_t current_hash = 0;
      for (int i = 0; i < n; ++i) {
        current_hash = (current_hash * sigma + map[(uint8_t)a[i]]) & mod_mask;
        if (i >= k-1) hashes[current_hash%P].push_back((i*1LLU << shift) + current_hash/P);
      }

      current_hash = 0;
      for (int i = 0; i < m; ++i) {
        current_hash = (current_hash * sigma + map[(uint8_t)b[i]]) & mod_mask;
        if (i >= k-1) hashes[current_hash%P].push_back(((n + i)*1LLU << shift) + current_hash/P);
      }

      for (int p = 0; p < P; ++p) {
        radix_sort(hashes[p], sigma_to_k / P);

        int sz = hashes[p].size();
        for (int i = 0, j = 0; i < sz; i = j) {
          for (j = i + 1; j < sz &&
            (hashes[p][j] & mod_mask) == (hashes[p][i] & mod_mask); ++j);

          if (j - i > 1) {
            int s = i;
            while (s < j && (hashes[p][s] >> shift) < n) ++s;

            for (int k1 = i; k1 < s; ++k1) {
              for (int k2 = s; k2 < j; ++k2) {
                matches->push_back({hashes[p][k1] >> shift, (hashes[p][k2] >> shift) - n});
              }
            }
          }
        }
      }
    } else {
      const int P = 16;
      vector<pair<uint64_t, int>> hashes[P];
      for (int p = 0; p < P; ++p) {
        hashes[p].reserve((n + m) / P);
      }

      uint64_t current_hash = 0;
      for (int i = 0; i < n; ++i) {
        current_hash = (current_hash * sigma + map[(uint8_t)a[i]]) & mod_mask;
        if (i >= k-1) hashes[current_hash%P].push_back({current_hash / P, i});
      }

      current_hash = 0;

      for (int i = 0; i < m; ++i) {
        current_hash = (current_hash * sigma + map[(uint8_t)b[i]]) & mod_mask;
        if (i >= k-1) hashes[current_hash%P].push_back({current_hash / P, (n + i)});
      }

      for (int p = 0; p < P; ++p) {
        radix_sort(hashes[p], sigma_to_k / P);

        int sz = hashes[p].size();
        for (int i = 0, j = 0; i < sz; i = j) {
          int s = 0;
          for (j = i+1; j < sz && hashes[p][j].first == hashes[p][i].first; ++j);

          if (j - i > 1) {
            int s = i;
            while (s < j && hashes[p][s].second < n) ++s;

            for (int k1 = i; k1 < s; ++k1) {
              for (int k2 = s; k2 < j; ++k2) {
                matches->push_back({hashes[p][k1].second, hashes[p][k2].second - n});
              }
            }
          }
        }
      }
    }


    // Now we have to sort matching pairs. If there is small number of pairs
    // sort them using std::sort, otherwise use the pigeonhole sort:
    if (matches->size() * log2(matches->size()) < 3 * n) {
      sort(matches->begin(), matches->end());
    } else {
      vector<int> pos(n+1, 0);
      vector<pair<int, int>> tmp(matches->size());
      for (auto& p : *matches) pos[p.first + 1]++;
      for (int i = 0; i < n; ++i)
        pos[i+1] += pos[i];
      for (auto& p : *matches) tmp[ pos[p.first]++ ] = p;
      matches->swap(tmp);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rcx, 0x48(%rsp)
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xb0(%rsp), %rdx
orl $-0x1, (%rdx)
leaq 0x88(%rsp), %r15
leaq 0x20(%rsp), %rcx
movl $0x100, %esi            # imm = 0x100
movq %r15, %rdi
callq 0x3764
movq (%rbx), %rcx
movq %rbx, 0x18(%rsp)
movq 0x8(%rbx), %r8
movq %r14, 0x40(%rsp)
movq 0x8(%r14), %r13
movq (%r15), %rdx
xorl %esi, %esi
testl %r8d, %r8d
movl $0x0, %r15d
cmovgl %r8d, %r15d
xorl %eax, %eax
cmpq %rsi, %r15
je 0x2772
movzbl (%rcx,%rsi), %edi
cmpl $-0x1, (%rdx,%rdi,4)
jne 0x276d
movl %eax, (%rdx,%rdi,4)
incl %eax
incq %rsi
jmp 0x2759
movq 0x40(%rsp), %rcx
movq (%rcx), %rcx
movq 0x88(%rsp), %rdx
xorl %esi, %esi
testl %r13d, %r13d
movl $0x0, %r12d
cmovgl %r13d, %r12d
cmpq %rsi, %r12
je 0x27aa
movzbl (%rcx,%rsi), %edi
cmpl $-0x1, (%rdx,%rdi,4)
jne 0x27a5
movl %eax, (%rdx,%rdi,4)
incl %eax
incq %rsi
jmp 0x2791
movq %r8, 0x8(%rsp)
movslq %eax, %r14
movslq %ebp, %rsi
leaq 0xa0(%rsp), %rdx
movq %r14, %rdi
callq 0x23a1
testb %al, %al
je 0x3086
movq 0xa0(%rsp), %rdi
callq 0x23e2
movq %rax, %r8
movq %rax, 0xa0(%rsp)
leaq -0x1(%rax), %rbx
movq 0x8(%rsp), %rax
leal (%rax,%r13), %ecx
cmpq $0x100000, %r8          # imm = 0x100000
movq %rbx, 0x10(%rsp)
movq %r15, 0x60(%rsp)
ja 0x2817
leal (,%rcx,4), %eax
cltq
cmpq %rax, %r8
jbe 0x2f1d
movl %ebp, %r13d
movslq %ecx, %rsi
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
xorl %edx, %edx
divq %rsi
movq %rax, %rsi
pushq $0x10
popq %rdi
movl %ecx, %eax
cltd
idivl %edi
movslq %eax, %rbp
movq %r8, 0x50(%rsp)
leaq 0xb0(%rsp), %rdi
xorl %ebx, %ebx
movl $0x180, %edx            # imm = 0x180
cmpq %r8, %rsi
jae 0x287c
xorl %esi, %esi
callq 0x20d0
cmpq $0x180, %rbx            # imm = 0x180
je 0x28a9
leaq (%rsp,%rbx), %rdi
addq $0xb0, %rdi
movq %rbp, %rsi
callq 0x389c
addq $0x18, %rbx
jmp 0x285a
xorl %esi, %esi
callq 0x20d0
cmpq $0x180, %rbx            # imm = 0x180
je 0x2929
leaq (%rsp,%rbx), %rdi
addq $0xb0, %rdi
movq %rbp, %rsi
callq 0x380c
addq $0x18, %rbx
jmp 0x2883
decl %r13d
movslq %r13d, %r13
xorl %ebx, %ebx
leaq 0x20(%rsp), %rbp
xorl %r15d, %r15d
movq 0x8(%rsp), %rdx
cmpq %rbx, 0x60(%rsp)
je 0x29b9
imulq %r14, %r15
movq 0x18(%rsp), %rax
movq (%rax), %rax
movzbl (%rax,%rbx), %eax
movq 0x88(%rsp), %rcx
movslq (%rcx,%rax,4), %rax
addq %rax, %r15
andq 0x10(%rsp), %r15
cmpq %r13, %rbx
jl 0x2924
movl %r15d, %eax
andl $0xf, %eax
imulq $0x18, %rax, %rax
leaq (%rsp,%rax), %rdi
addq $0xb0, %rdi
movq %r15, %rax
shrq $0x4, %rax
movq %rax, 0x20(%rsp)
movl %ebx, 0x28(%rsp)
movq %rbp, %rsi
callq 0x3f36
movq 0x8(%rsp), %rdx
incq %rbx
jmp 0x28be
movq 0x50(%rsp), %rdi
callq 0x23f1
decl %r13d
movl %eax, %ebp
movslq %r13d, %r13
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x8(%rsp), %rdx
cmpq %rbx, 0x60(%rsp)
je 0x2a2f
imulq %r14, %r15
movq 0x18(%rsp), %rax
movq (%rax), %rax
movzbl (%rax,%rbx), %eax
movq 0x88(%rsp), %rcx
movslq (%rcx,%rax,4), %rax
addq %rax, %r15
andq 0x10(%rsp), %r15
cmpq %r13, %rbx
jl 0x29b4
movl %r15d, %eax
andl $0xf, %eax
imulq $0x18, %rax, %rax
leaq (%rsp,%rax), %rdi
addq $0xb0, %rdi
movq %rbx, %rax
movl %ebp, %ecx
shlq %cl, %rax
movq %r15, %rcx
shrq $0x4, %rcx
addq %rax, %rcx
movq %rcx, 0x20(%rsp)
leaq 0x20(%rsp), %rsi
callq 0x3e10
movq 0x8(%rsp), %rdx
incq %rbx
jmp 0x2945
xorl %ebx, %ebx
leaq 0x20(%rsp), %rbp
xorl %r15d, %r15d
cmpq %rbx, %r12
je 0x2ab3
imulq %r14, %r15
movq 0x40(%rsp), %rax
movq (%rax), %rax
movzbl (%rax,%rbx), %eax
movq 0x88(%rsp), %rcx
movslq (%rcx,%rax,4), %rax
addq %rax, %r15
andq 0x10(%rsp), %r15
cmpq %r13, %rbx
jl 0x2a2a
movl %r15d, %eax
andl $0xf, %eax
imulq $0x18, %rax, %rax
leaq (%rsp,%rax), %rdi
addq $0xb0, %rdi
movq %r15, %rax
shrq $0x4, %rax
movq %rax, 0x20(%rsp)
leal (%rdx,%rbx), %eax
movl %eax, 0x28(%rsp)
movq %rbp, %rsi
callq 0x3f36
movq 0x8(%rsp), %rdx
incq %rbx
jmp 0x29c3
movslq %edx, %rax
movq %rax, 0x18(%rsp)
xorl %ebx, %ebx
xorl %r15d, %r15d
cmpq %rbx, %r12
je 0x2c35
imulq %r14, %r15
movq 0x40(%rsp), %rax
movq (%rax), %rax
movzbl (%rax,%rbx), %eax
movq 0x88(%rsp), %rcx
movslq (%rcx,%rax,4), %rax
addq %rax, %r15
andq 0x10(%rsp), %r15
cmpq %r13, %rbx
jl 0x2aae
movl %r15d, %eax
andl $0xf, %eax
imulq $0x18, %rax, %rax
leaq (%rsp,%rax), %rdi
addq $0xb0, %rdi
movq 0x18(%rsp), %rax
addq %rbx, %rax
movl %ebp, %ecx
shlq %cl, %rax
movq %r15, %rcx
shrq $0x4, %rcx
addq %rax, %rcx
movq %rcx, 0x20(%rsp)
leaq 0x20(%rsp), %rsi
callq 0x3e10
movq 0x8(%rsp), %rdx
incq %rbx
jmp 0x2a3c
movq 0x50(%rsp), %rsi
shrq $0x4, %rsi
xorl %eax, %eax
leaq 0x20(%rsp), %r15
movq %rsi, 0x50(%rsp)
cmpq $0x10, %rax
je 0x2da8
movq %rax, 0x70(%rsp)
imulq $0x18, %rax, %rax
leaq (%rsp,%rax), %r12
addq $0xb0, %r12
movq %r12, %rdi
callq 0x2401
movq 0x8(%r12), %r10
subq (%r12), %r10
shrq $0x4, %r10
movslq %r10d, %r11
movq %r10, %rax
decq %rax
movq %rax, 0x78(%rsp)
xorl %ecx, %ecx
movq 0x8(%rsp), %r9
movq %r10, 0x68(%rsp)
movq %r11, 0x10(%rsp)
cmpl %r10d, %ecx
jge 0x2c23
movslq %ecx, %rbp
leaq -0x1(%rbp), %rdx
movq %rbp, %rax
shlq $0x4, %rax
leaq 0x10(%rax), %rsi
movl %ecx, %ebx
leaq 0x2(%rdx), %rdi
cmpq %r11, %rdi
jge 0x2b59
movq (%r12), %rdi
movq (%rdi,%rsi), %r8
incq %rdx
incl %ebx
addq $0x10, %rsi
cmpq (%rdi,%rax), %r8
je 0x2b37
jmp 0x2b61
movq 0x78(%rsp), %rdx
movl %r10d, %ebx
movl %ebx, %esi
subl %ecx, %esi
movl %ebx, %ecx
cmpl $0x2, %esi
jl 0x2b1a
movl %ebx, 0x80(%rsp)
movslq %edx, %r13
leaq 0x1(%r13), %rcx
cmpq %rbp, %rcx
cmovleq %rbp, %rcx
addq $0x8, %rax
movq %rbp, %rdx
cmpq %r13, %rdx
jg 0x2ba3
movq (%r12), %rsi
cmpl %r9d, (%rsi,%rax)
jge 0x2ba0
incq %rdx
addq $0x10, %rax
jmp 0x2b88
movq %rdx, %rcx
movslq %ecx, %rbx
movq %rbx, %rax
shlq $0x4, %rax
orq $0x8, %rax
movq %rax, 0x18(%rsp)
movq %rbx, 0x40(%rsp)
cmpq %rbx, %rbp
jge 0x2c0d
movq 0x18(%rsp), %r14
cmpq %r13, %rbx
jg 0x2c03
movq (%r12), %rax
movq %rbp, %rcx
shlq $0x4, %rcx
movl (%rax,%r14), %edx
subl %r9d, %edx
movl 0x8(%rax,%rcx), %eax
movl %eax, 0x20(%rsp)
movl %edx, 0x24(%rsp)
movq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0x3c8c
incq %rbx
addq $0x10, %r14
movq 0x8(%rsp), %r9
jmp 0x2bc5
incq %rbp
movq 0x40(%rsp), %rbx
jmp 0x2bbb
movl 0x80(%rsp), %ecx
movq 0x68(%rsp), %r10
movq 0x10(%rsp), %r11
jmp 0x2b1a
movq 0x70(%rsp), %rax
incq %rax
movq 0x50(%rsp), %rsi
jmp 0x2ac8
shrq $0x4, 0x50(%rsp)
movslq %edx, %rax
movq %rax, 0x78(%rsp)
xorl %eax, %eax
leaq 0x20(%rsp), %r15
movq 0x10(%rsp), %rbx
cmpq $0x10, %rax
je 0x2dc9
movq %rax, 0xa8(%rsp)
imulq $0x18, %rax, %rax
leaq (%rsp,%rax), %r12
addq $0xb0, %r12
movq %r12, %rdi
movq 0x50(%rsp), %rsi
callq 0x256f
movq 0x8(%r12), %rax
subq (%r12), %rax
shrq $0x3, %rax
movslq %eax, %rcx
movq %rcx, 0x18(%rsp)
movq %rax, 0x68(%rsp)
decq %rax
movq %rax, 0x70(%rsp)
xorl %eax, %eax
movq 0x8(%rsp), %rdi
cmpl 0x68(%rsp), %eax
jge 0x2d98
movslq %eax, %r13
leaq 0x1(%r13), %rcx
movl %eax, %r8d
cmpq 0x18(%rsp), %rcx
jge 0x2cde
movq (%r12), %rdx
movq (%rdx,%r13,8), %rsi
xorq (%rdx,%rcx,8), %rsi
incq %rcx
incl %r8d
testq %rbx, %rsi
je 0x2cba
addq $-0x2, %rcx
jmp 0x2ceb
movq 0x70(%rsp), %rcx
movq 0x68(%rsp), %rdx
movl %edx, %r8d
movl %r8d, %edx
subl %eax, %edx
movl %r8d, %eax
cmpl $0x2, %edx
jl 0x2ca6
movslq %ecx, %rbx
leaq 0x1(%rbx), %rax
cmpq %r13, %rax
cmovleq %r13, %rax
movq %r13, %rdx
cmpq %rbx, %rdx
jg 0x2d2a
movq (%r12), %rcx
movq (%rcx,%rdx,8), %rsi
movl %ebp, %ecx
shrq %cl, %rsi
cmpq 0x78(%rsp), %rsi
jae 0x2d27
incq %rdx
jmp 0x2d09
movq %rdx, %rax
movslq %eax, %r14
movl %r8d, 0x40(%rsp)
movq %r14, 0x80(%rsp)
cmpq %r14, %r13
jge 0x2d8b
cmpq %rbx, %r14
jg 0x2d79
movq (%r12), %rax
movq (%rax,%r13,8), %rdx
movl %ebp, %ecx
shrq %cl, %rdx
movq (%rax,%r14,8), %rax
shrq %cl, %rax
subl %edi, %eax
movl %edx, 0x20(%rsp)
movl %eax, 0x24(%rsp)
movq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0x3c8c
incq %r14
movq 0x8(%rsp), %rdi
jmp 0x2d3f
incq %r13
movl 0x40(%rsp), %r8d
movq 0x80(%rsp), %r14
jmp 0x2d3a
movl %r8d, %eax
movq 0x10(%rsp), %rbx
jmp 0x2ca6
movq 0xa8(%rsp), %rax
incq %rax
jmp 0x2c4f
movl $0x168, %ebx            # imm = 0x168
leaq (%rsp,%rbx), %rdi
addq $0xb0, %rdi
callq 0x3a30
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x2dad
jmp 0x2de8
movl $0x168, %ebx            # imm = 0x168
leaq (%rsp,%rbx), %rdi
addq $0xb0, %rdi
callq 0x3ae8
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x2dce
movq 0x48(%rsp), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
movq %r13, %r12
subq %r15, %r12
sarq $0x3, %r12
movq %r12, %rdi
callq 0x23f1
cltq
imulq %r12, %rax
movabsq $0x300000000, %rcx      # imm = 0x300000000
movq 0x8(%rsp), %rdx
imulq %rdx, %rcx
sarq $0x20, %rcx
cmpq %rcx, %rax
jae 0x2e38
movq %r15, %rdi
movq %r13, %rsi
callq 0x4055
jmp 0x3067
incl %edx
movslq %edx, %rsi
leaq 0x20(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0xb0(%rsp), %rdi
leaq 0x58(%rsp), %rcx
callq 0x3764
movq 0x48(%rsp), %rbx
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
leaq 0x20(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x3936
movq 0x60(%rsp), %r8
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq 0xb0(%rsp), %rdx
movq %rax, %rsi
cmpq %rcx, %rsi
je 0x2e9f
movslq (%rsi), %rdi
incl 0x4(%rdx,%rdi,4)
addq $0x8, %rsi
jmp 0x2e8d
movq 0xb0(%rsp), %rdx
xorl %esi, %esi
cmpq %rsi, %r8
je 0x2eba
movl (%rdx,%rsi,4), %edi
addl %edi, 0x4(%rdx,%rsi,4)
incq %rsi
jmp 0x2ea9
movq 0xb0(%rsp), %rdx
movq 0x20(%rsp), %rsi
movq %rax, %rdi
cmpq %rcx, %rdi
je 0x2eeb
movslq (%rdi), %r8
movslq (%rdx,%r8,4), %r9
leal 0x1(%r9), %r10d
movl %r10d, (%rdx,%r8,4)
movq (%rdi), %r8
movq %r8, (%rsi,%r9,8)
addq $0x8, %rdi
jmp 0x2eca
movq 0x48(%rsp), %r8
movq 0x10(%r8), %rdx
leaq 0x20(%rsp), %rdi
movaps (%rdi), %xmm0
movups %xmm0, (%r8)
movq 0x10(%rdi), %rsi
movq %rsi, 0x10(%r8)
movq %rax, (%rdi)
movq %rcx, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
callq 0x4616
jmp 0x305a
leaq 0x20(%rsp), %rdx
orl $-0x1, (%rdx)
leaq 0xb0(%rsp), %rdi
leaq 0x58(%rsp), %rcx
movq %r8, %rsi
callq 0x3764
movslq %r13d, %rsi
leaq 0x20(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x37ba
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq 0x88(%rsp), %rcx
decl %ebp
movq 0xb0(%rsp), %rdx
movq 0x20(%rsp), %rsi
movslq %ebp, %r13
xorl %edi, %edi
xorl %r8d, %r8d
cmpq %rdi, %r12
je 0x2fa1
imulq %r14, %r8
movzbl (%rax,%rdi), %r9d
movslq (%rcx,%r9,4), %r9
addq %r9, %r8
andq %rbx, %r8
cmpq %r13, %rdi
jl 0x2f9c
movl (%rdx,%r8,4), %r9d
movl %r9d, (%rsi,%rdi,4)
movl %edi, (%rdx,%r8,4)
incq %rdi
jmp 0x2f73
movq %r14, 0x8(%rsp)
xorl %r12d, %r12d
leaq 0x58(%rsp), %r14
xorl %ebx, %ebx
cmpq %r15, %r12
je 0x3050
imulq 0x8(%rsp), %rbx
movq 0x18(%rsp), %rax
movq (%rax), %rax
movzbl (%rax,%r12), %eax
movq 0x88(%rsp), %rcx
movslq (%rcx,%rax,4), %rax
addq %rax, %rbx
andq 0x10(%rsp), %rbx
cmpq %r13, %r12
jl 0x3048
movq 0x48(%rsp), %rdi
movq 0x8(%rdi), %rbp
subq (%rdi), %rbp
leaq (,%rbx,4), %r15
addq 0xb0(%rsp), %r15
movslq (%r15), %r15
cmpq $-0x1, %r15
je 0x302c
movl %r12d, 0x58(%rsp)
movl %r15d, 0x5c(%rsp)
movq %r14, %rsi
callq 0x3c8c
shlq $0x2, %r15
addq 0x20(%rsp), %r15
movq 0x48(%rsp), %rdi
jmp 0x3001
shlq $0x1d, %rbp
sarq $0x1d, %rbp
addq (%rdi), %rbp
movq 0x8(%rdi), %rsi
movq %rbp, %rdi
callq 0x3de7
movq 0x60(%rsp), %r15
incq %r12
jmp 0x2fb0
leaq 0x20(%rsp), %rdi
callq 0x3bc8
leaq 0xb0(%rsp), %rdi
callq 0x3bc8
leaq 0x88(%rsp), %rdi
callq 0x3bc8
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4f43(%rip), %rax      # 0x7fd0
movq (%rax), %rcx
leaq 0x1f6d(%rip), %rdi      # 0x5004
pushq $0x33
popq %rsi
pushq $0x1
popq %rdx
callq 0x2210
jmp 0x3067
jmp 0x30a8
jmp 0x30af
movq %rax, %rbx
jmp 0x30d3
jmp 0x30af
movq %rax, %rbx
jmp 0x312a
jmp 0x30c6
jmp 0x30e2
jmp 0x3107
jmp 0x30e2
jmp 0x3107
jmp 0x30e2
jmp 0x3107
jmp 0x30e2
jmp 0x3107
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3bc8
leaq 0xb0(%rsp), %rdi
callq 0x3bc8
jmp 0x312a
movq %rax, %rbx
movl $0x168, %r14d           # imm = 0x168
leaq (%rsp,%r14), %rdi
addq $0xb0, %rdi
callq 0x3ae8
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x30eb
jmp 0x312a
movq %rax, %rbx
movl $0x168, %r14d           # imm = 0x168
leaq (%rsp,%r14), %rdi
addq $0xb0, %rdi
callq 0x3a30
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x3110
leaq 0x88(%rsp), %rdi
callq 0x3bc8
movq %rbx, %rdi
callq 0x21e0