// File: /workspace/github_c_makefile_star2_O0/albinoloverats[P]hide/common/src/cli.c
// Function: cli_display_bps
static void cli_display_bps(cli_bps_s *bps)
{
	/*
	 * calculate B/s
	 */
	double val = cli_calc_bps(bps);
	if (isnan(val) || val == 0.0f)
		fprintf(stderr, "    0.0 B/s");
	else
	{
		if (val < THOUSAND)
			fprintf(stderr, "  %5.1f B/s", val);
		else if (val < MILLION)
			fprintf(stderr, " %5.1f KB/s", val / KILOBYTE);
		else if (val < THOUSAND_MILLION)
			fprintf(stderr, " %5.1f MB/s", val / MEGABYTE);
		else if (val < BILLION)
			fprintf(stderr, " %5.1f GB/s", val / GIGABYTE);
#if 1           /* if you’re getting these kinds of speeds please, please can I have your machine ;-) */
		else if (val < THOUSAND_BILLION)
			fprintf(stderr, " %5.1f TB/s", val / TERABYTE);
		else if (val < TRILLION)
			fprintf(stderr, " %5.1f PB/s", val / PETABYTE);
//		else // if (val < THOUSAND_TRILLION) // even uint64_t is too small now!
//			fprintf(progress_bar + strlen(progress_bar), " %5.1f EB/s", val / EXABYTE);
//		else if (val < QUADRILLION)
//			fprintf(progress_bar + strlen(progress_bar), " %5.1f ZB/s", val / ZETTABYTE);
//		else
//			fprintf(progress_bar + strlen(progress_bar), " %5.1f YB/s", val / YOTTABYTE);
#endif
		else
			fprintf(stderr, "  ---.- B/s");
	}
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4870
movsd %xmm0, -0x10(%rbp)
movsd -0x10(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x535a
movsd -0x10(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x5377
jp 0x5377
movq 0x2c97(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
leaq 0x106f(%rip), %rsi      # 0x63da
movb $0x0, %al
callq 0x2200
jmp 0x54f7
movsd 0xf59(%rip), %xmm0      # 0x62d8
ucomisd -0x10(%rbp), %xmm0
jbe 0x53a8
movq 0x2c6b(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movsd -0x10(%rbp), %xmm0
leaq 0x104a(%rip), %rsi      # 0x63e6
movb $0x1, %al
callq 0x2200
jmp 0x54f5
movsd 0xf18(%rip), %xmm0      # 0x62c8
ucomisd -0x10(%rbp), %xmm0
jbe 0x53e5
movq 0x2c3a(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movsd -0x10(%rbp), %xmm0
movsd 0xf52(%rip), %xmm1      # 0x6320
divsd %xmm1, %xmm0
leaq 0x1019(%rip), %rsi      # 0x63f2
movb $0x1, %al
callq 0x2200
jmp 0x54f3
movsd 0xef3(%rip), %xmm0      # 0x62e0
ucomisd -0x10(%rbp), %xmm0
jbe 0x5422
movq 0x2bfd(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movsd -0x10(%rbp), %xmm0
movsd 0xf0d(%rip), %xmm1      # 0x6318
divsd %xmm1, %xmm0
leaq 0xfe8(%rip), %rsi       # 0x63fe
movb $0x1, %al
callq 0x2200
jmp 0x54f1
movsd 0xebe(%rip), %xmm0      # 0x62e8
ucomisd -0x10(%rbp), %xmm0
jbe 0x545f
movq 0x2bc0(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movsd -0x10(%rbp), %xmm0
movsd 0xec8(%rip), %xmm1      # 0x6310
divsd %xmm1, %xmm0
leaq 0xfb7(%rip), %rsi       # 0x640a
movb $0x1, %al
callq 0x2200
jmp 0x54ef
movsd 0xe89(%rip), %xmm0      # 0x62f0
ucomisd -0x10(%rbp), %xmm0
jbe 0x5499
movq 0x2b83(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movsd -0x10(%rbp), %xmm0
movsd 0xe83(%rip), %xmm1      # 0x6308
divsd %xmm1, %xmm0
leaq 0xf86(%rip), %rsi       # 0x6416
movb $0x1, %al
callq 0x2200
jmp 0x54ed
movsd 0xe57(%rip), %xmm0      # 0x62f8
ucomisd -0x10(%rbp), %xmm0
jbe 0x54d3
movq 0x2b49(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movsd -0x10(%rbp), %xmm0
movsd 0xe41(%rip), %xmm1      # 0x6300
divsd %xmm1, %xmm0
leaq 0xf58(%rip), %rsi       # 0x6422
movb $0x1, %al
callq 0x2200
jmp 0x54eb
movq 0x2b1e(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
leaq 0xf4a(%rip), %rsi       # 0x642e
movb $0x0, %al
callq 0x2200
jmp 0x54ed
jmp 0x54ef
jmp 0x54f1
jmp 0x54f3
jmp 0x54f5
jmp 0x54f7
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)