void d(unsigned char *buf, int len, int width, int group) {
  int i, offset = 0, line_done = 0;
  char ascii[width + 1];
  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    $0x50,%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)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x40(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0xf,-0x18(%rbp)
jg     119a <d+0x8a>
mov    -0x18(%rbp),%esi
lea    0xe81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1171 <d+0x61>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12e2 <d+0x1d2>
movl   $0x0,-0x20(%rbp)
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
cmp    $0x0,%edx
jne    11d5 <d+0xc5>
mov    -0x1c(%rbp),%esi
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
jne    1204 <d+0xf4>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    121e <d+0x10e>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xdfb(%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     125c <d+0x14c>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0x7e,%eax
jg     125c <d+0x14c>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
mov    %eax,-0x44(%rbp)
jmp    1269 <d+0x159>
mov    $0x2e,%eax
mov    %eax,-0x44(%rbp)
jmp    1269 <d+0x159>
mov    -0x44(%rbp),%eax
mov    %al,-0x45(%rbp)
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    -0x40(%rbp),%rax
mov    %edx,%ecx
mov    -0x45(%rbp),%dl
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
cltd
idivl  -0x10(%rbp)
cmp    $0x0,%edx
jne    12cf <d+0x1bf>
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    %edx,%eax
mov    -0x40(%rbp),%rdx
add    $0x1,%eax
cltq
movb   $0x0,(%rdx,%rax,1)
mov    -0x10(%rbp),%esi
lea    0xd63(%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    12d4 <d+0x1c4>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11a1 <d+0x91>
cmpl   $0x0,-0x20(%rbp)
jne    1356 <d+0x246>
mov    -0x40(%rbp),%r8
mov    -0x10(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
mov    -0x4c(%rbp),%eax
sub    %edx,%eax
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%eax
cltd
idivl  -0x10(%rbp)
add    $0x1,%edx
movslq %edx,%rax
movb   $0x0,(%r8,%rax,1)
mov    -0x34(%rbp),%esi
shl    $0x1,%esi
mov    -0x34(%rbp),%eax
xor    %edx,%edx
divl   -0x14(%rbp)
add    %eax,%esi
mov    -0x34(%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    0xccf(%rip),%rdi
lea    0xcd5(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcc6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<d>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %ecx,-0x30(%rbp)
mov    %edx,%r15d
mov    %esi,%ebx
mov    %rdi,-0x38(%rbp)
lea    0x1(%r15),%eax
mov    %rsp,%r14
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
lea    0xea7(%rip),%rdi
xor    %r13d,%r13d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe9c(%rip),%r12
mov    %r12,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0xe,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rsi
test   %ebx,%ebx
jle    1342 <d+0x222>
mov    %ebx,-0x3c(%rbp)
mov    %ebx,%eax
mov    %rax,-0x48(%rbp)
xor    %r12d,%r12d
movl   $0x0,-0x2c(%rbp)
mov    -0x38(%rbp),%r13
jmp    12bd <d+0x19d>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <printf@plt>
movzbl 0x0(%r13,%r12,1),%eax
lea    -0x21(%rax),%ecx
cmp    $0x5e,%cl
mov    $0x2e,%ecx
cmovae %ecx,%eax
mov    %r14d,%ecx
mov    %rbx,%r14
mov    %al,(%rbx,%rcx,1)
add    $0x1,%r12
mov    %r12d,%eax
cltd
mov    %r15,%rsi
idiv   %esi
mov    %edx,%ebx
test   %edx,%edx
je     1310 <d+0x1f0>
cmp    %r12,-0x48(%rbp)
je     133a <d+0x21a>
mov    %r14,%rbx
mov    %r12d,%eax
cltd
mov    %rsi,%r15
idiv   %esi
mov    %edx,%r14d
test   %edx,%edx
jne    12e5 <d+0x1c5>
lea    0xd33(%rip),%rdi
mov    -0x2c(%rbp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x38(%rbp),%r13
mov    %r12d,%eax
cltd
idivl  -0x30(%rbp)
movzbl 0x0(%r13,%r12,1),%esi
lea    0xd18(%rip),%rdi
test   %edx,%edx
je     1280 <d+0x160>
lea    0xd0e(%rip),%rdi
jmp    1280 <d+0x160>
nopl   0x0(%rax)
movb   $0x0,0x1(%rcx,%r14,1)
lea    0xcfe(%rip),%rdi
mov    %r15d,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rsi
mov    -0x38(%rbp),%r13
add    %esi,-0x2c(%rbp)
cmp    %r12,-0x48(%rbp)
jne    12bd <d+0x19d>
mov    -0x3c(%rbp),%r13d
test   %ebx,%ebx
je     137d <d+0x25d>
mov    %r13d,%eax
cltd
idiv   %esi
mov    %esi,%edi
sub    %edx,%edi
movb   $0x0,0x1(%rdx,%r14,1)
mov    %edi,%eax
xor    %edx,%edx
divl   -0x30(%rbp)
mov    %rsi,%rcx
lea    (%rax,%rdi,2),%esi
cmp    $0x1,%edx
sbb    $0xffffffff,%esi
lea    0xcab(%rip),%rdi
lea    0xc92(%rip),%rdx
mov    %r14,%r8
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x28(%rbp),%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 i8*
%13 = alloca i64
%14 = 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
%15 = load i32, i32* %7
%16 = add nsw i32 %15, 1
%17 = zext i32 %16 to i64
%18 = call i8* @llvm.stacksave()
store i8* %18, i8** %12
%19 = alloca i8, i64 %17
store i64 %17, i64* %13
%20 = 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 %21
21: ; preds = %27, %4
%22 = load i32, i32* %9
%23 = icmp sle i32 %22, 15
br i1 %23, label %24, label %30
24: ; preds = %21
%25 = load i32, i32* %9
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %25)
br label %27
27: ; preds = %24
%28 = load i32, i32* %9
%29 = add nsw i32 %28, 1
store i32 %29, i32* %9
br label %21
30: ; preds = %21
store i32 0, i32* %9
br label %31
31: ; preds = %114, %30
%32 = load i32, i32* %9
%33 = load i32, i32* %6
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %117
35: ; preds = %31
store i32 0, i32* %11
%36 = load i32, i32* %9
%37 = load i32, i32* %7
%38 = srem i32 %36, %37
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %35
%41 = load i32, i32* %10
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %41)
br label %43
43: ; preds = %40, %35
%44 = load i32, i32* %9
%45 = load i32, i32* %8
%46 = srem i32 %44, %45
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %56
48: ; preds = %43
%49 = load i8*, i8** %5
%50 = load i32, i32* %9
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, i8* %49, i64 %51
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %54)
br label %64
56: ; preds = %43
%57 = load i8*, i8** %5
%58 = load i32, i32* %9
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, i8* %57, i64 %59
%61 = load i8, i8* %60
%62 = zext i8 %61 to i32
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %62)
br label %64
64: ; preds = %56, %48
%65 = load i8*, i8** %5
%66 = load i32, i32* %9
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, i8* %65, i64 %67
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = icmp sge i32 %70, 33
br i1 %71, label %72, label %87
72: ; preds = %64
%73 = load i8*, i8** %5
%74 = load i32, i32* %9
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, i8* %73, i64 %75
%77 = load i8, i8* %76
%78 = zext i8 %77 to i32
%79 = icmp sle i32 %78, 126
br i1 %79, label %80, label %87
80: ; preds = %72
%81 = load i8*, i8** %5
%82 = load i32, i32* %9
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, i8* %81, i64 %83
%85 = load i8, i8* %84
%86 = zext i8 %85 to i32
br label %88
87: ; preds = %72, %64
br label %88
88: ; preds = %87, %80
%89 = phi i32 [ %86, %80 ], [ 46, %87 ]
%90 = trunc i32 %89 to i8
%91 = load i32, i32* %9
%92 = load i32, i32* %7
%93 = srem i32 %91, %92
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, i8* %19, i64 %94
store i8 %90, i8* %95
%96 = load i32, i32* %9
%97 = add nsw i32 %96, 1
%98 = load i32, i32* %7
%99 = srem i32 %97, %98
%100 = icmp eq i32 %99, 0
br i1 %100, label %101, label %113
101: ; preds = %88
%102 = load i32, i32* %9
%103 = load i32, i32* %7
%104 = srem i32 %102, %103
%105 = add nsw i32 %104, 1
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, i8* %19, i64 %106
store i8 0, i8* %107
%108 = load i32, i32* %7
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %108, i8* %19)
%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 = %101, %88
br label %114
114: ; preds = %113
%115 = load i32, i32* %9
%116 = add nsw i32 %115, 1
store i32 %116, i32* %9
br label %31
117: ; preds = %31
%118 = load i32, i32* %11
%119 = icmp ne i32 %118, 0
br i1 %119, label %147, 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* %14
%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 i8, i8* %19, i64 %130
store i8 0, i8* %131
%132 = load i32, i32* %14
%133 = mul i32 2, %132
%134 = load i32, i32* %14
%135 = load i32, i32* %8
%136 = udiv i32 %134, %135
%137 = add i32 %133, %136
%138 = load i32, i32* %14
%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 = 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* %19)
br label %147
147: ; preds = %120, %117
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%149 = load i8*, i8** %12
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 = add nsw i32 %2, 1
%6 = zext i32 %5 to i64
%7 = alloca i8, i64 %6
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 0)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 1)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 2)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 4)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 5)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 6)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 7)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 8)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 9)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 10)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 11)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 12)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 13)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 14)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 15)
%25 = icmp sgt i32 %1, 0
br i1 %25, label %26, label %65
26: ; preds = %4
%27 = zext i32 %1 to i64
br label %28
28: ; preds = %26, %61
%29 = phi i64 [ 0, %26 ], [ %51, %61 ]
%30 = phi i32 [ 0, %26 ], [ %62, %61 ]
%31 = trunc i64 %29 to i32
%32 = srem i32 %31, %2
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %30)
br label %36
36: ; preds = %34, %28
%37 = srem i32 %31, %3
%38 = icmp eq i32 %37, 0
%39 = getelementptr inbounds i8, i8* %0, i64 %29
%40 = load i8, i8* %39
%41 = zext i8 %40 to i32
%42 = select i1 %38, 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)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %42, i32 %41)
%44 = getelementptr inbounds i8, i8* %0, i64 %29
%45 = load i8, i8* %44
%46 = add i8 %45, -33
%47 = icmp ult i8 %46, 94
%48 = select i1 %47, i8 %45, i8 46
%49 = zext i32 %32 to i64
%50 = getelementptr inbounds i8, i8* %7, i64 %49
store i8 %48, i8* %50
%51 = add nuw nsw i64 %29, 1
%52 = trunc i64 %51 to i32
%53 = srem i32 %52, %2
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %61
55: ; preds = %36
%56 = add nuw nsw i32 %32, 1
%57 = zext i32 %56 to i64
%58 = getelementptr inbounds i8, i8* %7, i64 %57
store i8 0, i8* %58
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %2, i8* %7)
%60 = add nsw i32 %30, %2
br label %61
61: ; preds = %36, %55
%62 = phi i32 [ %60, %55 ], [ %30, %36 ]
%63 = icmp eq i64 %51, %27
br i1 %63, label %64, label %28
64: ; preds = %61
br i1 %54, label %80, label %65
65: ; preds = %4, %64
%66 = phi i32 [ %1, %64 ], [ 0, %4 ]
%67 = srem i32 %66, %2
%68 = sub nsw i32 %2, %67
%69 = add nuw nsw i32 %67, 1
%70 = zext i32 %69 to i64
%71 = getelementptr inbounds i8, i8* %7, i64 %70
store i8 0, i8* %71
%72 = shl i32 %68, 1
%73 = udiv i32 %68, %3
%74 = add i32 %72, %73
%75 = urem i32 %68, %3
%76 = icmp ne i32 %75, 0
%77 = zext i1 %76 to i32
%78 = add i32 %74, %77
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %78, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i32 %2, i8* %7)
br label %80
80: ; preds = %65, %64
%81 = call i32 @putchar(i32 10)
ret void
}