// File: /workspace/github_cpp_makefile_star2_O3/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 0x21b38
leaq 0x99f8f(%rip), %rbp     # 0x19d130
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 0x21b38
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 0x21b38
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 0x21b38
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 0x21b38
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 0x21b38
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 0x21b38
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 0x21b38
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 0x21b38
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 0x21b38
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 0x52000(%rip), %xmm0    # 0x155420
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 0x103467
movq 0x9cb37(%rip), %rcx     # 0x19ff90
cmpb $0x0, (%rcx)
je 0x103463
incl 0x8(%rax)
jmp 0x103467
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 0x10353a
movl %r13d, %eax
movq %rdx, %rbp
leaq 0x523a5(%rip), %rdx     # 0x1558bc
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 0x1041b1
leal -0x1(%r14), %eax
testl %eax, %r14d
jne 0x1041d0
leal -0x1(%r15), %eax
testl %eax, %r15d
jne 0x1041ef
cmpl %r14d, %r12d
jl 0x10420e
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 0x1035b8
xorl %edx, %edx
sarl %r14d
incl %edx
cmpl $0x1, %r14d
ja 0x1035ad
movl %edx, 0x680(%rbx)
cmpl $0x2, %eax
jb 0x1035ce
xorl %ecx, %ecx
sarl %eax
incl %ecx
cmpl $0x1, %eax
ja 0x1035c5
addl %edx, %ecx
movl %ecx, 0x684(%rbx)
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x51f1b(%rip), %rsi     # 0x155501
leaq 0x51f24(%rip), %rdx     # 0x155511
leaq 0x8(%rsp), %rdi
callq 0x175a0
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 0x103644
movq %rdx, 0x1a8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1b8(%rsp)
jmp 0x10364c
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 0x23884
movq %rax, %r14
leaq 0x2f8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51e89(%rip), %rsi     # 0x155512
leaq 0x51e97(%rip), %rdx     # 0x155527
leaq 0x2e8(%rsp), %rdi
callq 0x175a0
leaq 0x28(%r14), %rdi
leaq 0x2e8(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x2e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1036d3
movq 0x2f8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x1a8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1036f0
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x103707
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51e12(%rip), %rsi     # 0x155528
leaq 0x51e1c(%rip), %rdx     # 0x155539
callq 0x175a0
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 0x10376f
movq %rdx, 0x188(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x198(%rsp)
jmp 0x103777
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 0x23884
movq %rax, %r14
leaq 0x2d8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51d81(%rip), %rsi     # 0x15553a
leaq 0x51d90(%rip), %rdx     # 0x155550
leaq 0x2c8(%rsp), %rdi
callq 0x175a0
leaq 0x28(%r14), %rdi
leaq 0x2c8(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x2c8(%rsp), %rdi
cmpq %r13, %rdi
je 0x103803
movq 0x2d8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x188(%rsp), %rdi
cmpq %r12, %rdi
je 0x103820
movq 0x198(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x103837
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51d0b(%rip), %rsi     # 0x155551
leaq 0x51d15(%rip), %rdx     # 0x155562
callq 0x175a0
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 0x10389f
movq %rdx, 0x168(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x178(%rsp)
jmp 0x1038a7
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 0x23884
movq %rax, %r14
leaq 0x2b8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51c7d(%rip), %rsi     # 0x155563
leaq 0x51c8c(%rip), %rdx     # 0x155579
leaq 0x2a8(%rsp), %rdi
callq 0x175a0
leaq 0x28(%r14), %rdi
leaq 0x2a8(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x2a8(%rsp), %rdi
cmpq %r13, %rdi
je 0x103930
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x10394d
movq 0x178(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x103964
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51c07(%rip), %rsi     # 0x15557a
leaq 0x51c0f(%rip), %rdx     # 0x155589
callq 0x175a0
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 0x1039cc
movq %rdx, 0x148(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x158(%rsp)
jmp 0x1039d4
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 0x23884
movq %rax, %r14
leaq 0x298(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51b77(%rip), %rsi     # 0x15558a
leaq 0x51b9e(%rip), %rdx     # 0x1555b8
leaq 0x288(%rsp), %rdi
callq 0x175a0
leaq 0x28(%r14), %rdi
leaq 0x288(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x288(%rsp), %rdi
cmpq %r13, %rdi
je 0x103a5d
movq 0x298(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x148(%rsp), %rdi
cmpq %r12, %rdi
je 0x103a7a
movq 0x158(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x103a91
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51b19(%rip), %rsi     # 0x1555b9
leaq 0x51b24(%rip), %rdx     # 0x1555cb
callq 0x175a0
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 0x103af9
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
jmp 0x103b01
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 0x23884
movq %rax, %r14
leaq 0x278(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51a8c(%rip), %rsi     # 0x1555cc
leaq 0x51a9c(%rip), %rdx     # 0x1555e3
leaq 0x268(%rsp), %rdi
callq 0x175a0
leaq 0x28(%r14), %rdi
leaq 0x268(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x268(%rsp), %rdi
cmpq %r13, %rdi
je 0x103b8a
movq 0x278(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x103ba7
movq 0x138(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x103bbe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51a17(%rip), %rsi     # 0x1555e4
leaq 0x51a23(%rip), %rdx     # 0x1555f7
callq 0x175a0
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 0x103c26
movq %rdx, 0x108(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x118(%rsp)
jmp 0x103c2e
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 0x23884
movq %rax, %r14
leaq 0x258(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x5198b(%rip), %rsi     # 0x1555f8
leaq 0x5199c(%rip), %rdx     # 0x155610
leaq 0x248(%rsp), %rdi
callq 0x175a0
leaq 0x28(%r14), %rdi
leaq 0x248(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x248(%rsp), %rdi
cmpq %r13, %rdi
je 0x103cb7
movq 0x258(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x108(%rsp), %rdi
cmpq %r12, %rdi
je 0x103cd4
movq 0x118(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x103ceb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51917(%rip), %rsi     # 0x155611
leaq 0x51923(%rip), %rdx     # 0x155624
callq 0x175a0
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 0x103d53
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0x103d5b
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 0x23884
movq %rax, %r14
leaq 0x238(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x5188b(%rip), %rsi     # 0x155625
leaq 0x5189c(%rip), %rdx     # 0x15563d
leaq 0x228(%rsp), %rdi
callq 0x175a0
leaq 0x28(%r14), %rdi
leaq 0x228(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x228(%rsp), %rdi
cmpq %r13, %rdi
je 0x103de4
movq 0x238(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x103e01
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x103e18
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51817(%rip), %rsi     # 0x15563e
leaq 0x5181f(%rip), %rdx     # 0x15564d
callq 0x175a0
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 0x103e80
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x103e88
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 0x23884
movq %rax, %r14
leaq 0x218(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51787(%rip), %rsi     # 0x15564e
leaq 0x51794(%rip), %rdx     # 0x155662
leaq 0x208(%rsp), %rdi
callq 0x175a0
leaq 0x28(%r14), %rdi
leaq 0x208(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x208(%rsp), %rdi
cmpq %r13, %rdi
je 0x103f11
movq 0x218(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x103f2e
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x103f45
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x5170f(%rip), %rsi     # 0x155663
leaq 0x5171f(%rip), %rdx     # 0x15567a
callq 0x175a0
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 0x103fad
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x103fb5
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 0x23884
movq %rax, %r14
leaq 0x1f8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51687(%rip), %rsi     # 0x15567b
leaq 0x5169e(%rip), %rdx     # 0x155699
leaq 0x1e8(%rsp), %rdi
callq 0x175a0
leaq 0x28(%r14), %rdi
leaq 0x1e8(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x1e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x10403e
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x10405b
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x104072
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x51619(%rip), %rsi     # 0x15569a
leaq 0x51628(%rip), %rdx     # 0x1556b0
callq 0x175a0
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 0x1040da
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x1040e2
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 0x23884
movq %rax, %r14
leaq 0x1d8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x51590(%rip), %rsi     # 0x1556b1
leaq 0x515a0(%rip), %rdx     # 0x1556c8
leaq 0x1c8(%rsp), %rdi
callq 0x175a0
leaq 0x28(%r14), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0xb1c0
movl $0x0, 0x48(%r14)
movq 0x1c8(%rsp), %rdi
cmpq %r13, %rdi
je 0x10416b
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x104188
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb2f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x10419f
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 0x5127e(%rip), %rdi     # 0x155436
leaq 0x51290(%rip), %rsi     # 0x15544f
leaq 0x51297(%rip), %rcx     # 0x15545d
movl $0x26, %edx
callq 0xb200
leaq 0x512d7(%rip), %rdi     # 0x1554ae
leaq 0x51271(%rip), %rsi     # 0x15544f
leaq 0x51278(%rip), %rcx     # 0x15545d
movl $0x27, %edx
callq 0xb200
leaq 0x512dd(%rip), %rdi     # 0x1554d3
leaq 0x51252(%rip), %rsi     # 0x15544f
leaq 0x51259(%rip), %rcx     # 0x15545d
movl $0x28, %edx
callq 0xb200
leaq 0x512d9(%rip), %rdi     # 0x1554ee
leaq 0x51233(%rip), %rsi     # 0x15544f
leaq 0x5123a(%rip), %rcx     # 0x15545d
movl $0x29, %edx
callq 0xb200
jmp 0x104563
movq %rax, (%rsp)
movq 0x1c8(%rsp), %rdi
cmpq %r13, %rdi
je 0x10425b
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x10425b
jmp 0x104257
movq %rax, (%rsp)
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x10454a
movq 0x98(%rsp), %rsi
jmp 0x10453c
jmp 0x104546
jmp 0x104563
movq %rax, (%rsp)
movq 0x1e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1042ac
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x1042ac
jmp 0x1042a8
movq %rax, (%rsp)
movq 0xa8(%rsp), %rdi
cmpq %r12, %rdi
je 0x10454a
movq 0xb8(%rsp), %rsi
jmp 0x10453c
jmp 0x104546
jmp 0x104563
movq %rax, (%rsp)
movq 0x208(%rsp), %rdi
cmpq %r13, %rdi
je 0x1042fd
movq 0x218(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x1042fd
jmp 0x1042f9
movq %rax, (%rsp)
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x10454a
movq 0xd8(%rsp), %rsi
jmp 0x10453c
jmp 0x104546
jmp 0x104563
movq %rax, (%rsp)
movq 0x228(%rsp), %rdi
cmpq %r13, %rdi
je 0x10434e
movq 0x238(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x10434e
jmp 0x10434a
movq %rax, (%rsp)
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x10454a
movq 0xf8(%rsp), %rsi
jmp 0x10453c
jmp 0x104546
jmp 0x104563
movq %rax, (%rsp)
movq 0x248(%rsp), %rdi
cmpq %r13, %rdi
je 0x10439f
movq 0x258(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x10439f
jmp 0x10439b
movq %rax, (%rsp)
movq 0x108(%rsp), %rdi
cmpq %r12, %rdi
je 0x10454a
movq 0x118(%rsp), %rsi
jmp 0x10453c
jmp 0x104546
jmp 0x104563
movq %rax, (%rsp)
movq 0x268(%rsp), %rdi
cmpq %r13, %rdi
je 0x1043f0
movq 0x278(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x1043f0
jmp 0x1043ec
movq %rax, (%rsp)
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x10454a
movq 0x138(%rsp), %rsi
jmp 0x10453c
jmp 0x104546
jmp 0x104563
movq %rax, (%rsp)
movq 0x288(%rsp), %rdi
cmpq %r13, %rdi
je 0x104441
movq 0x298(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x104441
jmp 0x10443d
movq %rax, (%rsp)
movq 0x148(%rsp), %rdi
cmpq %r12, %rdi
je 0x10454a
movq 0x158(%rsp), %rsi
jmp 0x10453c
jmp 0x104546
jmp 0x104563
movq %rax, (%rsp)
movq 0x2a8(%rsp), %rdi
cmpq %r13, %rdi
je 0x104492
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x104492
jmp 0x10448e
movq %rax, (%rsp)
movq 0x168(%rsp), %rdi
cmpq %r12, %rdi
je 0x10454a
movq 0x178(%rsp), %rsi
jmp 0x10453c
jmp 0x104546
jmp 0x104563
movq %rax, (%rsp)
movq 0x2c8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1044e3
movq 0x2d8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x1044e3
jmp 0x1044df
movq %rax, (%rsp)
movq 0x188(%rsp), %rdi
cmpq %r12, %rdi
je 0x10454a
movq 0x198(%rsp), %rsi
jmp 0x10453c
jmp 0x104546
jmp 0x104563
movq %rax, (%rsp)
movq 0x2e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x104527
movq 0x2f8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x104527
jmp 0x104523
movq %rax, (%rsp)
movq 0x1a8(%rsp), %rdi
cmpq %r12, %rdi
je 0x10454a
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x10454a
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x104567
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb2f0
jmp 0x104567
movq %rax, (%rsp)
leaq 0x640(%rbx), %r14
leaq 0x690(%rbx), %r15
leaq 0x6c0(%rbx), %rdi
callq 0x2c5de
movq 0x28(%rsp), %rdi
callq 0x25cb4
movq (%r15), %rdi
testq %rdi, %rdi
je 0x1045a2
movq 0x6a0(%rbx), %rsi
subq %rdi, %rsi
callq 0xb2f0
movq (%r14), %rdi
testq %rdi, %rdi
je 0x1045b9
movq 0x650(%rbx), %rsi
subq %rdi, %rsi
callq 0xb2f0
movq 0x638(%rbx), %rdi
testq %rdi, %rdi
je 0x1045ca
callq 0x2c668
movq 0x38(%rsp), %rax
movq (%rax), %rdi
cmpq 0x30(%rsp), %rdi
je 0x1045e9
movq 0x30(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0xb2f0
movq 0x40(%rsp), %rdi
callq 0x2191a
movq 0x48(%rsp), %rdi
callq 0x2191a
movq 0x50(%rsp), %rdi
callq 0x2191a
movq 0x58(%rsp), %rdi
callq 0x2191a
movq 0x60(%rsp), %rdi
callq 0x2191a
movq 0x68(%rsp), %rdi
callq 0x2191a
movq 0x70(%rsp), %rdi
callq 0x2191a
movq 0x78(%rsp), %rdi
callq 0x2191a
movq 0x80(%rsp), %rdi
callq 0x2191a
movq %rbx, %rdi
callq 0x2191a
movq (%rsp), %rdi
callq 0xb510
movq %rax, (%rsp)
jmp 0x1045f3
movq %rax, (%rsp)
jmp 0x1045fd
movq %rax, (%rsp)
jmp 0x104607
movq %rax, (%rsp)
jmp 0x104611
movq %rax, (%rsp)
jmp 0x10461b
movq %rax, (%rsp)
jmp 0x104625
movq %rax, (%rsp)
jmp 0x10462f
movq %rax, (%rsp)
jmp 0x104639
movq %rax, (%rsp)
jmp 0x104646
nop