// File: /workspace/github_cpp_makefile_star2_O1/gvaumour[P]cache-simulator/src/DBAMBPredictor.cc
// Function: DBAMBPredictor::reportSpilling(DHPEntry*, unsigned long, bool, bool)
void 
DBAMBPredictor::reportSpilling(DHPEntry* rap_current, uint64_t addr, bool isAlloc,  bool inNVM)
{
	string cl_location = inNVM ? "NVM" : "SRAM";
	string a = isAlloc ? "ALLOC" : "MIGRATION";
	
	dataset_file << "SPILLING:Dataset n°" << rap_current->id << ": DEFLECT " <<  a \
		<< ", Cl 0x" << std::hex << addr << std::dec <<  " cl alloc=" \
		<< cl_location << ", Dataset alloc=" << str_allocDecision[rap_current->des] << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %rbx
leaq 0x25ee1(%rip), %rax     # 0x3480c
leaq 0x25ee3(%rip), %rsi     # 0x34815
testl %r8d, %r8d
cmovneq %rax, %rsi
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movl %r8d, %eax
movq %rsi, %rdx
subq %rax, %rdx
addq $0x4, %rdx
leaq 0x28(%rsp), %rdi
callq 0xccac
leaq 0x261a8(%rip), %rax     # 0x34b09
leaq 0x261a7(%rip), %rsi     # 0x34b0f
testl %ebp, %ebp
cmovneq %rax, %rsi
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
xorb $0x1, %bpl
movzbl %bpl, %eax
leaq (%rsi,%rax,4), %rdx
addq $0x5, %rdx
leaq 0x8(%rsp), %rdi
callq 0xccac
leaq 0x36cd0(%rip), %rdi     # 0x45668
leaq 0x2617a(%rip), %rsi     # 0x34b19
movl $0x14, %edx
callq 0x5350
movl 0x18(%rbx), %esi
leaq 0x36cb5(%rip), %rdi     # 0x45668
callq 0x5580
movq %rax, %r15
leaq 0x2616c(%rip), %rsi     # 0x34b2e
movl $0xa, %edx
movq %rax, %rdi
callq 0x5350
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x5350
movq %rax, %r15
leaq 0x2614e(%rip), %rsi     # 0x34b39
movl $0x7, %edx
movq %rax, %rdi
callq 0x5350
movq (%r15), %rax
movq -0x18(%rax), %rax
movl 0x18(%r15,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x18(%r15,%rax)
movq %r15, %rdi
movq %r14, %rsi
callq 0x51e0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl $-0x4b, %ecx
orl $0x2, %ecx
movl %ecx, 0x18(%r14,%rax)
leaq 0x26106(%rip), %rsi     # 0x34b41
movl $0xa, %edx
movq %r14, %rdi
callq 0x5350
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x5350
movq %rax, %r14
leaq 0x260e8(%rip), %rsi     # 0x34b4c
movl $0x10, %edx
movq %rax, %rdi
callq 0x5350
movl 0x28(%rbx), %eax
leaq 0x36915(%rip), %rcx     # 0x45390
movq (%rcx,%rax,8), %rbx
testq %rbx, %rbx
je 0xea9c
movq %rbx, %rdi
callq 0x5160
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x5350
jmp 0xeab6
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x5560
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51f0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xeaec
callq 0x52a0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0xeafb
callq 0x52a0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xeb21
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xeb21
callq 0x52a0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0xeb30
callq 0x52a0
movq %rbx, %rdi
callq 0x55a0