// File: /workspace/github_cpp_makefile_star2_O3/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 $0x248, %rsp            # imm = 0x248
movq %rcx, 0x50(%rsp)
movq %rdx, %rbx
movq %rsi, 0x8(%rsp)
movq %rdi, %r12
leaq 0x188(%rsp), %rdi
leaq 0x1c0(%rsp), %rdx
movq %rbx, %rsi
callq 0x5d18
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 %r12, %rsi
callq 0x59ea
movq %rbx, 0x58(%rsp)
xorl %r13d, %r13d
testq %rbx, %rbx
je 0x403e
xorl %ebp, %ebp
leaq (,%rbp,2), %rbx
addq %rbp, %rbx
shlq $0x3, %rbx
movq 0x188(%rsp), %r15
addq %rbx, %r15
movq 0x8(%rsp), %rax
movq %rax, %r14
testq %rax, %rax
je 0x3f55
callq 0x2080
cltq
xorl %edx, %edx
divq %r12
movl %edx, 0x1c0(%rsp)
movq 0x8(%r15), %rsi
cmpq 0x10(%r15), %rsi
je 0x3f40
movl %edx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r15)
jmp 0x3f50
movq %r15, %rdi
leaq 0x1c0(%rsp), %rdx
callq 0x76ae
decq %r14
jne 0x3f17
movq %r13, 0xa0(%rsp)
movq (%r15), %r13
movq 0x8(%r15), %r14
cmpq %r14, %r13
je 0x3fd7
movq %r14, %rax
subq %r13, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x7789
movq %r13, %rdi
movq %r14, %rsi
callq 0x786c
movq (%r15), %r13
movq 0x8(%r15), %rsi
cmpq %rsi, %r13
je 0x3fe3
leaq 0x4(%r13), %rax
cmpq %rsi, %rax
je 0x3fe3
movl -0x4(%rax), %ecx
leaq 0x4(%rax), %rdx
cmpl (%rax), %ecx
movq %rdx, %rax
jne 0x3fa6
leaq -0x8(%rdx), %rax
cmpq %rsi, %rdx
je 0x3fdc
movl %ecx, %edi
movl (%rdx), %ecx
cmpl %ecx, %edi
je 0x3fd1
movl %ecx, 0x4(%rax)
addq $0x4, %rax
addq $0x4, %rdx
jmp 0x3fbd
movq %r13, %rsi
jmp 0x3fe3
addq $0x4, %rax
movq %rax, %rsi
subq %r13, %rsi
sarq $0x2, %rsi
movq %r15, %rdi
callq 0x58ee
movq (%r15), %r13
movq 0x8(%r15), %r14
addq 0x188(%rsp), %rbx
movq %rbx, 0x1c0(%rsp)
leaq 0xb0(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
callq 0x70b8
subq %r13, %r14
sarq $0x2, %r14
movq 0xa0(%rsp), %r13
addq %r14, %r13
incq %rbp
cmpq 0x58(%rsp), %rbp
jne 0x3ef0
xorpd %xmm0, %xmm0
leaq 0x1a0(%rsp), %rsi
movapd %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
leaq 0x188(%rsp), %rdi
movl $0x9c40, %edx           # imm = 0x9C40
callq 0x2a54
xorpd %xmm0, %xmm0
movapd %xmm0, 0x110(%rsp)
movq $0x0, 0x120(%rsp)
movq 0x58(%rsp), %r12
testq %r12, %r12
je 0x40c4
xorl %ebx, %ebx
leaq 0x110(%rsp), %r14
leaq 0x1c0(%rsp), %r15
movq 0x1a0(%rsp), %rax
addq %rbx, %rax
movq %rax, 0x1c0(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x70b8
addq $0x18, %rbx
decq %r12
jne 0x409d
movupd 0x43a4(%rip), %xmm0     # 0x8470
leaq 0x1c0(%rsp), %rsi
movapd %xmm0, (%rsi)
movl $0x3, 0x10(%rsi)
leaq 0x170(%rsp), %rdi
leaq 0x60(%rsp), %rcx
movl $0x5, %edx
callq 0x5a86
leaq 0x158(%rsp), %rdi
leaq 0x170(%rsp), %rsi
callq 0x5acc
leaq 0x1c0(%rsp), %rdi
leaq 0x158(%rsp), %rsi
callq 0x5b4c
movq 0x158(%rsp), %rdi
testq %rdi, %rdi
je 0x413d
movq 0x168(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq 0x50(%rsp), %rdx
callq 0x280e
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x7e5e(%rip), %rdi      # 0xbfc8
leaq 0x3fa4(%rip), %rsi      # 0x8115
movl $0x4, %edx
callq 0x2260
movq 0x58(%rsp), %rsi
sarq $0x2, %rsi
movq 0x7e3d(%rip), %rdi      # 0xbfc8
movq %rsi, 0xf8(%rsp)
callq 0x2160
leaq 0x3f11(%rip), %rsi      # 0x80b0
movl $0x6, %edx
movq %rax, %rdi
callq 0x2260
leaq (,%r13,2), %rax
leaq (%rax,%rax,4), %rax
movq %rax, 0x150(%rsp)
movq %r13, %xmm0
punpckldq 0x3e43(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3e4b(%rip), %xmm0     # 0x8020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x100(%rsp)
xorpd %xmm0, %xmm0
movss %xmm0, 0xa0(%rsp)
xorl %ebp, %ebp
leaq 0x10(%rsp), %rbx
leaq 0x1c0(%rsp), %r14
movq 0x7dbb(%rip), %r12      # 0xbfc8
movq 0x7dd4(%rip), %r13      # 0xbfe8
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x3e8d(%rip), %rsi      # 0x80b7
leaq 0x3e98(%rip), %rdx      # 0x80c9
callq 0x72ac
xorpd %xmm0, %xmm0
movapd %xmm0, 0x70(%rsp)
movapd %xmm0, 0x60(%rsp)
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
callq 0x2340
movaps 0x60(%rsp), %xmm0
leaq 0x70(%rsp), %rax
movups %xmm0, (%rax)
movq 0x1d0(%rsp), %r15
testq %r15, %r15
je 0x427a
movq 0x10(%r15), %rdi
callq 0x73bc
movq (%r15), %r15
jmp 0x4267
leaq 0xb0(%rsp), %rdi
movq %rbx, %rsi
movq 0x50(%rsp), %rdx
callq 0x280e
movq %r14, %rdi
callq 0x7342
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
callq 0x2340
movq 0x70(%rsp), %rcx
movq 0x78(%rsp), %rax
subq 0x60(%rsp), %rcx
imulq $0xf4240, %rcx, %rcx    # imm = 0xF4240
subq 0x68(%rsp), %rax
addq %rcx, %rax
js 0x42cd
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x42e5
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 0x58(%rsp), %rax
je 0x4361
movl $0xe, %edx
movq %r13, %rdi
leaq 0x3fc3(%rip), %rsi      # 0x82ce
callq 0x2260
movq %r13, %rdi
movq 0xf8(%rsp), %rsi
callq 0x2160
movq %rax, %r15
movl $0x9, %edx
movq %rax, %rdi
leaq 0x3fab(%rip), %rsi      # 0x82dd
callq 0x2260
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
movq %r15, %rdi
callq 0x2160
movl $0x1, %edx
movq %rax, %rdi
leaq 0x3d59(%rip), %rsi      # 0x80b5
callq 0x2260
cmpq $0x9, %rbp
jne 0x455e
movq %r14, %rdi
xorl %esi, %esi
callq 0x7390
movq %rax, %xmm0
punpckldq 0x3c8e(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3c96(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x80(%rsp)
movq %r14, %rdi
movl $0x1, %esi
callq 0x7390
movq %rax, %xmm0
punpckldq 0x3c63(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3c6b(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x140(%rsp)
movq %r14, %rdi
movl $0x5, %esi
callq 0x7390
movq %rax, %xmm0
punpckldq 0x3c38(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3c40(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x90(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq %r12, %rdi
callq 0x2260
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movapd 0x80(%rsp), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x80(%rsp)
movapd %xmm1, %xmm0
divsd 0x100(%rsp), %xmm0
movq %r12, %rdi
callq 0x2330
movq %rax, %r15
movl $0x10, %edx
movq %rax, %rdi
leaq 0x3e7d(%rip), %rsi      # 0x82e7
callq 0x2260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movapd 0x140(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x80(%rsp), %xmm0
movq %r12, %rdi
callq 0x2330
movq %rax, %r15
movl $0x15, %edx
movq %rax, %rdi
leaq 0x3e2a(%rip), %rsi      # 0x82f8
callq 0x2260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movapd 0x90(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x100(%rsp), %xmm0
movq %r12, %rdi
callq 0x2330
movq %rax, %r15
movl $0xe, %edx
movq %rax, %rdi
leaq 0x3ddc(%rip), %rsi      # 0x830e
callq 0x2260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x457a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
movss 0xa0(%rsp), %xmm0
addss 0x8(%rsp), %xmm0
movss %xmm0, 0xa0(%rsp)
incq %rbp
cmpq $0xa, %rbp
jne 0x4214
movq 0x50(%rsp), %rax
movl %eax, %ecx
movq %rcx, 0x140(%rsp)
xorpd %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
xorl %ebp, %ebp
leaq 0x30(%rsp), %r14
leaq 0xb0(%rsp), %r12
leaq 0x10(%rsp), %r13
movzbl %al, %eax
movl %eax, 0x50(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %r14, %rdi
leaq 0x3ab5(%rip), %rsi      # 0x809c
leaq 0x3abb(%rip), %rdx      # 0x80a9
callq 0x72ac
movq %r12, %rdi
movq %r13, %rsi
movq 0x140(%rsp), %rdx
callq 0x280e
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0xc8(%rsp), %rdi
movq %r13, %rsi
callq 0x722c
movq 0xc8(%rsp), %rbx
movq 0xd0(%rsp), %r15
cmpq %r15, %rbx
je 0x466a
movq %r15, %rax
subq %rbx, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7789
movq %rbx, %rdi
movq %r15, %rsi
callq 0x786c
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x467b
movq %rax, 0x18(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movl 0x50(%rsp), %edx
callq 0x257c
movq 0x10(%rsp), %r15
movq %r13, %rsi
movq 0x18(%rsp), %rbx
leaq 0xe0(%rsp), %rdi
callq 0x722c
movq %r15, 0x130(%rsp)
movq %rbx, 0x90(%rsp)
movq 0xe0(%rsp), %rbx
movq 0xe8(%rsp), %r15
movq %rbp, %r12
cmpq %r15, %rbx
je 0x470b
movq %r15, %rax
subq %rbx, %rax
sarq $0x2, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7789
movq %rbx, %rdi
movq %r15, %rsi
callq 0x786c
movq 0xe0(%rsp), %rbp
movq 0xe8(%rsp), %rbx
jmp 0x470e
movq %rbx, %rbp
movq 0xc8(%rsp), %r15
movq 0xd0(%rsp), %rax
movq %rax, %rdx
subq %r15, %rdx
subq %rbp, %rbx
cmpq %rbx, %rdx
jne 0x4d49
cmpq %r15, %rax
je 0x4748
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2240
testl %eax, %eax
jne 0x4d49
testq %rbp, %rbp
je 0x4768
movq 0xf0(%rsp), %rsi
subq %rbp, %rsi
movq %rbp, %rdi
callq 0x2230
movq 0xc8(%rsp), %r15
testq %r15, %r15
je 0x4780
movq 0xd8(%rsp), %rsi
subq %r15, %rsi
movq %r15, %rdi
callq 0x2230
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
movq %r12, %rbp
je 0x479f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x30(%rsp), %r14
movq %r14, %rdi
leaq 0x3912(%rip), %rsi      # 0x80ca
leaq 0x392e(%rip), %rdx      # 0x80ed
callq 0x72ac
leaq 0xb0(%rsp), %r12
leaq 0x1c0(%rsp), %r15
xorpd %xmm0, %xmm0
movapd %xmm0, 0x70(%rsp)
movapd %xmm0, 0x60(%rsp)
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
callq 0x2340
movaps 0x60(%rsp), %xmm0
leaq 0x70(%rsp), %rax
movups %xmm0, (%rax)
movq 0x1d0(%rsp), %rbx
testq %rbx, %rbx
je 0x4818
movq 0x10(%rbx), %rdi
callq 0x73bc
movq (%rbx), %rbx
jmp 0x4805
movq %r12, %rdi
movq %r13, %rsi
movl 0x50(%rsp), %edx
callq 0x257c
movq %r15, %rdi
callq 0x7342
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
callq 0x2340
movq 0x70(%rsp), %rcx
movq 0x78(%rsp), %rax
subq 0x60(%rsp), %rcx
imulq $0xf4240, %rcx, %rcx    # imm = 0xF4240
subq 0x68(%rsp), %rax
addq %rcx, %rax
js 0x4865
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x487d
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
movss %xmm0, 0x80(%rsp)
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0x4904
movl $0xe, %edx
movq 0x7745(%rip), %rdi      # 0xbfe8
leaq 0x3a24(%rip), %rsi      # 0x82ce
callq 0x2260
movq 0x7732(%rip), %rdi      # 0xbfe8
movq 0xf8(%rsp), %rsi
callq 0x2160
movq %rax, %rbx
movl $0x9, %edx
movq %rax, %rdi
leaq 0x3a08(%rip), %rsi      # 0x82dd
callq 0x2260
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x2, %rsi
movq %rbx, %rdi
callq 0x2160
movl $0x1, %edx
movq %rax, %rdi
leaq 0x37b6(%rip), %rsi      # 0x80b5
callq 0x2260
cmpq $0x9, %rbp
jne 0x4b11
movq %r15, %rdi
xorl %esi, %esi
callq 0x7390
movq %rax, %xmm0
punpckldq 0x36eb(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x36f3(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x90(%rsp)
movq %r15, %rdi
movl $0x1, %esi
callq 0x7390
movq %rax, %xmm0
punpckldq 0x36c0(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x36c8(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x130(%rsp)
movq %r15, %rdi
movl $0x5, %esi
callq 0x7390
movq %rax, %xmm0
punpckldq 0x3695(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x369d(%rip), %xmm0     # 0x8020
movapd %xmm0, 0x230(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x762b(%rip), %rdi      # 0xbfc8
callq 0x2260
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
movapd 0x90(%rsp), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x90(%rsp)
movapd %xmm1, %xmm0
divsd 0x100(%rsp), %xmm0
movq 0x75ca(%rip), %rdi      # 0xbfc8
callq 0x2330
movq %rax, %rbx
movl $0x10, %edx
movq %rax, %rdi
leaq 0x38d2(%rip), %rsi      # 0x82e7
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
movapd 0x130(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x90(%rsp), %xmm0
movq 0x7562(%rip), %rdi      # 0xbfc8
callq 0x2330
movq %rax, %rbx
movl $0x15, %edx
movq %rax, %rdi
leaq 0x387b(%rip), %rsi      # 0x82f8
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
movapd 0x230(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
divsd 0x100(%rsp), %xmm0
movq 0x74fa(%rip), %rdi      # 0xbfc8
callq 0x2330
movq %rax, %rbx
movl $0xe, %edx
movq %rax, %rdi
leaq 0x3829(%rip), %rsi      # 0x830e
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
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x4b2d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
movss 0x8(%rsp), %xmm0
addss 0x80(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
incq %rbp
cmpq $0xa, %rbp
jne 0x45d3
movq 0x7472(%rip), %rbx      # 0xbfc8
leaq 0x3591(%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 0x7440(%rip), %rdi      # 0xbfc8
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x742c(%rip), %rdi      # 0xbfc8
leaq 0x3566(%rip), %rsi      # 0x8109
movl $0xb, %edx
callq 0x2260
movsd 0x150(%rsp), %xmm0
unpcklps 0x3453(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x345b(%rip), %xmm0     # 0x8020
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
addsd %xmm0, %xmm2
cvtss2sd 0xa0(%rsp), %xmm1
divsd 0x345e(%rip), %xmm1     # 0x8040
movapd %xmm2, 0xa0(%rsp)
movapd %xmm2, %xmm0
divsd %xmm1, %xmm0
movq 0x73ce(%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 0x7398(%rip), %rdi      # 0xbfc8
leaq 0x34ce(%rip), %rsi      # 0x8105
movl $0xf, %edx
callq 0x2260
xorps %xmm1, %xmm1
cvtss2sd 0x8(%rsp), %xmm1
divsd 0x33ee(%rip), %xmm1     # 0x8040
movapd 0xa0(%rsp), %xmm0
divsd %xmm1, %xmm0
movq 0x7362(%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 0x6aa0
leaq 0x1c0(%rsp), %rdi
callq 0x6b10
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0x4ccc
movq 0x180(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x4ce9
movq 0x120(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x1a0(%rsp), %rdi
callq 0x5cc4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4d0d
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x4d2a
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x188(%rsp), %rdi
callq 0x5cc4
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x7278(%rip), %rdi      # 0xbfc8
leaq 0x3559(%rip), %rsi      # 0x82b0
movl $0x4, %edx
callq 0x2260
movq 0x80(%rsp), %rsi
subq %r14, %rsi
sarq $0x2, %rsi
movq 0x7251(%rip), %rbx      # 0xbfc8
movq %rbx, %rdi
movq %rsi, %r12
callq 0x2160
movq %rax, %r15
leaq 0x3529(%rip), %rsi      # 0x82b5
movl $0x5, %edx
movq %rax, %rdi
callq 0x2260
movq 0x90(%rsp), %rsi
subq 0x130(%rsp), %rsi
sarq $0x2, %rsi
movq %r15, %rdi
movq %rsi, %r14
callq 0x2160
movq %rax, %rdi
callq 0x2120
cmpq %r12, %r14
cmovbq %r14, %r12
testq %r12, %r12
jne 0x4e17
movl $0x10, %edi
callq 0x2130
movq %rax, %r14
leaq 0x34e8(%rip), %rsi      # 0x82c8
leaq 0x60(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x5ded
movb $0x1, %bpl
leaq 0x60(%rsp), %rsi
movq %r14, %rdi
callq 0x2350
xorl %ebp, %ebp
movq 0x71e8(%rip), %rsi      # 0xbff0
movq 0x71a9(%rip), %rdx      # 0xbfb8
movq %r14, %rdi
callq 0x2380
xorl %r14d, %r14d
leaq 0x3492(%rip), %r15      # 0x82b3
leaq 0x3493(%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 0xc8(%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 0xe0(%rsp), %rax
movl (%rax,%r14,4), %esi
movq %rbp, %rdi
callq 0x2160
movq 0xc8(%rsp), %rax
movl (%rax,%r14,4), %eax
movq 0xe0(%rsp), %rcx
cmpl (%rcx,%r14,4), %eax
je 0x4eaf
movl $0x7, %edx
movq %rbx, %rdi
leaq 0x3416(%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 0x4e28
jmp 0x4dcc
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x4f06
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2230
testb %bpl, %bpl
jne 0x4f10
jmp 0x4f7b
movq %rax, %rbx
movq %r14, %rdi
callq 0x21a0
jmp 0x4f7b
jmp 0x4f78
jmp 0x4f6f
movq %rax, %rbx
movq 0x158(%rsp), %rdi
testq %rdi, %rdi
je 0x5005
movq 0x168(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
jmp 0x5005
movq %rax, %rbx
jmp 0x5005
jmp 0x4f61
movq %rax, %rbx
jmp 0x503f
jmp 0x4fbe
jmp 0x4f6f
jmp 0x4f6f
jmp 0x4fbe
movq %rax, %rbx
jmp 0x5022
jmp 0x4f9c
jmp 0x4f6f
jmp 0x4f6f
movq %rax, %rbx
jmp 0x4feb
jmp 0x4f78
jmp 0x4fbe
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x4f9f
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
jmp 0x4f9f
jmp 0x4fcc
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x4fcf
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
jmp 0x4fcf
movq %rax, %rbx
jmp 0x504c
jmp 0x4fcc
jmp 0x4fcc
jmp 0x4fcc
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x4feb
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x1f8(%rsp), %rdi
callq 0x6aa0
leaq 0x1c0(%rsp), %rdi
callq 0x6b10
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0x5022
movq 0x180(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x503f
movq 0x120(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x1a0(%rsp), %rdi
callq 0x5cc4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5063
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x5080
movq 0xc0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x188(%rsp), %rdi
callq 0x5cc4
movq %rbx, %rdi
callq 0x2390