#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 coor_convert(char *, int, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
int Read_Object(int i) {
  int c1, c1s;
  char r, num[3];
  FILE *ROCK;
  FILE *ROCK2;
  ROCK = fopen("Input\\ObjectList.ol", "rb");
  if (ROCK) {
    printf("ObjectList.ol file found!\n");
  } else {
    printf("No ObjectList.ol file found!\n");
    return 0;
  }
  ROCK2 = fopen("Output\\ObjectList.ol", "wb");
  r = fgetc(ROCK);
  while (r != -1) {
    fputc(r, ROCK2);
    r = fgetc(ROCK);
    if (r == 'x' || r == 'y') {
      fputc(r, ROCK2);
      r = fgetc(ROCK);
      if (r == 'P') {
        fputc(r, ROCK2);
        r = fgetc(ROCK);
        if (r == 'o') {
          fputc(r, ROCK2);
          r = fgetc(ROCK);
          if (r == 's') {
            while (r != -1) {
              fputc(r, ROCK2);
              r = fgetc(ROCK);
              if (r >= '0' && r <= '9') {
                break;
              }
            }
            for (c1 = 0; c1 < 3; c1++) {
              num[c1] = r;
              r = fgetc(ROCK);
              if (!(r >= '0' && r <= '9')) {
                break;
              }
            }
            c1s = coor_convert(num, c1, i);
            for (c1 = 0; c1 <= c1s; c1++) {
              fputc(num[c1] + '0', ROCK2);
            }
          }
        }
      }
    }
  }
  fclose(ROCK);
  fclose(ROCK2);
}


x86 assembly (clang, -O0):
<Read_Object>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x8(%rbp)
lea    0xe8e(%rip),%rdi
lea    0xe9b(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     119e <Read_Object+0x3e>
lea    0xe86(%rip),%rdi
call   1050 <printf@plt>
jmp    11b6 <Read_Object+0x56>
lea    0xe72(%rip),%rdi
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13b4 <Read_Object+0x254>
lea    0xe78(%rip),%rdi
lea    0xe86(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0xffffffff,%eax
je     13a2 <Read_Object+0x242>
mov    -0x11(%rbp),%al
mov    -0x28(%rbp),%rsi
movsbl %al,%edi
call   1070 <fputc@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x78,%eax
je     121b <Read_Object+0xbb>
movsbl -0x11(%rbp),%eax
cmp    $0x79,%eax
jne    139d <Read_Object+0x23d>
mov    -0x11(%rbp),%al
mov    -0x28(%rbp),%rsi
movsbl %al,%edi
call   1070 <fputc@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x50,%eax
jne    1398 <Read_Object+0x238>
mov    -0x11(%rbp),%al
mov    -0x28(%rbp),%rsi
movsbl %al,%edi
call   1070 <fputc@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x6f,%eax
jne    1393 <Read_Object+0x233>
mov    -0x11(%rbp),%al
mov    -0x28(%rbp),%rsi
movsbl %al,%edi
call   1070 <fputc@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x73,%eax
jne    138e <Read_Object+0x22e>
jmp    1298 <Read_Object+0x138>
movsbl -0x11(%rbp),%eax
cmp    $0xffffffff,%eax
je     12e4 <Read_Object+0x184>
mov    -0x11(%rbp),%al
mov    -0x28(%rbp),%rsi
movsbl %al,%edi
call   1070 <fputc@plt>
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x30,%eax
jl     12df <Read_Object+0x17f>
movsbl -0x11(%rbp),%eax
cmp    $0x39,%eax
jg     12df <Read_Object+0x17f>
jmp    12e4 <Read_Object+0x184>
jmp    1298 <Read_Object+0x138>
movl   $0x0,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    133e <Read_Object+0x1de>
mov    -0x11(%rbp),%cl
movslq -0xc(%rbp),%rax
mov    %cl,-0x14(%rbp,%rax,1)
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x30,%eax
jl     1326 <Read_Object+0x1c6>
movsbl -0x11(%rbp),%eax
cmp    $0x39,%eax
jle    132b <Read_Object+0x1cb>
jmp    133e <Read_Object+0x1de>
jmp    1330 <Read_Object+0x1d0>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12eb <Read_Object+0x18b>
lea    -0x14(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
call   1030 <coor_convert@plt>
mov    %eax,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     1389 <Read_Object+0x229>
movslq -0xc(%rbp),%rax
movsbl -0x14(%rbp,%rax,1),%eax
add    $0x30,%eax
mov    -0x28(%rbp),%rsi
movsbl %al,%edi
call   1070 <fputc@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1357 <Read_Object+0x1f7>
jmp    138e <Read_Object+0x22e>
jmp    1393 <Read_Object+0x233>
jmp    1398 <Read_Object+0x238>
jmp    139d <Read_Object+0x23d>
jmp    11d9 <Read_Object+0x79>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Read_Object>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edi,%r14d
lea    0xe8b(%rip),%rdi
lea    0xe98(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1323 <Read_Object+0x1c3>
mov    %rax,%r12
lea    0xe9e(%rip),%rdi
call   1030 <puts@plt>
lea    0xe77(%rip),%rdi
lea    0xe85(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%r13
mov    %r12,%rdi
call   1060 <fgetc@plt>
cmp    $0xff,%al
je     1311 <Read_Object+0x1b1>
mov    %eax,%ebx
lea    0x1(%rsp),%r15
mov    %r14d,0x4(%rsp)
jmp    11e9 <Read_Object+0x89>
mov    %r14,%r15
mov    0x4(%rsp),%r14d
cs nopw 0x0(%rax,%rax,1)
nop
cmp    $0xff,%bl
je     1311 <Read_Object+0x1b1>
movsbl %bl,%edi
mov    %r13,%rsi
call   1070 <fputc@plt>
mov    %r12,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
and    $0xfe,%al
cmp    $0x78,%al
jne    11e0 <Read_Object+0x80>
movsbl %bl,%edi
mov    %r13,%rsi
call   1070 <fputc@plt>
mov    %r12,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
cmp    $0x50,%al
jne    11e0 <Read_Object+0x80>
mov    $0x50,%edi
mov    %r13,%rsi
call   1070 <fputc@plt>
mov    %r12,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
cmp    $0x6f,%al
jne    11e0 <Read_Object+0x80>
mov    $0x6f,%edi
mov    %r13,%rsi
call   1070 <fputc@plt>
mov    %r12,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
cmp    $0x73,%al
jne    11e0 <Read_Object+0x80>
mov    $0x73,%al
cs nopw 0x0(%rax,%rax,1)
nop
movsbl %al,%edi
mov    %r13,%rsi
call   1070 <fputc@plt>
mov    %r12,%rdi
call   1060 <fgetc@plt>
cmp    $0xff,%al
je     1281 <Read_Object+0x121>
mov    %eax,%ecx
add    $0xc6,%cl
cmp    $0xf6,%cl
jb     1260 <Read_Object+0x100>
mov    %al,0x1(%rsp)
mov    %r12,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
add    $0xd0,%al
xor    %esi,%esi
cmp    $0x9,%al
ja     12cb <Read_Object+0x16b>
mov    %bl,0x2(%rsp)
mov    %r12,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
add    $0xd0,%al
mov    $0x1,%esi
cmp    $0x9,%al
ja     12cb <Read_Object+0x16b>
mov    %bl,0x3(%rsp)
mov    %r12,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
add    $0xd0,%al
xor    %esi,%esi
cmp    $0xa,%al
setb   %sil
or     $0x2,%esi
mov    %r15,%rdi
mov    %r14d,%edx
call   1040 <coor_convert@plt>
test   %eax,%eax
js     11e0 <Read_Object+0x80>
mov    %eax,%ebp
mov    %r15,%r14
add    $0x1,%ebp
xor    %r15d,%r15d
nopl   0x0(%rax)
movzbl 0x1(%rsp,%r15,1),%eax
add    $0x30,%al
movsbl %al,%edi
mov    %r13,%rsi
call   1070 <fputc@plt>
add    $0x1,%r15
cmp    %r15,%rbp
jne    12f0 <Read_Object+0x190>
jmp    11cd <Read_Object+0x6d>
mov    %r12,%rdi
call   1050 <fclose@plt>
mov    %r13,%rdi
call   1050 <fclose@plt>
jmp    132f <Read_Object+0x1cf>
lea    0xd05(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [20 x i8] c"Input\\ObjectList.ol\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.4 = [21 x i8] c"Output\\ObjectList.ol\00"
@.str.5 = [3 x i8] c"wb\00"
@str = [29 x i8] c"No ObjectList.ol file found!\00"
@str.6 = [26 x i8] c"ObjectList.ol file found!\00"
define i32 @Read_Object(i32 %0) {
%2 = alloca [3 x i8]
%3 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i32* %4, null
br i1 %5, label %14, label %6
6: ; preds = %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.6, i64 0, i64 0))
%8 = tail call i32* @fopen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call signext i8 @fgetc(i32* %4)
%10 = icmp eq i8 %9, -1
br i1 %10, label %74, label %11
11: ; preds = %6
%12 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 1
%13 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 2
br label %16
14: ; preds = %1
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
br label %77
16: ; preds = %11, %71
%17 = phi i8 [ %72, %71 ], [ %9, %11 ]
%18 = call i32 @fputc(i8 signext %17, i32* %8)
%19 = call signext i8 @fgetc(i32* %4)
%20 = and i8 %19, -2
%21 = icmp eq i8 %20, 120
br i1 %21, label %22, label %71
22: ; preds = %16
%23 = call i32 @fputc(i8 signext %19, i32* %8)
%24 = call signext i8 @fgetc(i32* %4)
%25 = icmp eq i8 %24, 80
br i1 %25, label %26, label %71
26: ; preds = %22
%27 = call i32 @fputc(i8 signext 80, i32* %8)
%28 = call signext i8 @fgetc(i32* %4)
%29 = icmp eq i8 %28, 111
br i1 %29, label %30, label %71
30: ; preds = %26
%31 = call i32 @fputc(i8 signext 111, i32* %8)
%32 = call signext i8 @fgetc(i32* %4)
%33 = icmp eq i8 %32, 115
br i1 %33, label %34, label %71
34: ; preds = %30, %34
%35 = phi i8 [ %37, %34 ], [ 115, %30 ]
%36 = call i32 @fputc(i8 signext %35, i32* %8)
%37 = call signext i8 @fgetc(i32* %4)
%38 = add i8 %37, -58
%39 = icmp ult i8 %38, -10
%40 = icmp ne i8 %37, -1
%41 = and i1 %40, %39
br i1 %41, label %34, label %42
42: ; preds = %34
store i8 %37, i8* %3
%43 = call signext i8 @fgetc(i32* %4)
%44 = add i8 %43, -48
%45 = icmp ult i8 %44, 10
br i1 %45, label %46, label %55
46: ; preds = %42
store i8 %43, i8* %12
%47 = call signext i8 @fgetc(i32* %4)
%48 = add i8 %47, -48
%49 = icmp ult i8 %48, 10
br i1 %49, label %50, label %55
50: ; preds = %46
store i8 %47, i8* %13
%51 = call signext i8 @fgetc(i32* %4)
%52 = add i8 %51, -48
%53 = icmp ult i8 %52, 10
%54 = select i1 %53, i32 3, i32 2
br label %55
55: ; preds = %50, %46, %42
%56 = phi i8 [ %43, %42 ], [ %47, %46 ], [ %51, %50 ]
%57 = phi i32 [ 0, %42 ], [ 1, %46 ], [ %54, %50 ]
%58 = call i32 @coor_convert(i8* %3, i32 %57, i32 %0)
%59 = icmp slt i32 %58, 0
br i1 %59, label %71, label %60
60: ; preds = %55
%61 = add nuw i32 %58, 1
%62 = zext i32 %61 to i64
br label %63
63: ; preds = %60, %63
%64 = phi i64 [ 0, %60 ], [ %69, %63 ]
%65 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 %64
%66 = load i8, i8* %65
%67 = add i8 %66, 48
%68 = call i32 @fputc(i8 signext %67, i32* %8)
%69 = add nuw nsw i64 %64, 1
%70 = icmp eq i64 %69, %62
br i1 %70, label %71, label %63
71: ; preds = %63, %55, %22, %30, %26, %16
%72 = phi i8 [ %32, %30 ], [ %28, %26 ], [ %24, %22 ], [ %19, %16 ], [ %56, %55 ], [ %56, %63 ]
%73 = icmp eq i8 %72, -1
br i1 %73, label %74, label %16
74: ; preds = %71, %6
%75 = call i32 @fclose(i32* %4)
%76 = call i32 @fclose(i32* %8)
br label %77
77: ; preds = %74, %14
ret i32 0
}