#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int fprintf(int /*<<< orphan*/, char *, size_t, char const *, size_t, double);
int /*<<< orphan*/ stderr;
int ZopfliPrintSizeVerbose(size_t insize, size_t outsize, const char *name) {
  return fprintf(stderr,
                 "Original Size: %u, %s: %u, Compression: %f%% Removed\n",
                 insize, name, outsize, 100.0 * (insize - outsize) / insize);
}


x86 assembly (clang, -O0):
<ZopfliPrintSizeVerbose>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    %rdx,%rax
sub    %r8,%rax
movq   %rax,%xmm0
movaps 0xeb5(%rip),%xmm3
punpckldq %xmm3,%xmm0
movapd 0xeb9(%rip),%xmm2
subpd  %xmm2,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xeb2(%rip),%xmm1
mulsd  %xmm1,%xmm0
movq   %rdx,%xmm1
punpckldq %xmm3,%xmm1
subpd  %xmm2,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
lea    0xe93(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ZopfliPrintSizeVerbose>:
mov    %rdx,%rcx
mov    %rsi,%r8
movq   %rdi,%xmm1
mov    %rdi,%rax
sub    %rsi,%rax
movq   %rax,%xmm2
movdqa 0xed2(%rip),%xmm3
punpckldq %xmm3,%xmm2
movapd 0xed6(%rip),%xmm4
subpd  %xmm4,%xmm2
movapd %xmm2,%xmm0
unpckhpd %xmm2,%xmm0
addsd  %xmm2,%xmm0
mov    0x2e8f(%rip),%rax
mov    (%rax),%eax
mulsd  0xec5(%rip),%xmm0
punpckldq %xmm3,%xmm1
subpd  %xmm4,%xmm1
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
addsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
lea    0xeae(%rip),%rsi
mov    %rdi,%rdx
mov    %eax,%edi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [54 x i8] c"Original Size: %u, %s: %u, Compression: %f%% Removed\0A\00"
define i32 @ZopfliPrintSizeVerbose(i64 %0, i64 %1, i8* %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca i8*
store i64 %0, i64* %4
store i64 %1, i64* %5
store i8* %2, i8** %6
%7 = load i32, i32* @stderr
%8 = load i64, i64* %4
%9 = load i8*, i8** %6
%10 = load i64, i64* %5
%11 = load i64, i64* %4
%12 = load i64, i64* %5
%13 = sub i64 %11, %12
%14 = uitofp i64 %13 to double
%15 = fmul double 1.000000e+02, %14
%16 = load i64, i64* %4
%17 = uitofp i64 %16 to double
%18 = fdiv double %15, %17
%19 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i64 %8, i8* %9, i64 %10, double %18)
ret i32 %19
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [54 x i8] c"Original Size: %u, %s: %u, Compression: %f%% Removed\0A\00"
define i32 @ZopfliPrintSizeVerbose(i64 %0, i64 %1, i8* %2) {
%4 = load i32, i32* @stderr
%5 = sub i64 %0, %1
%6 = uitofp i64 %5 to double
%7 = fmul double %6, 1.000000e+02
%8 = uitofp i64 %0 to double
%9 = fdiv double %7, %8
%10 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i64 %0, i8* %2, i64 %1, double %9)
ret i32 %10
}