// File: /workspace/github_cpp_makefile_star2_O1/gvaumour[P]cache-simulator/src/DBAMBPredictor.cc
// Function: DBAMBPredictor::reportMigration(DHPEntry*, CacheEntry*, bool)
void
DBAMBPredictor::reportMigration(DHPEntry* rap_current, CacheEntry* current, bool fromNVM)
{
	string cl_location = fromNVM ? "from NVM" : "from SRAM";
	
	if(simu_parameters.printDebug)
	{
		dataset_file << "Migration:Dataset n°" << rap_current->id << ": [" << \
		str_RW_status[rap_current->state_rw] << ","  << str_RD_status[rap_current->state_rd] << "], Migration " << cl_location << \
		" Cl 0x" << std::hex << current->address << std::dec << " allocated in " << cl_location << endl;	
	}
	
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rsi, %r15
leaq 0x24501(%rip), %rax     # 0x34807
leaq 0x24503(%rip), %rsi     # 0x34810
testl %ecx, %ecx
cmovneq %rax, %rsi
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movl %ecx, %edx
xorq $0x9, %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xccac
leaq 0x35c1c(%rip), %rax     # 0x45f50
cmpb $0x1, (%rax)
jne 0x104e6
leaq 0x35324(%rip), %rdi     # 0x45668
leaq 0x244cf(%rip), %rsi     # 0x3481a
movl $0x15, %edx
callq 0x5350
movl 0x18(%r15), %esi
leaq 0x35308(%rip), %rdi     # 0x45668
callq 0x5580
movq %rax, %r14
leaq 0x247ee(%rip), %rsi     # 0x34b5d
movl $0x3, %edx
movq %rax, %rdi
callq 0x5350
movl 0x98(%r15), %eax
leaq 0x35076(%rip), %rcx     # 0x45400
movq (%rcx,%rax,8), %r12
testq %r12, %r12
je 0x103ab
movq %r12, %rdi
callq 0x5160
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x5350
jmp 0x103c3
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x5560
leaq 0x23c78(%rip), %rsi     # 0x34042
movl $0x1, %edx
movq %r14, %rdi
callq 0x5350
movl 0x9c(%r15), %eax
leaq 0x3504b(%rip), %rcx     # 0x45430
movq (%rcx,%rax,8), %r15
testq %r15, %r15
je 0x10406
movq %r15, %rdi
callq 0x5160
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5350
jmp 0x10420
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x5560
leaq 0x247ae(%rip), %rsi     # 0x34bd5
movl $0xd, %edx
movq %r14, %rdi
callq 0x5350
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x5350
movq %rax, %r14
leaq 0x246eb(%rip), %rsi     # 0x34b3a
movl $0x6, %edx
movq %rax, %rdi
callq 0x5350
movq (%r14), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%r14,%rax)
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x51e0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rax
movl 0x18(%rbx,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%rbx,%rax)
leaq 0x23d9b(%rip), %rsi     # 0x34239
movl $0xe, %edx
movq %rbx, %rdi
callq 0x5350
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x5350
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51f0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x104f4
callq 0x52a0
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x10513
callq 0x52a0
movq %rbx, %rdi
callq 0x55a0
nop