#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*/ memset(char *, char, int);
int /*<<< orphan*/ printf(char *, char *);
int sprintf(char *, char *, int);
void dStrHex(const char *str, int len, int no_ascii) {
  const char *p = str;
  unsigned char c;
  char buff[82];
  int a = 0;
  const int bpstart = 5;
  const int cpstart = 60;
  int cpos = cpstart;
  int bpos = bpstart;
  int i, k;
  if (len <= 0)
    return;
  memset(buff, ' ', 80);
  buff[80] = '\0';
  if (no_ascii < 0) {
    for (k = 0; k < len; k++) {
      c = *p++;
      bpos += 3;
      if (bpos == (bpstart + (9 * 3)))
        bpos++;
      sprintf(&buff[bpos], "%.2x", (int)(unsigned char)c);
      buff[bpos + 2] = ' ';
      if ((k > 0) && (0 == ((k + 1) % 16))) {
        printf("%.60s\n", buff);
        bpos = bpstart;
        memset(buff, ' ', 80);
      }
    }
    if (bpos > bpstart)
      printf("%.60s\n", buff);
    return;
  }
  k = sprintf(buff + 1, "%.2x", a);
  buff[k + 1] = ' ';
  for (i = 0; i < len; i++) {
    c = *p++;
    bpos += 3;
    if (bpos == (bpstart + (9 * 3)))
      bpos++;
    sprintf(&buff[bpos], "%.2x", (int)(unsigned char)c);
    buff[bpos + 2] = ' ';
    if (no_ascii)
      buff[cpos++] = ' ';
    else {
      if ((c < ' ') || (c >= 0x7f))
        c = '.';
      buff[cpos++] = c;
    }
    if (cpos > (cpstart + 15)) {
      printf("%.76s\n", buff);
      bpos = bpstart;
      cpos = cpstart;
      a += 16;
      memset(buff, ' ', 80);
      k = sprintf(buff + 1, "%.2x", a);
      buff[k + 1] = ' ';
    }
  }
  if (cpos > cpstart)
    printf("%.76s\n", buff);
}


x86 assembly (clang, -O0):
<dStrHex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x74(%rbp)
movl   $0x5,-0x78(%rbp)
movl   $0x3c,-0x7c(%rbp)
movl   $0x3c,-0x80(%rbp)
movl   $0x5,-0x84(%rbp)
cmpl   $0x0,-0xc(%rbp)
jg     1182 <dStrHex+0x52>
jmp    1466 <dStrHex+0x336>
lea    -0x70(%rbp),%rdi
mov    $0x20,%esi
mov    $0x50,%edx
call   1040 <memset@plt>
movb   $0x0,-0x20(%rbp)
cmpl   $0x0,-0x10(%rbp)
jge    12b9 <dStrHex+0x189>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1297 <dStrHex+0x167>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
mov    (%rax),%al
mov    %al,-0x19(%rbp)
mov    -0x84(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x84(%rbp)
cmpl   $0x20,-0x84(%rbp)
jne    11fb <dStrHex+0xcb>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
movslq -0x84(%rbp),%rax
lea    -0x70(%rbp),%rdi
add    %rax,%rdi
movzbl -0x19(%rbp),%edx
lea    0xdec(%rip),%rsi
call   1050 <sprintf@plt>
mov    -0x84(%rbp),%eax
add    $0x2,%eax
cltq
movb   $0x20,-0x70(%rbp,%rax,1)
cmpl   $0x0,-0x8c(%rbp)
jle    127e <dStrHex+0x14e>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
xor    %eax,%eax
cmp    %edx,%eax
jne    127e <dStrHex+0x14e>
lea    -0x70(%rbp),%rsi
lea    0xda9(%rip),%rdi
call   1030 <printf@plt>
movl   $0x5,-0x84(%rbp)
lea    -0x70(%rbp),%rdi
mov    $0x20,%esi
mov    $0x50,%edx
call   1040 <memset@plt>
jmp    1283 <dStrHex+0x153>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    11ad <dStrHex+0x7d>
cmpl   $0x5,-0x84(%rbp)
jle    12b4 <dStrHex+0x184>
lea    -0x70(%rbp),%rsi
lea    0xd56(%rip),%rdi
call   1030 <printf@plt>
jmp    1466 <dStrHex+0x336>
lea    -0x70(%rbp),%rdi
add    $0x1,%rdi
mov    -0x74(%rbp),%edx
lea    0xd35(%rip),%rsi
call   1050 <sprintf@plt>
mov    %eax,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
cltq
movb   $0x20,-0x70(%rbp,%rax,1)
movl   $0x0,-0x88(%rbp)
mov    -0x88(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    144c <dStrHex+0x31c>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
mov    (%rax),%al
mov    %al,-0x19(%rbp)
mov    -0x84(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x84(%rbp)
cmpl   $0x20,-0x84(%rbp)
jne    133e <dStrHex+0x20e>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
movslq -0x84(%rbp),%rax
lea    -0x70(%rbp),%rdi
add    %rax,%rdi
movzbl -0x19(%rbp),%edx
lea    0xca9(%rip),%rsi
call   1050 <sprintf@plt>
mov    -0x84(%rbp),%eax
add    $0x2,%eax
cltq
movb   $0x20,-0x70(%rbp,%rax,1)
cmpl   $0x0,-0x10(%rbp)
je     138d <dStrHex+0x25d>
mov    -0x80(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x80(%rbp)
cltq
movb   $0x20,-0x70(%rbp,%rax,1)
jmp    13bf <dStrHex+0x28f>
movzbl -0x19(%rbp),%eax
cmp    $0x20,%eax
jl     13a7 <dStrHex+0x277>
movzbl -0x19(%rbp),%eax
cmp    $0x7f,%eax
jl     13ab <dStrHex+0x27b>
movb   $0x2e,-0x19(%rbp)
mov    -0x19(%rbp),%cl
mov    -0x80(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x80(%rbp)
cltq
mov    %cl,-0x70(%rbp,%rax,1)
cmpl   $0x4b,-0x80(%rbp)
jle    1433 <dStrHex+0x303>
lea    -0x70(%rbp),%rsi
lea    0xc38(%rip),%rdi
call   1030 <printf@plt>
movl   $0x5,-0x84(%rbp)
movl   $0x3c,-0x80(%rbp)
mov    -0x74(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x74(%rbp)
lea    -0x70(%rbp),%rdi
mov    $0x20,%esi
mov    $0x50,%edx
call   1040 <memset@plt>
lea    -0x70(%rbp),%rdi
add    $0x1,%rdi
mov    -0x74(%rbp),%edx
lea    0xbe8(%rip),%rsi
call   1050 <sprintf@plt>
mov    %eax,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
cltq
movb   $0x20,-0x70(%rbp,%rax,1)
jmp    1438 <dStrHex+0x308>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    12f0 <dStrHex+0x1c0>
cmpl   $0x3c,-0x80(%rbp)
jle    1466 <dStrHex+0x336>
lea    -0x70(%rbp),%rsi
lea    0xbab(%rip),%rdi
call   1030 <printf@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dStrHex>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rdi,0x18(%rsp)
test   %esi,%esi
jle    138e <dStrHex+0x25e>
mov    %edx,%ebx
mov    %esi,%r13d
lea    0x30(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x20,%esi
mov    $0x50,%edx
call   1040 <memset@plt>
movb   $0x0,0x80(%rsp)
test   %ebx,%ebx
js     12a6 <dStrHex+0x176>
mov    %ebx,0x24(%rsp)
lea    0x31(%rsp),%rdi
lea    0xe76(%rip),%rbx
xor    %r12d,%r12d
mov    %rbx,%rsi
xor    %edx,%edx
call   1050 <sprintf@plt>
cltq
movb   $0x20,0x1(%rax,%rbp,1)
mov    %r13d,%eax
mov    %rax,0x28(%rsp)
mov    $0x3c,%r14d
mov    $0x5,%r15d
lea    0xe53(%rip),%rax
mov    %rax,0x10(%rsp)
movl   $0x0,0xc(%rsp)
jmp    122f <dStrHex+0xff>
nopl   0x0(%rax,%rax,1)
lea    0xe35(%rip),%rdi
lea    0x30(%rsp),%r14
mov    %r14,%rsi
call   1030 <printf@plt>
mov    0xc(%rsp),%ebp
add    $0x10,%ebp
mov    %r14,%rdi
mov    $0x20,%esi
mov    $0x50,%edx
call   1040 <memset@plt>
lea    0x31(%rsp),%rdi
mov    %rbx,%rsi
mov    %ebp,0xc(%rsp)
mov    %ebp,%edx
call   1050 <sprintf@plt>
cltq
movb   $0x20,0x1(%rax,%r14,1)
mov    $0x5,%r15d
mov    $0x3c,%r14d
add    $0x1,%r12
cmp    %r12d,0x28(%rsp)
je     1297 <dStrHex+0x167>
mov    0x18(%rsp),%rax
movzbl (%rax,%r12,1),%ebp
add    $0x3,%r15d
cmp    $0x20,%r15d
mov    $0x21,%eax
cmove  %eax,%r15d
movslq %r15d,%r13
lea    (%rsp,%r13,1),%rdi
add    $0x30,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
call   1050 <sprintf@plt>
lea    -0x7f(%rbp),%eax
cmp    $0xa1,%al
mov    $0x2e,%eax
cmovb  %eax,%ebp
cmpl   $0x0,0x24(%rsp)
mov    $0x20,%eax
cmovne %eax,%ebp
movb   $0x20,0x32(%rsp,%r13,1)
movslq %r14d,%rax
mov    %bpl,0x30(%rsp,%rax,1)
cmp    $0x4b,%r14d
jge    11d0 <dStrHex+0xa0>
add    $0x1,%r14d
jmp    1224 <dStrHex+0xf4>
cmp    $0x3d,%r14d
jge    137f <dStrHex+0x24f>
jmp    138e <dStrHex+0x25e>
mov    0x18(%rsp),%rax
movzbl (%rax),%edx
lea    0x38(%rsp),%rdi
lea    0xd46(%rip),%rsi
call   1050 <sprintf@plt>
movb   $0x20,0x3a(%rsp)
cmp    $0x1,%r13d
jne    12db <dStrHex+0x1ab>
lea    0xd34(%rip),%rax
mov    %rax,0x10(%rsp)
jmp    137f <dStrHex+0x24f>
add    $0xffffffff,%r13d
mov    $0x8,%ebp
xor    %ebx,%ebx
mov    $0x21,%r12d
lea    0xd0d(%rip),%r14
lea    0xd0b(%rip),%rax
mov    %rax,0x10(%rsp)
jmp    1319 <dStrHex+0x1e9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    %ebx,%r13d
je     137a <dStrHex+0x24a>
mov    0x18(%rsp),%rax
movzbl 0x1(%rax,%rbx,1),%edx
add    $0x3,%ebp
cmp    $0x20,%ebp
cmove  %r12d,%ebp
movslq %ebp,%r15
lea    (%rsp,%r15,1),%rdi
add    $0x30,%rdi
mov    %r14,%rsi
call   1050 <sprintf@plt>
movb   $0x20,0x32(%rsp,%r15,1)
lea    0x2(%rbx),%eax
test   $0xf,%al
jne    1310 <dStrHex+0x1e0>
lea    0xcb1(%rip),%rdi
lea    0x30(%rsp),%rbp
mov    %rbp,%rsi
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    $0x20,%esi
mov    $0x50,%edx
call   1040 <memset@plt>
mov    $0x5,%ebp
jmp    1310 <dStrHex+0x1e0>
cmp    $0x5,%ebp
jle    138e <dStrHex+0x25e>
lea    0x30(%rsp),%rsi
mov    0x10(%rsp),%rdi
call   1030 <printf@plt>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%.2x\00"
@.str.1 = [7 x i8] c"%.60s\0A\00"
@.str.2 = [7 x i8] c"%.76s\0A\00"
define void @dStrHex(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8
%9 = alloca [82 x i8]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%17 = load i8*, i8** %4
store i8* %17, i8** %7
store i32 0, i32* %10
store i32 5, i32* %11
store i32 60, i32* %12
store i32 60, i32* %13
store i32 5, i32* %14
%18 = load i32, i32* %5
%19 = icmp sle i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %3
br label %162
21: ; preds = %3
%22 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 0
%23 = call i32 @memset(i8* %22, i8 signext 32, i32 80)
%24 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 80
store i8 0, i8* %24
%25 = load i32, i32* %6
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %77
27: ; preds = %21
store i32 0, i32* %16
br label %28
28: ; preds = %67, %27
%29 = load i32, i32* %16
%30 = load i32, i32* %5
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %70
32: ; preds = %28
%33 = load i8*, i8** %7
%34 = getelementptr inbounds i8, i8* %33, i32 1
store i8* %34, i8** %7
%35 = load i8, i8* %33
store i8 %35, i8* %8
%36 = load i32, i32* %14
%37 = add nsw i32 %36, 3
store i32 %37, i32* %14
%38 = load i32, i32* %14
%39 = icmp eq i32 %38, 32
br i1 %39, label %40, label %43
40: ; preds = %32
%41 = load i32, i32* %14
%42 = add nsw i32 %41, 1
store i32 %42, i32* %14
br label %43
43: ; preds = %40, %32
%44 = load i32, i32* %14
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 %45
%47 = load i8, i8* %8
%48 = zext i8 %47 to i32
%49 = call i32 @sprintf(i8* %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %14
%51 = add nsw i32 %50, 2
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 %52
store i8 32, i8* %53
%54 = load i32, i32* %16
%55 = icmp sgt i32 %54, 0
br i1 %55, label %56, label %66
56: ; preds = %43
%57 = load i32, i32* %16
%58 = add nsw i32 %57, 1
%59 = srem i32 %58, 16
%60 = icmp eq i32 0, %59
br i1 %60, label %61, label %66
61: ; preds = %56
%62 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 0
%63 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %62)
store i32 5, i32* %14
%64 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 0
%65 = call i32 @memset(i8* %64, i8 signext 32, i32 80)
br label %66
66: ; preds = %61, %56, %43
br label %67
67: ; preds = %66
%68 = load i32, i32* %16
%69 = add nsw i32 %68, 1
store i32 %69, i32* %16
br label %28
70: ; preds = %28
%71 = load i32, i32* %14
%72 = icmp sgt i32 %71, 5
br i1 %72, label %73, label %76
73: ; preds = %70
%74 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 0
%75 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %74)
br label %76
76: ; preds = %73, %70
br label %162
77: ; preds = %21
%78 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 0
%79 = getelementptr inbounds i8, i8* %78, i64 1
%80 = load i32, i32* %10
%81 = call i32 @sprintf(i8* %79, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %80)
store i32 %81, i32* %16
%82 = load i32, i32* %16
%83 = add nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 %84
store i8 32, i8* %85
store i32 0, i32* %15
br label %86
86: ; preds = %153, %77
%87 = load i32, i32* %15
%88 = load i32, i32* %5
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %156
90: ; preds = %86
%91 = load i8*, i8** %7
%92 = getelementptr inbounds i8, i8* %91, i32 1
store i8* %92, i8** %7
%93 = load i8, i8* %91
store i8 %93, i8* %8
%94 = load i32, i32* %14
%95 = add nsw i32 %94, 3
store i32 %95, i32* %14
%96 = load i32, i32* %14
%97 = icmp eq i32 %96, 32
br i1 %97, label %98, label %101
98: ; preds = %90
%99 = load i32, i32* %14
%100 = add nsw i32 %99, 1
store i32 %100, i32* %14
br label %101
101: ; preds = %98, %90
%102 = load i32, i32* %14
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 %103
%105 = load i8, i8* %8
%106 = zext i8 %105 to i32
%107 = call i32 @sprintf(i8* %104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %106)
%108 = load i32, i32* %14
%109 = add nsw i32 %108, 2
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 %110
store i8 32, i8* %111
%112 = load i32, i32* %6
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %119
114: ; preds = %101
%115 = load i32, i32* %13
%116 = add nsw i32 %115, 1
store i32 %116, i32* %13
%117 = sext i32 %115 to i64
%118 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 %117
store i8 32, i8* %118
br label %134
119: ; preds = %101
%120 = load i8, i8* %8
%121 = zext i8 %120 to i32
%122 = icmp slt i32 %121, 32
br i1 %122, label %127, label %123
123: ; preds = %119
%124 = load i8, i8* %8
%125 = zext i8 %124 to i32
%126 = icmp sge i32 %125, 127
br i1 %126, label %127, label %128
127: ; preds = %123, %119
store i8 46, i8* %8
br label %128
128: ; preds = %127, %123
%129 = load i8, i8* %8
%130 = load i32, i32* %13
%131 = add nsw i32 %130, 1
store i32 %131, i32* %13
%132 = sext i32 %130 to i64
%133 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 %132
store i8 %129, i8* %133
br label %134
134: ; preds = %128, %114
%135 = load i32, i32* %13
%136 = icmp sgt i32 %135, 75
br i1 %136, label %137, label %152
137: ; preds = %134
%138 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 0
%139 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %138)
store i32 5, i32* %14
store i32 60, i32* %13
%140 = load i32, i32* %10
%141 = add nsw i32 %140, 16
store i32 %141, i32* %10
%142 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 0
%143 = call i32 @memset(i8* %142, i8 signext 32, i32 80)
%144 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 0
%145 = getelementptr inbounds i8, i8* %144, i64 1
%146 = load i32, i32* %10
%147 = call i32 @sprintf(i8* %145, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %146)
store i32 %147, i32* %16
%148 = load i32, i32* %16
%149 = add nsw i32 %148, 1
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 %150
store i8 32, i8* %151
br label %152
152: ; preds = %137, %134
br label %153
153: ; preds = %152
%154 = load i32, i32* %15
%155 = add nsw i32 %154, 1
store i32 %155, i32* %15
br label %86
156: ; preds = %86
%157 = load i32, i32* %13
%158 = icmp sgt i32 %157, 60
br i1 %158, label %159, label %162
159: ; preds = %156
%160 = getelementptr inbounds [82 x i8], [82 x i8]* %9, i64 0, i64 0
%161 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %160)
br label %162
162: ; preds = %20, %76, %159, %156
ret void
}

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