// File: /workspace/github_cpp_makefile_star2_O3/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 0x25f41(%rip), %rax     # 0x347e0
leaq 0x25f43(%rip), %rsi     # 0x347e9
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 0xcc6c
leaq 0x26214(%rip), %rax     # 0x34ae9
leaq 0x26213(%rip), %rsi     # 0x34aef
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 0xcc6c
leaq 0x36d5c(%rip), %rdi     # 0x45668
leaq 0x261e6(%rip), %rsi     # 0x34af9
movl $0x14, %edx
callq 0x5360
movl 0x18(%rbx), %esi
leaq 0x36d41(%rip), %rdi     # 0x45668
callq 0x5580
movq %rax, %r15
leaq 0x261d8(%rip), %rsi     # 0x34b0e
movl $0xa, %edx
movq %rax, %rdi
callq 0x5360
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x5360
movq %rax, %r15
leaq 0x261ba(%rip), %rsi     # 0x34b19
movl $0x7, %edx
movq %rax, %rdi
callq 0x5360
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 0x51f0
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 0x26172(%rip), %rsi     # 0x34b21
movl $0xa, %edx
movq %r14, %rdi
callq 0x5360
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x5360
movq %rax, %r14
leaq 0x26154(%rip), %rsi     # 0x34b2c
movl $0x10, %edx
movq %rax, %rdi
callq 0x5360
movl 0x28(%rbx), %eax
leaq 0x369a1(%rip), %rcx     # 0x45390
movq (%rcx,%rax,8), %rbx
testq %rbx, %rbx
je 0xea10
movq %rbx, %rdi
callq 0x5160
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x5360
jmp 0xea2a
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 0x52c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xea60
callq 0x52b0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0xea6f
callq 0x52b0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0xea95
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xea95
callq 0x52b0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0xeaa4
callq 0x52b0
movq %rbx, %rdi
callq 0x55a0