// File: /workspace/github_cpp_makefile_star2_O1/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 0x3ed33(%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 0xcc1c
leaq 0xa0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0xcc1c
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x2e993
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x728c
callq 0x52a0
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xcc1c
leaq 0x2d44a(%rip), %rsi     # 0x34701
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), %rax
testb $0x5, 0xf0(%rsp,%rax)
jne 0x7420
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x308, %rbx            # imm = 0x308
leaq 0x80(%rsp), %rbp
leaq 0x20(%rsp), %r15
leaq 0x70(%rsp), %r12
leaq 0x40(%rsp), %r13
movq 0xd0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x55d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x73a3
movq %rbp, 0x70(%rsp)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xcc1c
movq %r12, %rdi
callq 0x2e768
movq %rax, 0x40(%rsp)
movl $0x0, 0x48(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xd8dc
movq 0x70(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7323
callq 0x52a0
jmp 0x7323
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 0x73ce
callq 0x52a0
leaq 0xd0(%rsp), %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x73e9
callq 0x52a0
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73ff
callq 0x52a0
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x740e
callq 0x52a0
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2d2ec(%rip), %rdi     # 0x34713
leaq 0x2cc61(%rip), %rsi     # 0x3408f
leaq 0x2d300(%rip), %rcx     # 0x34735
movl $0x36b, %edx            # imm = 0x36B
callq 0x51d0
jmp 0x747c
jmp 0x7443
movq %rax, %rbx
jmp 0x74aa
movq %rax, %rbx
jmp 0x74b8
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
jne 0x74c9
jmp 0x74ce
movq %rax, %rbx
jmp 0x74ce
jmp 0x7466
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %rbp, %rdi
je 0x747f
callq 0x52a0
jmp 0x747f
jmp 0x747c
movq %rax, %rbx
leaq 0x10(%rsp), %r15
leaq 0x30(%rsp), %rax
movq 0x20(%rsp), %rdi
cmpq %rax, %rdi
leaq 0x60(%rsp), %r12
je 0x749d
callq 0x52a0
leaq 0xd0(%rsp), %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x74b8
callq 0x52a0
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x74ce
callq 0x52a0
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x74dd
callq 0x52a0
movq %rbx, %rdi
callq 0x55a0
nop