#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 uint32_t;

/* Variables and functions */
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ puts(char *);
void hexdump(int address, char *buf, int len) {
  uint32_t addr;
  char outbuf[80];
  int blocks;
  int residual;
  int i;
  int j;
  int buf_index;
  int index2;
  int index3;
  unsigned char c;
  char cvt[] = {'0', '1', '2', '3', '4', '5', '6', '7',
                '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
  if ((buf == NULL) || (len <= 0)) {
    return;
  }
  addr = (address < 0) ? 0 : address;
  blocks = len / 16;
  residual = len - blocks * 16;
  buf_index = 0;
  for (i = 0; i < blocks; i++) {
    index2 = 10;
    index3 = 60;
    outbuf[9] = ' ';
    outbuf[8] = ' ';
    outbuf[7] = cvt[(addr >> 0) & 0x0000000f];
    outbuf[6] = cvt[(addr >> 4) & 0x0000000f];
    outbuf[5] = cvt[(addr >> 8) & 0x0000000f];
    outbuf[4] = cvt[(addr >> 12) & 0x0000000f];
    outbuf[3] = cvt[(addr >> 16) & 0x0000000f];
    outbuf[2] = cvt[(addr >> 20) & 0x0000000f];
    outbuf[1] = cvt[(addr >> 24) & 0x0000000f];
    outbuf[0] = cvt[(addr >> 28) & 0x0000000f];
    addr += 16;
    outbuf[8] = ' ';
    outbuf[9] = ' ';
    outbuf[58] = ' ';
    outbuf[59] = ' ';
    for (j = 0; j < 16; j++) {
      c = buf[buf_index++];
      outbuf[index2++] = cvt[(c >> 4) & 0x0f];
      outbuf[index2++] = cvt[(c >> 0) & 0x0f];
      outbuf[index2++] = ' ';
      if ((c >= 0x20) && (c <= 0x7e)) {
        outbuf[index3++] = c;
      } else {
        outbuf[index3++] = '.';
      }
    }
    outbuf[index3] = 0;
    puts(outbuf);
  }
  if (!residual) {
    return;
  }
  outbuf[7] = cvt[(addr >> 0) & 0x0000000f];
  outbuf[6] = cvt[(addr >> 4) & 0x0000000f];
  outbuf[5] = cvt[(addr >> 8) & 0x0000000f];
  outbuf[4] = cvt[(addr >> 12) & 0x0000000f];
  outbuf[3] = cvt[(addr >> 16) & 0x0000000f];
  outbuf[2] = cvt[(addr >> 20) & 0x0000000f];
  outbuf[1] = cvt[(addr >> 24) & 0x0000000f];
  outbuf[0] = cvt[(addr >> 28) & 0x0000000f];
  addr += 16;
  index2 = 10;
  index3 = 60;
  memset(&outbuf[8], ' ', 68);
  for (j = 0; j < residual; j++) {
    c = buf[buf_index++];
    outbuf[index2++] = cvt[(c >> 4) & 0x0f];
    outbuf[index2++] = cvt[(c >> 0) & 0x0f];
    outbuf[index2++] = ' ';
    if ((c >= 0x20) && (c <= 0x7e)) {
      outbuf[index3++] = c;
    } else {
      outbuf[index3++] = '.';
    }
  }
  outbuf[index3] = 0;
  puts(outbuf);
}


x86 assembly (clang, -O0):
<hexdump>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x98(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1166 <hexdump+0x46>
cmpl   $0x0,-0x14(%rbp)
jg     116b <hexdump+0x4b>
jmp    15f1 <hexdump+0x4d1>
cmpl   $0x0,-0x4(%rbp)
jge    1182 <hexdump+0x62>
xor    %eax,%eax
mov    %eax,-0xa4(%rbp)
jmp    118b <hexdump+0x6b>
mov    -0x4(%rbp),%eax
mov    %eax,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    %eax,-0x74(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x74(%rbp),%ecx
shl    $0x4,%ecx
sub    %ecx,%eax
mov    %eax,-0x78(%rbp)
movl   $0x0,-0x84(%rbp)
movl   $0x0,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x74(%rbp),%eax
jge    13de <hexdump+0x2be>
movl   $0xa,-0x88(%rbp)
movl   $0x3c,-0x8c(%rbp)
movb   $0x20,-0x67(%rbp)
movb   $0x20,-0x68(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x0,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x69(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x4,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6a(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x8,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6b(%rbp)
mov    -0x18(%rbp),%eax
sar    $0xc,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6c(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x10,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6d(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x14,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6e(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x18,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6f(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x1c,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x70(%rbp)
mov    -0x18(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x18(%rbp)
movb   $0x20,-0x68(%rbp)
movb   $0x20,-0x67(%rbp)
movb   $0x20,-0x36(%rbp)
movb   $0x20,-0x35(%rbp)
movl   $0x0,-0x80(%rbp)
cmpl   $0x10,-0x80(%rbp)
jge    13bb <hexdump+0x29b>
mov    -0x10(%rbp),%rax
mov    -0x84(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x84(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x8d(%rbp)
movzbl -0x8d(%rbp),%eax
sar    $0x4,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%cl
mov    -0x88(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x88(%rbp)
cltq
mov    %cl,-0x70(%rbp,%rax,1)
movzbl -0x8d(%rbp),%eax
sar    $0x0,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%cl
mov    -0x88(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x88(%rbp)
cltq
mov    %cl,-0x70(%rbp,%rax,1)
mov    -0x88(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x88(%rbp)
cltq
movb   $0x20,-0x70(%rbp,%rax,1)
movzbl -0x8d(%rbp),%eax
cmp    $0x20,%eax
jl     1390 <hexdump+0x270>
movzbl -0x8d(%rbp),%eax
cmp    $0x7e,%eax
jg     1390 <hexdump+0x270>
mov    -0x8d(%rbp),%cl
mov    -0x8c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x8c(%rbp)
cltq
mov    %cl,-0x70(%rbp,%rax,1)
jmp    13a8 <hexdump+0x288>
mov    -0x8c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8c(%rbp)
cltq
movb   $0x2e,-0x70(%rbp,%rax,1)
jmp    13ad <hexdump+0x28d>
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
jmp    12b1 <hexdump+0x191>
movslq -0x8c(%rbp),%rax
movb   $0x0,-0x70(%rbp,%rax,1)
lea    -0x70(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    11c1 <hexdump+0xa1>
cmpl   $0x0,-0x78(%rbp)
jne    13ed <hexdump+0x2cd>
jmp    15f1 <hexdump+0x4d1>
mov    -0x18(%rbp),%eax
sar    $0x0,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x69(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x4,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6a(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x8,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6b(%rbp)
mov    -0x18(%rbp),%eax
sar    $0xc,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6c(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x10,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6d(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x14,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6e(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x18,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x6f(%rbp)
mov    -0x18(%rbp),%eax
sar    $0x1c,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%al
mov    %al,-0x70(%rbp)
mov    -0x18(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x18(%rbp)
movl   $0xa,-0x88(%rbp)
movl   $0x3c,-0x8c(%rbp)
lea    -0x70(%rbp),%rdi
add    $0x8,%rdi
mov    $0x20,%esi
mov    $0x44,%edx
call   1040 <memset@plt>
movl   $0x0,-0x80(%rbp)
mov    -0x80(%rbp),%eax
cmp    -0x78(%rbp),%eax
jge    15dc <hexdump+0x4bc>
mov    -0x10(%rbp),%rax
mov    -0x84(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x84(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x8d(%rbp)
movzbl -0x8d(%rbp),%eax
sar    $0x4,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%cl
mov    -0x88(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x88(%rbp)
cltq
mov    %cl,-0x70(%rbp,%rax,1)
movzbl -0x8d(%rbp),%eax
sar    $0x0,%eax
and    $0xf,%eax
cltq
mov    -0xa0(%rbp,%rax,1),%cl
mov    -0x88(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x88(%rbp)
cltq
mov    %cl,-0x70(%rbp,%rax,1)
mov    -0x88(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x88(%rbp)
cltq
movb   $0x20,-0x70(%rbp,%rax,1)
movzbl -0x8d(%rbp),%eax
cmp    $0x20,%eax
jl     15b1 <hexdump+0x491>
movzbl -0x8d(%rbp),%eax
cmp    $0x7e,%eax
jg     15b1 <hexdump+0x491>
mov    -0x8d(%rbp),%cl
mov    -0x8c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x8c(%rbp)
cltq
mov    %cl,-0x70(%rbp,%rax,1)
jmp    15c9 <hexdump+0x4a9>
mov    -0x8c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8c(%rbp)
cltq
movb   $0x2e,-0x70(%rbp,%rax,1)
jmp    15ce <hexdump+0x4ae>
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
jmp    14d0 <hexdump+0x3b0>
movslq -0x8c(%rbp),%rax
movb   $0x0,-0x70(%rbp,%rax,1)
lea    -0x70(%rbp),%rdi
call   1030 <puts@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hexdump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
test   %rsi,%rsi
je     13e6 <hexdump+0x2c6>
mov    %edx,%r14d
test   %edx,%edx
jle    13e6 <hexdump+0x2c6>
mov    %rsi,%r12
mov    %edi,%r13d
xor    %ebx,%ebx
test   %edi,%edi
cmovs  %ebx,%r13d
mov    %r14d,%eax
shr    $0x4,%eax
mov    %eax,%ecx
shl    $0x4,%ecx
mov    %r14d,%r15d
sub    %ecx,%r15d
cmp    $0x10,%r14d
jb     12cb <hexdump+0x1ab>
mov    %r15d,0x8(%rsp)
mov    %r14,0x68(%rsp)
mov    %r13d,%ecx
and    $0xf,%ecx
cmp    $0x2,%eax
mov    $0x1,%edx
cmovae %eax,%edx
mov    %edx,0xc(%rsp)
lea    0xe6f(%rip),%r14
mov    (%rcx,%r14,1),%al
mov    %al,0x7(%rsp)
mov    $0x2e,%r15d
mov    %r12,0x60(%rsp)
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
mov    0x7(%rsp),%al
mov    %al,0x17(%rsp)
mov    %r13d,%eax
shr    $0x4,%eax
and    $0xf,%eax
mov    (%rax,%r14,1),%al
mov    %al,0x16(%rsp)
mov    %r13d,%eax
shr    $0x8,%eax
and    $0xf,%eax
mov    (%rax,%r14,1),%al
mov    %al,0x15(%rsp)
mov    %r13d,%eax
shr    $0xc,%eax
and    $0xf,%eax
mov    (%rax,%r14,1),%al
mov    %al,0x14(%rsp)
mov    %r13d,%eax
shr    $0x10,%eax
and    $0xf,%eax
mov    (%rax,%r14,1),%al
mov    %al,0x13(%rsp)
mov    %r13d,%eax
shr    $0x14,%eax
and    $0xf,%eax
mov    (%rax,%r14,1),%al
mov    %al,0x12(%rsp)
mov    %r13d,%eax
shr    $0x18,%eax
and    $0xf,%eax
mov    (%rax,%r14,1),%al
mov    %al,0x11(%rsp)
mov    %r13d,%eax
shr    $0x1c,%rax
mov    (%rax,%r14,1),%al
mov    %al,0x10(%rsp)
movw   $0x2020,0x18(%rsp)
movw   $0x2020,0x4a(%rsp)
add    $0x10,%ebx
mov    %rbx,0x70(%rsp)
lea    0x1c(%rsp),%rax
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
movzbl (%r12,%rcx,1),%edx
mov    %rdx,%rsi
shr    $0x4,%rsi
movzbl (%rsi,%r14,1),%ebx
mov    %bl,-0x2(%rax)
mov    %edx,%esi
and    $0xf,%esi
movzbl (%rsi,%r14,1),%ebx
mov    %bl,-0x1(%rax)
movb   $0x20,(%rax)
lea    -0x20(%rdx),%esi
cmp    $0x5f,%sil
cmovae %r15d,%edx
mov    %dl,0x4c(%rsp,%rcx,1)
add    $0x1,%rcx
add    $0x3,%rax
cmp    $0x10,%ecx
jne    1250 <hexdump+0x130>
add    $0x10,%r13d
movb   $0x0,0x5c(%rsp)
lea    0x10(%rsp),%rdi
call   1030 <puts@plt>
add    $0x1,%ebp
add    $0x10,%r12
cmp    0xc(%rsp),%ebp
mov    0x70(%rsp),%rbx
jne    11b0 <hexdump+0x90>
movslq %ebx,%rbx
mov    0x68(%rsp),%r14
mov    0x60(%rsp),%r12
mov    0x8(%rsp),%r15d
test   %r15d,%r15d
je     13e6 <hexdump+0x2c6>
mov    %r13d,%eax
mov    %eax,%ecx
and    $0xf,%ecx
lea    0xd1d(%rip),%rbp
mov    (%rcx,%rbp,1),%cl
mov    %cl,0x17(%rsp)
mov    %r13d,%ecx
shr    $0x4,%ecx
and    $0xf,%ecx
mov    (%rcx,%rbp,1),%cl
mov    %cl,0x16(%rsp)
mov    %r13d,%ecx
shr    $0x8,%ecx
and    $0xf,%ecx
mov    (%rcx,%rbp,1),%cl
mov    %cl,0x15(%rsp)
mov    %r13d,%ecx
shr    $0xc,%ecx
and    $0xf,%ecx
mov    (%rcx,%rbp,1),%cl
mov    %cl,0x14(%rsp)
mov    %r13d,%ecx
shr    $0x10,%ecx
and    $0xf,%ecx
mov    (%rcx,%rbp,1),%cl
mov    %cl,0x13(%rsp)
mov    %r13d,%ecx
shr    $0x14,%ecx
and    $0xf,%ecx
mov    (%rcx,%rbp,1),%cl
mov    %cl,0x12(%rsp)
shr    $0x18,%r13d
and    $0xf,%r13d
mov    0x0(%r13,%rbp,1),%cl
mov    %cl,0x11(%rsp)
shr    $0x1c,%rax
mov    (%rax,%rbp,1),%al
mov    %al,0x10(%rsp)
lea    0x18(%rsp),%rdi
mov    $0x20,%esi
mov    $0x44,%edx
call   1040 <memset@plt>
test   %r15d,%r15d
jle    13d2 <hexdump+0x2b2>
and    $0xf,%r14d
add    $0x3c,%r14d
add    %rbx,%r12
lea    0x1c(%rsp),%rax
lea    -0x3c(%r14),%rsi
xor    %edx,%edx
mov    $0x2e,%r8d
nopl   0x0(%rax,%rax,1)
movzbl (%r12,%rdx,1),%ebx
mov    %rbx,%rdi
shr    $0x4,%rdi
movzbl (%rdi,%rbp,1),%ecx
mov    %cl,-0x2(%rax)
mov    %ebx,%ecx
and    $0xf,%ecx
movzbl (%rcx,%rbp,1),%ecx
mov    %cl,-0x1(%rax)
movb   $0x20,(%rax)
lea    -0x20(%rbx),%ecx
cmp    $0x5f,%cl
cmovae %r8d,%ebx
mov    %bl,0x4c(%rsp,%rdx,1)
add    $0x1,%rdx
add    $0x3,%rax
cmp    %rdx,%rsi
jne    1390 <hexdump+0x270>
mov    %r14d,%eax
jmp    13d7 <hexdump+0x2b7>
mov    $0x3c,%eax
movb   $0x0,0x10(%rsp,%rax,1)
lea    0x10(%rsp),%rdi
call   1030 <puts@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.hexdump.cvt = [16 x i8] c"0123456789abcdef"
define void @hexdump(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca [80 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8
%17 = alloca [16 x i8]
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%18 = bitcast [16 x i8]* %17 to i8*
%19 = load i8*, i8** %5
%20 = icmp eq i8* %19, null
br i1 %20, label %24, label %21
21: ; preds = %3
%22 = load i32, i32* %6
%23 = icmp sle i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21, %3
br label %305
25: ; preds = %21
%26 = load i32, i32* %4
%27 = icmp slt i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %25
br label %31
29: ; preds = %25
%30 = load i32, i32* %4
br label %31
31: ; preds = %29, %28
%32 = phi i32 [ 0, %28 ], [ %30, %29 ]
store i32 %32, i32* %7
%33 = load i32, i32* %6
%34 = sdiv i32 %33, 16
store i32 %34, i32* %9
%35 = load i32, i32* %6
%36 = load i32, i32* %9
%37 = mul nsw i32 %36, 16
%38 = sub nsw i32 %35, %37
store i32 %38, i32* %10
store i32 0, i32* %13
store i32 0, i32* %11
br label %39
39: ; preds = %172, %31
%40 = load i32, i32* %11
%41 = load i32, i32* %9
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %175
43: ; preds = %39
store i32 10, i32* %14
store i32 60, i32* %15
%44 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 9
store i8 32, i8* %44
%45 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 8
store i8 32, i8* %45
%46 = load i32, i32* %7
%47 = ashr i32 %46, 0
%48 = and i32 %47, 15
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %49
%51 = load i8, i8* %50
%52 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 7
store i8 %51, i8* %52
%53 = load i32, i32* %7
%54 = ashr i32 %53, 4
%55 = and i32 %54, 15
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %56
%58 = load i8, i8* %57
%59 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 6
store i8 %58, i8* %59
%60 = load i32, i32* %7
%61 = ashr i32 %60, 8
%62 = and i32 %61, 15
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %63
%65 = load i8, i8* %64
%66 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 5
store i8 %65, i8* %66
%67 = load i32, i32* %7
%68 = ashr i32 %67, 12
%69 = and i32 %68, 15
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %70
%72 = load i8, i8* %71
%73 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 4
store i8 %72, i8* %73
%74 = load i32, i32* %7
%75 = ashr i32 %74, 16
%76 = and i32 %75, 15
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %77
%79 = load i8, i8* %78
%80 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 3
store i8 %79, i8* %80
%81 = load i32, i32* %7
%82 = ashr i32 %81, 20
%83 = and i32 %82, 15
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %84
%86 = load i8, i8* %85
%87 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 2
store i8 %86, i8* %87
%88 = load i32, i32* %7
%89 = ashr i32 %88, 24
%90 = and i32 %89, 15
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %91
%93 = load i8, i8* %92
%94 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 1
store i8 %93, i8* %94
%95 = load i32, i32* %7
%96 = ashr i32 %95, 28
%97 = and i32 %96, 15
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %98
%100 = load i8, i8* %99
%101 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
store i8 %100, i8* %101
%102 = load i32, i32* %7
%103 = add nsw i32 %102, 16
store i32 %103, i32* %7
%104 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 8
store i8 32, i8* %104
%105 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 9
store i8 32, i8* %105
%106 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 58
store i8 32, i8* %106
%107 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 59
store i8 32, i8* %107
store i32 0, i32* %12
br label %108
108: ; preds = %163, %43
%109 = load i32, i32* %12
%110 = icmp slt i32 %109, 16
br i1 %110, label %111, label %166
111: ; preds = %108
%112 = load i8*, i8** %5
%113 = load i32, i32* %13
%114 = add nsw i32 %113, 1
store i32 %114, i32* %13
%115 = sext i32 %113 to i64
%116 = getelementptr inbounds i8, i8* %112, i64 %115
%117 = load i8, i8* %116
store i8 %117, i8* %16
%118 = load i8, i8* %16
%119 = zext i8 %118 to i32
%120 = ashr i32 %119, 4
%121 = and i32 %120, 15
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %122
%124 = load i8, i8* %123
%125 = load i32, i32* %14
%126 = add nsw i32 %125, 1
store i32 %126, i32* %14
%127 = sext i32 %125 to i64
%128 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %127
store i8 %124, i8* %128
%129 = load i8, i8* %16
%130 = zext i8 %129 to i32
%131 = ashr i32 %130, 0
%132 = and i32 %131, 15
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %133
%135 = load i8, i8* %134
%136 = load i32, i32* %14
%137 = add nsw i32 %136, 1
store i32 %137, i32* %14
%138 = sext i32 %136 to i64
%139 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %138
store i8 %135, i8* %139
%140 = load i32, i32* %14
%141 = add nsw i32 %140, 1
store i32 %141, i32* %14
%142 = sext i32 %140 to i64
%143 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %142
store i8 32, i8* %143
%144 = load i8, i8* %16
%145 = zext i8 %144 to i32
%146 = icmp sge i32 %145, 32
br i1 %146, label %147, label %157
147: ; preds = %111
%148 = load i8, i8* %16
%149 = zext i8 %148 to i32
%150 = icmp sle i32 %149, 126
br i1 %150, label %151, label %157
151: ; preds = %147
%152 = load i8, i8* %16
%153 = load i32, i32* %15
%154 = add nsw i32 %153, 1
store i32 %154, i32* %15
%155 = sext i32 %153 to i64
%156 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %155
store i8 %152, i8* %156
br label %162
157: ; preds = %147, %111
%158 = load i32, i32* %15
%159 = add nsw i32 %158, 1
store i32 %159, i32* %15
%160 = sext i32 %158 to i64
%161 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %160
store i8 46, i8* %161
br label %162
162: ; preds = %157, %151
br label %163
163: ; preds = %162
%164 = load i32, i32* %12
%165 = add nsw i32 %164, 1
store i32 %165, i32* %12
br label %108
166: ; preds = %108
%167 = load i32, i32* %15
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %168
store i8 0, i8* %169
%170 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%171 = call i32 @puts(i8* %170)
br label %172
172: ; preds = %166
%173 = load i32, i32* %11
%174 = add nsw i32 %173, 1
store i32 %174, i32* %11
br label %39
175: ; preds = %39
%176 = load i32, i32* %10
%177 = icmp ne i32 %176, 0
br i1 %177, label %179, label %178
178: ; preds = %175
br label %305
179: ; preds = %175
%180 = load i32, i32* %7
%181 = ashr i32 %180, 0
%182 = and i32 %181, 15
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %183
%185 = load i8, i8* %184
%186 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 7
store i8 %185, i8* %186
%187 = load i32, i32* %7
%188 = ashr i32 %187, 4
%189 = and i32 %188, 15
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %190
%192 = load i8, i8* %191
%193 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 6
store i8 %192, i8* %193
%194 = load i32, i32* %7
%195 = ashr i32 %194, 8
%196 = and i32 %195, 15
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %197
%199 = load i8, i8* %198
%200 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 5
store i8 %199, i8* %200
%201 = load i32, i32* %7
%202 = ashr i32 %201, 12
%203 = and i32 %202, 15
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %204
%206 = load i8, i8* %205
%207 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 4
store i8 %206, i8* %207
%208 = load i32, i32* %7
%209 = ashr i32 %208, 16
%210 = and i32 %209, 15
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %211
%213 = load i8, i8* %212
%214 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 3
store i8 %213, i8* %214
%215 = load i32, i32* %7
%216 = ashr i32 %215, 20
%217 = and i32 %216, 15
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %218
%220 = load i8, i8* %219
%221 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 2
store i8 %220, i8* %221
%222 = load i32, i32* %7
%223 = ashr i32 %222, 24
%224 = and i32 %223, 15
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %225
%227 = load i8, i8* %226
%228 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 1
store i8 %227, i8* %228
%229 = load i32, i32* %7
%230 = ashr i32 %229, 28
%231 = and i32 %230, 15
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %232
%234 = load i8, i8* %233
%235 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
store i8 %234, i8* %235
%236 = load i32, i32* %7
%237 = add nsw i32 %236, 16
store i32 %237, i32* %7
store i32 10, i32* %14
store i32 60, i32* %15
%238 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 8
%239 = call i32 @memset(i8* %238, i8 signext 32, i32 68)
store i32 0, i32* %12
br label %240
240: ; preds = %296, %179
%241 = load i32, i32* %12
%242 = load i32, i32* %10
%243 = icmp slt i32 %241, %242
br i1 %243, label %244, label %299
244: ; preds = %240
%245 = load i8*, i8** %5
%246 = load i32, i32* %13
%247 = add nsw i32 %246, 1
store i32 %247, i32* %13
%248 = sext i32 %246 to i64
%249 = getelementptr inbounds i8, i8* %245, i64 %248
%250 = load i8, i8* %249
store i8 %250, i8* %16
%251 = load i8, i8* %16
%252 = zext i8 %251 to i32
%253 = ashr i32 %252, 4
%254 = and i32 %253, 15
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %255
%257 = load i8, i8* %256
%258 = load i32, i32* %14
%259 = add nsw i32 %258, 1
store i32 %259, i32* %14
%260 = sext i32 %258 to i64
%261 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %260
store i8 %257, i8* %261
%262 = load i8, i8* %16
%263 = zext i8 %262 to i32
%264 = ashr i32 %263, 0
%265 = and i32 %264, 15
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds [16 x i8], [16 x i8]* %17, i64 0, i64 %266
%268 = load i8, i8* %267
%269 = load i32, i32* %14
%270 = add nsw i32 %269, 1
store i32 %270, i32* %14
%271 = sext i32 %269 to i64
%272 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %271
store i8 %268, i8* %272
%273 = load i32, i32* %14
%274 = add nsw i32 %273, 1
store i32 %274, i32* %14
%275 = sext i32 %273 to i64
%276 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %275
store i8 32, i8* %276
%277 = load i8, i8* %16
%278 = zext i8 %277 to i32
%279 = icmp sge i32 %278, 32
br i1 %279, label %280, label %290
280: ; preds = %244
%281 = load i8, i8* %16
%282 = zext i8 %281 to i32
%283 = icmp sle i32 %282, 126
br i1 %283, label %284, label %290
284: ; preds = %280
%285 = load i8, i8* %16
%286 = load i32, i32* %15
%287 = add nsw i32 %286, 1
store i32 %287, i32* %15
%288 = sext i32 %286 to i64
%289 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %288
store i8 %285, i8* %289
br label %295
290: ; preds = %280, %244
%291 = load i32, i32* %15
%292 = add nsw i32 %291, 1
store i32 %292, i32* %15
%293 = sext i32 %291 to i64
%294 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %293
store i8 46, i8* %294
br label %295
295: ; preds = %290, %284
br label %296
296: ; preds = %295
%297 = load i32, i32* %12
%298 = add nsw i32 %297, 1
store i32 %298, i32* %12
br label %240
299: ; preds = %240
%300 = load i32, i32* %15
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 %301
store i8 0, i8* %302
%303 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%304 = call i32 @puts(i8* %303)
br label %305
305: ; preds = %299, %178, %24
ret void
}

LLVM IR (-O2):
@__const.hexdump.cvt = [16 x i8] c"0123456789abcdef"
define void @hexdump(i32 %0, i8* %1, i32 %2) {
%4 = alloca [80 x i8]
%5 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%6 = icmp eq i8* %1, null
%7 = icmp slt i32 %2, 1
%8 = or i1 %6, %7
br i1 %8, label %202, label %9
9: ; preds = %3
%10 = icmp sgt i32 %0, 0
%11 = select i1 %10, i32 %0, i32 0
%12 = lshr i32 %2, 4
%13 = mul nsw i32 %12, -16
%14 = add nsw i32 %13, %2
%15 = icmp ult i32 %2, 16
br i1 %15, label %110, label %16
16: ; preds = %9
%17 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 9
%18 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 8
%19 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 7
%20 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 6
%21 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 5
%22 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 4
%23 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 3
%24 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 2
%25 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 1
%26 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 58
%27 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 59
%28 = and i32 %11, 15
%29 = call i32 @llvm.umax.i32(i32 %12, i32 1)
%30 = zext i32 %28 to i64
%31 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 76
br label %34
34: ; preds = %16, %103
%35 = phi i32 [ 0, %16 ], [ %73, %103 ]
%36 = phi i32 [ 0, %16 ], [ %106, %103 ]
%37 = phi i32 [ %11, %16 ], [ %104, %103 ]
store i8 %32, i8* %19
%38 = lshr i32 %37, 4
%39 = and i32 %38, 15
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %40
%42 = load i8, i8* %41
store i8 %42, i8* %20
%43 = lshr i32 %37, 8
%44 = and i32 %43, 15
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %45
%47 = load i8, i8* %46
store i8 %47, i8* %21
%48 = lshr i32 %37, 12
%49 = and i32 %48, 15
%50 = zext i32 %49 to i64
%51 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %50
%52 = load i8, i8* %51
store i8 %52, i8* %22
%53 = lshr i32 %37, 16
%54 = and i32 %53, 15
%55 = zext i32 %54 to i64
%56 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %55
%57 = load i8, i8* %56
store i8 %57, i8* %23
%58 = lshr i32 %37, 20
%59 = and i32 %58, 15
%60 = zext i32 %59 to i64
%61 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %60
%62 = load i8, i8* %61
store i8 %62, i8* %24
%63 = lshr i32 %37, 24
%64 = and i32 %63, 15
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %65
%67 = load i8, i8* %66
store i8 %67, i8* %25
%68 = lshr i32 %37, 28
%69 = zext i32 %68 to i64
%70 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %69
%71 = load i8, i8* %70
store i8 %71, i8* %5
store i8 32, i8* %18
store i8 32, i8* %17
store i8 32, i8* %26
store i8 32, i8* %27
%72 = sext i32 %35 to i64
%73 = add i32 %35, 16
br label %74
74: ; preds = %34, %74
%75 = phi i64 [ %72, %34 ], [ %78, %74 ]
%76 = phi i64 [ 10, %34 ], [ %94, %74 ]
%77 = phi i64 [ 60, %34 ], [ %100, %74 ]
%78 = add nsw i64 %75, 1
%79 = getelementptr inbounds i8, i8* %1, i64 %75
%80 = load i8, i8* %79
%81 = zext i8 %80 to i32
%82 = lshr i32 %81, 4
%83 = zext i32 %82 to i64
%84 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %83
%85 = load i8, i8* %84
%86 = add nuw nsw i64 %76, 1
%87 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %76
store i8 %85, i8* %87
%88 = and i32 %81, 15
%89 = zext i32 %88 to i64
%90 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %89
%91 = load i8, i8* %90
%92 = add nuw nsw i64 %76, 2
%93 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %86
store i8 %91, i8* %93
%94 = add nuw nsw i64 %76, 3
%95 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %92
store i8 32, i8* %95
%96 = add i8 %80, -32
%97 = icmp ult i8 %96, 95
%98 = select i1 %97, i8 %80, i8 46
%99 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %77
store i8 %98, i8* %99
%100 = add nuw nsw i64 %77, 1
%101 = trunc i64 %78 to i32
%102 = icmp eq i32 %73, %101
br i1 %102, label %103, label %74
103: ; preds = %74
%104 = add nuw nsw i32 %37, 16
store i8 0, i8* %33
%105 = call i32 @puts(i8* %5)
%106 = add nuw nsw i32 %36, 1
%107 = icmp eq i32 %106, %29
br i1 %107, label %108, label %34
108: ; preds = %103
%109 = sext i32 %73 to i64
br label %110
110: ; preds = %108, %9
%111 = phi i32 [ %11, %9 ], [ %104, %108 ]
%112 = phi i64 [ 0, %9 ], [ %109, %108 ]
%113 = icmp eq i32 %14, 0
br i1 %113, label %202, label %114
114: ; preds = %110
%115 = and i32 %111, 15
%116 = zext i32 %115 to i64
%117 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %116
%118 = load i8, i8* %117
%119 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 7
store i8 %118, i8* %119
%120 = lshr i32 %111, 4
%121 = and i32 %120, 15
%122 = zext i32 %121 to i64
%123 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %122
%124 = load i8, i8* %123
%125 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 6
store i8 %124, i8* %125
%126 = lshr i32 %111, 8
%127 = and i32 %126, 15
%128 = zext i32 %127 to i64
%129 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %128
%130 = load i8, i8* %129
%131 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 5
store i8 %130, i8* %131
%132 = lshr i32 %111, 12
%133 = and i32 %132, 15
%134 = zext i32 %133 to i64
%135 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %134
%136 = load i8, i8* %135
%137 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 4
store i8 %136, i8* %137
%138 = lshr i32 %111, 16
%139 = and i32 %138, 15
%140 = zext i32 %139 to i64
%141 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %140
%142 = load i8, i8* %141
%143 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 3
store i8 %142, i8* %143
%144 = lshr i32 %111, 20
%145 = and i32 %144, 15
%146 = zext i32 %145 to i64
%147 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %146
%148 = load i8, i8* %147
%149 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 2
store i8 %148, i8* %149
%150 = lshr i32 %111, 24
%151 = and i32 %150, 15
%152 = zext i32 %151 to i64
%153 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %152
%154 = load i8, i8* %153
%155 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 1
store i8 %154, i8* %155
%156 = lshr i32 %111, 28
%157 = zext i32 %156 to i64
%158 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %157
%159 = load i8, i8* %158
store i8 %159, i8* %5
%160 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 8
%161 = call i32 @memset(i8* %160, i8 signext 32, i32 68)
%162 = icmp sgt i32 %14, 0
br i1 %162, label %163, label %198
163: ; preds = %114
%164 = add i32 %2, 60
%165 = and i32 %2, -16
%166 = sub i32 %164, %165
%167 = zext i32 %166 to i64
br label %168
168: ; preds = %163, %168
%169 = phi i64 [ %112, %163 ], [ %172, %168 ]
%170 = phi i64 [ 10, %163 ], [ %188, %168 ]
%171 = phi i64 [ 60, %163 ], [ %194, %168 ]
%172 = add nsw i64 %169, 1
%173 = getelementptr inbounds i8, i8* %1, i64 %169
%174 = load i8, i8* %173
%175 = zext i8 %174 to i32
%176 = lshr i32 %175, 4
%177 = zext i32 %176 to i64
%178 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %177
%179 = load i8, i8* %178
%180 = add nuw nsw i64 %170, 1
%181 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %170
store i8 %179, i8* %181
%182 = and i32 %175, 15
%183 = zext i32 %182 to i64
%184 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.hexdump.cvt, i64 0, i64 %183
%185 = load i8, i8* %184
%186 = add nuw nsw i64 %170, 2
%187 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %180
store i8 %185, i8* %187
%188 = add nuw nsw i64 %170, 3
%189 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %186
store i8 32, i8* %189
%190 = add i8 %174, -32
%191 = icmp ult i8 %190, 95
%192 = select i1 %191, i8 %174, i8 46
%193 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %171
store i8 %192, i8* %193
%194 = add nuw nsw i64 %171, 1
%195 = icmp eq i64 %194, %167
br i1 %195, label %196, label %168
196: ; preds = %168
%197 = zext i32 %166 to i64
br label %198
198: ; preds = %114, %196
%199 = phi i64 [ %197, %196 ], [ 60, %114 ]
%200 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 %199
store i8 0, i8* %200
%201 = call i32 @puts(i8* %5)
br label %202
202: ; preds = %110, %3, %198
ret void
}