#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, unsigned char, unsigned char,
                          unsigned char, unsigned char, unsigned char,
                          unsigned char, unsigned char, unsigned char,
                          unsigned char, unsigned char, unsigned char,
                          unsigned char, unsigned char, unsigned char,
                          unsigned char, unsigned char);
void dump(unsigned char *x, int sections) {
  int i;
  for (i = 0; i < sections; i++) {
    printf("%08x: %02x %02x %02x %02x  %02x %02x %02x %02x  %02x %02x %02x "
           "%02x  %02x %02x %02x %02x\n",
           16 * i, x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8], x[9],
           x[10], x[11], x[12], x[13], x[14], x[15]);
    x += 16;
  }
}


x86 assembly (clang, -O0):
<dump>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rdi,-0x30(%rbp)
mov    %esi,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    126c <dump+0x15c>
mov    -0x38(%rbp),%esi
shl    $0x4,%esi
mov    -0x30(%rbp),%rax
mov    (%rax),%dl
mov    -0x30(%rbp),%rax
mov    0x1(%rax),%cl
mov    -0x30(%rbp),%rax
mov    0x2(%rax),%r8b
mov    -0x30(%rbp),%rax
mov    0x3(%rax),%r9b
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%al
mov    -0x30(%rbp),%rdi
mov    0x5(%rdi),%dil
mov    %dil,-0x43(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x6(%rdi),%dil
mov    %dil,-0x42(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x7(%rdi),%dil
mov    %dil,-0x41(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x8(%rdi),%r13b
mov    -0x30(%rbp),%rdi
mov    0x9(%rdi),%r12b
mov    -0x30(%rbp),%rdi
mov    0xa(%rdi),%r15b
mov    -0x30(%rbp),%rdi
mov    0xb(%rdi),%r14b
mov    -0x30(%rbp),%rdi
mov    0xc(%rdi),%bl
mov    -0x30(%rbp),%rdi
mov    0xd(%rdi),%r11b
mov    -0x30(%rbp),%rdi
mov    0xe(%rdi),%r10b
mov    -0x30(%rbp),%rdi
mov    %rdi,-0x40(%rbp)
lea    0xe2e(%rip),%rdi
movzbl %dl,%edx
movzbl %cl,%ecx
movzbl %r8b,%r8d
movzbl %r9b,%r9d
movzbl %al,%eax
mov    %eax,(%rsp)
mov    -0x43(%rbp),%al
movzbl %al,%eax
mov    %eax,0x8(%rsp)
mov    -0x42(%rbp),%al
movzbl %al,%eax
mov    %eax,0x10(%rsp)
mov    -0x41(%rbp),%al
movzbl %al,%eax
mov    %eax,0x18(%rsp)
mov    -0x40(%rbp),%rax
movzbl %r13b,%r13d
mov    %r13d,0x20(%rsp)
movzbl %r12b,%r12d
mov    %r12d,0x28(%rsp)
movzbl %r15b,%r15d
mov    %r15d,0x30(%rsp)
movzbl %r14b,%r14d
mov    %r14d,0x38(%rsp)
movzbl %bl,%ebx
mov    %ebx,0x40(%rsp)
movzbl %r11b,%r11d
mov    %r11d,0x48(%rsp)
movzbl %r10b,%r10d
mov    %r10d,0x50(%rsp)
movzbl 0xf(%rax),%eax
mov    %eax,0x58(%rsp)
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x30(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1132 <dump+0x22>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
test   %esi,%esi
jle    11ea <dump+0xda>
mov    %esi,%r14d
mov    %rdi,%rbx
xor    %ebp,%ebp
xchg   %ax,%ax
movzbl (%rbx,%rbp,1),%edx
movzbl 0x1(%rbx,%rbp,1),%ecx
movzbl 0x2(%rbx,%rbp,1),%r8d
movzbl 0x3(%rbx,%rbp,1),%r9d
movzbl 0x4(%rbx,%rbp,1),%eax
mov    %rax,0x30(%rsp)
movzbl 0x5(%rbx,%rbp,1),%eax
mov    %rax,0x28(%rsp)
movzbl 0x6(%rbx,%rbp,1),%eax
mov    %rax,0x20(%rsp)
movzbl 0x7(%rbx,%rbp,1),%eax
mov    %rax,0x18(%rsp)
movzbl 0x8(%rbx,%rbp,1),%eax
mov    %rax,0x10(%rsp)
movzbl 0x9(%rbx,%rbp,1),%eax
mov    %rax,0x8(%rsp)
movzbl 0xa(%rbx,%rbp,1),%r10d
movzbl 0xb(%rbx,%rbp,1),%r11d
movzbl 0xc(%rbx,%rbp,1),%r12d
movzbl 0xd(%rbx,%rbp,1),%r13d
movzbl 0xe(%rbx,%rbp,1),%eax
movzbl 0xf(%rbx,%rbp,1),%r15d
lea    0xe55(%rip),%rdi
mov    %ebp,%esi
push   %r15
push   %rax
push   %r13
push   %r12
push   %r11
push   %r10
push   0x38(%rsp)
push   0x48(%rsp)
push   0x58(%rsp)
push   0x68(%rsp)
push   0x78(%rsp)
push   0x88(%rsp)
call   1030 <printf@plt>
add    $0x60,%rsp
add    $0x10,%rbp
add    $0xffffffff,%r14d
jne    1130 <dump+0x20>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [90 x i8] c"%08x: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
define void @dump(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %64, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %67
10: ; preds = %6
%11 = load i32, i32* %5
%12 = mul nsw i32 16, %11
%13 = load i8*, i8** %3
%14 = getelementptr inbounds i8, i8* %13, i64 0
%15 = load i8, i8* %14
%16 = load i8*, i8** %3
%17 = getelementptr inbounds i8, i8* %16, i64 1
%18 = load i8, i8* %17
%19 = load i8*, i8** %3
%20 = getelementptr inbounds i8, i8* %19, i64 2
%21 = load i8, i8* %20
%22 = load i8*, i8** %3
%23 = getelementptr inbounds i8, i8* %22, i64 3
%24 = load i8, i8* %23
%25 = load i8*, i8** %3
%26 = getelementptr inbounds i8, i8* %25, i64 4
%27 = load i8, i8* %26
%28 = load i8*, i8** %3
%29 = getelementptr inbounds i8, i8* %28, i64 5
%30 = load i8, i8* %29
%31 = load i8*, i8** %3
%32 = getelementptr inbounds i8, i8* %31, i64 6
%33 = load i8, i8* %32
%34 = load i8*, i8** %3
%35 = getelementptr inbounds i8, i8* %34, i64 7
%36 = load i8, i8* %35
%37 = load i8*, i8** %3
%38 = getelementptr inbounds i8, i8* %37, i64 8
%39 = load i8, i8* %38
%40 = load i8*, i8** %3
%41 = getelementptr inbounds i8, i8* %40, i64 9
%42 = load i8, i8* %41
%43 = load i8*, i8** %3
%44 = getelementptr inbounds i8, i8* %43, i64 10
%45 = load i8, i8* %44
%46 = load i8*, i8** %3
%47 = getelementptr inbounds i8, i8* %46, i64 11
%48 = load i8, i8* %47
%49 = load i8*, i8** %3
%50 = getelementptr inbounds i8, i8* %49, i64 12
%51 = load i8, i8* %50
%52 = load i8*, i8** %3
%53 = getelementptr inbounds i8, i8* %52, i64 13
%54 = load i8, i8* %53
%55 = load i8*, i8** %3
%56 = getelementptr inbounds i8, i8* %55, i64 14
%57 = load i8, i8* %56
%58 = load i8*, i8** %3
%59 = getelementptr inbounds i8, i8* %58, i64 15
%60 = load i8, i8* %59
%61 = call i32 @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str, i64 0, i64 0), i32 %12, i8 zeroext %15, i8 zeroext %18, i8 zeroext %21, i8 zeroext %24, i8 zeroext %27, i8 zeroext %30, i8 zeroext %33, i8 zeroext %36, i8 zeroext %39, i8 zeroext %42, i8 zeroext %45, i8 zeroext %48, i8 zeroext %51, i8 zeroext %54, i8 zeroext %57, i8 zeroext %60)
%62 = load i8*, i8** %3
%63 = getelementptr inbounds i8, i8* %62, i64 16
store i8* %63, i8** %3
br label %64
64: ; preds = %10
%65 = load i32, i32* %5
%66 = add nsw i32 %65, 1
store i32 %66, i32* %5
br label %6
67: ; preds = %6
ret void
}

LLVM IR (-O2):
@.str = [90 x i8] c"%08x: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
define void @dump(i8* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %43
4: ; preds = %2, %4
%5 = phi i32 [ %41, %4 ], [ 0, %2 ]
%6 = phi i8* [ %40, %4 ], [ %0, %2 ]
%7 = shl nsw i32 %5, 4
%8 = load i8, i8* %6
%9 = getelementptr inbounds i8, i8* %6, i64 1
%10 = load i8, i8* %9
%11 = getelementptr inbounds i8, i8* %6, i64 2
%12 = load i8, i8* %11
%13 = getelementptr inbounds i8, i8* %6, i64 3
%14 = load i8, i8* %13
%15 = getelementptr inbounds i8, i8* %6, i64 4
%16 = load i8, i8* %15
%17 = getelementptr inbounds i8, i8* %6, i64 5
%18 = load i8, i8* %17
%19 = getelementptr inbounds i8, i8* %6, i64 6
%20 = load i8, i8* %19
%21 = getelementptr inbounds i8, i8* %6, i64 7
%22 = load i8, i8* %21
%23 = getelementptr inbounds i8, i8* %6, i64 8
%24 = load i8, i8* %23
%25 = getelementptr inbounds i8, i8* %6, i64 9
%26 = load i8, i8* %25
%27 = getelementptr inbounds i8, i8* %6, i64 10
%28 = load i8, i8* %27
%29 = getelementptr inbounds i8, i8* %6, i64 11
%30 = load i8, i8* %29
%31 = getelementptr inbounds i8, i8* %6, i64 12
%32 = load i8, i8* %31
%33 = getelementptr inbounds i8, i8* %6, i64 13
%34 = load i8, i8* %33
%35 = getelementptr inbounds i8, i8* %6, i64 14
%36 = load i8, i8* %35
%37 = getelementptr inbounds i8, i8* %6, i64 15
%38 = load i8, i8* %37
%39 = tail call i32 @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str, i64 0, i64 0), i32 %7, i8 zeroext %8, i8 zeroext %10, i8 zeroext %12, i8 zeroext %14, i8 zeroext %16, i8 zeroext %18, i8 zeroext %20, i8 zeroext %22, i8 zeroext %24, i8 zeroext %26, i8 zeroext %28, i8 zeroext %30, i8 zeroext %32, i8 zeroext %34, i8 zeroext %36, i8 zeroext %38)
%40 = getelementptr inbounds i8, i8* %6, i64 16
%41 = add nuw nsw i32 %5, 1
%42 = icmp eq i32 %41, %1
br i1 %42, label %43, label %4
43: ; preds = %4, %2
ret void
}