#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 /*<<< orphan*/ printf(char *, int, int, int, int);
void Section2(long cents) {
  printf("Equivalent in euros: %01d %03d %03d,%02d €\n\n",
         (int)(cents % 100000000000 / 100000000),
         (int)(cents % 100000000 / 100000), (int)(cents % 100000 / 100),
         (int)(cents % 100));
}


x86 assembly (clang, -O0):
<Section2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movabs $0x174876e800,%rcx
cqto
idiv   %rcx
mov    %rdx,%rax
mov    $0x5f5e100,%ecx
cqto
idiv   %rcx
mov    %eax,%esi
mov    -0x8(%rbp),%rax
mov    $0x5f5e100,%ecx
cqto
idiv   %rcx
mov    %rdx,%rax
mov    $0x186a0,%ecx
cqto
idiv   %rcx
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    $0x186a0,%ecx
cqto
idiv   %rcx
mov    %rdx,%rax
mov    $0x64,%ecx
cqto
idiv   %rcx
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    $0x64,%edi
cqto
idiv   %rdi
mov    %rdx,%rax
mov    -0xc(%rbp),%edx
mov    %eax,%r8d
lea    0xe69(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Section2>:
mov    %rdi,%r8
movabs $0xafebff0bcb24ab,%rcx
mov    %rdi,%rax
imul   %rcx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x1c,%rdx
add    %rax,%rdx
movabs $0x174876e800,%rcx
imul   %rdx,%rcx
mov    %rdi,%rax
sub    %rcx,%rax
movabs $0x55e63b88c230e77f,%rcx
3b e6 55
imul   %rcx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x19,%rdx
add    %edx,%esi
mov    %rdi,%rax
imul   %rcx
mov    %rdx,%rax
shr    $0x3f,%rax
shr    $0x19,%rdx
add    %eax,%edx
imul   $0x5f5e100,%edx,%eax
mov    %r8d,%ecx
sub    %eax,%ecx
movslq %ecx,%rax
imul   $0x14f8b589,%rax,%r9
mov    %r9,%rax
shr    $0x3f,%rax
sar    $0x2d,%r9
add    %eax,%r9d
movabs $0x29f16b11c6d1e109,%rcx
6b f1 29
mov    %rdi,%rax
imul   %rcx
mov    %rdx,%rax
shr    $0x3f,%rax
shr    $0xe,%rdx
add    %eax,%edx
imul   $0x186a0,%edx,%eax
mov    %r8d,%ecx
sub    %eax,%ecx
movslq %ecx,%rax
imul   $0x51eb851f,%rax,%rcx
movabs $0xa3d70a3d70a3d70b,%rdx
0a d7 a3
mov    %rdi,%rax
imul   %rdx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x25,%rcx
add    %eax,%ecx
add    %rdi,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
shr    $0x6,%rdx
add    %eax,%edx
imul   $0x64,%edx,%eax
sub    %eax,%r8d
lea    0xdff(%rip),%rdi
mov    %r9d,%edx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [47 x i8] c"Equivalent in euros: %01d %03d %03d,%02d \E2\82\AC\0A\0A\00"
define void @Section2(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = srem i64 %3, 100000000000
%5 = sdiv i64 %4, 100000000
%6 = trunc i64 %5 to i32
%7 = load i64, i64* %2
%8 = srem i64 %7, 100000000
%9 = sdiv i64 %8, 100000
%10 = trunc i64 %9 to i32
%11 = load i64, i64* %2
%12 = srem i64 %11, 100000
%13 = sdiv i64 %12, 100
%14 = trunc i64 %13 to i32
%15 = load i64, i64* %2
%16 = srem i64 %15, 100
%17 = trunc i64 %16 to i32
%18 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %10, i32 %14, i32 %17)
ret void
}

LLVM IR (-O2):
@.str = [47 x i8] c"Equivalent in euros: %01d %03d %03d,%02d \E2\82\AC\0A\0A\00"
define void @Section2(i64 %0) {
%2 = srem i64 %0, 100000000000
%3 = sdiv i64 %2, 100000000
%4 = trunc i64 %3 to i32
%5 = srem i64 %0, 100000000
%6 = trunc i64 %5 to i32
%7 = sdiv i32 %6, 100000
%8 = srem i64 %0, 100000
%9 = trunc i64 %8 to i32
%10 = sdiv i32 %9, 100
%11 = srem i64 %0, 100
%12 = trunc i64 %11 to i32
%13 = tail call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %7, i32 %10, i32 %12)
ret void
}