// File: /workspace/github_cpp_makefile_star2_O3/gvaumour[P]cache-simulator/src/HybridCache.cc
// Function: HybridCache::printResults(std::ostream&)
void 
HybridCache::printResults(std::ostream& out) 
{
	uint64_t total_missSRAM =  stats_missSRAM[0] + stats_missSRAM[1];
	uint64_t total_missNVM =  stats_missNVM[0] + stats_missNVM[1];
	uint64_t total_miss = total_missNVM + total_missSRAM;
	
	uint64_t total_accessSRAM =  stats_hitsSRAM[0] + stats_hitsSRAM[1];
	uint64_t total_accessNVM =  stats_hitsNVM[0] + stats_hitsNVM[1];
	uint64_t total_access = total_accessSRAM + total_accessNVM;
	
	string entete = "Cache";
	if(m_ID != -1){
		entete+="L1";
		if(m_isInstructionCache)
		 	entete += "I";
		else
			entete += "D";
	}
	else
		entete+= "LLC";

	if(total_access != 0 || stats_bypass > 0){
	
		out << entete << ":Results" << endl;
		out << entete << ":TotalAccess\t"<< total_access << endl;
		out << entete << ":TotalHits\t" << total_access - total_miss << endl;
		out << entete << ":TotalMiss\t" << total_miss << endl;		
		out << entete << ":MissRate\t" << (double)(total_miss)*100 / (double)(total_access) << "%"<< endl;
//		out << entete << ":CleanWriteBack\t" << stats_cleanWBNVM + stats_cleanWBSRAM << endl;
//		out << entete << ":DirtyWriteBack\t" << stats_dirtyWBNVM + stats_dirtyWBSRAM << endl;
		out << entete << ":AllocateDemand\t" << stats_allocateDemand << endl;
		out << entete << ":AllocateWB\t" << stats_allocateWB << endl;
		
		out << entete << ":Eviction\t" << stats_evict << endl;	
		out << entete << ":Bypass\t" << stats_bypass << endl;
		out << entete << ":DemandBypass\t" << stats_demand_BP << endl;
		out << entete << ":WBBypass\t" << stats_WB_BP << endl;
		
		out << entete << ":NVMways:reads\t"<< stats_hitsNVM[0] + stats_migration[true]<< endl;
		out << entete << ":NVMways:writes\t"<< stats_hitsNVM[1] + stats_dirtyWBNVM + stats_migration[false] << endl;		
		out << entete << ":SRAMways:reads\t"<< stats_hitsSRAM[0] + stats_migration[false] << endl;
		out << entete << ":SRAMways:writes\t"<< stats_hitsSRAM[1] + stats_dirtyWBSRAM + stats_migration[true]<< endl;	
		
		//cout << "************************" << endl;
		
		if(m_printStats)
		{
			out << entete << ":MigrationFromNVM\t" << stats_migration[true] << endl;
			out << entete << ":MigrationFromSRAM\t" << stats_migration[false] << endl;
			out << entete << ":BlockClassification" << endl;
			out << entete << ":FetchedBlocks\t" << stats_nbFetchedLines << endl;
			out << entete << ":DeadBlocks\t" << stats_nbLostLine << "\t" << \
				(double)stats_nbLostLine*100/(double)stats_nbFetchedLines << "%" << endl;
			out << entete << ":ROBlocks\t" << stats_nbROlines << "\t" << \
				(double)stats_nbROlines*100/(double)stats_nbFetchedLines << "%" << endl;
			out << entete << ":WOBlocks\t" << stats_nbWOlines << "\t" << \
				(double)stats_nbWOlines*100/(double)stats_nbFetchedLines << "%" << endl;
			out << entete << ":RWBlocks\t" << stats_nbRWlines << "\t" << \
				(double)stats_nbRWlines*100/(double)stats_nbFetchedLines << "%" << endl;
			/*
			out << "Histogram NB Write" << endl;
			for(auto p : stats_histo_ratioRW){
				out << p.first << "\t" << p.second << endl;
			}*/
		}

		out << entete << ":instructionsDistribution" << endl;

		for(unsigned i = 0 ; i < stats_operations.size() ; i++){
			if(stats_operations[i] != 0)
				out << entete << ":" << memCmd_str[i]  << "\t" << stats_operations[i] << endl;
		}
		m_predictor->printStats(out, entete);
	
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbp
movq %rdi, %rbx
movq 0xc0(%rdi), %rax
movq 0xd8(%rdi), %rcx
movq 0x8(%rax), %r12
movq 0x110(%rdi), %rdx
addq (%rax), %r12
addq (%rdx), %r12
addq 0x8(%rdx), %r12
movq 0x8(%rcx), %r15
movq 0x128(%rdi), %rax
addq (%rcx), %r15
addq (%rax), %r15
addq 0x8(%rax), %r15
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x19d18(%rip), %rsi     # 0x358a2
leaq 0x19d16(%rip), %rdx     # 0x358a7
leaq 0x8(%rsp), %rdi
callq 0xcc6c
movq %rbx, (%rsp)
cmpl $-0x1, (%rbx)
je 0x1bbd1
leaq 0x1b51c(%rip), %rsi     # 0x370c7
leaq 0x8(%rsp), %rdi
callq 0x55f0
leaq 0x1a084(%rip), %rax     # 0x35c40
leaq 0x18ed5(%rip), %rsi     # 0x34a98
movq (%rsp), %rcx
cmpb $0x0, 0x4(%rcx)
cmovneq %rax, %rsi
jmp 0x1bbd8
leaq 0x1b540(%rip), %rsi     # 0x37118
leaq 0x8(%rsp), %rdi
callq 0x55f0
movq (%rsp), %rax
movq 0x108(%rax), %rax
orq %r15, %rax
je 0x1c973
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r13
leaq 0x1a06f(%rip), %rsi     # 0x35c81
movl $0x8, %edx
movq %rax, %rdi
callq 0x5360
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r13
leaq 0x1a027(%rip), %rsi     # 0x35c8a
movl $0xd, %edx
movq %rax, %rdi
callq 0x5360
movq %r13, %rdi
movq %r15, %rsi
callq 0x51f0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r13
leaq 0x19fd7(%rip), %rsi     # 0x35c98
movl $0xb, %edx
movq %rax, %rdi
callq 0x5360
movq %r15, %rsi
subq %r12, %rsi
movq %r13, %rdi
callq 0x51f0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r13
leaq 0x19f82(%rip), %rsi     # 0x35ca4
movl $0xb, %edx
movq %rax, %rdi
callq 0x5360
movq %r13, %rdi
movq %r12, %rsi
callq 0x51f0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r13
leaq 0x19f30(%rip), %rsi     # 0x35cb0
movl $0xa, %edx
movq %rax, %rdi
callq 0x5360
movq %r12, %xmm1
movq 0x199b6(%rip), %xmm2    # 0x35750
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x199ba(%rip), %xmm3    # 0x35760
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x18bd2(%rip), %xmm0    # 0x34990
movq %r15, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq %r13, %rdi
callq 0x5500
movq %rax, %r15
leaq 0x1901b(%rip), %rsi     # 0x34e08
movl $0x1, %edx
movq %rax, %rdi
callq 0x5360
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19e7e(%rip), %rsi     # 0x35cbb
movl $0x10, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x158(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19e29(%rip), %rsi     # 0x35ccc
movl $0xc, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x150(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19dd0(%rip), %rsi     # 0x35cd9
movl $0xa, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x100(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19d75(%rip), %rsi     # 0x35ce4
movl $0x8, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x108(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19d18(%rip), %rsi     # 0x35ced
movl $0xe, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x160(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19cc1(%rip), %rsi     # 0x35cfc
movl $0xa, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x168(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19c66(%rip), %rsi     # 0x35d07
movl $0xf, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rcx
movq 0x128(%rcx), %rax
movq 0x170(%rcx), %rcx
movq 0x8(%rcx), %rsi
addq (%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19c02(%rip), %rsi     # 0x35d17
movl $0x10, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rcx
movq 0x128(%rcx), %rax
movq 0x140(%rcx), %rsi
addq 0x8(%rax), %rsi
movq 0x170(%rcx), %rax
addq (%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19b98(%rip), %rsi     # 0x35d28
movl $0x10, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rcx
movq 0xd8(%rcx), %rax
movq 0x170(%rcx), %rcx
movq (%rcx), %rsi
addq (%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19b36(%rip), %rsi     # 0x35d39
movl $0x11, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rcx
movq 0xd8(%rcx), %rax
movq 0xf0(%rcx), %rsi
addq 0x8(%rax), %rsi
movq 0x170(%rcx), %rax
addq 0x8(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq (%rsp), %rax
cmpb $0x1, 0x90(%rax)
jne 0x1c7b9
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x18b65(%rip), %rsi     # 0x34df5
movl $0x12, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x170(%rax), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x18b1f(%rip), %rsi     # 0x34e19
movl $0x13, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x170(%rax), %rax
movq (%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x199e8(%rip), %rsi     # 0x35d4b
movl $0x14, %edx
movq %rax, %rdi
callq 0x5360
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x199ad(%rip), %rsi     # 0x35d60
movl $0xf, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x1a0(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19957(%rip), %rsi     # 0x35d70
movl $0xc, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x1a8(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
leaq 0x19830(%rip), %rsi     # 0x35c73
movl $0x1, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movsd 0x1a8(%rax), %xmm1
movsd 0x192ec(%rip), %xmm2    # 0x35750
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x192f1(%rip), %xmm3    # 0x35760
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x18509(%rip), %xmm0    # 0x34990
movsd 0x1a0(%rax), %xmm1
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq %r15, %rdi
callq 0x5500
movq %rax, %r15
leaq 0x18950(%rip), %rsi     # 0x34e08
movl $0x1, %edx
movq %rax, %rdi
callq 0x5360
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19875(%rip), %rsi     # 0x35d7d
movl $0xa, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x1b0(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
leaq 0x19741(%rip), %rsi     # 0x35c73
movl $0x1, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movsd 0x1b0(%rax), %xmm1
movsd 0x191fd(%rip), %xmm2    # 0x35750
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x19202(%rip), %xmm3    # 0x35760
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1841a(%rip), %xmm0    # 0x34990
movsd 0x1a0(%rax), %xmm1
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq %r15, %rdi
callq 0x5500
movq %rax, %r15
leaq 0x18861(%rip), %rsi     # 0x34e08
movl $0x1, %edx
movq %rax, %rdi
callq 0x5360
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x19791(%rip), %rsi     # 0x35d88
movl $0xa, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x1d0(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
leaq 0x19652(%rip), %rsi     # 0x35c73
movl $0x1, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movsd 0x1d0(%rax), %xmm1
movsd 0x1910e(%rip), %xmm2    # 0x35750
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x19113(%rip), %xmm3    # 0x35760
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1832b(%rip), %xmm0    # 0x34990
movsd 0x1a0(%rax), %xmm1
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq %r15, %rdi
callq 0x5500
movq %rax, %r15
leaq 0x18772(%rip), %rsi     # 0x34e08
movl $0x1, %edx
movq %rax, %rdi
callq 0x5360
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x196ad(%rip), %rsi     # 0x35d93
movl $0xa, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movq 0x1c0(%rax), %rsi
movq %r15, %rdi
callq 0x51f0
movq %rax, %r15
leaq 0x19563(%rip), %rsi     # 0x35c73
movl $0x1, %edx
movq %rax, %rdi
callq 0x5360
movq (%rsp), %rax
movsd 0x1c0(%rax), %xmm1
movsd 0x1901f(%rip), %xmm2    # 0x35750
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x19024(%rip), %xmm3    # 0x35760
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1823c(%rip), %xmm0    # 0x34990
movsd 0x1a0(%rax), %xmm1
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq %r15, %rdi
callq 0x5500
movq %rax, %r15
leaq 0x18683(%rip), %rsi     # 0x34e08
movl $0x1, %edx
movq %rax, %rdi
callq 0x5360
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x195c9(%rip), %rsi     # 0x35d9e
movl $0x19, %edx
movq %rax, %rdi
callq 0x5360
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq (%rsp), %rcx
movq 0x188(%rcx), %rax
movq 0x190(%rcx), %rcx
cmpq %rax, %rcx
je 0x1c92b
movl $0x1, %ebx
xorl %r15d, %r15d
leaq 0x19440(%rip), %r12     # 0x35c73
cmpq $0x0, (%rax,%r15,8)
je 0x1c913
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %r14
movq %rbp, %rdi
callq 0x5360
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1825a(%rip), %rsi     # 0x34abf
callq 0x5360
leaq 0x28abf(%rip), %rax     # 0x45330
movq (%rax,%r15,8), %rbp
testq %rbp, %rbp
je 0x1c892
movq %rbp, %rdi
callq 0x5160
movq %r13, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x5360
jmp 0x1c8ad
movq (%r13), %rax
movq -0x18(%rax), %rax
movq %r13, %rdi
addq %rax, %rdi
movl 0x20(%r13,%rax), %esi
orl $0x1, %esi
callq 0x5560
movl $0x1, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x5360
movq (%rsp), %rax
movq 0x188(%rax), %rax
movq (%rax,%r15,8), %rsi
movq %r13, %rdi
callq 0x51f0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq (%rsp), %rcx
movq 0x188(%rcx), %rax
movq 0x190(%rcx), %rcx
movq %r14, %rbp
movl %ebx, %r15d
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
incl %ebx
cmpq %r15, %rdx
ja 0x1c833
movq (%rsp), %rax
movq 0x68(%rax), %r14
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0xcbd6
movq (%r14), %rax
leaq 0x28(%rsp), %rdx
movq %r14, %rdi
movq %rbp, %rsi
callq *0x40(%rax)
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1c973
callq 0x52b0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1c987
callq 0x52b0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1c9af
callq 0x52b0
jmp 0x1c9af
jmp 0x1c9ac
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1c9c3
callq 0x52b0
movq %rbx, %rdi
callq 0x55a0
nop