// File: /workspace/github_cpp_makefile_star2_O3/gvaumour[P]cache-simulator/src/Cerebron.cc
// Function: CerebronPredictor::load_callee_file()
void 
CerebronPredictor::load_callee_file()
{

	string mem_trace = simu_parameters.memory_traces[0];
	string dir_name = splitFilename(mem_trace);
	string callee_filename = dir_name + "/callee_recap.txt"; 
	
	ifstream file(callee_filename);
	
	assert(file && "Callee file not found\n");
	string line;
	
	while( getline(file, line))
	{		
		m_callee_map.insert(pair<uint64_t,int>( hexToInt(line) , 0));		
	};
		
	file.close();	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2d8, %rsp            # imm = 0x2D8
movq %rdi, %rbx
leaq 0x3edaf(%rip), %rax     # 0x45f50
movq 0x50(%rax), %rax
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0xcbd6
leaq 0xa0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0xcbd6
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x2e617
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x7210
callq 0x52b0
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xcbd6
leaq 0x2d49a(%rip), %rsi     # 0x346d5
movq %rsp, %rdi
callq 0x55f0
leaq 0xd0(%rsp), %r14
movq %rsp, %rsi
movq %r14, %rdi
movl $0x8, %edx
callq 0x5510
movq 0xd0(%rsp), %rax
movq -0x18(%rax), %rcx
testb $0x5, 0xf0(%rsp,%rcx)
jne 0x73a4
leaq 0x30(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x308, %rbx            # imm = 0x308
leaq 0x80(%rsp), %rbp
leaq 0x20(%rsp), %r15
leaq 0x70(%rsp), %r12
leaq 0x40(%rsp), %r13
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x55d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x7327
movq %rbp, 0x70(%rsp)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xcbd6
movq %r12, %rdi
callq 0x2e3ec
movq %rax, 0x40(%rsp)
movl $0x0, 0x48(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd8a2
movq 0x70(%rsp), %rdi
cmpq %rbp, %rdi
je 0x731d
callq 0x52b0
movq 0xd0(%rsp), %rax
jmp 0x72a7
leaq 0xd0(%rsp), %rdi
callq 0x50b0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
leaq 0x60(%rsp), %rbx
leaq 0x10(%rsp), %r14
je 0x7352
callq 0x52b0
leaq 0xd0(%rsp), %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x736d
callq 0x52b0
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7383
callq 0x52b0
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x7392
callq 0x52b0
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2d33c(%rip), %rdi     # 0x346e7
leaq 0x2ccb1(%rip), %rsi     # 0x34063
leaq 0x2d350(%rip), %rcx     # 0x34709
movl $0x36b, %edx            # imm = 0x36B
callq 0x51d0
jmp 0x7400
jmp 0x73c7
movq %rax, %rbx
jmp 0x742e
movq %rax, %rbx
jmp 0x743c
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
jne 0x744d
jmp 0x7452
movq %rax, %rbx
jmp 0x7452
jmp 0x73ea
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7403
callq 0x52b0
jmp 0x7403
jmp 0x7400
movq %rax, %rbx
leaq 0x10(%rsp), %r15
leaq 0x30(%rsp), %rax
movq 0x20(%rsp), %rdi
cmpq %rax, %rdi
leaq 0x60(%rsp), %r12
je 0x7421
callq 0x52b0
leaq 0xd0(%rsp), %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x743c
callq 0x52b0
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7452
callq 0x52b0
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x7461
callq 0x52b0
movq %rbx, %rdi
callq 0x55a0
nop