// File: /workspace/github_cpp_makefile_star2_O1/lemire[P]fastscancount/benchmark/counters.cpp
// Function: demo_random(unsigned long, unsigned long, unsigned long, unsigned long)
void demo_random(size_t N, size_t length, size_t array_count, size_t threshold) {
  std::vector<std::vector<uint32_t>> data(array_count);

  std::vector<const std::vector<uint32_t>*> data_ptrs;
  std::vector<uint32_t> answer;
  answer.reserve(N);

  size_t sum = 0;
  for (size_t c = 0; c < array_count; c++) {
    std::vector<uint32_t> &v = data[c];
    for (size_t i = 0; i < length; i++) {
      v.push_back(rand() % N);
    }
    std::sort(v.begin(), v.end());
    v.resize(std::distance(v.begin(), unique(v.begin(), v.end())));
    sum += v.size();
    data_ptrs.push_back(&data[c]);
  }


  std::vector<std::vector<uint32_t>> range_boundaries;
  calc_alldata_boundaries(data, range_boundaries, range_size_avx512);
  std::vector<const std::vector<uint32_t>*> range_ptrs;
  for (size_t c = 0; c < array_count; c++) {
    range_ptrs.push_back(&range_boundaries[c]);
  }

  std::vector<int> evts = {
#ifdef __linux__
                           PERF_COUNT_HW_CPU_CYCLES,
                           PERF_COUNT_HW_INSTRUCTIONS,
                           PERF_COUNT_HW_BRANCH_MISSES,
                           PERF_COUNT_HW_CACHE_REFERENCES,
                           PERF_COUNT_HW_CACHE_MISSES
#endif
                          }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq %rcx, 0x50(%rsp)
movq %rdx, %rbp
movq %rsi, 0x98(%rsp)
movq %rdi, %r15
leaq 0x1a8(%rsp), %rdi
leaq 0x1c0(%rsp), %rdx
movq %rbp, %rsi
callq 0x5d0a
xorl %eax, %eax
movq %rax, 0xc0(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xb0(%rsp)
leaq 0x10(%rsp), %rdi
movq %rax, 0x10(%rdi)
movapd %xmm0, (%rdi)
movq %r15, %rsi
callq 0x59e8
xorl %r12d, %r12d
testq %rbp, %rbp
je 0x3fe3
xorl %r13d, %r13d
movq %rbp, 0x8(%rsp)
leaq (,%r13,2), %rbx
addq %r13, %rbx
shlq $0x3, %rbx
movq 0x1a8(%rsp), %rbp
addq %rbx, %rbp
movq 0x98(%rsp), %rax
movq %rax, %r14
testq %rax, %rax
je 0x3f2f
callq 0x2080
cltq
xorl %edx, %edx
divq %r15
movl %edx, 0x1c0(%rsp)
movq 0x8(%rbp), %rsi
cmpq 0x10(%rbp), %rsi
je 0x3f1a
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbp)
jmp 0x3f2a
movq %rbp, %rdi
leaq 0x1c0(%rsp), %rdx
callq 0x76e0
decq %r14
jne 0x3ef1
movq %r12, 0xa0(%rsp)
movq (%rbp), %r12
movq 0x8(%rbp), %r14
cmpq %r14, %r12
je 0x3f71
movq %r14, %rax
subq %r12, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r12, %rdi
movq %r14, %rsi
callq 0x77bb
movq %r12, %rdi
movq %r14, %rsi
callq 0x789e
movq (%rbp), %r14
movq 0x8(%rbp), %rsi
movq %r14, %rdi
callq 0x7b0e
subq %r14, %rax
sarq $0x2, %rax
movq %rbp, %rdi
movq %rax, %rsi
callq 0x58f0
movq (%rbp), %r12
movq 0x8(%rbp), %r14
addq 0x1a8(%rsp), %rbx
movq %rbx, 0x1c0(%rsp)
leaq 0xb0(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
callq 0x7150
subq %r12, %r14
sarq $0x2, %r14
movq 0xa0(%rsp), %r12
addq %r14, %r12
incq %r13
movq 0x8(%rsp), %rbp
cmpq %rbp, %r13
jne 0x3ec7
xorpd %xmm0, %xmm0
leaq 0x230(%rsp), %rsi
movapd %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
leaq 0x1a8(%rsp), %rdi
movl $0x9c40, %edx           # imm = 0x9C40
callq 0x2a36
xorpd %xmm0, %xmm0
movapd %xmm0, 0x140(%rsp)
movq $0x0, 0x150(%rsp)
testq %rbp, %rbp
je 0x4064
xorl %ebx, %ebx
leaq 0x140(%rsp), %r14
leaq 0x1c0(%rsp), %r15
movq 0x230(%rsp), %rax
addq %rbx, %rax
movq %rax, 0x1c0(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x7150
addq $0x18, %rbx
decq %rbp
jne 0x403d
movupd 0x4404(%rip), %xmm0     # 0x8470
leaq 0x1c0(%rsp), %rsi
movapd %xmm0, (%rsi)
movl $0x3, 0x10(%rsi)
leaq 0x190(%rsp), %rdi
leaq 0x70(%rsp), %rcx
movl $0x5, %edx
callq 0x5a7e
leaq 0x178(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x5ac4
leaq 0x1c0(%rsp), %rdi
leaq 0x178(%rsp), %rsi
callq 0x5b44
movq 0x178(%rsp), %rdi
testq %rdi, %rdi
je 0x40dd
movq 0x188(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq 0x50(%rsp), %rdx
callq 0x27fc
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x7ebb(%rip), %rdi      # 0xbfc8
leaq 0x4001(%rip), %rsi      # 0x8115
movl $0x4, %edx
callq 0x2260
movq 0x98(%rsp), %rsi
sarq $0x2, %rsi
movq 0x7e97(%rip), %rdi      # 0xbfc8
movq %rsi, 0x128(%rsp)
callq 0x2160
leaq 0x3f6b(%rip), %rsi      # 0x80b0
movl $0x6, %edx
movq %rax, %rdi
callq 0x2260
leaq (%r12,%r12), %rax
leaq (%rax,%rax,4), %rax
movq %rax, 0x170(%rsp)
leaq 0x1f8(%rsp), %rbx
movq %r12, %xmm0
punpckldq 0x3e99(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3ea1(%rip), %xmm0     # 0x8020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x130(%rsp)
xorpd %xmm0, %xmm0
movss %xmm0, 0xa0(%rsp)
xorl %r15d, %r15d
leaq 0x58(%rsp), %r12
movq 0x7e18(%rip), %r13      # 0xbfc8
movq 0x7e31(%rip), %rbp      # 0xbfe8
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x3eea(%rip), %rsi      # 0x80b7
leaq 0x3ef5(%rip), %rdx      # 0x80c9
callq 0x733c
xorpd %xmm0, %xmm0
movapd %xmm0, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
callq 0x2340
movaps 0x70(%rsp), %xmm0
leaq 0x80(%rsp), %rax
movups %xmm0, (%rax)
movq 0x1d0(%rsp), %r14
testq %r14, %r14
je 0x4223
movq 0x10(%r14), %rdi
callq 0x741a
movq (%r14), %r14
jmp 0x4210
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq 0x50(%rsp), %rdx
callq 0x27fc
leaq 0x1c0(%rsp), %rdi
callq 0x73cc
leaq 0x80(%rsp), %rdi
xorl %esi, %esi
callq 0x2340
movq 0x80(%rsp), %rcx
movq 0x88(%rsp), %rax
subq 0x70(%rsp), %rcx
imulq $0xf4240, %rcx, %rcx    # imm = 0xF4240
subq 0x78(%rsp), %rax
addq %rcx, %rax
js 0x4286
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x429e
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
cmpq 0x98(%rsp), %rax
je 0x431d
movl $0xe, %edx
movq %rbp, %rdi
leaq 0x4007(%rip), %rsi      # 0x82ce
callq 0x2260
movq %rbp, %rdi
movq 0x128(%rsp), %rsi
callq 0x2160
movq %rax, %r14
movl $0x9, %edx
movq %rax, %rdi
leaq 0x3fef(%rip), %rsi      # 0x82dd
callq 0x2260
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
movq %r14, %rdi
callq 0x2160
movl $0x1, %edx
movq %rax, %rdi
leaq 0x3d9d(%rip), %rsi      # 0x80b5
callq 0x2260
cmpq $0x9, %r15
jne 0x4529
movl $0x0, 0x58(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x769e
movsd (%rax), %xmm0
unpcklps 0x3ccb(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3cd3(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x110(%rsp)
movl $0x1, 0x58(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x769e
movsd (%rax), %xmm0
unpcklps 0x3c9c(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3ca4(%rip), %xmm0     # 0x8020
movapd %xmm0, 0xd0(%rsp)
movl $0x5, 0x58(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x769e
movsd (%rax), %xmm0
unpcklps 0x3c6d(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3c75(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x160(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r13, %rdi
callq 0x2260
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movapd 0x110(%rsp), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x110(%rsp)
movapd %xmm1, %xmm0
divsd 0x130(%rsp), %xmm0
movq %r13, %rdi
callq 0x2330
movq %rax, %r14
movl $0x10, %edx
movq %rax, %rdi
leaq 0x3eb2(%rip), %rsi      # 0x82e7
callq 0x2260
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movapd 0xd0(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x110(%rsp), %xmm0
movq %r13, %rdi
callq 0x2330
movq %rax, %r14
movl $0x15, %edx
movq %rax, %rdi
leaq 0x3e5f(%rip), %rsi      # 0x82f8
callq 0x2260
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movapd 0x160(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x130(%rsp), %xmm0
movq %r13, %rdi
callq 0x2330
movq %rax, %r14
movl $0xe, %edx
movq %rax, %rdi
leaq 0x3e11(%rip), %rsi      # 0x830e
callq 0x2260
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x4545
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
movss 0xa0(%rsp), %xmm0
addss 0x8(%rsp), %xmm0
movss %xmm0, 0xa0(%rsp)
incq %r15
cmpq $0xa, %r15
jne 0x41b7
movq 0x50(%rsp), %rax
movl %eax, %ecx
movq %rcx, 0x160(%rsp)
xorpd %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
xorl %ebx, %ebx
leaq 0x30(%rsp), %r15
leaq 0x10(%rsp), %rbp
movzbl %al, %eax
movl %eax, 0x50(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %r15, %rdi
leaq 0x3af2(%rip), %rsi      # 0x809c
leaq 0x3af8(%rip), %rdx      # 0x80a9
callq 0x733c
movq %rbx, 0x110(%rsp)
movq %r15, %rbx
leaq 0xb0(%rsp), %rdi
movq %rbp, %rsi
movq 0x160(%rsp), %rdx
callq 0x27fc
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rax
movq %rax, 0xd0(%rsp)
leaq 0x58(%rsp), %rdi
movq %rbp, %rsi
callq 0x72bc
movq %rbp, %r12
movq 0x58(%rsp), %rbp
movq 0x60(%rsp), %r15
cmpq %r15, %rbp
je 0x4637
movq %r15, %rax
subq %rbp, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x77bb
movq %rbp, %rdi
movq %r15, %rsi
callq 0x789e
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x4648
movq %rax, 0x18(%rsp)
leaq 0xb0(%rsp), %rdi
movq %r12, %rsi
movl 0x50(%rsp), %edx
callq 0x257c
movq %r14, %rbp
movq 0x10(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x18(%rsp), %r13
leaq 0xe8(%rsp), %rdi
movq %r12, %rsi
callq 0x72bc
movq 0xe8(%rsp), %r15
movq 0xf0(%rsp), %r14
cmpq %r14, %r15
je 0x46c3
movq %r14, %rax
subq %r15, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x77bb
movq %r15, %rdi
movq %r14, %rsi
callq 0x789e
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rax
movq %rax, %rdx
subq %rdi, %rdx
movq 0xe8(%rsp), %r14
movq 0xf0(%rsp), %rcx
subq %r14, %rcx
cmpq %rcx, %rdx
jne 0x4d35
cmpq %rdi, %rax
je 0x4704
movq %r14, %rsi
callq 0x2240
testl %eax, %eax
jne 0x4d35
testq %r14, %r14
je 0x471c
movq 0xf8(%rsp), %rsi
subq %r14, %rsi
movq %r14, %rdi
callq 0x2230
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
movq %rbx, %r15
movq 0x110(%rsp), %rbx
movq %r12, %rbp
je 0x4741
movq 0x68(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x475d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %r15, %rdi
leaq 0x3959(%rip), %rsi      # 0x80ca
leaq 0x3975(%rip), %rdx      # 0x80ed
callq 0x733c
xorpd %xmm0, %xmm0
movapd %xmm0, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
callq 0x2340
movaps 0x70(%rsp), %xmm0
leaq 0x80(%rsp), %rax
movups %xmm0, (%rax)
movq 0x1d0(%rsp), %r14
testq %r14, %r14
je 0x47c7
movq 0x10(%r14), %rdi
callq 0x741a
movq (%r14), %r14
jmp 0x47b4
leaq 0xb0(%rsp), %rdi
movq %rbp, %rsi
movl 0x50(%rsp), %edx
callq 0x257c
leaq 0x1c0(%rsp), %rdi
callq 0x73cc
leaq 0x80(%rsp), %rdi
xorl %esi, %esi
callq 0x2340
movq 0x80(%rsp), %rcx
movq 0x88(%rsp), %rax
subq 0x70(%rsp), %rcx
imulq $0xf4240, %rcx, %rcx    # imm = 0xF4240
subq 0x78(%rsp), %rax
addq %rcx, %rax
js 0x4827
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x483f
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
movss %xmm0, 0xd0(%rsp)
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
cmpq 0x98(%rsp), %rax
je 0x48c9
movl $0xe, %edx
movq 0x7780(%rip), %rdi      # 0xbfe8
leaq 0x3a5f(%rip), %rsi      # 0x82ce
callq 0x2260
movq 0x776d(%rip), %rdi      # 0xbfe8
movq 0x128(%rsp), %rsi
callq 0x2160
movq %rax, %r14
movl $0x9, %edx
movq %rax, %rdi
leaq 0x3a43(%rip), %rsi      # 0x82dd
callq 0x2260
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
movq %r14, %rdi
callq 0x2160
movl $0x1, %edx
movq %rax, %rdi
leaq 0x37f1(%rip), %rsi      # 0x80b5
callq 0x2260
cmpq $0x9, %rbx
jne 0x4afd
movl $0x0, 0x58(%rsp)
leaq 0x1f8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x769e
movsd (%rax), %xmm0
unpcklps 0x3718(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3720(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x100(%rsp)
movl $0x1, 0x58(%rsp)
leaq 0x1f8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x769e
movsd (%rax), %xmm0
unpcklps 0x36e2(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x36ea(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x260(%rsp)
movl $0x5, 0x58(%rsp)
leaq 0x1f8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x769e
movsd (%rax), %xmm0
unpcklps 0x36ac(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x36b4(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x250(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x7642(%rip), %rdi      # 0xbfc8
callq 0x2260
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movapd 0x100(%rsp), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x100(%rsp)
movapd %xmm1, %xmm0
divsd 0x130(%rsp), %xmm0
movq 0x75e1(%rip), %rdi      # 0xbfc8
callq 0x2330
movq %rax, %r12
movl $0x10, %edx
movq %rax, %rdi
leaq 0x38e9(%rip), %rsi      # 0x82e7
callq 0x2260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movapd 0x260(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x100(%rsp), %xmm0
movq 0x7578(%rip), %rdi      # 0xbfc8
callq 0x2330
movq %rax, %r12
movl $0x15, %edx
movq %rax, %rdi
leaq 0x3891(%rip), %rsi      # 0x82f8
callq 0x2260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movapd 0x250(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x130(%rsp), %xmm0
movq 0x750f(%rip), %rdi      # 0xbfc8
callq 0x2330
movq %rax, %r12
movl $0xe, %edx
movq %rax, %rdi
leaq 0x383e(%rip), %rsi      # 0x830e
callq 0x2260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x4b19
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
movss 0x8(%rsp), %xmm0
addss 0xd0(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
incq %rbx
cmpq $0xa, %rbx
jne 0x4596
movq 0x7486(%rip), %rbx      # 0xbfc8
leaq 0x35a5(%rip), %rsi      # 0x80ee
movl $0x16, %edx
movq %rbx, %rdi
callq 0x2260
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x7454(%rip), %rdi      # 0xbfc8
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x7440(%rip), %rdi      # 0xbfc8
leaq 0x357a(%rip), %rsi      # 0x8109
movl $0xb, %edx
callq 0x2260
movsd 0x170(%rsp), %xmm0
unpcklps 0x3467(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x346f(%rip), %xmm0     # 0x8020
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
cvtss2sd 0xa0(%rsp), %xmm1
divsd 0x3472(%rip), %xmm1     # 0x8040
movapd %xmm2, 0xa0(%rsp)
movapd %xmm2, %xmm0
divsd %xmm1, %xmm0
movq 0x73e2(%rip), %rdi      # 0xbfc8
callq 0x2330
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x73ac(%rip), %rdi      # 0xbfc8
leaq 0x34e2(%rip), %rsi      # 0x8105
movl $0xf, %edx
callq 0x2260
xorps %xmm1, %xmm1
cvtss2sd 0x8(%rsp), %xmm1
divsd 0x3402(%rip), %xmm1     # 0x8040
movapd 0xa0(%rsp), %xmm0
divsd %xmm1, %xmm0
movq 0x7376(%rip), %rdi      # 0xbfc8
callq 0x2330
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
leaq 0x1f8(%rsp), %rdi
callq 0x6b2a
leaq 0x1c0(%rsp), %rdi
callq 0x6b9a
movq 0x190(%rsp), %rdi
testq %rdi, %rdi
je 0x4cb8
movq 0x1a0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x140(%rsp), %rdi
testq %rdi, %rdi
je 0x4cd5
movq 0x150(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x230(%rsp), %rdi
callq 0x5cbc
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4cf9
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x4d16
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x1a8(%rsp), %rdi
callq 0x5cbc
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x728c(%rip), %rdi      # 0xbfc8
leaq 0x356d(%rip), %rsi      # 0x82b0
movl $0x4, %edx
callq 0x2260
movq 0xd0(%rsp), %rsi
subq %rbp, %rsi
sarq $0x2, %rsi
movq 0x7265(%rip), %rbx      # 0xbfc8
movq %rbx, %rdi
movq %rsi, %r12
callq 0x2160
movq %rax, %r14
leaq 0x353d(%rip), %rsi      # 0x82b5
movl $0x5, %edx
movq %rax, %rdi
callq 0x2260
subq 0x100(%rsp), %r13
sarq $0x2, %r13
movq %r14, %rdi
movq %r13, %r14
movq %r13, %rsi
callq 0x2160
movq %rax, %rdi
callq 0x2120
cmpq %r12, %r14
cmovbq %r14, %r12
testq %r12, %r12
jne 0x4dfe
movl $0x10, %edi
callq 0x2130
movq %rax, %r14
leaq 0x3501(%rip), %rsi      # 0x82c8
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x5de9
movb $0x1, %bpl
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0x2350
xorl %ebp, %ebp
movq 0x7201(%rip), %rsi      # 0xbff0
movq 0x71c2(%rip), %rdx      # 0xbfb8
movq %r14, %rdi
callq 0x2380
xorl %r14d, %r14d
leaq 0x34ab(%rip), %r15      # 0x82b3
leaq 0x34ac(%rip), %r13      # 0x82bb
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2160
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2260
movq 0x58(%rsp), %rax
movl (%rax,%r14,4), %esi
movq %rbp, %rdi
callq 0x2160
movq %rax, %rbp
movl $0x4, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2260
movq 0xe8(%rsp), %rax
movl (%rax,%r14,4), %esi
movq %rbp, %rdi
callq 0x2160
movq 0x58(%rsp), %rax
movl (%rax,%r14,4), %eax
movq 0xe8(%rsp), %rcx
cmpl (%rcx,%r14,4), %eax
je 0x4e90
movl $0x7, %edx
movq %rbx, %rdi
leaq 0x3435(%rip), %rsi      # 0x82c0
callq 0x2260
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
incq %r14
cmpq %r14, %r12
jne 0x4e0f
jmp 0x4db3
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x4ef5
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x4ef5
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x4f63
movq %r14, %rdi
callq 0x21a0
jmp 0x4f63
jmp 0x4f60
jmp 0x4f59
movq %rax, %rbx
movq 0x178(%rsp), %rdi
testq %rdi, %rdi
je 0x4fe9
movq 0x188(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
jmp 0x4fe9
movq %rax, %rbx
jmp 0x4fe9
jmp 0x4f4b
movq %rax, %rbx
jmp 0x5023
jmp 0x4fa2
jmp 0x4f59
jmp 0x4f59
jmp 0x4fa2
movq %rax, %rbx
jmp 0x5006
jmp 0x4f86
jmp 0x4f59
jmp 0x4f59
movq %rax, %rbx
jmp 0x4fcf
jmp 0x4f60
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x4f89
movq 0xf8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
jmp 0x4f89
jmp 0x4fb0
jmp 0x4fa2
movq %rax, %rbx
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x4fb3
movq 0x68(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
jmp 0x4fb3
movq %rax, %rbx
jmp 0x5030
jmp 0x4fb0
jmp 0x4fb0
jmp 0x4fb0
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x4fcf
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x1f8(%rsp), %rdi
callq 0x6b2a
leaq 0x1c0(%rsp), %rdi
callq 0x6b9a
movq 0x190(%rsp), %rdi
testq %rdi, %rdi
je 0x5006
movq 0x1a0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x140(%rsp), %rdi
testq %rdi, %rdi
je 0x5023
movq 0x150(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x230(%rsp), %rdi
callq 0x5cbc
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5047
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x5064
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x1a8(%rsp), %rdi
callq 0x5cbc
movq %rbx, %rdi
callq 0x2390