// File: /workspace/github_cpp_makefile_star2_O3/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 0x29c63
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
movapd %xmm1, 0x20(%rsp)
movapd %xmm2, (%rsp)
movapd %xmm3, 0x10(%rsp)
callq 0x5360
movq %rax, %r12
leaq 0xd175(%rip), %rsi      # 0x36c48
movl $0x10, %edx
movq %rax, %rdi
callq 0x5360
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r12, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x5360
movq %rax, %r12
leaq 0xb2b7(%rip), %rsi      # 0x34dd8
movl $0xd, %edx
movq %rax, %rdi
callq 0x5360
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 0x52c0
movsbl %al, %esi
movq %r12, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x5360
movq %rax, %r12
leaq 0xb278(%rip), %rsi      # 0x34df5
movl $0x12, %edx
movq %rax, %rdi
callq 0x5360
movapd 0x10(%rsp), %xmm0
mulsd 0xadf8(%rip), %xmm0     # 0x34990
divsd (%rsp), %xmm0
movq %r12, %rdi
callq 0x5500
movq %rax, %r13
leaq 0xb259(%rip), %r12      # 0x34e08
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x5360
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x5360
movq %rax, %r13
leaq 0xb219(%rip), %rsi      # 0x34e19
movl $0x13, %edx
movq %rax, %rdi
callq 0x5360
movapd 0x20(%rsp), %xmm0
mulsd 0xad75(%rip), %xmm0     # 0x34990
divsd (%rsp), %xmm0
movq %r13, %rdi
callq 0x5500
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x5360
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x52c0
movsbl %al, %esi
movq %r13, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5200
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 0xcbd6
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x27a64
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x29ca1
callq 0x52b0
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 0x29cc1
callq 0x52b0
movq %rbx, %rdi
callq 0x55a0
nop