#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 long long, 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("%.8llx: %s\n", (unsigned long long)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("%.8llx: %s\n", (unsigned long long)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    0xf0a(%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    0xee8(%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
sub    $0x10,%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     1425 <hexdump+0x2d5>
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    0xdde(%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    0xdb0(%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    0xd89(%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),%rax
and    $0xf,%rax
sub    %rax,%rsi
lea    -0x230(%rbp),%rdx
lea    0xcea(%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,%r15
mov    %rdi,%r12
lea    0x30(%rsp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1040 <memset@plt>
test   %r15,%r15
je     1371 <hexdump+0x231>
mov    0x20(%rsp),%rax
add    $0xfffffffffffffff0,%rax
mov    %rax,0x28(%rsp)
mov    $0x1,%r14d
lea    0xf70(%rip),%rbx
lea    0x10(%rsp),%r13
lea    0x30(%rsp),%rbp
mov    %r15,0x8(%rsp)
jmp    11f3 <hexdump+0xb3>
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,%r14
mov    0x8(%rsp),%r15
lea    0xf1b(%rip),%rbx
add    $0x1,%r14
cmp    %r15,%r14
ja     128c <hexdump+0x14c>
movsbl -0x1(%r14,%r12,1),%edx
mov    %r13,%rdi
mov    %rbx,%rsi
call   1060 <sprintf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <strcat@plt>
test   $0x7,%r14b
je     1220 <hexdump+0xe0>
test   $0xf,%r14b
jne    11e6 <hexdump+0xa6>
jmp    1235 <hexdump+0xf5>
nopl   (%rax)
mov    %rbp,%rdi
lea    0xeeb(%rip),%rsi
call   1050 <strcat@plt>
test   $0xf,%r14b
jne    11e6 <hexdump+0xa6>
mov    %rbp,%rdi
lea    0xed9(%rip),%rsi
call   1050 <strcat@plt>
lea    -0x10(%r14),%rbx
cmp    $0x10,%r14
jb     11b0 <hexdump+0x70>
lea    0xda7(%rip),%r15
nopl   0x0(%rax)
movzbl (%r12,%rbx,1),%eax
movzbl (%rax,%r15,1),%eax
mov    %al,0x10(%rsp)
movb   $0x0,0x11(%rsp)
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <strcat@plt>
add    $0x1,%rbx
cmp    %r14,%rbx
jb     1260 <hexdump+0x120>
jmp    11b0 <hexdump+0x70>
mov    %r15,%r13
and    $0xf,%r13
je     1371 <hexdump+0x231>
or     $0xfffffffffffffff0,%r15
mov    $0x10,%ebx
sub    %r13,%rbx
lea    0xe67(%rip),%r14
lea    0x30(%rsp),%rbp
jmp    12c6 <hexdump+0x186>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0xffffffffffffffff,%rbx
je     12f2 <hexdump+0x1b2>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1050 <strcat@plt>
cmp    $0x8,%r13
je     12c0 <hexdump+0x180>
mov    %ebx,%eax
and    $0x7,%eax
test   %rax,%rax
jne    12c0 <hexdump+0x180>
mov    %rbp,%rdi
lea    0xe2a(%rip),%rsi
call   1050 <strcat@plt>
jmp    12c0 <hexdump+0x180>
lea    0xe1e(%rip),%rsi
lea    0x30(%rsp),%rdi
call   1050 <strcat@plt>
mov    0x8(%rsp),%rcx
lea    (%rcx,%r15,1),%rax
add    $0xfffffffffffffff0,%rax
cmp    %rcx,%rax
lea    0xce6(%rip),%rbx
jae    1352 <hexdump+0x212>
add    $0xfffffffffffffff0,%r15
add    0x8(%rsp),%r12
lea    0x30(%rsp),%r14
lea    0x10(%rsp),%rbp
nop
movzbl (%r12,%r15,1),%eax
movzbl (%rax,%rbx,1),%eax
mov    %al,0x10(%rsp)
movb   $0x0,0x11(%rsp)
mov    %r14,%rdi
mov    %rbp,%rsi
call   1050 <strcat@plt>
inc    %r15
jne    1330 <hexdump+0x1f0>
mov    0x8(%rsp),%rsi
and    $0xfffffffffffffff0,%rsi
add    0x20(%rsp),%rsi
lea    0xda0(%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 = [12 x i8] c"%.8llx: %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 = %77, %3
%16 = load i64, i64* %7
%17 = load i64, i64* %5
%18 = icmp ule i64 %16, %17
br i1 %18, label %19, label %80
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 %76
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 = ptrtoint i8* %67 to i64
%69 = load i64, i64* %7
%70 = add i64 %68, %69
%71 = sub i64 %70, 16
%72 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%73 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 %71, i8* %72)
%74 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%75 = call i32 @memset(i8* %74, i32 0, i32 256)
br label %76
76: ; preds = %66, %36
br label %77
77: ; preds = %76
%78 = load i64, i64* %7
%79 = add i64 %78, 1
store i64 %79, i64* %7
br label %15
80: ; preds = %15
%81 = load i64, i64* %5
%82 = urem i64 %81, 16
%83 = icmp ne i64 %82, 0
br i1 %83, label %84, label %145
84: ; preds = %80
%85 = load i64, i64* %5
%86 = urem i64 %85, 16
%87 = sub i64 16, %86
store i64 %87, i64* %7
store i64 %87, i64* %8
%88 = load i64, i64* %8
store i64 %88, i64* %7
br label %89
89: ; preds = %105, %84
%90 = load i64, i64* %7
%91 = icmp ugt i64 %90, 0
br i1 %91, label %92, label %108
92: ; preds = %89
%93 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%94 = call i32 @strcat(i8* %93, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%95 = load i64, i64* %7
%96 = urem i64 %95, 8
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %104
98: ; preds = %92
%99 = load i64, i64* %8
%100 = icmp ne i64 %99, 8
br i1 %100, label %101, label %104
101: ; preds = %98
%102 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%103 = call i32 @strcat(i8* %102, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %104
104: ; preds = %101, %98, %92
br label %105
105: ; preds = %104
%106 = load i64, i64* %7
%107 = add i64 %106, -1
store i64 %107, i64* %7
br label %89
108: ; preds = %89
%109 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%110 = call i32 @strcat(i8* %109, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%111 = load i64, i64* %5
%112 = sub i64 %111, 16
%113 = load i64, i64* %8
%114 = sub i64 %112, %113
store i64 %114, i64* %7
br label %115
115: ; preds = %132, %108
%116 = load i64, i64* %7
%117 = load i64, i64* %5
%118 = icmp ult i64 %116, %117
br i1 %118, label %119, label %135
119: ; preds = %115
%120 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%121 = load i8*, i8** %4
%122 = load i64, i64* %7
%123 = getelementptr inbounds i8, i8* %121, i64 %122
%124 = load i8, i8* %123
%125 = zext i8 %124 to i64
%126 = getelementptr inbounds [257 x i8], [257 x i8]* %9, i64 0, i64 %125
%127 = load i8, i8* %126
%128 = call i32 @sprintf(i8* %120, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8 signext %127)
%129 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%130 = getelementptr inbounds [16 x i8], [16 x i8]* %11, i64 0, i64 0
%131 = call i32 @strcat(i8* %129, i8* %130)
br label %132
132: ; preds = %119
%133 = load i64, i64* %7
%134 = add i64 %133, 1
store i64 %134, i64* %7
br label %115
135: ; preds = %115
%136 = load i8*, i8** %6
%137 = ptrtoint i8* %136 to i64
%138 = load i64, i64* %5
%139 = add i64 %137, %138
%140 = load i64, i64* %5
%141 = urem i64 %140, 16
%142 = sub i64 %139, %141
%143 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%144 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 %142, i8* %143)
br label %145
145: ; preds = %135, %80
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 = [12 x i8] c"%.8llx: %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 %91, label %10
10: ; preds = %3
%11 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 1
%12 = ptrtoint i8* %2 to i64
%13 = add i64 %12, -16
br label %14
14: ; preds = %10, %47
%15 = phi i64 [ 1, %10 ], [ %49, %47 ]
%16 = add i64 %15, -1
%17 = getelementptr inbounds i8, i8* %0, i64 %16
%18 = load i8, i8* %17
%19 = call i32 @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8 signext %18)
%20 = call i32 @strcat(i8* %6, i8* %7)
%21 = and i64 %15, 7
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %14
%24 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %25
25: ; preds = %23, %14
%26 = and i64 %15, 15
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %47
28: ; preds = %25
%29 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%30 = add i64 %15, -16
%31 = icmp ugt i64 %15, 15
br i1 %31, label %32, label %42
32: ; preds = %28, %32
%33 = phi i64 [ %40, %32 ], [ %30, %28 ]
%34 = getelementptr inbounds i8, i8* %0, i64 %33
%35 = load i8, i8* %34
%36 = zext i8 %35 to i64
%37 = getelementptr inbounds [257 x i8], [257 x i8]* @__const.hexdump.trans, i64 0, i64 %36
%38 = load i8, i8* %37
store i8 %38, i8* %7
store i8 0, i8* %11
%39 = call i32 @strcat(i8* %6, i8* %7)
%40 = add nuw i64 %33, 1
%41 = icmp ult i64 %40, %15
br i1 %41, label %32, label %42
42: ; preds = %32, %28
%43 = phi i64 [ %30, %28 ], [ %40, %32 ]
%44 = add i64 %13, %43
%45 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 %44, i8* %6)
%46 = call i32 @memset(i8* %6, i32 0, i32 256)
br label %47
47: ; preds = %25, %42
%48 = phi i64 [ %43, %42 ], [ %15, %25 ]
%49 = add i64 %48, 1
%50 = icmp ugt i64 %49, %1
br i1 %50, label %51, label %14
51: ; preds = %47
%52 = and i64 %1, 15
%53 = icmp eq i64 %52, 0
br i1 %53, label %91, label %54
54: ; preds = %51
%55 = or i64 %1, -16
%56 = sub nuw nsw i64 16, %52
%57 = icmp ne i64 %52, 8
br label %58
58: ; preds = %54, %66
%59 = phi i64 [ %56, %54 ], [ %67, %66 ]
%60 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%61 = and i64 %59, 7
%62 = icmp eq i64 %61, 0
%63 = and i1 %57, %62
br i1 %63, label %64, label %66
64: ; preds = %58
%65 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %66
66: ; preds = %58, %64
%67 = add nsw i64 %59, -1
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %58
69: ; preds = %66
%70 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%71 = add i64 %1, -16
%72 = add i64 %71, %55
%73 = icmp ult i64 %72, %1
br i1 %73, label %74, label %86
74: ; preds = %69
%75 = getelementptr inbounds [16 x i8], [16 x i8]* %5, i64 0, i64 1
br label %76
76: ; preds = %74, %76
%77 = phi i64 [ %72, %74 ], [ %84, %76 ]
%78 = getelementptr inbounds i8, i8* %0, i64 %77
%79 = load i8, i8* %78
%80 = zext i8 %79 to i64
%81 = getelementptr inbounds [257 x i8], [257 x i8]* @__const.hexdump.trans, i64 0, i64 %80
%82 = load i8, i8* %81
store i8 %82, i8* %7
store i8 0, i8* %75
%83 = call i32 @strcat(i8* %6, i8* %7)
%84 = add i64 %77, 1
%85 = icmp eq i64 %84, %1
br i1 %85, label %86, label %76
86: ; preds = %76, %69
%87 = ptrtoint i8* %2 to i64
%88 = and i64 %1, -16
%89 = add i64 %88, %87
%90 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 %89, i8* %6)
br label %91
91: ; preds = %3, %86, %51
ret void
}