#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*/ feof(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int, int);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/);
int fscanf(int /*<<< orphan*/, char *, int *, int *, int *, int *, int *, int *,
           int *, int *, int *, int *, int *, int *, int *, int *, int *, int *,
           int *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  int buf[16];
  int off, cnt, i;
  while (!feof(stdin)) {
    cnt = fscanf(stdin,
                 "    %08x: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x "
                 "%02x %02x %02x %02x %02x %02x\n",
                 &off, buf, buf + 1, buf + 2, buf + 3, buf + 4, buf + 5,
                 buf + 6, buf + 7, buf + 8, buf + 9, buf + 10, buf + 11,
                 buf + 12, buf + 13, buf + 14, buf + 15);
    if (cnt <= 1)
      break;
    cnt--;
    fprintf(stderr, "%s: processing offset %08x (l:%d)...", argv[0], off, cnt);
    for (i = 0; i < cnt; i++)
      fputc(buf[i], stdout);
    fputc('\n', stderr);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
movl   $0x0,-0x2c(%rbp)
mov    %edi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    0x2e7f(%rip),%rax
mov    (%rax),%edi
call   1060 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1185 <main+0x45>
jmp    1357 <main+0x217>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
lea    -0x80(%rbp),%rcx
lea    -0x80(%rbp),%r8
add    $0x4,%r8
lea    -0x80(%rbp),%r9
add    $0x8,%r9
lea    -0x80(%rbp),%rax
add    $0xc,%rax
lea    -0x80(%rbp),%rdx
add    $0x10,%rdx
mov    %rdx,-0xb8(%rbp)
lea    -0x80(%rbp),%rdx
add    $0x14,%rdx
mov    %rdx,-0xb0(%rbp)
lea    -0x80(%rbp),%rdx
add    $0x18,%rdx
mov    %rdx,-0xa8(%rbp)
lea    -0x80(%rbp),%rdx
add    $0x1c,%rdx
mov    %rdx,-0xa0(%rbp)
lea    -0x80(%rbp),%r13
add    $0x20,%r13
lea    -0x80(%rbp),%r12
add    $0x24,%r12
lea    -0x80(%rbp),%r15
add    $0x28,%r15
lea    -0x80(%rbp),%r14
add    $0x2c,%r14
lea    -0x80(%rbp),%rbx
add    $0x30,%rbx
lea    -0x80(%rbp),%r11
add    $0x34,%r11
lea    -0x80(%rbp),%r10
add    $0x38,%r10
lea    -0x80(%rbp),%rdx
add    $0x3c,%rdx
mov    %rdx,-0x98(%rbp)
lea    0xdcc(%rip),%rsi
lea    -0x84(%rbp),%rdx
mov    %rax,(%rsp)
mov    -0xb8(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0xb0(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0xa8(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0xa0(%rbp),%rax
mov    %rax,0x20(%rsp)
mov    -0x98(%rbp),%rax
mov    %r13,0x28(%rsp)
mov    %r12,0x30(%rsp)
mov    %r15,0x38(%rsp)
mov    %r14,0x40(%rsp)
mov    %rbx,0x48(%rsp)
mov    %r11,0x50(%rsp)
mov    %r10,0x58(%rsp)
mov    %rax,0x60(%rsp)
call   1030 <fscanf@plt>
mov    %eax,-0x88(%rbp)
cmpl   $0x1,-0x88(%rbp)
jg     12bb <main+0x17b>
jmp    1357 <main+0x217>
mov    -0x88(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x88(%rbp)
mov    0x2d07(%rip),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%rax
mov    (%rax),%rdx
mov    -0x84(%rbp),%ecx
mov    -0x88(%rbp),%r8d
lea    0xd6d(%rip),%rsi
call   1050 <fprintf@plt>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0x88(%rbp),%eax
jge    133f <main+0x1ff>
movslq -0x8c(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%eax
mov    0x2caf(%rip),%rcx
mov    (%rcx),%esi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    12fd <main+0x1bd>
mov    0x2c92(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edi
call   1040 <fputc@plt>
jmp    1162 <main+0x22>
xor    %eax,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rsi,%rbx
mov    0x2e90(%rip),%r14
mov    (%r14),%edi
call   1060 <feof@plt>
test   %eax,%eax
jne    1265 <main+0x125>
mov    0x2e69(%rip),%r12
mov    0x2e5a(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
mov    (%r14),%edi
sub    $0x8,%rsp
lea    0xe72(%rip),%rsi
lea    0x14(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0x1c(%rsp),%r8
lea    0x20(%rsp),%r9
lea    0x54(%rsp),%rax
push   %rax
lea    0x58(%rsp),%rax
push   %rax
lea    0x5c(%rsp),%rax
push   %rax
lea    0x60(%rsp),%rax
push   %rax
lea    0x64(%rsp),%rax
push   %rax
lea    0x68(%rsp),%rax
push   %rax
lea    0x6c(%rsp),%rax
push   %rax
lea    0x70(%rsp),%rax
push   %rax
lea    0x74(%rsp),%rax
push   %rax
lea    0x78(%rsp),%rax
push   %rax
lea    0x7c(%rsp),%rax
push   %rax
lea    0x80(%rsp),%rax
push   %rax
lea    0x84(%rsp),%rax
push   %rax
call   1030 <fscanf@plt>
add    $0x70,%rsp
cmp    $0x2,%eax
jl     1265 <main+0x125>
mov    %eax,%r15d
add    $0xffffffff,%r15d
mov    (%r12),%edi
mov    (%rbx),%rdx
mov    0xc(%rsp),%ecx
lea    0xe3e(%rip),%rsi
mov    %r15d,%r8d
call   1050 <fprintf@plt>
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movsbl 0x10(%rsp,%rbp,4),%edi
mov    0x0(%r13),%esi
call   1040 <fputc@plt>
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1230 <main+0xf0>
mov    (%r12),%esi
mov    $0xa,%edi
call   1040 <fputc@plt>
mov    (%r14),%edi
call   1060 <feof@plt>
test   %eax,%eax
je     1180 <main+0x40>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [91 x i8] c" %08x: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
@stderr = global i32 0
@.str.1 = [37 x i8] c"%s: processing offset %08x (l:%d)...\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [16 x i32]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %10
10: ; preds = %77, %2
%11 = load i32, i32* @stdin
%12 = call i32 @feof(i32 %11)
%13 = icmp ne i32 %12, 0
%14 = xor i1 %13, true
br i1 %14, label %15, label %80
15: ; preds = %10
%16 = load i32, i32* @stdin
%17 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%18 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%19 = getelementptr inbounds i32, i32* %18, i64 1
%20 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%21 = getelementptr inbounds i32, i32* %20, i64 2
%22 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%23 = getelementptr inbounds i32, i32* %22, i64 3
%24 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%25 = getelementptr inbounds i32, i32* %24, i64 4
%26 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%27 = getelementptr inbounds i32, i32* %26, i64 5
%28 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%29 = getelementptr inbounds i32, i32* %28, i64 6
%30 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%31 = getelementptr inbounds i32, i32* %30, i64 7
%32 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%33 = getelementptr inbounds i32, i32* %32, i64 8
%34 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%35 = getelementptr inbounds i32, i32* %34, i64 9
%36 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%37 = getelementptr inbounds i32, i32* %36, i64 10
%38 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%39 = getelementptr inbounds i32, i32* %38, i64 11
%40 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%41 = getelementptr inbounds i32, i32* %40, i64 12
%42 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%43 = getelementptr inbounds i32, i32* %42, i64 13
%44 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%45 = getelementptr inbounds i32, i32* %44, i64 14
%46 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%47 = getelementptr inbounds i32, i32* %46, i64 15
%48 = call i32 @fscanf(i32 %16, i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str, i64 0, i64 0), i32* %7, i32* %17, i32* %19, i32* %21, i32* %23, i32* %25, i32* %27, i32* %29, i32* %31, i32* %33, i32* %35, i32* %37, i32* %39, i32* %41, i32* %43, i32* %45, i32* %47)
store i32 %48, i32* %8
%49 = load i32, i32* %8
%50 = icmp sle i32 %49, 1
br i1 %50, label %51, label %52
51: ; preds = %15
br label %80
52: ; preds = %15
%53 = load i32, i32* %8
%54 = add nsw i32 %53, -1
store i32 %54, i32* %8
%55 = load i32, i32* @stderr
%56 = load i8**, i8*** %5
%57 = getelementptr inbounds i8*, i8** %56, i64 0
%58 = load i8*, i8** %57
%59 = load i32, i32* %7
%60 = load i32, i32* %8
%61 = call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* %58, i32 %59, i32 %60)
store i32 0, i32* %9
br label %62
62: ; preds = %74, %52
%63 = load i32, i32* %9
%64 = load i32, i32* %8
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %77
66: ; preds = %62
%67 = load i32, i32* %9
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 %68
%70 = load i32, i32* %69
%71 = trunc i32 %70 to i8
%72 = load i32, i32* @stdout
%73 = call i32 @fputc(i8 signext %71, i32 %72)
br label %74
74: ; preds = %66
%75 = load i32, i32* %9
%76 = add nsw i32 %75, 1
store i32 %76, i32* %9
br label %62
77: ; preds = %62
%78 = load i32, i32* @stderr
%79 = call i32 @fputc(i8 signext 10, i32 %78)
br label %10
80: ; preds = %51, %10
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [91 x i8] c" %08x: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\0A\00"
@stderr = global i32 0
@.str.1 = [37 x i8] c"%s: processing offset %08x (l:%d)...\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [16 x i32]
%4 = alloca i32
%5 = bitcast [16 x i32]* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = load i32, i32* @stdin
%8 = call i32 @feof(i32 %7)
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %53
10: ; preds = %2
%11 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 0
%12 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 1
%13 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 2
%14 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 3
%15 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 4
%16 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 5
%17 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 6
%18 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 7
%19 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 8
%20 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 9
%21 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 10
%22 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 11
%23 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 12
%24 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 13
%25 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 14
%26 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 15
br label %27
27: ; preds = %10, %47
%28 = load i32, i32* @stdin
%29 = call i32 @fscanf(i32 %28, i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str, i64 0, i64 0), i32* %4, i32* %11, i32* %12, i32* %13, i32* %14, i32* %15, i32* %16, i32* %17, i32* %18, i32* %19, i32* %20, i32* %21, i32* %22, i32* %23, i32* %24, i32* %25, i32* %26)
%30 = icmp slt i32 %29, 2
br i1 %30, label %53, label %31
31: ; preds = %27
%32 = add nsw i32 %29, -1
%33 = load i32, i32* @stderr
%34 = load i8*, i8** %1
%35 = load i32, i32* %4
%36 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* %34, i32 %35, i32 %32)
%37 = zext i32 %32 to i64
br label %38
38: ; preds = %31, %38
%39 = phi i64 [ 0, %31 ], [ %45, %38 ]
%40 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 %39
%41 = load i32, i32* %40
%42 = trunc i32 %41 to i8
%43 = load i32, i32* @stdout
%44 = call i32 @fputc(i8 signext %42, i32 %43)
%45 = add nuw nsw i64 %39, 1
%46 = icmp eq i64 %45, %37
br i1 %46, label %47, label %38
47: ; preds = %38
%48 = load i32, i32* @stderr
%49 = call i32 @fputc(i8 signext 10, i32 %48)
%50 = load i32, i32* @stdin
%51 = call i32 @feof(i32 %50)
%52 = icmp eq i32 %51, 0
br i1 %52, label %27, label %53
53: ; preds = %47, %27, %2
ret i32 0
}