#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 *, ...);
void printListBucketHeader(int allDetails) {
  printf("%-50s  %-20s  %-5s", "                       Key", "   Last Modified",
         "Size");
  if (allDetails) {
    printf("  %-34s  %-64s  %-12s", "               ETag",
           "                            Owner ID", "Display Name");
  }
  printf("\n");
  printf("--------------------------------------------------  "
         "--------------------  -----");
  if (allDetails) {
    printf("  ----------------------------------  "
           "-------------------------------------------------"
           "---------------  ------------");
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<printListBucketHeader>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xede(%rip),%rdi
lea    0xeea(%rip),%rsi
lea    0xefe(%rip),%rdx
lea    0xf08(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x4(%rbp)
je     116b <printListBucketHeader+0x5b>
lea    0xef5(%rip),%rdi
lea    0xf04(%rip),%rsi
lea    0xf11(%rip),%rdx
lea    0xf2f(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x4(%rbp)
je     119f <printListBucketHeader+0x8f>
lea    0xf5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printListBucketHeader>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
lea    0xee2(%rip),%rsi
lea    0xef6(%rip),%rdx
lea    0xf00(%rip),%rcx
xor    %eax,%eax
call   1040 <printf@plt>
test   %ebx,%ebx
je     118e <printListBucketHeader+0x6e>
lea    0xef3(%rip),%rdi
lea    0xf02(%rip),%rsi
lea    0xf0f(%rip),%rdx
lea    0xf2d(%rip),%rcx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf22(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf64(%rip),%rdi
jmp    119f <printListBucketHeader+0x7f>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf01(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"%-50s %-20s %-5s\00"
@.str.1 = [27 x i8] c" Key\00"
@.str.2 = [17 x i8] c" Last Modified\00"
@.str.3 = [5 x i8] c"Size\00"
@.str.4 = [22 x i8] c" %-34s %-64s %-12s\00"
@.str.5 = [20 x i8] c" ETag\00"
@.str.6 = [37 x i8] c" Owner ID\00"
@.str.7 = [13 x i8] c"Display Name\00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [80 x i8] c"-------------------------------------------------- -------------------- -----\00"
@.str.10 = [117 x i8] c" ---------------------------------- ---------------------------------------------------------------- ------------\00"
define void @printListBucketHeader(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
br label %8
8: ; preds = %6, %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.9, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.10, i64 0, i64 0))
br label %15
15: ; preds = %13, %8
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"%-50s %-20s %-5s\00"
@.str.1 = [27 x i8] c" Key\00"
@.str.2 = [17 x i8] c" Last Modified\00"
@.str.3 = [5 x i8] c"Size\00"
@.str.4 = [22 x i8] c" %-34s %-64s %-12s\00"
@.str.5 = [20 x i8] c" ETag\00"
@.str.6 = [37 x i8] c" Owner ID\00"
@.str.7 = [13 x i8] c"Display Name\00"
@.str.9 = [80 x i8] c"-------------------------------------------------- -------------------- -----\00"
@.str.10 = [117 x i8] c" ---------------------------------- ---------------------------------------------------------------- ------------\00"
define void @printListBucketHeader(i32 %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%3 = icmp eq i32 %0, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str.9, i64 0, i64 0))
br label %10
8: ; preds = %1
%9 = tail call i32 @putchar(i32 10)
br label %10
10: ; preds = %8, %4
%11 = phi i8* [ getelementptr inbounds ([80 x i8], [80 x i8]* @.str.9, i64 0, i64 0), %8 ], [ getelementptr inbounds ([117 x i8], [117 x i8]* @.str.10, i64 0, i64 0), %4 ]
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %11)
%13 = tail call i32 @putchar(i32 10)
ret void
}