#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*/ getc();
int /*<<< orphan*/ itoa(unsigned char, char *, int);
int /*<<< orphan*/ putc(char);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ screen_set_bgfg(int);
void phexDump(char *desc, void *addr, int len, int offset) {
  int i, j = 0;
  char buff[17], buff2[10];
  unsigned char *pc = (unsigned char *)addr;
  if (desc)
    puts(desc);
  puts(":");
  if (!len) {
    puts("  ZERO LENGTH\n");
    return;
  }
  if (len < 0) {
    puts("  NEGATIVE LENGTH\n");
    return;
  }
  for (i = 0; i < len; i++) {
    if ((i % 16) == 0) {
      if (i != 0)
        puts(buff);
      puts("\n");
      j++;
      if (j == 24) {
        putc(' ');
        screen_set_bgfg(0x70);
        puts("--MORE--");
        screen_set_bgfg(0x07);
        getc();
        puts("\b\b\b\b\b\b\b\b\b\b");
        j = 0;
      }
      itoa(i + offset, buff2, 16);
      puts(buff2);
      puts(": ");
    }
    itoa(pc[i], buff2, 16);
    puts(buff2);
    puts(" ");
    if ((pc[i] < 0x20) || (pc[i] > 0x7e))
      buff[i % 16] = '.';
    else
      buff[i % 16] = pc[i];
    buff[(i % 16) + 1] = '\0';
  }
  while ((i % 16) != 0) {
    puts("   ");
    i++;
  }
  puts("  ");
  puts(buff);
  puts("\n");
}


x86 assembly (clang, -O0):
<phexDump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1189 <phexDump+0x39>
mov    -0x8(%rbp),%rdi
call   1030 <puts@plt>
lea    0xe70(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,-0x14(%rbp)
jne    11b0 <phexDump+0x60>
lea    0xe5c(%rip),%rdi
call   1030 <puts@plt>
jmp    139c <phexDump+0x24c>
cmpl   $0x0,-0x14(%rbp)
jge    11cb <phexDump+0x7b>
lea    0xe50(%rip),%rdi
call   1030 <puts@plt>
jmp    139c <phexDump+0x24c>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1348 <phexDump+0x1f8>
mov    -0x1c(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1294 <phexDump+0x144>
cmpl   $0x0,-0x1c(%rbp)
je     1205 <phexDump+0xb5>
lea    -0x40(%rbp),%rdi
call   1030 <puts@plt>
lea    0xe16(%rip),%rdi
call   1030 <puts@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x18,-0x20(%rbp)
jne    1268 <phexDump+0x118>
mov    $0x20,%edi
call   1040 <putc@plt>
mov    $0x70,%edi
call   1050 <screen_set_bgfg@plt>
lea    0xde5(%rip),%rdi
call   1030 <puts@plt>
mov    $0x7,%edi
call   1050 <screen_set_bgfg@plt>
mov    $0x0,%al
call   1070 <getc@plt>
lea    0xdd1(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
add    -0x18(%rbp),%eax
lea    -0x4a(%rbp),%rsi
mov    $0x10,%edx
movzbl %al,%edi
call   1060 <itoa@plt>
lea    -0x4a(%rbp),%rdi
call   1030 <puts@plt>
lea    0xda9(%rip),%rdi
call   1030 <puts@plt>
mov    -0x58(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%al
lea    -0x4a(%rbp),%rsi
mov    $0x10,%edx
movzbl %al,%edi
call   1060 <itoa@plt>
lea    -0x4a(%rbp),%rdi
call   1030 <puts@plt>
lea    0xd7d(%rip),%rdi
call   1030 <puts@plt>
mov    -0x58(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jl     12ef <phexDump+0x19f>
mov    -0x58(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x7e,%eax
jle    1307 <phexDump+0x1b7>
mov    -0x1c(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
movslq %edx,%rax
movb   $0x2e,-0x40(%rbp,%rax,1)
jmp    1324 <phexDump+0x1d4>
mov    -0x58(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%cl
mov    -0x1c(%rbp),%eax
mov    $0x10,%esi
cltd
idiv   %esi
movslq %edx,%rax
mov    %cl,-0x40(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
movslq %edx,%rax
movb   $0x0,-0x40(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11d2 <phexDump+0x82>
jmp    134d <phexDump+0x1fd>
mov    -0x1c(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     137b <phexDump+0x22b>
lea    0xcd3(%rip),%rdi
call   1030 <puts@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    134d <phexDump+0x1fd>
lea    0xcba(%rip),%rdi
call   1030 <puts@plt>
lea    -0x40(%rbp),%rdi
call   1030 <puts@plt>
lea    0xc8b(%rip),%rdi
call   1030 <puts@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<phexDump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %rsi,%rbx
test   %rdi,%rdi
je     1171 <phexDump+0x21>
call   1030 <puts@plt>
lea    0xe88(%rip),%rdi
call   1030 <puts@plt>
test   %r15d,%r15d
je     132f <phexDump+0x1df>
js     1338 <phexDump+0x1e8>
lea    0xe8f(%rip),%rdi
call   1030 <puts@plt>
movzbl %r14b,%edi
lea    0x3e(%rsp),%rbp
mov    %rbp,%rsi
mov    $0x10,%edx
call   1060 <itoa@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
lea    0xe7b(%rip),%rdi
call   1030 <puts@plt>
movzbl (%rbx),%edi
mov    %rbp,%rsi
mov    $0x10,%edx
call   1060 <itoa@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
lea    0xe5c(%rip),%rdi
call   1030 <puts@plt>
movzbl (%rbx),%eax
lea    -0x7f(%rax),%ecx
cmp    $0xa1,%cl
mov    $0x2e,%ecx
cmovb  %ecx,%eax
mov    %al,0x10(%rsp)
movb   $0x0,0x11(%rsp)
mov    $0x1,%ebp
cmp    $0x1,%r15d
je     1359 <phexDump+0x209>
mov    %r15d,0xc(%rsp)
mov    %r15d,%ebp
mov    %r14d,%eax
mov    %rax,0x30(%rsp)
mov    $0x1,%r13d
mov    $0x1,%r15d
lea    0x3e(%rsp),%r12
jmp    12bd <phexDump+0x16d>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x30(%rsp),%rax
add    %r15d,%eax
movzbl %al,%edi
mov    %r12,%rsi
mov    $0x10,%edx
call   1060 <itoa@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
lea    0xdd1(%rip),%rdi
call   1030 <puts@plt>
movzbl (%rbx,%r15,1),%edi
mov    %r12,%rsi
mov    $0x10,%edx
call   1060 <itoa@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
lea    0xdb0(%rip),%rdi
call   1030 <puts@plt>
movzbl (%rbx,%r15,1),%eax
lea    -0x7f(%rax),%ecx
cmp    $0xa1,%cl
mov    $0x2e,%ecx
cmovb  %ecx,%eax
mov    %al,0x10(%rsp,%r14,1)
movb   $0x0,0x11(%rsp,%r14,1)
add    $0x1,%r15
cmp    %r15,%rbp
je     1352 <phexDump+0x202>
mov    %r15,%r14
and    $0xf,%r14
jne    126c <phexDump+0x11c>
lea    0x10(%rsp),%rdi
call   1030 <puts@plt>
lea    0xd4b(%rip),%rdi
call   1030 <puts@plt>
add    $0x1,%r13d
cmp    $0x18,%r13d
jne    1240 <phexDump+0xf0>
mov    $0x20,%edi
call   1040 <putc@plt>
mov    $0x70,%edi
call   1050 <screen_set_bgfg@plt>
lea    0xd1f(%rip),%rdi
call   1030 <puts@plt>
mov    $0x7,%edi
call   1050 <screen_set_bgfg@plt>
xor    %r13d,%r13d
xor    %eax,%eax
call   1070 <getc@plt>
lea    0xd08(%rip),%rdi
call   1030 <puts@plt>
jmp    1240 <phexDump+0xf0>
lea    0xccc(%rip),%rdi
jmp    133f <phexDump+0x1ef>
lea    0xcd2(%rip),%rdi
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>
testb  $0xf,0xc(%rsp)
je     1383 <phexDump+0x233>
add    $0x1,%ebp
lea    0xcd8(%rip),%r14
mov    %ebp,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
call   1030 <puts@plt>
add    $0x1,%ebx
test   $0xf,%bpl
mov    %ebx,%ebp
jne    1370 <phexDump+0x220>
lea    0xcb2(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rdi
call   1030 <puts@plt>
lea    0xc82(%rip),%rdi
call   1030 <puts@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c":\00"
@.str.1 = [15 x i8] c" ZERO LENGTH\0A\00"
@.str.2 = [19 x i8] c" NEGATIVE LENGTH\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [9 x i8] c"--MORE--\00"
@.str.5 = [11 x i8] c"\08\08\08\08\08\08\08\08\08\08\00"
@.str.6 = [3 x i8] c": \00"
@.str.7 = [2 x i8] c" \00"
@.str.8 = [4 x i8] c" \00"
@.str.9 = [3 x i8] c" \00"
define void @phexDump(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [17 x i8]
%12 = alloca [10 x i8]
%13 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
store i32 0, i32* %10
%14 = load i8*, i8** %6
store i8* %14, i8** %13
%15 = load i8*, i8** %5
%16 = icmp ne i8* %15, null
br i1 %16, label %17, label %20
17: ; preds = %4
%18 = load i8*, i8** %5
%19 = call i32 @puts(i8* %18)
br label %20
20: ; preds = %17, %4
%21 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%22 = load i32, i32* %7
%23 = icmp ne i32 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %20
%25 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %133
26: ; preds = %20
%27 = load i32, i32* %7
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %133
31: ; preds = %26
store i32 0, i32* %9
br label %32
32: ; preds = %116, %31
%33 = load i32, i32* %9
%34 = load i32, i32* %7
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %119
36: ; preds = %32
%37 = load i32, i32* %9
%38 = srem i32 %37, 16
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %69
40: ; preds = %36
%41 = load i32, i32* %9
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 0
%45 = call i32 @puts(i8* %44)
br label %46
46: ; preds = %43, %40
%47 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%48 = load i32, i32* %10
%49 = add nsw i32 %48, 1
store i32 %49, i32* %10
%50 = load i32, i32* %10
%51 = icmp eq i32 %50, 24
br i1 %51, label %52, label %59
52: ; preds = %46
%53 = call i32 @putc(i8 signext 32)
%54 = call i32 @screen_set_bgfg(i32 112)
%55 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%56 = call i32 @screen_set_bgfg(i32 7)
%57 = call i32 (...) @getc()
%58 = call i32 @puts(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %10
br label %59
59: ; preds = %52, %46
%60 = load i32, i32* %9
%61 = load i32, i32* %8
%62 = add nsw i32 %60, %61
%63 = trunc i32 %62 to i8
%64 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%65 = call i32 @itoa(i8 zeroext %63, i8* %64, i32 16)
%66 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%67 = call i32 @puts(i8* %66)
%68 = call i32 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %69
69: ; preds = %59, %36
%70 = load i8*, i8** %13
%71 = load i32, i32* %9
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, i8* %70, i64 %72
%74 = load i8, i8* %73
%75 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%76 = call i32 @itoa(i8 zeroext %74, i8* %75, i32 16)
%77 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%78 = call i32 @puts(i8* %77)
%79 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%80 = load i8*, i8** %13
%81 = load i32, i32* %9
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, i8* %80, i64 %82
%84 = load i8, i8* %83
%85 = zext i8 %84 to i32
%86 = icmp slt i32 %85, 32
br i1 %86, label %95, label %87
87: ; preds = %69
%88 = load i8*, i8** %13
%89 = load i32, i32* %9
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, i8* %88, i64 %90
%92 = load i8, i8* %91
%93 = zext i8 %92 to i32
%94 = icmp sgt i32 %93, 126
br i1 %94, label %95, label %100
95: ; preds = %87, %69
%96 = load i32, i32* %9
%97 = srem i32 %96, 16
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 %98
store i8 46, i8* %99
br label %110
100: ; preds = %87
%101 = load i8*, i8** %13
%102 = load i32, i32* %9
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, i8* %101, i64 %103
%105 = load i8, i8* %104
%106 = load i32, i32* %9
%107 = srem i32 %106, 16
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 %108
store i8 %105, i8* %109
br label %110
110: ; preds = %100, %95
%111 = load i32, i32* %9
%112 = srem i32 %111, 16
%113 = add nsw i32 %112, 1
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 %114
store i8 0, i8* %115
br label %116
116: ; preds = %110
%117 = load i32, i32* %9
%118 = add nsw i32 %117, 1
store i32 %118, i32* %9
br label %32
119: ; preds = %32
br label %120
120: ; preds = %124, %119
%121 = load i32, i32* %9
%122 = srem i32 %121, 16
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %128
124: ; preds = %120
%125 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%126 = load i32, i32* %9
%127 = add nsw i32 %126, 1
store i32 %127, i32* %9
br label %120
128: ; preds = %120
%129 = call i32 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%130 = getelementptr inbounds [17 x i8], [17 x i8]* %11, i64 0, i64 0
%131 = call i32 @puts(i8* %130)
%132 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %133
133: ; preds = %128, %29, %24
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c":\00"
@.str.1 = [15 x i8] c" ZERO LENGTH\0A\00"
@.str.2 = [19 x i8] c" NEGATIVE LENGTH\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [9 x i8] c"--MORE--\00"
@.str.5 = [11 x i8] c"\08\08\08\08\08\08\08\08\08\08\00"
@.str.6 = [3 x i8] c": \00"
@.str.7 = [2 x i8] c" \00"
@.str.8 = [4 x i8] c" \00"
@.str.9 = [3 x i8] c" \00"
define void @phexDump(i8* %0, i8* nocapture %1, i32 %2, i32 %3) {
%5 = alloca [17 x i8]
%6 = alloca [10 x i8]
%7 = getelementptr inbounds [17 x i8], [17 x i8]* %5, i64 0, i64 0
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %6, i64 0, i64 0
%9 = icmp eq i8* %0, null
br i1 %9, label %12, label %10
10: ; preds = %4
%11 = tail call i32 @puts(i8* %0)
br label %12
12: ; preds = %10, %4
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = icmp eq i32 %2, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %96
17: ; preds = %12
%18 = icmp slt i32 %2, 0
br i1 %18, label %36, label %19
19: ; preds = %17
%20 = zext i32 %2 to i64
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%22 = trunc i32 %3 to i8
%23 = call i32 @itoa(i8 zeroext %22, i8* %8, i32 16)
%24 = call i32 @puts(i8* %8)
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%26 = load i8, i8* %1
%27 = call i32 @itoa(i8 zeroext %26, i8* %8, i32 16)
%28 = call i32 @puts(i8* %8)
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%30 = load i8, i8* %1
%31 = add i8 %30, -127
%32 = icmp ult i8 %31, -95
%33 = select i1 %32, i8 46, i8 %30
store i8 %33, i8* %7
%34 = getelementptr inbounds [17 x i8], [17 x i8]* %5, i64 0, i64 1
store i8 0, i8* %34
%35 = icmp eq i32 %2, 1
br i1 %35, label %41, label %43
36: ; preds = %17
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
br label %96
38: ; preds = %68
%39 = and i32 %2, 15
%40 = icmp eq i32 %39, 0
br i1 %40, label %92, label %41
41: ; preds = %19, %38
%42 = phi i32 [ 1, %19 ], [ %2, %38 ]
br label %86
43: ; preds = %19, %68
%44 = phi i64 [ %84, %68 ], [ 1, %19 ]
%45 = phi i32 [ %69, %68 ], [ 1, %19 ]
%46 = trunc i64 %44 to i32
%47 = and i32 %46, 15
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %68
49: ; preds = %43
%50 = call i32 @puts(i8* %7)
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%52 = add nsw i32 %45, 1
%53 = icmp eq i32 %52, 24
br i1 %53, label %54, label %61
54: ; preds = %49
%55 = call i32 @putc(i8 signext 32)
%56 = call i32 @screen_set_bgfg(i32 112)
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%58 = call i32 @screen_set_bgfg(i32 7)
%59 = call i32 (...) @getc()
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
br label %61
61: ; preds = %54, %49
%62 = phi i32 [ 0, %54 ], [ %52, %49 ]
%63 = add nsw i32 %46, %3
%64 = trunc i32 %63 to i8
%65 = call i32 @itoa(i8 zeroext %64, i8* %8, i32 16)
%66 = call i32 @puts(i8* %8)
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %68
68: ; preds = %61, %43
%69 = phi i32 [ %62, %61 ], [ %45, %43 ]
%70 = getelementptr inbounds i8, i8* %1, i64 %44
%71 = load i8, i8* %70
%72 = call i32 @itoa(i8 zeroext %71, i8* %8, i32 16)
%73 = call i32 @puts(i8* %8)
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%75 = load i8, i8* %70
%76 = add i8 %75, -127
%77 = icmp ult i8 %76, -95
%78 = zext i32 %47 to i64
%79 = getelementptr inbounds [17 x i8], [17 x i8]* %5, i64 0, i64 %78
%80 = select i1 %77, i8 46, i8 %75
store i8 %80, i8* %79
%81 = add nuw nsw i32 %47, 1
%82 = zext i32 %81 to i64
%83 = getelementptr inbounds [17 x i8], [17 x i8]* %5, i64 0, i64 %82
store i8 0, i8* %83
%84 = add nuw nsw i64 %44, 1
%85 = icmp eq i64 %84, %20
br i1 %85, label %38, label %43
86: ; preds = %41, %86
%87 = phi i32 [ %89, %86 ], [ %42, %41 ]
%88 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%89 = add nuw nsw i32 %87, 1
%90 = and i32 %89, 15
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %86
92: ; preds = %86, %38
%93 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%94 = call i32 @puts(i8* %7)
%95 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %96
96: ; preds = %92, %36, %15
ret void
}