// File: /workspace/github_cpp_makefile_star2_O3/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 0x2453f(%rip), %rax     # 0x347db
leaq 0x24541(%rip), %rsi     # 0x347e4
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 0xcc6c
leaq 0x35c86(%rip), %rax     # 0x45f50
cmpb $0x1, (%rax)
jne 0x1047c
leaq 0x3538e(%rip), %rdi     # 0x45668
leaq 0x2450d(%rip), %rsi     # 0x347ee
movl $0x15, %edx
callq 0x5360
movl 0x18(%r15), %esi
leaq 0x35372(%rip), %rdi     # 0x45668
callq 0x5580
movq %rax, %r14
leaq 0x24838(%rip), %rsi     # 0x34b3d
movl $0x3, %edx
movq %rax, %rdi
callq 0x5360
movl 0x98(%r15), %eax
leaq 0x350e0(%rip), %rcx     # 0x45400
movq (%rcx,%rax,8), %r12
testq %r12, %r12
je 0x10341
movq %r12, %rdi
callq 0x5160
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x5360
jmp 0x10359
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x5560
leaq 0x23cb6(%rip), %rsi     # 0x34016
movl $0x1, %edx
movq %r14, %rdi
callq 0x5360
movl 0x9c(%r15), %eax
leaq 0x350b5(%rip), %rcx     # 0x45430
movq (%rcx,%rax,8), %r15
testq %r15, %r15
je 0x1039c
movq %r15, %rdi
callq 0x5160
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5360
jmp 0x103b6
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x5560
leaq 0x247f8(%rip), %rsi     # 0x34bb5
movl $0xd, %edx
movq %r14, %rdi
callq 0x5360
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x5360
movq %rax, %r14
leaq 0x24735(%rip), %rsi     # 0x34b1a
movl $0x6, %edx
movq %rax, %rdi
callq 0x5360
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 0x51f0
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 0x23dd9(%rip), %rsi     # 0x3420d
movl $0xe, %edx
movq %rbx, %rdi
callq 0x5360
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x5360
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1048a
callq 0x52b0
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x104a9
callq 0x52b0
movq %rbx, %rdi
callq 0x55a0
nop