// File: /workspace/github_cpp_makefile_star2_O1/gvaumour[P]cache-simulator/src/SaturationPredictor.cc
// Function: SaturationCounter::printStats(std::ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void SaturationCounter::printStats(std::ostream& out, string entete)
{	
	
	double migrationNVM = (double) stats_nbMigrationsFromNVM[0];
	double migrationSRAM = (double) stats_nbMigrationsFromNVM[1];
	double total = migrationNVM+migrationSRAM;

	if(total > 0){
		out << entete << ":PredictorStats:" << endl;
		out << entete << ":NBMigration\t" << total << endl;
		out << entete << ":MigrationFromNVM\t" << migrationNVM*100/total << "%" << endl;
		out << entete << ":MigrationFromSRAM\t" << migrationSRAM*100/total << "%" << endl;	
	}
	Predictor::printStats(out, entete);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdx, %r15
movq %rdi, %rbx
movq 0x278(%rdi), %rax
cvtdq2pd (%rax), %xmm3
movq %rsi, %r14
movapd %xmm3, %xmm1
unpckhpd %xmm3, %xmm1            # xmm1 = xmm1[1],xmm3[1]
movapd %xmm3, %xmm2
addsd %xmm1, %xmm2
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jbe 0x29f93
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
movapd %xmm1, 0x20(%rsp)
movapd %xmm2, (%rsp)
movapd %xmm3, 0x10(%rsp)
callq 0x5350
movq %rax, %r12
leaq 0xce4d(%rip), %rsi      # 0x36c50
movl $0x10, %edx
movq %rax, %rdi
callq 0x5350
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %r12, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51f0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x5350
movq %rax, %r12
leaq 0xafa7(%rip), %rsi      # 0x34df8
movl $0xd, %edx
movq %rax, %rdi
callq 0x5350
movq %r12, %rdi
movaps (%rsp), %xmm0
callq 0x5500
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %r12, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51f0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x5350
movq %rax, %r12
leaq 0xaf68(%rip), %rsi      # 0x34e15
movl $0x12, %edx
movq %rax, %rdi
callq 0x5350
movapd 0x10(%rsp), %xmm0
mulsd 0xaae8(%rip), %xmm0     # 0x349b0
divsd (%rsp), %xmm0
movq %r12, %rdi
callq 0x5500
movq %rax, %r13
leaq 0xaf49(%rip), %r12      # 0x34e28
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x5350
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %r13, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51f0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x5350
movq %rax, %r13
leaq 0xaf09(%rip), %rsi      # 0x34e39
movl $0x13, %edx
movq %rax, %rdi
callq 0x5350
movapd 0x20(%rsp), %xmm0
mulsd 0xaa65(%rip), %xmm0     # 0x349b0
divsd (%rsp), %xmm0
movq %r13, %rdi
callq 0x5500
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x5350
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %r13, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x51f0
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0xcc1c
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x27d9c
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x29fd1
callq 0x52a0
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x29ff1
callq 0x52a0
movq %rbx, %rdi
callq 0x55a0
nop