// File: gvaumour[P]cache-simulator/src/PHC.cc
// Function: PHCPredictor::PHCPredictor(int, int, int, int, std::vector<std::vector<CacheEntry*, std::allocator<CacheEntry*>>, std::allocator<std::vector<CacheEntry*, std::allocator<CacheEntry*>>>>&, std::vector<std::vector<CacheEntry*, std::allocator<CacheEntry*>>, std::allocator<std::vector<CacheEntry*, std::allocator<CacheEntry*>>>>&, HybridCache*)
PHCPredictor::PHCPredictor(int id, int nbAssoc , int nbSet, int nbNVMways, DataArray& SRAMtable, DataArray& NVMtable, HybridCache* cache) :\
	Predictor(id, nbAssoc , nbSet , nbNVMways , SRAMtable , NVMtable , cache)
{	
	m_tableSize = simu_parameters.perceptron_table_size;

	m_features.clear();

	m_criterias_names = simu_parameters.PHC_features;

	m_need_callee_file = false;
	
	m_enableAllocation = true;
	if(simu_parameters.nvm_assoc == 0 || simu_parameters.sram_assoc == 0)
		m_enableAllocation = false;
	
	initFeatures();
	
	cout <<  "\tFeatures used : ";
	for(auto p : simu_parameters.PHC_features)
		cout << p << ",";
	cout << endl;


	
	if(m_need_callee_file)
	{
		m_callee_map = map<uint64_t,int>();
		load_callee_file();
	}
		
	m_costAccess = vector< vector<int> >(NUM_RW_TYPE , vector<int>(NUM_RD_TYPE, 0));
	m_costAccess[true][RD_MEDIUM] = simu_parameters.PHC_cost_mediumWrite;
	m_costAccess[false][RD_MEDIUM] = simu_parameters.PHC_cost_mediumRead;
	m_costAccess[true][RD_SHORT] = simu_parameters.PHC_cost_shortWrite;
	m_costAccess[false][RD_SHORT] = simu_parameters.PHC_cost_shortRead;
	
//	m_costAccess[true][RD_NOT_ACCURATE] = -30;
//	m_costAccess[false][RD_NOT_ACCURATE] = -30;
		
	
	miss_counter = 0;
	m_cpt = 0;

	m_global_PChistory = deque<uint64_t>();
	m_callee_PChistory = deque<uint64_t>();

	stats_nbBPrequests = vector<uint64_t>(1, 0);
	stats_nbDeadLine = vector<uint64_t>(1, 0);
	stats_missCounter = vector<int>();
	stats_histo_value = vector<vector<vector<int> > >( m_features.size() , vector<vector<int> >(m_tableSize, vector<int>()));
	stats_access_class = vector<vector<int> >(NUM_RD_TYPE ,  vector<int>(2, 0));	

	stats_local_error = vector< vector<int> >(simu_parameters.PHC_features.size() , vector<int>(m_tableSize, 0));
	stats_global_error = vector< vector<int> >(m_tableSize , vector<int>(m_tableSize , 0 ));
	
	if(simu_parameters.perceptron_compute_variance)
	{
		stats_variances_buffer = vector<double>();
		stats_variances = vector<double>();
	}	

	stats_allocate = 0;
	stats_nbMiss = 0;
	stats_nbHits = 0;

	stats_update_learning = 0, stats_update = 0;
	stats_allocate = 0, stats_allocate_learning = 0;
	stats_prediction_preemptive = 0 , stats_prediction_confident = 0;
	stats_cptLearningSRAMerror = 0, stats_cptSRAMerror = 0;

}

// Assembly:
subq $0x4e8, %rsp            # imm = 0x4E8
movq 0x4f8(%rsp), %rax
movq 0x4f0(%rsp), %rax
movq %rdi, 0x4e0(%rsp)
movl %esi, 0x4dc(%rsp)
movl %edx, 0x4d8(%rsp)
movl %ecx, 0x4d4(%rsp)
movl %r8d, 0x4d0(%rsp)
movq %r9, 0x4c8(%rsp)
movq 0x4e0(%rsp), %rdi
movq %rdi, 0x1b0(%rsp)
movl 0x4dc(%rsp), %esi
movl 0x4d8(%rsp), %edx
movl 0x4d4(%rsp), %ecx
movl 0x4d0(%rsp), %r8d
movq 0x4c8(%rsp), %r9
movq 0x4f0(%rsp), %r10
movq 0x4f8(%rsp), %r11
movq %rsp, %rax
movq %r11, 0x8(%rax)
movq %r10, (%rax)
callq 0x537e0
movq 0x1b0(%rsp), %rdi
leaq 0x49b39(%rip), %rax     # 0x92870
movq %rax, (%rdi)
addq $0x270, %rdi            # imm = 0x270
movq %rdi, 0x1b8(%rsp)
callq 0xe830
movq 0x1b0(%rsp), %rdi
addq $0x288, %rdi            # imm = 0x288
movq %rdi, 0x150(%rsp)
callq 0x4d5f0
movq 0x1b0(%rsp), %rdi
addq $0x2a0, %rdi            # imm = 0x2A0
movq %rdi, 0x1c8(%rsp)
callq 0xe850
movq 0x1b0(%rsp), %rdi
addq $0x2b8, %rdi            # imm = 0x2B8
movq %rdi, 0x158(%rsp)
callq 0xe860
movq 0x1b0(%rsp), %rdi
addq $0x2e8, %rdi            # imm = 0x2E8
movq %rdi, 0x160(%rsp)
callq 0xe870
movq 0x1b0(%rsp), %rdi
addq $0x320, %rdi            # imm = 0x320
movq %rdi, 0x168(%rsp)
callq 0xe8c0
movq 0x1b0(%rsp), %rdi
addq $0x338, %rdi            # imm = 0x338
movq %rdi, 0x170(%rsp)
callq 0xe8c0
movq 0x1b0(%rsp), %rdi
addq $0x350, %rdi            # imm = 0x350
movq %rdi, 0x178(%rsp)
callq 0xe8d0
movq 0x1b0(%rsp), %rdi
addq $0x378, %rdi            # imm = 0x378
movq %rdi, 0x180(%rsp)
callq 0xe8e0
movq 0x1b0(%rsp), %rdi
addq $0x390, %rdi            # imm = 0x390
movq %rdi, 0x188(%rsp)
callq 0xe8e0
movq 0x1b0(%rsp), %rdi
addq $0x3e8, %rdi            # imm = 0x3E8
movq %rdi, 0x190(%rsp)
callq 0xe8f0
movq 0x1b0(%rsp), %rdi
addq $0x400, %rdi            # imm = 0x400
movq %rdi, 0x198(%rsp)
callq 0xe860
movq 0x1b0(%rsp), %rdi
addq $0x418, %rdi            # imm = 0x418
movq %rdi, 0x1a0(%rsp)
callq 0xe860
movq 0x1b0(%rsp), %rdi
addq $0x430, %rdi            # imm = 0x430
movq %rdi, 0x1a8(%rsp)
callq 0xe860
movq 0x1b0(%rsp), %rax
movq 0x1b8(%rsp), %rdi
leaq 0x4b11f(%rip), %rcx     # 0x93ff0
movq %rcx, 0x1c0(%rsp)
movl 0x1c8(%rcx), %ecx
movl %ecx, 0x2d0(%rax)
callq 0xe910
movq 0x1c0(%rsp), %rsi
movq 0x1c8(%rsp), %rdi
addq $0x1d0, %rsi            # imm = 0x1D0
callq 0xe930
jmp 0x48f08
movq 0x1b0(%rsp), %rax
movb $0x0, 0x2e0(%rax)
movb $0x1, 0x318(%rax)
leaq 0x4b0cb(%rip), %rax     # 0x93ff0
cmpl $0x0, 0x40(%rax)
je 0x48f38
leaq 0x4b0be(%rip), %rax     # 0x93ff0
cmpl $0x0, 0x38(%rax)
jne 0x48f62
movq 0x1b0(%rsp), %rax
movb $0x0, 0x318(%rax)
jmp 0x48f62
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
jmp 0x49c64
movq 0x1b0(%rsp), %rdi
callq 0x49d40
jmp 0x48f71
movq 0x4a058(%rip), %rdi     # 0x92fd0
leaq 0x280b1(%rip), %rsi     # 0x71030
callq 0x5380
jmp 0x48f86
leaq 0x4b063(%rip), %rax     # 0x93ff0
addq $0x1d0, %rax            # imm = 0x1D0
movq %rax, 0x4b0(%rsp)
leaq 0x4b04e(%rip), %rdi     # 0x93ff0
addq $0x1d0, %rdi            # imm = 0x1D0
callq 0xebf0
movq %rax, 0x4a8(%rsp)
leaq 0x4b033(%rip), %rdi     # 0x93ff0
addq $0x1d0, %rdi            # imm = 0x1D0
callq 0xec20
movq %rax, 0x4a0(%rsp)
leaq 0x4a8(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
callq 0xec50
testb $0x1, %al
jne 0x48fef
jmp 0x49087
leaq 0x4a8(%rsp), %rdi
callq 0xec90
movq %rax, %rsi
leaq 0x480(%rsp), %rdi
callq 0x51b0
jmp 0x4900e
movq 0x49fbb(%rip), %rdi     # 0x92fd0
leaq 0x480(%rsp), %rsi
callq 0x5330
movq %rax, 0x148(%rsp)
jmp 0x4902c
movq 0x148(%rsp), %rdi
leaq 0x28007(%rip), %rsi     # 0x71042
callq 0x5380
jmp 0x49042
leaq 0x480(%rsp), %rdi
callq 0x5768
leaq 0x4a8(%rsp), %rdi
callq 0xeca0
jmp 0x48fd1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
leaq 0x480(%rsp), %rdi
callq 0x5768
jmp 0x49c64
movq 0x49f42(%rip), %rdi     # 0x92fd0
movq 0x49f23(%rip), %rsi     # 0x92fb8
callq 0x53d0
jmp 0x4909c
movq 0x1b0(%rsp), %rax
testb $0x1, 0x2e0(%rax)
je 0x49117
xorps %xmm0, %xmm0
movaps %xmm0, 0x470(%rsp)
movaps %xmm0, 0x460(%rsp)
movaps %xmm0, 0x450(%rsp)
leaq 0x450(%rsp), %rdi
movq %rdi, 0x140(%rsp)
callq 0xe870
movq 0x140(%rsp), %rsi
movq 0x1b0(%rsp), %rdi
addq $0x2e8, %rdi            # imm = 0x2E8
callq 0xecf0
movq 0x140(%rsp), %rdi
callq 0xed20
movq 0x1b0(%rsp), %rdi
callq 0x4a3f0
jmp 0x49115
jmp 0x49117
movl $0x0, 0x41c(%rsp)
leaq 0x41b(%rsp), %rdi
movq %rdi, 0x138(%rsp)
callq 0xed30
movq 0x138(%rsp), %rcx
leaq 0x420(%rsp), %rdi
movl $0x3, %esi
leaq 0x41c(%rsp), %rdx
callq 0xed40
jmp 0x4915b
leaq 0x41a(%rsp), %rdi
movq %rdi, 0x130(%rsp)
callq 0xedc0
movq 0x130(%rsp), %rcx
leaq 0x438(%rsp), %rdi
movl $0x5, %esi
leaq 0x420(%rsp), %rdx
callq 0xedd0
jmp 0x49194
movq 0x1b0(%rsp), %rdi
addq $0x2b8, %rdi            # imm = 0x2B8
movq %rdi, 0x110(%rsp)
leaq 0x438(%rsp), %rsi
movq %rsi, 0xf0(%rsp)
callq 0xee50
movq 0xf0(%rsp), %rdi
callq 0xee90
leaq 0x41a(%rsp), %rdi
callq 0xeef0
leaq 0x420(%rsp), %rdi
callq 0xef00
leaq 0x41b(%rsp), %rdi
callq 0xef60
movq 0x110(%rsp), %rdi
leaq 0x4aded(%rip), %rax     # 0x93ff0
movq %rax, 0x118(%rsp)
movl 0x1f0(%rax), %eax
movl %eax, 0xf8(%rsp)
movl $0x1, %esi
movq %rsi, 0x100(%rsp)
callq 0xef70
movq 0x100(%rsp), %rsi
movq %rax, %rdi
callq 0xef90
movl 0xf8(%rsp), %edx
movq 0x110(%rsp), %rdi
movq %rax, %rcx
movq 0x118(%rsp), %rax
movl %edx, (%rcx)
movl 0x1ec(%rax), %eax
movl %eax, 0xfc(%rsp)
xorl %eax, %eax
movl %eax, %esi
movq %rsi, 0x120(%rsp)
callq 0xef70
movq 0x100(%rsp), %rsi
movq %rax, %rdi
callq 0xef90
movl 0xfc(%rsp), %edx
movq 0x100(%rsp), %rsi
movq 0x110(%rsp), %rdi
movq %rax, %rcx
movq 0x118(%rsp), %rax
movl %edx, (%rcx)
movl 0x1f4(%rax), %eax
movl %eax, 0x10c(%rsp)
callq 0xef70
movq 0x120(%rsp), %rsi
movq %rax, %rdi
callq 0xef90
movl 0x10c(%rsp), %edx
movq 0x110(%rsp), %rdi
movq 0x120(%rsp), %rsi
movq %rax, %rcx
movq 0x118(%rsp), %rax
movl %edx, (%rcx)
movl 0x1f8(%rax), %eax
movl %eax, 0x12c(%rsp)
callq 0xef70
movq 0x120(%rsp), %rsi
movq %rax, %rdi
callq 0xef90
movl 0x12c(%rsp), %edx
movq %rax, %rcx
movq 0x1b0(%rsp), %rax
movl %edx, (%rcx)
leaq 0x4af15(%rip), %rcx     # 0x94240
movl $0x0, (%rcx)
movq $0x0, 0x2d8(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, 0x400(%rsp)
movaps %xmm0, 0x3f0(%rsp)
movaps %xmm0, 0x3e0(%rsp)
movaps %xmm0, 0x3d0(%rsp)
movaps %xmm0, 0x3c0(%rsp)
leaq 0x3c0(%rsp), %rdi
callq 0x4d570
jmp 0x49376
leaq 0x4a833(%rip), %rdi     # 0x93bb0
leaq 0x3c0(%rsp), %rsi
movq %rsi, 0xe8(%rsp)
callq 0x4d600
movq 0xe8(%rsp), %rdi
callq 0x4d580
xorps %xmm0, %xmm0
movaps %xmm0, 0x3b0(%rsp)
movaps %xmm0, 0x3a0(%rsp)
movaps %xmm0, 0x390(%rsp)
movaps %xmm0, 0x380(%rsp)
movaps %xmm0, 0x370(%rsp)
leaq 0x370(%rsp), %rdi
callq 0x4d570
jmp 0x493d9
leaq 0x4a820(%rip), %rdi     # 0x93c00
leaq 0x370(%rsp), %rsi
movq %rsi, 0xd8(%rsp)
callq 0x4d600
movq 0xd8(%rsp), %rdi
callq 0x4d580
movq $0x0, 0x350(%rsp)
leaq 0x34f(%rsp), %rdi
movq %rdi, 0xe0(%rsp)
callq 0xf010
movq 0xe0(%rsp), %rcx
leaq 0x358(%rsp), %rdi
movl $0x1, %esi
leaq 0x350(%rsp), %rdx
callq 0xf020
jmp 0x49447
movq 0x1b0(%rsp), %rdi
addq $0x320, %rdi            # imm = 0x320
leaq 0x358(%rsp), %rsi
movq %rsi, 0xc8(%rsp)
callq 0xf0a0
movq 0xc8(%rsp), %rdi
callq 0xf0e0
leaq 0x34f(%rsp), %rdi
callq 0xf140
movq $0x0, 0x328(%rsp)
leaq 0x327(%rsp), %rdi
movq %rdi, 0xd0(%rsp)
callq 0xf010
movq 0xd0(%rsp), %rcx
leaq 0x330(%rsp), %rdi
movl $0x1, %esi
leaq 0x328(%rsp), %rdx
callq 0xf020
jmp 0x494ca
movq 0x1b0(%rsp), %rdi
addq $0x338, %rdi            # imm = 0x338
leaq 0x330(%rsp), %rsi
movq %rsi, 0x80(%rsp)
callq 0xf0a0
movq 0x80(%rsp), %rdi
callq 0xf0e0
leaq 0x327(%rsp), %rdi
callq 0xf140
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x300(%rsp)
movq $0x0, 0x310(%rsp)
leaq 0x300(%rsp), %rdi
movq %rdi, 0x88(%rsp)
callq 0xe8d0
movq 0x88(%rsp), %rsi
movq 0x1b0(%rsp), %rdi
addq $0x350, %rdi            # imm = 0x350
callq 0xf150
movq 0x88(%rsp), %rdi
callq 0xef00
movq 0x1b0(%rsp), %rdi
addq $0x270, %rdi            # imm = 0x270
callq 0xf840
movaps 0x90(%rsp), %xmm0
movq %rax, %rcx
movq 0x1b0(%rsp), %rax
movq %rcx, 0xa8(%rsp)
movslq 0x2d0(%rax), %rax
movq %rax, 0xb0(%rsp)
movaps %xmm0, 0x2b0(%rsp)
movq $0x0, 0x2c0(%rsp)
leaq 0x2b0(%rsp), %rdi
movq %rdi, 0xb8(%rsp)
callq 0xe8d0
leaq 0x2af(%rsp), %rdi
movq %rdi, 0xc0(%rsp)
callq 0xedc0
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xc0(%rsp), %rcx
leaq 0x2d0(%rsp), %rdi
callq 0xedd0
jmp 0x49608
leaq 0x2ae(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0x107e0
movq 0xa8(%rsp), %rsi
movq 0x78(%rsp), %rcx
leaq 0x2e8(%rsp), %rdi
leaq 0x2d0(%rsp), %rdx
callq 0x4d630
jmp 0x4963e
movq 0x1b0(%rsp), %rdi
addq $0x3e8, %rdi            # imm = 0x3E8
leaq 0x2e8(%rsp), %rsi
movq %rsi, 0x68(%rsp)
callq 0x4d6b0
movq 0x68(%rsp), %rdi
callq 0xf4c0
leaq 0x2ae(%rsp), %rdi
callq 0x13b70
leaq 0x2d0(%rsp), %rdi
callq 0xee90
leaq 0x2af(%rsp), %rdi
callq 0xeef0
leaq 0x2b0(%rsp), %rdi
callq 0xef00
movl $0x0, 0x274(%rsp)
leaq 0x273(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0xed30
movq 0x70(%rsp), %rcx
leaq 0x278(%rsp), %rdi
movl $0x2, %esi
leaq 0x274(%rsp), %rdx
callq 0xed40
jmp 0x496db
leaq 0x272(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0xedc0
movq 0x60(%rsp), %rcx
leaq 0x290(%rsp), %rdi
movl $0x3, %esi
leaq 0x278(%rsp), %rdx
callq 0xedd0
jmp 0x4970e
movq 0x1b0(%rsp), %rdi
addq $0x430, %rdi            # imm = 0x430
leaq 0x290(%rsp), %rsi
movq %rsi, 0x40(%rsp)
callq 0xee50
movq 0x40(%rsp), %rdi
callq 0xee90
leaq 0x272(%rsp), %rdi
callq 0xeef0
leaq 0x278(%rsp), %rdi
callq 0xef00
leaq 0x273(%rsp), %rdi
callq 0xef60
leaq 0x4a889(%rip), %rdi     # 0x93ff0
addq $0x1d0, %rdi            # imm = 0x1D0
callq 0xf190
movq %rax, %rcx
movq 0x1b0(%rsp), %rax
movq %rcx, 0x48(%rsp)
movslq 0x2d0(%rax), %rax
movq %rax, 0x50(%rsp)
movl $0x0, 0x23c(%rsp)
leaq 0x23b(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0xed30
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rcx
leaq 0x240(%rsp), %rdi
leaq 0x23c(%rsp), %rdx
callq 0xed40
jmp 0x497cd
leaq 0x23a(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0xedc0
movq 0x48(%rsp), %rsi
movq 0x38(%rsp), %rcx
leaq 0x258(%rsp), %rdi
leaq 0x240(%rsp), %rdx
callq 0xedd0
jmp 0x49800
movq 0x1b0(%rsp), %rdi
addq $0x400, %rdi            # imm = 0x400
leaq 0x258(%rsp), %rsi
movq %rsi, 0x20(%rsp)
callq 0xee50
movq 0x20(%rsp), %rdi
callq 0xee90
leaq 0x23a(%rsp), %rdi
callq 0xeef0
leaq 0x240(%rsp), %rdi
callq 0xef00
leaq 0x23b(%rsp), %rdi
callq 0xef60
movq 0x1b0(%rsp), %rax
movslq 0x2d0(%rax), %rax
movq %rax, 0x28(%rsp)
movl $0x0, 0x204(%rsp)
leaq 0x203(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0xed30
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rcx
leaq 0x208(%rsp), %rdi
leaq 0x204(%rsp), %rdx
callq 0xed40
jmp 0x498a4
leaq 0x202(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xedc0
movq 0x28(%rsp), %rsi
movq 0x18(%rsp), %rcx
leaq 0x220(%rsp), %rdi
leaq 0x208(%rsp), %rdx
callq 0xedd0
jmp 0x498d7
movq 0x1b0(%rsp), %rdi
addq $0x418, %rdi            # imm = 0x418
leaq 0x220(%rsp), %rsi
callq 0xee50
leaq 0x220(%rsp), %rdi
callq 0xee90
leaq 0x202(%rsp), %rdi
callq 0xeef0
leaq 0x208(%rsp), %rdi
callq 0xef00
leaq 0x203(%rsp), %rdi
callq 0xef60
leaq 0x4a6c2(%rip), %rax     # 0x93ff0
testb $0x1, 0x1cd(%rax)
je 0x49bdb
leaq 0x1e8(%rsp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x5210
leaq 0x1e8(%rsp), %rdi
callq 0xe8e0
movq 0x1b0(%rsp), %rdi
addq $0x378, %rdi            # imm = 0x378
leaq 0x1e8(%rsp), %rsi
callq 0xf420
leaq 0x1e8(%rsp), %rdi
callq 0xf460
leaq 0x1d0(%rsp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x5210
leaq 0x1d0(%rsp), %rdi
callq 0xe8e0
movq 0x1b0(%rsp), %rdi
addq $0x390, %rdi            # imm = 0x390
leaq 0x1d0(%rsp), %rsi
callq 0xf420
leaq 0x1d0(%rsp), %rdi
callq 0xf460
jmp 0x49bdb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
jmp 0x49a18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
leaq 0x41a(%rsp), %rdi
callq 0xeef0
leaq 0x420(%rsp), %rdi
callq 0xef00
leaq 0x41b(%rsp), %rdi
callq 0xef60
jmp 0x49c64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
leaq 0x34f(%rsp), %rdi
callq 0xf140
jmp 0x49c64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
leaq 0x327(%rsp), %rdi
callq 0xf140
jmp 0x49c64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
jmp 0x49aba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
leaq 0x2ae(%rsp), %rdi
callq 0x13b70
leaq 0x2d0(%rsp), %rdi
callq 0xee90
leaq 0x2af(%rsp), %rdi
callq 0xeef0
leaq 0x2b0(%rsp), %rdi
callq 0xef00
jmp 0x49c64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
jmp 0x49b1d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
leaq 0x272(%rsp), %rdi
callq 0xeef0
leaq 0x278(%rsp), %rdi
callq 0xef00
leaq 0x273(%rsp), %rdi
callq 0xef60
jmp 0x49c64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
jmp 0x49b73
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
leaq 0x23a(%rsp), %rdi
callq 0xeef0
leaq 0x240(%rsp), %rdi
callq 0xef00
leaq 0x23b(%rsp), %rdi
callq 0xef60
jmp 0x49c64
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
jmp 0x49bc9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4c0(%rsp)
movl %eax, 0x4bc(%rsp)
leaq 0x202(%rsp), %rdi
callq 0xeef0
leaq 0x208(%rsp), %rdi
callq 0xef00
leaq 0x203(%rsp), %rdi
callq 0xef60
jmp 0x49c64
movq 0x1b0(%rsp), %rax
movq $0x0, 0x3b8(%rax)
movq $0x0, 0x368(%rax)
movq $0x0, 0x370(%rax)
movq $0x0, 0x3b0(%rax)
movq $0x0, 0x3a8(%rax)
movq $0x0, 0x3b8(%rax)
movq $0x0, 0x3c0(%rax)
movq $0x0, 0x3e0(%rax)
movq $0x0, 0x3d8(%rax)
movq $0x0, 0x3c8(%rax)
movq $0x0, 0x3d0(%rax)
addq $0x4e8, %rsp            # imm = 0x4E8
retq
movq 0x1a8(%rsp), %rdi
callq 0xee90
movq 0x1a0(%rsp), %rdi
callq 0xee90
movq 0x198(%rsp), %rdi
callq 0xee90
movq 0x190(%rsp), %rdi
callq 0xf4c0
movq 0x188(%rsp), %rdi
callq 0xf460
movq 0x180(%rsp), %rdi
callq 0xf460
movq 0x178(%rsp), %rdi
callq 0xef00
movq 0x170(%rsp), %rdi
callq 0xf0e0
movq 0x168(%rsp), %rdi
callq 0xf0e0
movq 0x160(%rsp), %rdi
callq 0xed20
movq 0x158(%rsp), %rdi
callq 0xee90
movq 0x1c8(%rsp), %rdi
callq 0xf560
movq 0x150(%rsp), %rdi
callq 0x4d6f0
movq 0x1b8(%rsp), %rdi
callq 0xf620
movq 0x1b0(%rsp), %rdi
callq 0x549b0
movq 0x4c0(%rsp), %rdi
callq 0x5690
nopw %cs:(%rax,%rax)