// File: /workspace/github_c_makefile_star2_O0/mkubecek[P]nperf/stats.c
// Function: print_iter_result
void print_iter_result(unsigned int iter, unsigned int n_iter, double result,
		       double sum, double sum_sqr, enum confid_level level,
		       const struct print_options *opts)
{
        double avg, mdev, confid;
	unsigned int n;
	int width;

        if (iter == XFER_STATS_TOTAL) {
                n = n_iter;
		width = opts->exact ? opts->width : 8;
		width += strlen(unit_names[opts->unit]);
                printf("all%*s", width + 5, "");
        } else {
                n = iter;
                printf("%-3u ", iter);
		print_rate(result, opts);
		putchar(',');
        }

	avg = sum / n;
        mdev = mdev_n(sum, sum_sqr, n);
	if (n > 1)
		confid = confid_interval(sum, sum_sqr, n, level);

	fputs("  avg ", stdout);
	print_rate(avg, opts);
	fputs(", mdev ", stdout);
	print_rate(mdev, opts);
	printf(" (%5.1lf%%)", 100.0 * mdev / avg);
	if (n > 1) {
		fputs(", confid. +/- ", stdout);
		print_rate(confid, opts);
		printf(" (%5.1lf%%)", 100.0 * confid / avg);
	}
	putchar('\n');
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movsd %xmm1, -0x18(%rbp)
movsd %xmm2, -0x20(%rbp)
movl %edx, -0x24(%rbp)
movq %rcx, -0x30(%rbp)
cmpl $-0x1, -0x4(%rbp)
jne 0x5a88
movl -0x8(%rbp), %eax
movl %eax, -0x4c(%rbp)
movq -0x30(%rbp), %rax
testb $0x1, 0x8(%rax)
je 0x5a36
movq -0x30(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x54(%rbp)
jmp 0x5a40
movl $0x8, %eax
movl %eax, -0x54(%rbp)
jmp 0x5a40
movl -0x54(%rbp), %eax
movl %eax, -0x50(%rbp)
movq -0x30(%rbp), %rax
movl (%rax), %eax
movl %eax, %ecx
leaq 0x588b(%rip), %rax      # 0xb2e0
movq (%rax,%rcx,8), %rdi
callq 0x20e0
movq %rax, %rcx
movslq -0x50(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %esi
addl $0x5, %esi
leaq 0x265f(%rip), %rdi      # 0x80d7
leaq 0x15ef(%rip), %rdx      # 0x706e
movb $0x0, %al
callq 0x2130
jmp 0x5ab7
movl -0x4(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x4(%rbp), %esi
leaq 0x2646(%rip), %rdi      # 0x80de
movb $0x0, %al
callq 0x2130
movsd -0x10(%rbp), %xmm0
movq -0x30(%rbp), %rdi
callq 0x52f0
movl $0x2c, %edi
callq 0x2050
movsd -0x18(%rbp), %xmm0
movl -0x4c(%rbp), %eax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x18(%rbp), %xmm0
movsd -0x20(%rbp), %xmm1
movl -0x4c(%rbp), %edi
callq 0x50c0
movsd %xmm0, -0x40(%rbp)
cmpl $0x1, -0x4c(%rbp)
jbe 0x5b04
movsd -0x18(%rbp), %xmm0
movsd -0x20(%rbp), %xmm1
movl -0x4c(%rbp), %edi
movl -0x24(%rbp), %esi
callq 0x5c20
movsd %xmm0, -0x48(%rbp)
movq 0x54c5(%rip), %rax      # 0xafd0
movq (%rax), %rsi
leaq 0x25cf(%rip), %rdi      # 0x80e4
callq 0x2160
movsd -0x38(%rbp), %xmm0
movq -0x30(%rbp), %rdi
callq 0x52f0
movq 0x54a1(%rip), %rax      # 0xafd0
movq (%rax), %rsi
leaq 0x2555(%rip), %rdi      # 0x808e
callq 0x2160
movsd -0x40(%rbp), %xmm0
movq -0x30(%rbp), %rdi
callq 0x52f0
movsd 0x14d4(%rip), %xmm0     # 0x7028
mulsd -0x40(%rbp), %xmm0
divsd -0x38(%rbp), %xmm0
leaq 0x2586(%rip), %rdi      # 0x80eb
movb $0x1, %al
callq 0x2130
cmpl $0x1, -0x4c(%rbp)
jbe 0x5bb6
movq 0x5457(%rip), %rax      # 0xafd0
movq (%rax), %rsi
leaq 0x2574(%rip), %rdi      # 0x80f7
callq 0x2160
movsd -0x48(%rbp), %xmm0
movq -0x30(%rbp), %rdi
callq 0x52f0
movsd 0x148a(%rip), %xmm0     # 0x7028
mulsd -0x48(%rbp), %xmm0
divsd -0x38(%rbp), %xmm0
leaq 0x253c(%rip), %rdi      # 0x80eb
movb $0x1, %al
callq 0x2130
movl $0xa, %edi
callq 0x2050
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)