#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, unsigned char);
int /*<<< orphan*/ fputc(long, int /*<<< orphan*/ *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ getCodepointsUTF8(int /*<<< orphan*/ *, long **, int *,
                                     int *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ strAppendUTF8(long, unsigned char **, int *);
int main(int argc, char **argv) {
  FILE *input;
  FILE *output;
  char *buffer = NULL;
  long codepoints[4];
  int arrLength = 0;
  int byteLength = 0;
  int state = 1;
  int i;
  int headerOutput = 0;
  input = fopen(argv[1], "rb");
  output = fopen(argv[2], "wb");
  getCodepointsUTF8(input, &codepoints, &arrLength, &byteLength);
  while (codepoints[0] != -1) {
    if (arrLength != 1) {
      printf("abort!\n");
      break;
    }
    switch (state) {
    case 1: {
      if (headerOutput) {
        fputs(",\n", output);
      } else {
        fputs("module.exports = [\n", output);
        headerOutput = 1;
      }
      if (codepoints[0] == 0x22) {
        state = 2;
      }
    } break;
    case 2: {
      fprintf(output, "[0x%04x,[", codepoints[0]);
      byteLength = 0;
      strAppendUTF8(codepoints[0], (unsigned char **)&buffer, &byteLength);
      for (i = 0; i < byteLength; i++) {
        if (i != 0) {
          fputs(", ", output);
        }
        fprintf(output, "0x%02x", (unsigned char)buffer[i]);
      }
      free(buffer);
      buffer = NULL;
      fputc(']', output);
      state = 3;
    } break;
    case 3: {
      if (codepoints[0] == 0x22) {
        state = 4;
      }
    } break;
    case 4: {
      if (codepoints[0] == 0x0a) {
        fputc(']', output);
        state = 1;
      } else {
        fputc(codepoints[0], output);
      }
    } break;
    }
    getCodepointsUTF8(input, &codepoints, &arrLength, &byteLength);
  }
  fputs("\n];", output);
  fclose(input);
  fclose(output);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x1,-0x5c(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe37(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe22(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x54(%rbp),%rdx
lea    -0x58(%rbp),%rcx
call   1090 <getCodepointsUTF8@plt>
cmpq   $0xffffffffffffffff,-0x50(%rbp)
je     13c4 <main+0x234>
cmpl   $0x1,-0x54(%rbp)
je     1235 <main+0xa5>
lea    0xdeb(%rip),%rdi
call   1050 <printf@plt>
jmp    13c4 <main+0x234>
mov    -0x5c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x70(%rbp)
sub    $0x3,%eax
ja     13aa <main+0x21a>
mov    -0x70(%rbp),%rax
lea    0xdab(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cmpl   $0x0,-0x64(%rbp)
je     127d <main+0xed>
mov    -0x20(%rbp),%rsi
lea    0xdab(%rip),%rdi
call   1060 <fputs@plt>
jmp    1294 <main+0x104>
mov    -0x20(%rbp),%rsi
lea    0xd99(%rip),%rdi
call   1060 <fputs@plt>
movl   $0x1,-0x64(%rbp)
cmpq   $0x22,-0x50(%rbp)
jne    12a6 <main+0x116>
movl   $0x2,-0x5c(%rbp)
jmp    13aa <main+0x21a>
mov    -0x20(%rbp),%rdi
mov    -0x50(%rbp),%rax
lea    0xd7b(%rip),%rsi
movzbl %al,%edx
call   1080 <fprintf@plt>
movl   $0x0,-0x58(%rbp)
mov    -0x50(%rbp),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x58(%rbp),%rdx
call   10a0 <strAppendUTF8@plt>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    1331 <main+0x1a1>
cmpl   $0x0,-0x60(%rbp)
je     1307 <main+0x177>
mov    -0x20(%rbp),%rsi
lea    0xd3d(%rip),%rdi
call   1060 <fputs@plt>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rax
movslq -0x60(%rbp),%rcx
lea    0xd28(%rip),%rsi
movzbl (%rax,%rcx,1),%edx
call   1080 <fprintf@plt>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    12e1 <main+0x151>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x28(%rbp)
mov    -0x20(%rbp),%rsi
mov    $0x5d,%edi
call   1070 <fputc@plt>
movl   $0x3,-0x5c(%rbp)
jmp    13aa <main+0x21a>
cmpq   $0x22,-0x50(%rbp)
jne    136e <main+0x1de>
movl   $0x4,-0x5c(%rbp)
jmp    13aa <main+0x21a>
cmpq   $0xa,-0x50(%rbp)
jne    1398 <main+0x208>
mov    -0x20(%rbp),%rsi
mov    $0x5d,%edi
call   1070 <fputc@plt>
movl   $0x1,-0x5c(%rbp)
jmp    13a5 <main+0x215>
mov    -0x50(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1070 <fputc@plt>
jmp    13aa <main+0x21a>
mov    -0x18(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x54(%rbp),%rdx
lea    -0x58(%rbp),%rcx
call   1090 <getCodepointsUTF8@plt>
jmp    120f <main+0x7f>
mov    -0x20(%rbp),%rsi
lea    0xc7a(%rip),%rdi
call   1060 <fputs@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rbx
movq   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
mov    0x8(%rsi),%rdi
lea    0xe4b(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r14
mov    0x10(%rbx),%rdi
lea    0xe3b(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%rbx
lea    0x20(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    %r14,%rdi
call   1080 <getCodepointsUTF8@plt>
mov    0x20(%rsp),%rdi
cmp    $0xffffffffffffffff,%rdi
je     13db <main+0x24b>
mov    $0x1,%r13d
movl   $0x0,0x1c(%rsp)
lea    0x20(%rsp),%rbp
lea    0xe1a(%rip),%r12
lea    0xe10(%rip),%r15
jmp    1264 <main+0xd4>
xor    %r13d,%r13d
cmp    $0x22,%rdi
sete   %r13b
add    $0x3,%r13d
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbp,%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
call   1080 <getCodepointsUTF8@plt>
mov    0x20(%rsp),%rdi
cmp    $0xffffffffffffffff,%rdi
je     13db <main+0x24b>
cmpl   $0x1,0xc(%rsp)
jne    13cf <main+0x23f>
lea    -0x1(%r13),%eax
cmp    $0x3,%eax
ja     1240 <main+0xb0>
lea    0xd81(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cmpl   $0x0,0x1c(%rsp)
je     1398 <main+0x208>
mov    $0x2,%esi
mov    $0x1,%edx
lea    0xd72(%rip),%rdi
jmp    13a9 <main+0x219>
movzbl %dil,%edx
mov    %rbx,%rdi
lea    0xd76(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0x0,0x8(%rsp)
mov    0x20(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1090 <strAppendUTF8@plt>
cmpl   $0x0,0x8(%rsp)
jle    1337 <main+0x1a7>
mov    0x10(%rsp),%rax
movzbl (%rax),%edx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1070 <fprintf@plt>
cmpl   $0x2,0x8(%rsp)
jl     1337 <main+0x1a7>
mov    $0x1,%ebp
xchg   %ax,%ax
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %rbx,%rcx
call   10b0 <fwrite@plt>
mov    0x10(%rsp),%rax
movzbl (%rax,%rbp,1),%edx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1070 <fprintf@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
cmp    %rax,%rbp
jl     1300 <main+0x170>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
movq   $0x0,0x10(%rsp)
mov    $0x5d,%edi
mov    %rbx,%rsi
call   1060 <fputc@plt>
mov    $0x3,%r13d
lea    0x20(%rsp),%rbp
jmp    1240 <main+0xb0>
cmp    $0xa,%rdi
jne    1385 <main+0x1f5>
mov    $0x5d,%edi
mov    %rbx,%rsi
call   1060 <fputc@plt>
mov    $0x1,%r13d
jmp    1240 <main+0xb0>
mov    %rbx,%rsi
call   1060 <fputc@plt>
mov    $0x4,%r13d
jmp    1240 <main+0xb0>
mov    $0x13,%esi
mov    $0x1,%edx
lea    0xc70(%rip),%rdi
mov    %rbx,%rcx
call   10b0 <fwrite@plt>
xor    %r13d,%r13d
cmpq   $0x22,0x20(%rsp)
sete   %r13b
add    $0x1,%r13d
movl   $0x1,0x1c(%rsp)
jmp    1240 <main+0xb0>
lea    0xc6f(%rip),%rdi
call   1040 <puts@plt>
lea    0xc5f(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10b0 <fwrite@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [8 x i8] c"abort!\0A\00"
@.str.3 = [3 x i8] c",\0A\00"
@.str.4 = [20 x i8] c"module.exports = [\0A\00"
@.str.5 = [10 x i8] c"[0x%04x,[\00"
@.str.6 = [3 x i8] c", \00"
@.str.7 = [7 x i8] c"0x%02x\00"
@.str.8 = [4 x i8] c"\0A];\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca [4 x i64]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %8
store i32 0, i32* %10
store i32 0, i32* %11
store i32 1, i32* %12
store i32 0, i32* %14
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = call i32* @fopen(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %18, i32** %6
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 2
%21 = load i8*, i8** %20
%22 = call i32* @fopen(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %22, i32** %7
%23 = load i32*, i32** %6
%24 = bitcast [4 x i64]* %9 to i64**
%25 = call i32 @getCodepointsUTF8(i32* %23, i64** %24, i32* %10, i32* %11)
br label %26
26: ; preds = %106, %2
%27 = getelementptr inbounds [4 x i64], [4 x i64]* %9, i64 0, i64 0
%28 = load i64, i64* %27
%29 = icmp ne i64 %28, -1
br i1 %29, label %30, label %110
30: ; preds = %26
%31 = load i32, i32* %10
%32 = icmp ne i32 %31, 1
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %110
35: ; preds = %30
%36 = load i32, i32* %12
switch i32 %36, label %106 [
i32 1, label %37
i32 2, label %52
i32 3, label %87
i32 4, label %93
]
37: ; preds = %35
%38 = load i32, i32* %14
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load i32*, i32** %7
%42 = call i32 @fputs(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %41)
br label %46
43: ; preds = %37
%44 = load i32*, i32** %7
%45 = call i32 @fputs(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32* %44)
store i32 1, i32* %14
br label %46
46: ; preds = %43, %40
%47 = getelementptr inbounds [4 x i64], [4 x i64]* %9, i64 0, i64 0
%48 = load i64, i64* %47
%49 = icmp eq i64 %48, 34
br i1 %49, label %50, label %51
50: ; preds = %46
store i32 2, i32* %12
br label %51
51: ; preds = %50, %46
br label %106
52: ; preds = %35
%53 = load i32*, i32** %7
%54 = getelementptr inbounds [4 x i64], [4 x i64]* %9, i64 0, i64 0
%55 = load i64, i64* %54
%56 = trunc i64 %55 to i8
%57 = call i32 @fprintf(i32* %53, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8 zeroext %56)
store i32 0, i32* %11
%58 = getelementptr inbounds [4 x i64], [4 x i64]* %9, i64 0, i64 0
%59 = load i64, i64* %58
%60 = call i32 @strAppendUTF8(i64 %59, i8** %8, i32* %11)
store i32 0, i32* %13
br label %61
61: ; preds = %79, %52
%62 = load i32, i32* %13
%63 = load i32, i32* %11
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %82
65: ; preds = %61
%66 = load i32, i32* %13
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = load i32*, i32** %7
%70 = call i32 @fputs(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %69)
br label %71
71: ; preds = %68, %65
%72 = load i32*, i32** %7
%73 = load i8*, i8** %8
%74 = load i32, i32* %13
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, i8* %73, i64 %75
%77 = load i8, i8* %76
%78 = call i32 @fprintf(i32* %72, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8 zeroext %77)
br label %79
79: ; preds = %71
%80 = load i32, i32* %13
%81 = add nsw i32 %80, 1
store i32 %81, i32* %13
br label %61
82: ; preds = %61
%83 = load i8*, i8** %8
%84 = call i32 @free(i8* %83)
store i8* null, i8** %8
%85 = load i32*, i32** %7
%86 = call i32 @fputc(i64 93, i32* %85)
store i32 3, i32* %12
br label %106
87: ; preds = %35
%88 = getelementptr inbounds [4 x i64], [4 x i64]* %9, i64 0, i64 0
%89 = load i64, i64* %88
%90 = icmp eq i64 %89, 34
br i1 %90, label %91, label %92
91: ; preds = %87
store i32 4, i32* %12
br label %92
92: ; preds = %91, %87
br label %106
93: ; preds = %35
%94 = getelementptr inbounds [4 x i64], [4 x i64]* %9, i64 0, i64 0
%95 = load i64, i64* %94
%96 = icmp eq i64 %95, 10
br i1 %96, label %97, label %100
97: ; preds = %93
%98 = load i32*, i32** %7
%99 = call i32 @fputc(i64 93, i32* %98)
store i32 1, i32* %12
br label %105
100: ; preds = %93
%101 = getelementptr inbounds [4 x i64], [4 x i64]* %9, i64 0, i64 0
%102 = load i64, i64* %101
%103 = load i32*, i32** %7
%104 = call i32 @fputc(i64 %102, i32* %103)
br label %105
105: ; preds = %100, %97
br label %106
106: ; preds = %35, %105, %92, %82, %51
%107 = load i32*, i32** %6
%108 = bitcast [4 x i64]* %9 to i64**
%109 = call i32 @getCodepointsUTF8(i32* %107, i64** %108, i32* %10, i32* %11)
br label %26
110: ; preds = %33, %26
%111 = load i32*, i32** %7
%112 = call i32 @fputs(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32* %111)
%113 = load i32*, i32** %6
%114 = call i32 @fclose(i32* %113)
%115 = load i32*, i32** %7
%116 = call i32 @fclose(i32* %115)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.3 = [3 x i8] c",\0A\00"
@.str.4 = [20 x i8] c"module.exports = [\0A\00"
@.str.5 = [10 x i8] c"[0x%04x,[\00"
@.str.6 = [3 x i8] c", \00"
@.str.7 = [7 x i8] c"0x%02x\00"
@.str.8 = [4 x i8] c"\0A];\00"
@str = [7 x i8] c"abort!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i8*
%4 = alloca [4 x i64]
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i8** %3 to i8*
store i8* null, i8** %3
%8 = bitcast [4 x i64]* %4 to i8*
%9 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%10 = bitcast i32* %6 to i8*
store i32 0, i32* %6
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32* @fopen(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%14 = getelementptr inbounds i8*, i8** %1, i64 2
%15 = load i8*, i8** %14
%16 = tail call i32* @fopen(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%17 = bitcast [4 x i64]* %4 to i64**
%18 = call i32 @getCodepointsUTF8(i32* %13, i64** %17, i32* %5, i32* %6)
%19 = getelementptr inbounds [4 x i64], [4 x i64]* %4, i64 0, i64 0
%20 = load i64, i64* %19
%21 = icmp eq i64 %20, -1
br i1 %21, label %84, label %22
22: ; preds = %2, %78
%23 = phi i64 [ %82, %78 ], [ %20, %2 ]
%24 = phi i32 [ %80, %78 ], [ 0, %2 ]
%25 = phi i32 [ %79, %78 ], [ 1, %2 ]
%26 = load i32, i32* %5
%27 = icmp eq i32 %26, 1
br i1 %27, label %30, label %28
28: ; preds = %22
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
br label %84
30: ; preds = %22
switch i32 %25, label %78 [
i32 1, label %31
i32 2, label %41
i32 3, label %69
i32 4, label %72
]
31: ; preds = %30
%32 = icmp eq i32 %24, 0
br i1 %32, label %35, label %33
33: ; preds = %31
%34 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i64 2, i64 1, i32* %16)
br label %37
35: ; preds = %31
%36 = call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i64 19, i64 1, i32* %16)
br label %37
37: ; preds = %35, %33
%38 = load i64, i64* %19
%39 = icmp eq i64 %38, 34
%40 = select i1 %39, i32 2, i32 1
br label %78
41: ; preds = %30
%42 = trunc i64 %23 to i8
%43 = call i32 @fprintf(i32* %16, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8 zeroext %42)
store i32 0, i32* %6
%44 = load i64, i64* %19
%45 = call i32 @strAppendUTF8(i64 %44, i8** %3, i32* %6)
%46 = load i32, i32* %6
%47 = icmp sgt i32 %46, 0
br i1 %47, label %48, label %65
48: ; preds = %41
%49 = load i8*, i8** %3
%50 = load i8, i8* %49
%51 = call i32 @fprintf(i32* %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8 zeroext %50)
%52 = load i32, i32* %6
%53 = icmp sgt i32 %52, 1
br i1 %53, label %54, label %65
54: ; preds = %48, %54
%55 = phi i64 [ %61, %54 ], [ 1, %48 ]
%56 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i64 2, i64 1, i32* %16)
%57 = load i8*, i8** %3
%58 = getelementptr inbounds i8, i8* %57, i64 %55
%59 = load i8, i8* %58
%60 = call i32 @fprintf(i32* %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8 zeroext %59)
%61 = add nuw nsw i64 %55, 1
%62 = load i32, i32* %6
%63 = sext i32 %62 to i64
%64 = icmp slt i64 %61, %63
br i1 %64, label %54, label %65
65: ; preds = %54, %48, %41
%66 = load i8*, i8** %3
%67 = call i32 @free(i8* %66)
store i8* null, i8** %3
%68 = call i32 @fputc(i64 93, i32* %16)
br label %78
69: ; preds = %30
%70 = icmp eq i64 %23, 34
%71 = select i1 %70, i32 4, i32 3
br label %78
72: ; preds = %30
%73 = icmp eq i64 %23, 10
br i1 %73, label %74, label %76
74: ; preds = %72
%75 = call i32 @fputc(i64 93, i32* %16)
br label %78
76: ; preds = %72
%77 = call i32 @fputc(i64 %23, i32* %16)
br label %78
78: ; preds = %69, %37, %74, %76, %30, %65
%79 = phi i32 [ %25, %30 ], [ 1, %74 ], [ 4, %76 ], [ 3, %65 ], [ %40, %37 ], [ %71, %69 ]
%80 = phi i32 [ %24, %30 ], [ %24, %74 ], [ %24, %76 ], [ %24, %65 ], [ 1, %37 ], [ %24, %69 ]
%81 = call i32 @getCodepointsUTF8(i32* %13, i64** %17, i32* %5, i32* %6)
%82 = load i64, i64* %19
%83 = icmp eq i64 %82, -1
br i1 %83, label %84, label %22
84: ; preds = %78, %2, %28
%85 = call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i64 3, i64 1, i32* %16)
%86 = call i32 @fclose(i32* %13)
%87 = call i32 @fclose(i32* %16)
ret i32 0
}