#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
scalar_t__ strlen(char const *);
void write_chunk(FILE *out, const char *label, const char *comment,
                 const unsigned char *buf, int size, int cols) {
  int i, j, k, m;
  int has_label = (label && strlen(label)) ? 1 : 0;
  int has_comment = (comment && strlen(comment)) ? 1 : 0;
  if (has_label)
    fprintf(out, "%s:", label);
  if (has_comment) {
    if (has_label)
      fprintf(out, " ");
    fprintf(out, "; %s", comment);
  }
  fprintf(out, "\n");
  k = 0;
  for (i = 0; i < size / cols; i++) {
    fprintf(out, ".db ");
    for (j = 0; j < cols - 1; j++) {
      fprintf(out, "$%.2X,", buf[k++]);
    }
    fprintf(out, "$%.2X\n", buf[k++]);
  }
  m = size % cols;
  if (m > 0) {
    fprintf(out, ".db ");
    for (j = 0; j < m - 1; j++) {
      fprintf(out, "$%.2X,", buf[k++]);
    }
    fprintf(out, "$%.2X\n", buf[k++]);
  }
}


x86 assembly (clang, -O0):
<write_chunk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x10(%rbp)
mov    %al,-0x41(%rbp)
je     1163 <write_chunk+0x43>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x41(%rbp)
mov    -0x41(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x3c(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x18(%rbp)
mov    %al,-0x42(%rbp)
je     1199 <write_chunk+0x79>
mov    -0x18(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x42(%rbp)
mov    -0x42(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x3c(%rbp)
je     11cc <write_chunk+0xac>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xe3b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
cmpl   $0x0,-0x40(%rbp)
je     1208 <write_chunk+0xe8>
cmpl   $0x0,-0x3c(%rbp)
je     11f2 <write_chunk+0xd2>
mov    -0x8(%rbp),%rdi
lea    0xe21(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xe03(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe07(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x24(%rbp),%eax
cltd
idivl  -0x28(%rbp)
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
cmp    %ecx,%eax
jge    12d8 <write_chunk+0x1b8>
mov    -0x8(%rbp),%rdi
lea    0xdbc(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    12a2 <write_chunk+0x182>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%edx
lea    0xd81(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    125b <write_chunk+0x13b>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%edx
lea    0xd52(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1228 <write_chunk+0x108>
mov    -0x24(%rbp),%eax
cltd
idivl  -0x28(%rbp)
mov    %edx,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
jle    1374 <write_chunk+0x254>
mov    -0x8(%rbp),%rdi
lea    0xd12(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    134c <write_chunk+0x22c>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%edx
lea    0xcd7(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1305 <write_chunk+0x1e5>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%edx
lea    0xca8(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_chunk>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x18(%rsp)
mov    %r8d,%r12d
mov    %rcx,%r13
mov    %rdx,%rbp
mov    %rdi,%rbx
test   %rsi,%rsi
je     118b <write_chunk+0x5b>
mov    %rsi,%rdx
mov    (%rsi),%al
test   %rbp,%rbp
je     1198 <write_chunk+0x68>
mov    0x0(%rbp),%r14b
test   %al,%al
je     11a8 <write_chunk+0x78>
lea    0xe93(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <fprintf@plt>
test   %r14b,%r14b
je     11c1 <write_chunk+0x91>
mov    $0x20,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
jmp    11ad <write_chunk+0x7d>
test   %rbp,%rbp
je     11c1 <write_chunk+0x91>
cmpb   $0x0,0x0(%rbp)
jne    11ad <write_chunk+0x7d>
jmp    11c1 <write_chunk+0x91>
test   %al,%al
je     11c1 <write_chunk+0x91>
lea    0xe5d(%rip),%rsi
mov    %rbx,%rdi
jmp    11ba <write_chunk+0x8a>
test   %r14b,%r14b
je     11c1 <write_chunk+0x91>
lea    0xe50(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
mov    %r12d,%eax
cltd
mov    0x18(%rsp),%rbp
idiv   %ebp
mov    %edx,0x10(%rsp)
mov    %eax,0x14(%rsp)
test   %eax,%eax
jle    12a2 <write_chunk+0x172>
lea    -0x1(%rbp),%r15d
lea    0xe1a(%rip),%r12
xor    %r14d,%r14d
movl   $0x0,0xc(%rsp)
mov    %r13,0x20(%rsp)
jmp    1240 <write_chunk+0x110>
cs nopw 0x0(%rax,%rax,1)
mov    0xc(%rsp),%ecx
movslq %ecx,%rax
add    $0x1,%ecx
mov    %ecx,0xc(%rsp)
movzbl 0x0(%r13,%rax,1),%edx
mov    %rbx,%rdi
lea    0xde7(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%r14d
cmp    0x14(%rsp),%r14d
je     12aa <write_chunk+0x17a>
mov    $0x4,%esi
mov    $0x1,%edx
lea    0xdb8(%rip),%rdi
mov    %rbx,%rcx
call   1050 <fwrite@plt>
cmp    $0x2,%ebp
jl     1210 <write_chunk+0xe0>
movslq 0xc(%rsp),%rbp
add    %r13,%rbp
xor    %r13d,%r13d
nopl   0x0(%rax)
movzbl 0x0(%rbp,%r13,1),%edx
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%r13
cmp    %r13d,%r15d
jne    1270 <write_chunk+0x140>
mov    0xc(%rsp),%ecx
add    %r13d,%ecx
mov    0x20(%rsp),%r13
mov    0x18(%rsp),%rbp
jmp    1214 <write_chunk+0xe4>
movl   $0x0,0xc(%rsp)
mov    0x10(%rsp),%ebp
test   %ebp,%ebp
jle    12d6 <write_chunk+0x1a6>
lea    0xd50(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
cmp    $0x1,%ebp
jne    12e5 <write_chunk+0x1b5>
mov    0xc(%rsp),%eax
jmp    1321 <write_chunk+0x1f1>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0xffffffff,%ebp
movslq 0xc(%rsp),%r12
add    %r13,%r12
mov    %ebp,%r15d
lea    0xd14(%rip),%r14
xor    %ebp,%ebp
nopl   0x0(%rax)
movzbl (%r12,%rbp,1),%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%rbp
cmp    %ebp,%r15d
jne    1300 <write_chunk+0x1d0>
mov    0xc(%rsp),%eax
add    %ebp,%eax
cltq
movzbl 0x0(%r13,%rax,1),%edx
lea    0xce5(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fprintf@plt>

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

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