#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 */
typedef int /*<<< orphan*/ buff;

/* Variables and functions */
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, unsigned char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char const);
int /*<<< orphan*/ strcat(char *, char *);
void hexdump(unsigned char *data, size_t length, void *addr) {
  size_t dp = 0, p = 0;
  const char trans[] =
      "................................ !\"#$%&'()*+,-./0123456789"
      ":;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklm"
      "nopqrstuvwxyz{|}~...................................."
      "....................................................."
      "........................................";
  char buff[0x100], byte[0x10];
  memset(buff, 0, sizeof(buff));
  for (dp = 1; dp <= length; dp++) {
    sprintf(byte, "%02x ", data[dp - 1]);
    strcat(buff, byte);
    if ((dp % 8) == 0) {
      strcat(buff, " ");
    }
    if ((dp % 16) == 0) {
      strcat(buff, "| ");
      p = dp;
      for (dp -= 16; dp < p; dp++) {
        sprintf(byte, "%c", trans[data[dp]]);
        strcat(buff, byte);
      }
      printf("%p: %s\n", (unsigned char *)addr + dp - 16, buff);
      memset(buff, 0, sizeof(buff));
    }
  }
  if (length % 16 != 0) {
    p = dp = 16 - (length % 16);
    for (dp = p; dp > 0; dp--) {
      strcat(buff, "   ");
      if (((dp % 8) == 0) && (p != 8)) {
        strcat(buff, " ");
      }
    }
    strcat(buff, " | ");
    for (dp = length - 16 - p; dp < length; dp++) {
      sprintf(byte, "%c", trans[data[dp]]);
      strcat(buff, byte);
    }
    printf("%p: %s\n", (unsigned char *)addr + length - (length % 16), buff);
  }
}


x86 assembly (clang, -O0):
<hexdump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
lea    -0x130(%rbp),%rdi
lea    0xe7b(%rip),%rsi
mov    $0x101,%edx
call   1050 <memcpy@plt>
lea    -0x230(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1040 <memset@plt>
movq   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x10(%rbp),%rax
ja     12ed <hexdump+0x19d>
lea    -0x240(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
sub    $0x1,%rcx
lea    0xf2f(%rip),%rsi
movsbl (%rax,%rcx,1),%edx
call   1070 <sprintf@plt>
lea    -0x230(%rbp),%rdi
lea    -0x240(%rbp),%rsi
call   1060 <strcat@plt>
mov    -0x20(%rbp),%rax
and    $0x7,%rax
cmp    $0x0,%rax
jne    1213 <hexdump+0xc3>
lea    -0x230(%rbp),%rdi
lea    0xf06(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x20(%rbp),%rax
and    $0xf,%rax
cmp    $0x0,%rax
jne    12d7 <hexdump+0x187>
lea    -0x230(%rbp),%rdi
lea    0xee4(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
sub    $0x10,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    12a5 <hexdump+0x155>
lea    -0x240(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
lea    0xe93(%rip),%rsi
movsbl -0x130(%rbp,%rax,1),%edx
ff
call   1070 <sprintf@plt>
lea    -0x230(%rbp),%rdi
lea    -0x240(%rbp),%rsi
call   1060 <strcat@plt>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    124c <hexdump+0xfc>
mov    -0x18(%rbp),%rsi
add    -0x20(%rbp),%rsi
add    $0xfffffffffffffff0,%rsi
lea    -0x230(%rbp),%rdx
lea    0xe4b(%rip),%rdi
call   1030 <printf@plt>
lea    -0x230(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1040 <memset@plt>
jmp    12dc <hexdump+0x18c>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    11aa <hexdump+0x5a>
mov    -0x10(%rbp),%rax
and    $0xf,%rax
cmp    $0x0,%rax
je     142a <hexdump+0x2da>
mov    -0x10(%rbp),%rcx
and    $0xf,%rcx
mov    $0x10,%eax
sub    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jbe    1383 <hexdump+0x233>
lea    -0x230(%rbp),%rdi
lea    0xdda(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x20(%rbp),%rax
and    $0x7,%rax
cmp    $0x0,%rax
jne    136d <hexdump+0x21d>
cmpq   $0x8,-0x28(%rbp)
je     136d <hexdump+0x21d>
lea    -0x230(%rbp),%rdi
lea    0xdac(%rip),%rsi
call   1060 <strcat@plt>
jmp    1372 <hexdump+0x222>
mov    -0x20(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x20(%rbp)
jmp    131f <hexdump+0x1cf>
lea    -0x230(%rbp),%rdi
lea    0xd85(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x10(%rbp),%rax
sub    $0x10,%rax
sub    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    13ff <hexdump+0x2af>
lea    -0x240(%rbp),%rdi
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
lea    0xd39(%rip),%rsi
movsbl -0x130(%rbp,%rax,1),%edx
ff
call   1070 <sprintf@plt>
lea    -0x230(%rbp),%rdi
lea    -0x240(%rbp),%rsi
call   1060 <strcat@plt>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    13a6 <hexdump+0x256>
mov    -0x18(%rbp),%rsi
add    -0x10(%rbp),%rsi
mov    -0x10(%rbp),%rcx
and    $0xf,%rcx
xor    %eax,%eax
sub    %rcx,%rax
add    %rax,%rsi
lea    -0x230(%rbp),%rdx
lea    0xce5(%rip),%rdi
call   1030 <printf@plt>
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hexdump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
mov    %rdx,0x20(%rsp)
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0x30(%rsp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1040 <memset@plt>
test   %rbx,%rbx
je     1361 <hexdump+0x221>
mov    0x20(%rsp),%rax
add    $0xfffffffffffffff0,%rax
mov    %rax,0x28(%rsp)
mov    $0x1,%r15d
lea    0x10(%rsp),%r13
lea    0x30(%rsp),%rbp
lea    0xe65(%rip),%r12
mov    %rbx,0x8(%rsp)
jmp    11ec <hexdump+0xac>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x28(%rsp),%rax
lea    (%rax,%rbx,1),%rsi
lea    0xf47(%rip),%rdi
mov    %rbp,%rdx
call   1030 <printf@plt>
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1040 <memset@plt>
mov    %rbx,%r15
mov    0x8(%rsp),%rbx
add    $0x1,%r15
cmp    %rbx,%r15
ja     128c <hexdump+0x14c>
movsbl -0x1(%r15,%r14,1),%edx
mov    %r13,%rdi
lea    0xf05(%rip),%rsi
call   1060 <sprintf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <strcat@plt>
test   $0x7,%r15b
je     1220 <hexdump+0xe0>
test   $0xf,%r15b
jne    11df <hexdump+0x9f>
jmp    1235 <hexdump+0xf5>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
lea    0xee7(%rip),%rsi
call   1050 <strcat@plt>
test   $0xf,%r15b
jne    11df <hexdump+0x9f>
mov    %rbp,%rdi
lea    0xed5(%rip),%rsi
call   1050 <strcat@plt>
lea    -0x10(%r15),%rbx
cmp    $0x10,%r15
jb     11b0 <hexdump+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl (%r14,%rbx,1),%eax
movzbl (%rax,%r12,1),%eax
mov    %al,0x10(%rsp)
movb   $0x0,0x11(%rsp)
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <strcat@plt>
add    $0x1,%rbx
cmp    %r15,%rbx
jb     1260 <hexdump+0x120>
jmp    11b0 <hexdump+0x70>
mov    %rbx,%r15
and    $0xf,%r15
je     1361 <hexdump+0x221>
mov    %rbx,%r13
or     $0xfffffffffffffff0,%r13
mov    $0x10,%ebx
sub    %r15,%rbx
lea    0x30(%rsp),%rbp
jmp    12b6 <hexdump+0x176>
nop
add    $0xffffffffffffffff,%rbx
je     12e6 <hexdump+0x1a6>
mov    %rbp,%rdi
lea    0xe4f(%rip),%rsi
call   1050 <strcat@plt>
cmp    $0x8,%r15
je     12b0 <hexdump+0x170>
mov    %ebx,%eax
and    $0x7,%eax
test   %rax,%rax
jne    12b0 <hexdump+0x170>
mov    %rbp,%rdi
lea    0xe32(%rip),%rsi
call   1050 <strcat@plt>
jmp    12b0 <hexdump+0x170>
lea    0xe26(%rip),%rsi
lea    0x30(%rsp),%rdi
call   1050 <strcat@plt>
mov    0x8(%rsp),%rcx
lea    (%rcx,%r13,1),%rax
add    $0xfffffffffffffff0,%rax
cmp    %rcx,%rax
jae    1343 <hexdump+0x203>
add    $0xfffffffffffffff0,%r13
add    0x8(%rsp),%r14
lea    0x30(%rsp),%rbx
lea    0x10(%rsp),%rbp
nopl   0x0(%rax)
movzbl (%r14,%r13,1),%eax
movzbl (%rax,%r12,1),%eax
mov    %al,0x10(%rsp)
movb   $0x0,0x11(%rsp)
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <strcat@plt>
inc    %r13
jne    1320 <hexdump+0x1e0>
mov    0x20(%rsp),%rsi
add    0x8(%rsp),%rsi
sub    %r15,%rsi
lea    0xdb0(%rip),%rdi
lea    0x30(%rsp),%rdx
call   1030 <printf@plt>
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.hexdump.trans = [257 x i8] c"................................ !\22#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~.................................................................................................................................\00"
@.str = [6 x i8] c"%02x \00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [3 x i8] c"| \00"
@.str.3 = [3 x i8] c"%c\00"
@.str.4 = [8 x i8] c"%p: %s\0A\00"
@.str.5 = [4 x i8] c" \00"
@.str.6 = [4 x i8] c" | \00"
define void @hexdump(i8* %0, i64 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i64
%9 = alloca [257 x i8]
%10 = alloca [256 x i8]
%11 = alloca [16 x i8]
store i8* %0, i8** %4
store i64 %1, i64* %5
store i8* %2, i8** %6
store i64 0, i64* %7
store i64 0, i64* %8
%12 = bitcast [257 x i8]* %9 to i8*
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%14 = call i32 @memset(i8* %13, i32 0, i32 256)
store i64 1, i64* %7
br label %15
15: ; preds = %76, %3
%16 = load i64, i64* %7
%17 = load i64, i64* %5
%18 = icmp ule i64 %16, %17
br i1 %18, label %19, label %79
19: ; preds = %15
%20 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%21 = load i8*, i8** %4
%22 = load i64, i64* %7
%23 = sub i64 %22, 1
%24 = getelementptr inbounds i8, i8* %21, i64 %23
%25 = load i8, i8* %24
%26 = call i32 @sprintf(i8* %20, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8 signext %25)
%27 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%29 = call i32 @strcat(i8* %27, i8* %28)
%30 = load i64, i64* %7
%31 = urem i64 %30, 8
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %19
%34 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%35 = call i32 @strcat(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %36
36: ; preds = %33, %19
%37 = load i64, i64* %7
%38 = urem i64 %37, 16
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %75
40: ; preds = %36
%41 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%42 = call i32 @strcat(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%43 = load i64, i64* %7
store i64 %43, i64* %8
%44 = load i64, i64* %7
%45 = sub i64 %44, 16
store i64 %45, i64* %7
br label %46
46: ; preds = %63, %40
%47 = load i64, i64* %7
%48 = load i64, i64* %8
%49 = icmp ult i64 %47, %48
br i1 %49, label %50, label %66
50: ; preds = %46
%51 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%52 = load i8*, i8** %4
%53 = load i64, i64* %7
%54 = getelementptr inbounds i8, i8* %52, i64 %53
%55 = load i8, i8* %54
%56 = zext i8 %55 to i64
%57 = getelementptr inbounds [257 x i8], [257 x i8]* %9, i64 0, i64 %56
%58 = load i8, i8* %57
%59 = call i32 @sprintf(i8* %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8 signext %58)
%60 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%61 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%62 = call i32 @strcat(i8* %60, i8* %61)
br label %63
63: ; preds = %50
%64 = load i64, i64* %7
%65 = add i64 %64, 1
store i64 %65, i64* %7
br label %46
66: ; preds = %46
%67 = load i8*, i8** %6
%68 = load i64, i64* %7
%69 = getelementptr inbounds i8, i8* %67, i64 %68
%70 = getelementptr inbounds i8, i8* %69, i64 -16
%71 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%72 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %70, i8* %71)
%73 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%74 = call i32 @memset(i8* %73, i32 0, i32 256)
br label %75
75: ; preds = %66, %36
br label %76
76: ; preds = %75
%77 = load i64, i64* %7
%78 = add i64 %77, 1
store i64 %78, i64* %7
br label %15
79: ; preds = %15
%80 = load i64, i64* %5
%81 = urem i64 %80, 16
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %144
83: ; preds = %79
%84 = load i64, i64* %5
%85 = urem i64 %84, 16
%86 = sub i64 16, %85
store i64 %86, i64* %7
store i64 %86, i64* %8
%87 = load i64, i64* %8
store i64 %87, i64* %7
br label %88
88: ; preds = %104, %83
%89 = load i64, i64* %7
%90 = icmp ugt i64 %89, 0
br i1 %90, label %91, label %107
91: ; preds = %88
%92 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%93 = call i32 @strcat(i8* %92, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%94 = load i64, i64* %7
%95 = urem i64 %94, 8
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %103
97: ; preds = %91
%98 = load i64, i64* %8
%99 = icmp ne i64 %98, 8
br i1 %99, label %100, label %103
100: ; preds = %97
%101 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%102 = call i32 @strcat(i8* %101, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %103
103: ; preds = %100, %97, %91
br label %104
104: ; preds = %103
%105 = load i64, i64* %7
%106 = add i64 %105, -1
store i64 %106, i64* %7
br label %88
107: ; preds = %88
%108 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%109 = call i32 @strcat(i8* %108, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%110 = load i64, i64* %5
%111 = sub i64 %110, 16
%112 = load i64, i64* %8
%113 = sub i64 %111, %112
store i64 %113, i64* %7
br label %114
114: ; preds = %131, %107
%115 = load i64, i64* %7
%116 = load i64, i64* %5
%117 = icmp ult i64 %115, %116
br i1 %117, label %118, label %134
118: ; preds = %114
%119 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%120 = load i8*, i8** %4
%121 = load i64, i64* %7
%122 = getelementptr inbounds i8, i8* %120, i64 %121
%123 = load i8, i8* %122
%124 = zext i8 %123 to i64
%125 = getelementptr inbounds [257 x i8], [257 x i8]* %9, i64 0, i64 %124
%126 = load i8, i8* %125
%127 = call i32 @sprintf(i8* %119, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8 signext %126)
%128 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%129 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%130 = call i32 @strcat(i8* %128, i8* %129)
br label %131
131: ; preds = %118
%132 = load i64, i64* %7
%133 = add i64 %132, 1
store i64 %133, i64* %7
br label %114
134: ; preds = %114
%135 = load i8*, i8** %6
%136 = load i64, i64* %5
%137 = getelementptr inbounds i8, i8* %135, i64 %136
%138 = load i64, i64* %5
%139 = urem i64 %138, 16
%140 = sub i64 0, %139
%141 = getelementptr inbounds i8, i8* %137, i64 %140
%142 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%143 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %141, i8* %142)
br label %144
144: ; preds = %134, %79
ret void
}

LLVM IR (-O2):
@__const.hexdump.trans = [257 x i8] c"................................ !\22#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~.................................................................................................................................\00"
@.str = [6 x i8] c"%02x \00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [3 x i8] c"| \00"
@.str.4 = [8 x i8] c"%p: %s\0A\00"
@.str.5 = [4 x i8] c" \00"
@.str.6 = [4 x i8] c" | \00"
define void @hexdump(i8* nocapture %0, i64 %1, i8* %2) {
%4 = alloca [256 x i8]
%5 = alloca [16 x i8]
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%7 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 0
%8 = call i32 @memset(i8* %6, i32 0, i32 256)
%9 = icmp eq i64 %1, 0
br i1 %9, label %90, label %10
10: ; preds = %3
%11 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 1
%12 = getelementptr inbounds i8, i8* %2, i64 -16
br label %13
13: ; preds = %10, %46
%14 = phi i64 [ 1, %10 ], [ %48, %46 ]
%15 = add i64 %14, -1
%16 = getelementptr inbounds i8, i8* %0, i64 %15
%17 = load i8, i8* %16
%18 = call i32 @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8 signext %17)
%19 = call i32 @strcat(i8* %6, i8* %7)
%20 = and i64 %14, 7
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %13
%23 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %24
24: ; preds = %22, %13
%25 = and i64 %14, 15
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %46
27: ; preds = %24
%28 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%29 = add i64 %14, -16
%30 = icmp ugt i64 %14, 15
br i1 %30, label %31, label %41
31: ; preds = %27, %31
%32 = phi i64 [ %39, %31 ], [ %29, %27 ]
%33 = getelementptr inbounds i8, i8* %0, i64 %32
%34 = load i8, i8* %33
%35 = zext i8 %34 to i64
%36 = getelementptr inbounds [257 x i8], [257 x i8]* @__const.hexdump.trans, i64 0, i64 %35
%37 = load i8, i8* %36
store i8 %37, i8* %7
store i8 0, i8* %11
%38 = call i32 @strcat(i8* %6, i8* %7)
%39 = add nuw i64 %32, 1
%40 = icmp ult i64 %39, %14
br i1 %40, label %31, label %41
41: ; preds = %31, %27
%42 = phi i64 [ %29, %27 ], [ %39, %31 ]
%43 = getelementptr inbounds i8, i8* %12, i64 %42
%44 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %43, i8* %6)
%45 = call i32 @memset(i8* %6, i32 0, i32 256)
br label %46
46: ; preds = %24, %41
%47 = phi i64 [ %42, %41 ], [ %14, %24 ]
%48 = add i64 %47, 1
%49 = icmp ugt i64 %48, %1
br i1 %49, label %50, label %13
50: ; preds = %46
%51 = and i64 %1, 15
%52 = icmp eq i64 %51, 0
br i1 %52, label %90, label %53
53: ; preds = %50
%54 = or i64 %1, -16
%55 = sub nuw nsw i64 16, %51
%56 = icmp ne i64 %51, 8
br label %57
57: ; preds = %53, %65
%58 = phi i64 [ %55, %53 ], [ %66, %65 ]
%59 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%60 = and i64 %58, 7
%61 = icmp eq i64 %60, 0
%62 = and i1 %56, %61
br i1 %62, label %63, label %65
63: ; preds = %57
%64 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %65
65: ; preds = %57, %63
%66 = add nsw i64 %58, -1
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %57
68: ; preds = %65
%69 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%70 = add i64 %1, -16
%71 = add i64 %70, %54
%72 = icmp ult i64 %71, %1
br i1 %72, label %73, label %85
73: ; preds = %68
%74 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 1
br label %75
75: ; preds = %73, %75
%76 = phi i64 [ %71, %73 ], [ %83, %75 ]
%77 = getelementptr inbounds i8, i8* %0, i64 %76
%78 = load i8, i8* %77
%79 = zext i8 %78 to i64
%80 = getelementptr inbounds [257 x i8], [257 x i8]* @__const.hexdump.trans, i64 0, i64 %79
%81 = load i8, i8* %80
store i8 %81, i8* %7
store i8 0, i8* %74
%82 = call i32 @strcat(i8* %6, i8* %7)
%83 = add i64 %76, 1
%84 = icmp eq i64 %83, %1
br i1 %84, label %85, label %75
85: ; preds = %75, %68
%86 = getelementptr inbounds i8, i8* %2, i64 %1
%87 = sub nsw i64 0, %51
%88 = getelementptr inbounds i8, i8* %86, i64 %87
%89 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %88, i8* %6)
br label %90
90: ; preds = %3, %85, %50
ret void
}