void d(unsigned char *buf, int len, int width, int group) {
  int i, offset = 0, line_done = 0;
  char ascii[32 + 1];
  assert(width < sizeof(ascii));
  printf("     ");
  for (i = 0; i <= 15; i++)
    printf("%3x", i);
  for (i = 0; i < len; i++) {
    line_done = 0;
    if (i % width == 0)
      printf("\n%04x:", offset);
    if (i % group == 0)
      printf(" %02x", buf[i]);
    else
      printf("%02x", buf[i]);
    ascii[i % width] = (buf[i] >= '!' && buf[i] <= '~') ? buf[i] : '.';
    if (((i + 1) % width) == 0) {
      ascii[i % width + 1] = '\0';
      printf(" \"%.*s\"", width, ascii);
      offset += width;
      line_done = 1;
    }
  }
  if (!line_done) {
    unsigned b = width - (i % width);
    ascii[i % width + 1] = '\0';
    printf(" %*s \"%.*s\"", 2 * b + b / group + (b % group ? 1 : 0), "", width,
           ascii);
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<d>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movslq -0x10(%rbp),%rax
cmp    $0x21,%rax
setb   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0xf,-0x18(%rbp)
jg     1198 <d+0x78>
mov    -0x18(%rbp),%esi
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    116f <d+0x4f>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12d7 <d+0x1b7>
movl   $0x0,-0x20(%rbp)
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
cmp    $0x0,%edx
jne    11d3 <d+0xb3>
mov    -0x1c(%rbp),%esi
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
jne    1202 <d+0xe2>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    121c <d+0xfc>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x21,%eax
jl     125a <d+0x13a>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x7e,%eax
jg     125a <d+0x13a>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
mov    %eax,-0x58(%rbp)
jmp    1267 <d+0x147>
mov    $0x2e,%eax
mov    %eax,-0x58(%rbp)
jmp    1267 <d+0x147>
mov    -0x58(%rbp),%eax
mov    %al,%cl
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
movslq %edx,%rax
mov    %cl,-0x50(%rbp,%rax,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
cltd
idivl  -0x10(%rbp)
cmp    $0x0,%edx
jne    12c4 <d+0x1a4>
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
add    $0x1,%edx
movslq %edx,%rax
movb   $0x0,-0x50(%rbp,%rax,1)
mov    -0x10(%rbp),%esi
lea    -0x50(%rbp),%rdx
lea    0xd6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
movl   $0x1,-0x20(%rbp)
jmp    12c9 <d+0x1a9>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    119f <d+0x7f>
cmpl   $0x0,-0x20(%rbp)
jne    134b <d+0x22b>
mov    -0x10(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    -0x5c(%rbp),%eax
sub    %edx,%eax
mov    %eax,-0x54(%rbp)
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
add    $0x1,%edx
movslq %edx,%rax
movb   $0x0,-0x50(%rbp,%rax,1)
mov    -0x54(%rbp),%esi
shl    $0x1,%esi
mov    -0x54(%rbp),%eax
xor    %edx,%edx
divl   -0x14(%rbp)
add    %eax,%esi
mov    -0x54(%rbp),%eax
xor    %edx,%edx
divl   -0x14(%rbp)
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
add    %eax,%esi
mov    -0x10(%rbp),%ecx
lea    -0x50(%rbp),%r8
lea    0xcda(%rip),%rdi
lea    0xce0(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<d>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %ecx,(%rsp)
mov    %edx,%ebx
mov    %esi,%ebp
mov    %rdi,0x8(%rsp)
xor    %edi,%edi
cmp    $0x21,%edx
setb   %dil
xor    %r12d,%r12d
xor    %eax,%eax
call   1050 <assert@plt>
lea    0xe9c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe94(%rip),%r13
mov    %r13,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0xe,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1040 <printf@plt>
test   %ebp,%ebp
jle    132b <d+0x1fb>
mov    %ebp,0x4(%rsp)
mov    %ebp,%r15d
xor    %r12d,%r12d
xor    %r14d,%r14d
jmp    12b7 <d+0x187>
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <printf@plt>
movzbl 0x0(%rbp,%r12,1),%eax
lea    -0x21(%rax),%ecx
cmp    $0x5e,%cl
mov    $0x2e,%ecx
cmovae %ecx,%eax
mov    %r13d,%ecx
mov    %al,0x10(%rsp,%rcx,1)
add    $0x1,%r12
mov    %r12d,%eax
cltd
idiv   %ebx
mov    %edx,%ebp
test   %edx,%edx
je     1300 <d+0x1d0>
cmp    %r12,%r15
je     1322 <d+0x1f2>
mov    %r12d,%eax
cltd
idiv   %ebx
mov    %edx,%r13d
test   %edx,%edx
jne    12d5 <d+0x1a5>
lea    0xd3f(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12d,%eax
cltd
idivl  (%rsp)
mov    0x8(%rsp),%rbp
movzbl 0x0(%rbp,%r12,1),%esi
lea    0xd23(%rip),%rdi
test   %edx,%edx
je     1280 <d+0x150>
lea    0xd19(%rip),%rdi
jmp    1280 <d+0x150>
nopl   0x0(%rax,%rax,1)
lea    0x10(%rsp),%rdx
movb   $0x0,0x1(%rcx,%rdx,1)
lea    0xd0a(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    %ebx,%r14d
cmp    %r12,%r15
jne    12b7 <d+0x187>
mov    0x4(%rsp),%r12d
test   %ebp,%ebp
je     1367 <d+0x237>
mov    %r12d,%eax
cltd
idiv   %ebx
mov    %ebx,%ecx
sub    %edx,%ecx
lea    0x10(%rsp),%r8
movb   $0x0,0x1(%rdx,%r8,1)
mov    %ecx,%eax
xor    %edx,%edx
divl   (%rsp)
lea    (%rax,%rcx,2),%esi
cmp    $0x1,%edx
sbb    $0xffffffff,%esi
lea    0xcc0(%rip),%rdi
lea    0xca7(%rip),%rdx
mov    %ebx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c" \00"
@.str.1 = [4 x i8] c"%3x\00"
@.str.2 = [7 x i8] c"\0A%04x:\00"
@.str.3 = [6 x i8] c" %02x\00"
@.str.4 = [5 x i8] c"%02x\00"
@.str.5 = [8 x i8] c" \22%.*s\22\00"
@.str.6 = [12 x i8] c" %*s \22%.*s\22\00"
@.str.7 = [1 x i8] zeroinitializer
define void @d(i8* nocapture %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca [33 x i8]
%6 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%7 = icmp ult i32 %2, 33
%8 = zext i1 %7 to i32
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %8)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 0)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 1)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 2)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 4)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 5)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 6)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 7)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 8)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 9)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 10)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 11)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 12)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 13)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 14)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 15)
%27 = icmp sgt i32 %1, 0
br i1 %27, label %28, label %67
28: ; preds = %4
%29 = zext i32 %1 to i64
br label %30
30: ; preds = %28, %63
%31 = phi i64 [ 0, %28 ], [ %53, %63 ]
%32 = phi i32 [ 0, %28 ], [ %64, %63 ]
%33 = trunc i64 %31 to i32
%34 = srem i32 %33, %2
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %30
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %32)
br label %38
38: ; preds = %36, %30
%39 = srem i32 %33, %3
%40 = icmp eq i32 %39, 0
%41 = getelementptr inbounds i8, i8* %0, i64 %31
%42 = load i8, i8* %41
%43 = zext i8 %42 to i32
%44 = select i1 %40, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %44, i32 %43)
%46 = getelementptr inbounds i8, i8* %0, i64 %31
%47 = load i8, i8* %46
%48 = add i8 %47, -33
%49 = icmp ult i8 %48, 94
%50 = select i1 %49, i8 %47, i8 46
%51 = zext i32 %34 to i64
%52 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 %51
store i8 %50, i8* %52
%53 = add nuw nsw i64 %31, 1
%54 = trunc i64 %53 to i32
%55 = srem i32 %54, %2
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %63
57: ; preds = %38
%58 = add nuw nsw i32 %34, 1
%59 = zext i32 %58 to i64
%60 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 %59
store i8 0, i8* %60
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %2, i8* %6)
%62 = add nsw i32 %32, %2
br label %63
63: ; preds = %38, %57
%64 = phi i32 [ %62, %57 ], [ %32, %38 ]
%65 = icmp eq i64 %53, %29
br i1 %65, label %66, label %30
66: ; preds = %63
br i1 %56, label %82, label %67
67: ; preds = %4, %66
%68 = phi i32 [ %1, %66 ], [ 0, %4 ]
%69 = srem i32 %68, %2
%70 = sub nsw i32 %2, %69
%71 = add nuw nsw i32 %69, 1
%72 = zext i32 %71 to i64
%73 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 %72
store i8 0, i8* %73
%74 = shl i32 %70, 1
%75 = udiv i32 %70, %3
%76 = add i32 %74, %75
%77 = urem i32 %70, %3
%78 = icmp ne i32 %77, 0
%79 = zext i1 %78 to i32
%80 = add i32 %76, %79
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %80, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i32 %2, i8* %6)
br label %82
82: ; preds = %67, %66
%83 = call i32 @putchar(i32 10)
ret void
}