// File: /workspace/github_cpp_makefile_star2_O1/CMU-SAFARI[P]ramulator/src/Cache.cpp
// Function: ramulator::Cache::Cache(int, int, int, int, ramulator::Cache::Level, std::shared_ptr<ramulator::CacheSystem>)
Cache::Cache(int size, int assoc, int block_size,
    int mshr_entry_num, Level level,
    std::shared_ptr<CacheSystem> cachesys):
    level(level), cachesys(cachesys), higher_cache(0),
    lower_cache(nullptr), size(size), assoc(assoc),
    block_size(block_size), mshr_entry_num(mshr_entry_num) {

  debug("level %d size %d assoc %d block_size %d\n",
      int(level), size, assoc, block_size);

  if (level == Level::L1) {
    level_string = "L1";
  } else if (level == Level::L2) {
    level_string = "L2";
  } else if (level == Level::L3) {
    level_string = "L3";
  }

  is_first_level = (level == cachesys->first_level);
  is_last_level = (level == cachesys->last_level);

  // Check size, block size and assoc are 2^N
  assert((size & (size - 1)) == 0);
  assert((block_size & (block_size - 1)) == 0);
  assert((assoc & (assoc - 1)) == 0);
  assert(size >= block_size);

  // Initialize cache configuration
  block_num = size / (block_size * assoc);
  index_mask = block_num - 1;
  index_offset = calc_log2(block_size);
  tag_offset = calc_log2(block_num) + index_offset;

  debug("index_offset %d", index_offset);
  debug("index_mask 0x%x", index_mask);
  debug("tag_offset %d", tag_offset);

  // regStats
  cache_read_miss.name(level_string + string("_cache_read_miss"))
                 .desc("cache read miss count")
                 .precision(0)
                 ;

  cache_write_miss.name(level_string + string("_cache_write_miss"))
                  .desc("cache write miss count")
                  .precision(0)
                  ;

  cache_total_miss.name(level_string + string("_cache_total_miss"))
                  .desc("cache total miss count")
                  .precision(0)
                  ;

  cache_eviction.name(level_string + string("_cache_eviction"))
                .desc("number of evict from this level to lower level")
                .precision(0)
                ;

  cache_read_access.name(level_string + string("_cache_read_access"))
                  .desc("cache read access count")
                  .precision(0)
                  ;

  cache_write_access.name(level_string + string("_cache_write_access"))
                    .desc("cache write access count")
                    .precision(0)
                    ;

  cache_total_access.name(level_string + string("_cache_total_access"))
                    .desc("cache total access count")
                    .precision(0)
                    ;

  cache_mshr_hit.name(level_string + string("_cache_mshr_hit"))
                .desc("cache mshr hit count")
                .precision(0)
                ;
  cache_mshr_unavailable.name(level_string + string("_cache_mshr_unavailable"))
                         .desc("cache mshr not available count")
                         .precision(0)
                         ;
  cache_set_unavailable.name(level_string + string("_cache_set_unavailable"))
                         .desc("cache set not available")
                         .precision(0)
                         ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movl %r9d, %r13d
movl %r8d, 0x28(%rsp)
movl %ecx, %r14d
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, %rbx
callq 0x21be2
leaq 0x9b4fb(%rip), %rbp     # 0x1a10f8
movq %rbp, (%rbx)
xorl %eax, %eax
movq %rax, 0x70(%rbx)
leaq 0x88(%rbx), %rcx
movq %rcx, 0x78(%rbx)
movq %rax, 0x80(%rbx)
movb $0x0, 0x88(%rbx)
leaq 0x98(%rbx), %rdi
movq %rdi, 0x80(%rsp)
callq 0x21be2
movq %rbp, 0x98(%rbx)
xorl %eax, %eax
movq %rax, 0x108(%rbx)
leaq 0x120(%rbx), %rcx
movq %rcx, 0x110(%rbx)
movq %rax, 0x118(%rbx)
movb $0x0, 0x120(%rbx)
leaq 0x130(%rbx), %rdi
movq %rdi, 0x78(%rsp)
callq 0x21be2
movq %rbp, 0x130(%rbx)
xorl %eax, %eax
movq %rax, 0x1a0(%rbx)
leaq 0x1b8(%rbx), %rcx
movq %rcx, 0x1a8(%rbx)
movq %rax, 0x1b0(%rbx)
movb $0x0, 0x1b8(%rbx)
leaq 0x1c8(%rbx), %rdi
movq %rdi, 0x70(%rsp)
callq 0x21be2
movq %rbp, 0x1c8(%rbx)
xorl %eax, %eax
movq %rax, 0x238(%rbx)
leaq 0x250(%rbx), %rcx
movq %rcx, 0x240(%rbx)
movq %rax, 0x248(%rbx)
movb $0x0, 0x250(%rbx)
leaq 0x260(%rbx), %rdi
movq %rdi, 0x68(%rsp)
callq 0x21be2
movq %rbp, 0x260(%rbx)
xorl %eax, %eax
movq %rax, 0x2d0(%rbx)
leaq 0x2e8(%rbx), %rcx
movq %rcx, 0x2d8(%rbx)
movq %rax, 0x2e0(%rbx)
movb $0x0, 0x2e8(%rbx)
leaq 0x2f8(%rbx), %rdi
movq %rdi, 0x60(%rsp)
callq 0x21be2
movq %rbp, 0x2f8(%rbx)
xorl %eax, %eax
movq %rax, 0x368(%rbx)
leaq 0x380(%rbx), %rcx
movq %rcx, 0x370(%rbx)
movq %rax, 0x378(%rbx)
movb $0x0, 0x380(%rbx)
leaq 0x390(%rbx), %rdi
movq %rdi, 0x58(%rsp)
callq 0x21be2
movq %rbp, 0x390(%rbx)
xorl %eax, %eax
movq %rax, 0x400(%rbx)
leaq 0x418(%rbx), %rcx
movq %rcx, 0x408(%rbx)
movq %rax, 0x410(%rbx)
movb $0x0, 0x418(%rbx)
leaq 0x428(%rbx), %rdi
movq %rdi, 0x50(%rsp)
callq 0x21be2
movq %rbp, 0x428(%rbx)
xorl %eax, %eax
movq %rax, 0x498(%rbx)
leaq 0x4b0(%rbx), %rcx
movq %rcx, 0x4a0(%rbx)
movq %rax, 0x4a8(%rbx)
movb $0x0, 0x4b0(%rbx)
leaq 0x4c0(%rbx), %rdi
movq %rdi, 0x48(%rsp)
callq 0x21be2
movq %rbp, 0x4c0(%rbx)
xorl %eax, %eax
movq %rax, 0x530(%rbx)
leaq 0x548(%rbx), %rcx
movq %rcx, 0x538(%rbx)
movq %rax, 0x540(%rbx)
movb $0x0, 0x548(%rbx)
leaq 0x558(%rbx), %rdi
movq %rdi, 0x40(%rsp)
callq 0x21be2
movq 0x340(%rsp), %rdx
movq %rbp, 0x558(%rbx)
xorl %eax, %eax
movq %rax, 0x5c8(%rbx)
leaq 0x5e0(%rbx), %rcx
movq %rcx, 0x5d0(%rbx)
movq %rax, 0x5d8(%rbx)
movb %al, 0x5e0(%rbx)
movl %r13d, 0x5f0(%rbx)
leaq 0x608(%rbx), %rcx
movq %rcx, 0x30(%rsp)
movq %rcx, 0x5f8(%rbx)
movq %rax, 0x600(%rbx)
movb %al, 0x608(%rbx)
movaps 0x52564(%rip), %xmm0    # 0x1583e0
movups %xmm0, 0x618(%rbx)
movabsq $0x1f0000000c, %rax     # imm = 0x1F0000000C
movq %rax, 0x628(%rbx)
movq (%rdx), %rax
movq %rax, 0x630(%rbx)
movq 0x8(%rdx), %rax
movq %rax, 0x638(%rbx)
testq %rax, %rax
je 0x105ec3
movq 0x9e0db(%rip), %rcx     # 0x1a3f90
cmpb $0x0, (%rcx)
je 0x105ebf
incl 0x8(%rax)
jmp 0x105ec3
lock
incl 0x8(%rax)
leaq 0x5f8(%rbx), %rax
movq %rax, 0x38(%rsp)
movslq %r12d, %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x650(%rbx)
movups %xmm0, 0x640(%rbx)
movq %rax, 0x668(%rbx)
movl %r15d, 0x670(%rbx)
movl %r14d, 0x67c(%rbx)
movl 0x28(%rsp), %eax
movl %eax, 0x688(%rbx)
movups %xmm0, 0x690(%rbx)
xorl %eax, %eax
movq %rax, 0x6a0(%rbx)
leaq 0x6a8(%rbx), %rcx
movq %rcx, 0x6b0(%rbx)
movq %rcx, 0x28(%rsp)
movq %rcx, 0x6a8(%rbx)
movq %rax, 0x6b8(%rbx)
leaq 0x6c8(%rbx), %rcx
movl $0x0, 0x6c8(%rbx)
movq %rax, 0x6d0(%rbx)
movq %rcx, 0x6d8(%rbx)
movq %rcx, 0x6e0(%rbx)
movq %rax, 0x6e8(%rbx)
cmpl $0x3, %r13d
jae 0x105f96
movl %r13d, %eax
movq %rdx, %rbp
leaq 0x52909(%rip), %rdx     # 0x15887c
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
movq 0x600(%rbx), %rdx
movl $0x2, %r8d
movq 0x38(%rsp), %rdi
xorl %esi, %esi
callq 0xb430
movq %rbp, %rdx
movq (%rdx), %rax
cmpl %r13d, 0x58(%rax)
sete 0x660(%rbx)
cmpl %r13d, 0x5c(%rax)
sete 0x661(%rbx)
leal -0x1(%r12), %eax
testl %eax, %r12d
jne 0x106c0d
leal -0x1(%r14), %eax
testl %eax, %r14d
jne 0x106c2c
leal -0x1(%r15), %eax
testl %eax, %r15d
jne 0x106c4b
cmpl %r14d, %r12d
jl 0x106c6a
imull %r14d, %r15d
movl %r12d, %eax
cltd
idivl %r15d
movl %eax, 0x674(%rbx)
leal -0x1(%rax), %ecx
movl %ecx, 0x678(%rbx)
xorl %ecx, %ecx
movl $0x0, %edx
cmpl $0x2, %r14d
jb 0x106014
xorl %edx, %edx
sarl %r14d
incl %edx
cmpl $0x1, %r14d
ja 0x106009
movl %edx, 0x680(%rbx)
cmpl $0x2, %eax
jb 0x10602a
xorl %ecx, %ecx
sarl %eax
incl %ecx
cmpl $0x1, %eax
ja 0x106021
addl %edx, %ecx
movl %ecx, 0x684(%rbx)
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5247f(%rip), %rsi     # 0x1584c1
leaq 0x52488(%rip), %rdx     # 0x1584d1
leaq 0x8(%rsp), %rdi
callq 0x17586
movq 0x5f8(%rbx), %rcx
movq 0x600(%rbx), %r8
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb330
leaq 0x1b8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1060a0
movq %rdx, 0x1a8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1b8(%rsp)
jmp 0x1060a8
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x1a8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x2386a
movq %rax, %r14
leaq 0x2f8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x523ed(%rip), %rsi     # 0x1584d2
leaq 0x523fb(%rip), %rdx     # 0x1584e7
leaq 0x2e8(%rsp), %rdi
callq 0x17586
leaq 0x28(%r14), %rdi
leaq 0x2e8(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x2e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x10612f
movq 0x2f8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x1a8(%rsp), %rdi
cmpq %r12, %rdi
je 0x10614c
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x106163
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x52376(%rip), %rsi     # 0x1584e8
leaq 0x52380(%rip), %rdx     # 0x1584f9
callq 0x17586
movq 0x5f8(%rbx), %rcx
movq 0x600(%rbx), %r8
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb330
leaq 0x198(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1061cb
movq %rdx, 0x188(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x198(%rsp)
jmp 0x1061d3
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x188(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x80(%rsp), %rdi
callq 0x2386a
movq %rax, %r14
leaq 0x2d8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x522e5(%rip), %rsi     # 0x1584fa
leaq 0x522f4(%rip), %rdx     # 0x158510
leaq 0x2c8(%rsp), %rdi
callq 0x17586
leaq 0x28(%r14), %rdi
leaq 0x2c8(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x2c8(%rsp), %rdi
cmpq %r13, %rdi
je 0x10625f
movq 0x2d8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x188(%rsp), %rdi
cmpq %r12, %rdi
je 0x10627c
movq 0x198(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x106293
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x5226f(%rip), %rsi     # 0x158511
leaq 0x52279(%rip), %rdx     # 0x158522
callq 0x17586
movq 0x5f8(%rbx), %rcx
movq 0x600(%rbx), %r8
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb330
leaq 0x178(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1062fb
movq %rdx, 0x168(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x178(%rsp)
jmp 0x106303
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x168(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x78(%rsp), %rdi
callq 0x2386a
movq %rax, %r14
leaq 0x2b8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x521e1(%rip), %rsi     # 0x158523
leaq 0x521f0(%rip), %rdx     # 0x158539
leaq 0x2a8(%rsp), %rdi
callq 0x17586
leaq 0x28(%r14), %rdi
leaq 0x2a8(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x2a8(%rsp), %rdi
cmpq %r13, %rdi
je 0x10638c
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x1063a9
movq 0x178(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1063c0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x5216b(%rip), %rsi     # 0x15853a
leaq 0x52173(%rip), %rdx     # 0x158549
callq 0x17586
movq 0x5f8(%rbx), %rcx
movq 0x600(%rbx), %r8
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb330
leaq 0x158(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x106428
movq %rdx, 0x148(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x158(%rsp)
jmp 0x106430
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x148(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x70(%rsp), %rdi
callq 0x2386a
movq %rax, %r14
leaq 0x298(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x520db(%rip), %rsi     # 0x15854a
leaq 0x52102(%rip), %rdx     # 0x158578
leaq 0x288(%rsp), %rdi
callq 0x17586
leaq 0x28(%r14), %rdi
leaq 0x288(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x288(%rsp), %rdi
cmpq %r13, %rdi
je 0x1064b9
movq 0x298(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x148(%rsp), %rdi
cmpq %r12, %rdi
je 0x1064d6
movq 0x158(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1064ed
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x5207d(%rip), %rsi     # 0x158579
leaq 0x52088(%rip), %rdx     # 0x15858b
callq 0x17586
movq 0x5f8(%rbx), %rcx
movq 0x600(%rbx), %r8
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb330
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x106555
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
jmp 0x10655d
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x128(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x68(%rsp), %rdi
callq 0x2386a
movq %rax, %r14
leaq 0x278(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51ff0(%rip), %rsi     # 0x15858c
leaq 0x52000(%rip), %rdx     # 0x1585a3
leaq 0x268(%rsp), %rdi
callq 0x17586
leaq 0x28(%r14), %rdi
leaq 0x268(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x268(%rsp), %rdi
cmpq %r13, %rdi
je 0x1065e6
movq 0x278(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x106603
movq 0x138(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x10661a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51f7b(%rip), %rsi     # 0x1585a4
leaq 0x51f87(%rip), %rdx     # 0x1585b7
callq 0x17586
movq 0x5f8(%rbx), %rcx
movq 0x600(%rbx), %r8
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb330
leaq 0x118(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x106682
movq %rdx, 0x108(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x118(%rsp)
jmp 0x10668a
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x108(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x60(%rsp), %rdi
callq 0x2386a
movq %rax, %r14
leaq 0x258(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51eef(%rip), %rsi     # 0x1585b8
leaq 0x51f00(%rip), %rdx     # 0x1585d0
leaq 0x248(%rsp), %rdi
callq 0x17586
leaq 0x28(%r14), %rdi
leaq 0x248(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x248(%rsp), %rdi
cmpq %r13, %rdi
je 0x106713
movq 0x258(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x108(%rsp), %rdi
cmpq %r12, %rdi
je 0x106730
movq 0x118(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x106747
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51e7b(%rip), %rsi     # 0x1585d1
leaq 0x51e87(%rip), %rdx     # 0x1585e4
callq 0x17586
movq 0x5f8(%rbx), %rcx
movq 0x600(%rbx), %r8
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb330
leaq 0xf8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1067af
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0x1067b7
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0xe8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x58(%rsp), %rdi
callq 0x2386a
movq %rax, %r14
leaq 0x238(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51def(%rip), %rsi     # 0x1585e5
leaq 0x51e00(%rip), %rdx     # 0x1585fd
leaq 0x228(%rsp), %rdi
callq 0x17586
leaq 0x28(%r14), %rdi
leaq 0x228(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x228(%rsp), %rdi
cmpq %r13, %rdi
je 0x106840
movq 0x238(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x10685d
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x106874
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51d7b(%rip), %rsi     # 0x1585fe
leaq 0x51d83(%rip), %rdx     # 0x15860d
callq 0x17586
movq 0x5f8(%rbx), %rcx
movq 0x600(%rbx), %r8
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb330
leaq 0xd8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1068dc
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x1068e4
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0xc8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x50(%rsp), %rdi
callq 0x2386a
movq %rax, %r14
leaq 0x218(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51ceb(%rip), %rsi     # 0x15860e
leaq 0x51cf8(%rip), %rdx     # 0x158622
leaq 0x208(%rsp), %rdi
callq 0x17586
leaq 0x28(%r14), %rdi
leaq 0x208(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x208(%rsp), %rdi
cmpq %r13, %rdi
je 0x10696d
movq 0x218(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x10698a
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1069a1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51c73(%rip), %rsi     # 0x158623
leaq 0x51c83(%rip), %rdx     # 0x15863a
callq 0x17586
movq 0x5f8(%rbx), %rcx
movq 0x600(%rbx), %r8
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb330
leaq 0xb8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x106a09
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x106a11
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0xa8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
callq 0x2386a
movq %rax, %r14
leaq 0x1f8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51beb(%rip), %rsi     # 0x15863b
leaq 0x51c02(%rip), %rdx     # 0x158659
leaq 0x1e8(%rsp), %rdi
callq 0x17586
leaq 0x28(%r14), %rdi
leaq 0x1e8(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x1e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x106a9a
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x106ab7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x106ace
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51b7d(%rip), %rsi     # 0x15865a
leaq 0x51b8c(%rip), %rdx     # 0x158670
callq 0x17586
movq 0x5f8(%rbx), %rcx
movq 0x600(%rbx), %r8
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb330
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x106b36
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x106b3e
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x40(%rsp), %rdi
callq 0x2386a
movq %rax, %r14
leaq 0x1d8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51af4(%rip), %rsi     # 0x158671
leaq 0x51b04(%rip), %rdx     # 0x158688
leaq 0x1c8(%rsp), %rdi
callq 0x17586
leaq 0x28(%r14), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x1c8(%rsp), %rdi
cmpq %r13, %rdi
je 0x106bc7
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x106be4
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x106bfb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x517e2(%rip), %rdi     # 0x1583f6
leaq 0x517f4(%rip), %rsi     # 0x15840f
leaq 0x517fb(%rip), %rcx     # 0x15841d
movl $0x26, %edx
callq 0xb200
leaq 0x5183b(%rip), %rdi     # 0x15846e
leaq 0x517d5(%rip), %rsi     # 0x15840f
leaq 0x517dc(%rip), %rcx     # 0x15841d
movl $0x27, %edx
callq 0xb200
leaq 0x51841(%rip), %rdi     # 0x158493
leaq 0x517b6(%rip), %rsi     # 0x15840f
leaq 0x517bd(%rip), %rcx     # 0x15841d
movl $0x28, %edx
callq 0xb200
leaq 0x5183d(%rip), %rdi     # 0x1584ae
leaq 0x51797(%rip), %rsi     # 0x15840f
leaq 0x5179e(%rip), %rcx     # 0x15841d
movl $0x29, %edx
callq 0xb200
jmp 0x106fbf
movq %rax, (%rsp)
movq 0x1c8(%rsp), %rdi
cmpq %r13, %rdi
je 0x106cb7
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106cb7
jmp 0x106cb3
movq %rax, (%rsp)
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x106fa6
movq 0x98(%rsp), %rsi
jmp 0x106f98
jmp 0x106fa2
jmp 0x106fbf
movq %rax, (%rsp)
movq 0x1e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x106d08
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106d08
jmp 0x106d04
movq %rax, (%rsp)
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x106fa6
movq 0xb8(%rsp), %rsi
jmp 0x106f98
jmp 0x106fa2
jmp 0x106fbf
movq %rax, (%rsp)
movq 0x208(%rsp), %rdi
cmpq %r13, %rdi
je 0x106d59
movq 0x218(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106d59
jmp 0x106d55
movq %rax, (%rsp)
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x106fa6
movq 0xd8(%rsp), %rsi
jmp 0x106f98
jmp 0x106fa2
jmp 0x106fbf
movq %rax, (%rsp)
movq 0x228(%rsp), %rdi
cmpq %r13, %rdi
je 0x106daa
movq 0x238(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106daa
jmp 0x106da6
movq %rax, (%rsp)
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x106fa6
movq 0xf8(%rsp), %rsi
jmp 0x106f98
jmp 0x106fa2
jmp 0x106fbf
movq %rax, (%rsp)
movq 0x248(%rsp), %rdi
cmpq %r13, %rdi
je 0x106dfb
movq 0x258(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106dfb
jmp 0x106df7
movq %rax, (%rsp)
movq 0x108(%rsp), %rdi
cmpq %r12, %rdi
je 0x106fa6
movq 0x118(%rsp), %rsi
jmp 0x106f98
jmp 0x106fa2
jmp 0x106fbf
movq %rax, (%rsp)
movq 0x268(%rsp), %rdi
cmpq %r13, %rdi
je 0x106e4c
movq 0x278(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106e4c
jmp 0x106e48
movq %rax, (%rsp)
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x106fa6
movq 0x138(%rsp), %rsi
jmp 0x106f98
jmp 0x106fa2
jmp 0x106fbf
movq %rax, (%rsp)
movq 0x288(%rsp), %rdi
cmpq %r13, %rdi
je 0x106e9d
movq 0x298(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106e9d
jmp 0x106e99
movq %rax, (%rsp)
movq 0x148(%rsp), %rdi
cmpq %r12, %rdi
je 0x106fa6
movq 0x158(%rsp), %rsi
jmp 0x106f98
jmp 0x106fa2
jmp 0x106fbf
movq %rax, (%rsp)
movq 0x2a8(%rsp), %rdi
cmpq %r13, %rdi
je 0x106eee
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106eee
jmp 0x106eea
movq %rax, (%rsp)
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x106fa6
movq 0x178(%rsp), %rsi
jmp 0x106f98
jmp 0x106fa2
jmp 0x106fbf
movq %rax, (%rsp)
movq 0x2c8(%rsp), %rdi
cmpq %r13, %rdi
je 0x106f3f
movq 0x2d8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106f3f
jmp 0x106f3b
movq %rax, (%rsp)
movq 0x188(%rsp), %rdi
cmpq %r12, %rdi
je 0x106fa6
movq 0x198(%rsp), %rsi
jmp 0x106f98
jmp 0x106fa2
jmp 0x106fbf
movq %rax, (%rsp)
movq 0x2e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x106f83
movq 0x2f8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106f83
jmp 0x106f7f
movq %rax, (%rsp)
movq 0x1a8(%rsp), %rdi
cmpq %r12, %rdi
je 0x106fa6
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106fa6
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x106fc3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x106fc3
movq %rax, (%rsp)
leaq 0x640(%rbx), %r14
leaq 0x690(%rbx), %r15
leaq 0x6c0(%rbx), %rdi
callq 0x2c3de
movq 0x28(%rsp), %rdi
callq 0x25bf2
movq (%r15), %rdi
testq %rdi, %rdi
je 0x106ffe
movq 0x6a0(%rbx), %rsi
subq %rdi, %rsi
callq 0xb2f0
movq (%r14), %rdi
testq %rdi, %rdi
je 0x107015
movq 0x650(%rbx), %rsi
subq %rdi, %rsi
callq 0xb2f0
movq 0x638(%rbx), %rdi
testq %rdi, %rdi
je 0x107026
callq 0x2c468
movq 0x38(%rsp), %rax
movq (%rax), %rdi
cmpq 0x30(%rsp), %rdi
je 0x107045
movq 0x30(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0xb2f0
movq 0x40(%rsp), %rdi
callq 0x219b2
movq 0x48(%rsp), %rdi
callq 0x219b2
movq 0x50(%rsp), %rdi
callq 0x219b2
movq 0x58(%rsp), %rdi
callq 0x219b2
movq 0x60(%rsp), %rdi
callq 0x219b2
movq 0x68(%rsp), %rdi
callq 0x219b2
movq 0x70(%rsp), %rdi
callq 0x219b2
movq 0x78(%rsp), %rdi
callq 0x219b2
movq 0x80(%rsp), %rdi
callq 0x219b2
movq %rbx, %rdi
callq 0x219b2
movq (%rsp), %rdi
callq 0xb510
movq %rax, (%rsp)
jmp 0x10704f
movq %rax, (%rsp)
jmp 0x107059
movq %rax, (%rsp)
jmp 0x107063
movq %rax, (%rsp)
jmp 0x10706d
movq %rax, (%rsp)
jmp 0x107077
movq %rax, (%rsp)
jmp 0x107081
movq %rax, (%rsp)
jmp 0x10708b
movq %rax, (%rsp)
jmp 0x107095
movq %rax, (%rsp)
jmp 0x1070a2
nop