#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 uint64_t;
typedef int uint32_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int, ...);
int /*<<< orphan*/ perror(char *);
int process(char *old_filename, char *new_filename) {
  FILE *ptr_old, *ptr_new;
  int err = 0, err1 = 0;
  int a;
  int last;
  int count = 0;
  uint64_t shiftreg = 0;
  uint32_t addr;
  uint32_t data;
  int be;
  ptr_old = fopen(old_filename, "rb");
  if (ptr_old == 0) {
    perror(old_filename);
    exit(1);
  }
  ptr_new = fopen(new_filename, "wb");
  if (ptr_new == 0) {
    fclose(ptr_old);
    perror(new_filename);
    exit(1);
  }
  last = -1;
  while ((a = fgetc(ptr_old)) != EOF) {
    if ((count++ & 3) != 0) {
      continue;
    }
    if (last >= 0 && !(last & 0x80) && (a & 0x80)) {
      shiftreg = (shiftreg << 6) | (a & 0x3F);
      if (a & 0x40) {
        if (a & 0x20) {
          be = shiftreg & 15;
          data = (shiftreg >> 6) & 0xFFFFFFFF;
          addr = (shiftreg >> 38) & 0xFFFFFC;
          if (be & 1) {
            fprintf(ptr_new, "WR &%06X &%02X\n", addr, data & 0xFF);
          }
          if (be & 2) {
            fprintf(ptr_new, "WR &%06X &%02X\n", addr + 1, (data >> 8) & 0xFF);
          }
          if (be & 4) {
            fprintf(ptr_new, "WR &%06X &%02X\n", addr + 2, (data >> 16) & 0xFF);
          }
          if (be & 8) {
            fprintf(ptr_new, "WR &%06X &%02X\n", addr + 3, (data >> 24) & 0xFF);
          }
        } else {
          addr = (shiftreg >> 6) & 0xFFFFFF;
          fprintf(ptr_new, "PC &%06X\n", addr);
        }
        shiftreg = 0;
      }
    }
    last = a;
  }
  fclose(ptr_new);
  fclose(ptr_old);
  return 0;
}


x86 assembly (clang, -O0):
<process>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11be <process+0x5e>
mov    -0x8(%rbp),%rdi
call   1070 <perror@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rdi
lea    0xe3a(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    11f9 <process+0x99>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x10(%rbp),%rdi
call   1070 <perror@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
movl   $0xffffffff,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <fgetc@plt>
mov    %eax,-0x2c(%rbp)
mov    0x2dd5(%rip),%rcx
cmp    (%rcx),%eax
je     13be <process+0x25e>
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
and    $0x3,%eax
cmp    $0x0,%eax
je     1237 <process+0xd7>
jmp    1200 <process+0xa0>
cmpl   $0x0,-0x30(%rbp)
jl     13b3 <process+0x253>
mov    -0x30(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    13b3 <process+0x253>
mov    -0x2c(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     13b3 <process+0x253>
mov    -0x38(%rbp),%eax
shl    $0x6,%eax
mov    -0x2c(%rbp),%ecx
and    $0x3f,%ecx
or     %ecx,%eax
mov    %eax,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     13ae <process+0x24e>
mov    -0x2c(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     1384 <process+0x224>
mov    -0x38(%rbp),%eax
and    $0xf,%eax
mov    %eax,-0x44(%rbp)
mov    -0x38(%rbp),%eax
sar    $0x6,%eax
and    $0xffffffff,%eax
mov    %eax,-0x40(%rbp)
mov    -0x38(%rbp),%eax
mov    $0x26,%ecx
sar    %cl,%eax
and    $0xfffffc,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x44(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     12e6 <process+0x186>
mov    -0x20(%rbp),%rdi
mov    -0x3c(%rbp),%edx
mov    -0x40(%rbp),%ecx
and    $0xff,%ecx
lea    0xd27(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x44(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1319 <process+0x1b9>
mov    -0x20(%rbp),%rdi
mov    -0x3c(%rbp),%edx
add    $0x1,%edx
mov    -0x40(%rbp),%ecx
sar    $0x8,%ecx
and    $0xff,%ecx
lea    0xcf4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x44(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     134c <process+0x1ec>
mov    -0x20(%rbp),%rdi
mov    -0x3c(%rbp),%edx
add    $0x2,%edx
mov    -0x40(%rbp),%ecx
sar    $0x10,%ecx
and    $0xff,%ecx
lea    0xcc1(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x44(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     137f <process+0x21f>
mov    -0x20(%rbp),%rdi
mov    -0x3c(%rbp),%edx
add    $0x3,%edx
mov    -0x40(%rbp),%ecx
sar    $0x18,%ecx
and    $0xff,%ecx
lea    0xc8e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    13a7 <process+0x247>
mov    -0x38(%rbp),%eax
sar    $0x6,%eax
and    $0xffffff,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x3c(%rbp),%edx
lea    0xc76(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x38(%rbp)
jmp    13b3 <process+0x253>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    1200 <process+0xa0>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<process>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r15
mov    %rdi,%rbp
lea    0xe85(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     1322 <process+0x1c2>
mov    %rax,%rbx
lea    0xe70(%rip),%rsi
mov    %r15,%rdi
call   1060 <fopen@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     1327 <process+0x1c7>
mov    $0xffffffff,%ebp
mov    0x2e33(%rip),%r15
xor    %r13d,%r13d
xor    %r12d,%r12d
mov    %r13d,0x14(%rsp)
mov    %ebp,%r13d
lea    0x1(%r12),%r14d
mov    %r12d,%eax
neg    %eax
and    $0x3,%eax
add    %eax,%r12d
add    $0x1,%r12d
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1040 <fgetc@plt>
cmp    (%r15),%eax
je     12ff <process+0x19f>
mov    %eax,%ebp
mov    %r14d,%eax
and    $0x3,%al
add    $0x1,%r14d
cmp    $0x1,%al
jne    11e0 <process+0x80>
test   $0x80000080,%r13d
mov    %ebp,%r13d
jne    11c3 <process+0x63>
mov    %ebp,%eax
mov    %ebp,%r13d
and    $0x80,%eax
je     11c3 <process+0x63>
mov    0x14(%rsp),%edx
mov    %edx,%r14d
shl    $0x6,%r14d
mov    %ebp,%r13d
and    $0x3f,%r13d
or     %r14d,%r13d
test   $0x40,%bpl
je     11bb <process+0x5b>
test   $0x20,%bpl
jne    125a <process+0xfa>
and    $0xffffff,%edx
xor    %r13d,%r13d
mov    0x8(%rsp),%rdi
lea    0xdc8(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    11bb <process+0x5b>
test   $0x1,%bpl
jne    12bb <process+0x15b>
test   $0x2,%bpl
jne    12d7 <process+0x177>
test   $0x4,%bpl
je     1288 <process+0x128>
mov    %r14d,%eax
shr    $0x16,%eax
movzbl %al,%ecx
mov    0x8(%rsp),%rdi
lea    0xd85(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x0,%r13d
test   $0x8,%bpl
je     11bb <process+0x5b>
sar    $0x1e,%r14d
movzbl %r14b,%ecx
xor    %r13d,%r13d
mov    0x8(%rsp),%rdi
lea    0xd57(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    11bb <process+0x5b>
movzbl %dl,%ecx
mov    0x8(%rsp),%rdi
lea    0xd3c(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
test   $0x2,%bpl
je     1266 <process+0x106>
mov    %r14d,%eax
shr    $0xe,%eax
movzbl %al,%ecx
mov    0x8(%rsp),%rdi
lea    0xd1a(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
test   $0x4,%bpl
jne    126c <process+0x10c>
jmp    1288 <process+0x128>
mov    0x8(%rsp),%rdi
call   1030 <fclose@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rbp,%rdi
jmp    1332 <process+0x1d2>
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    %r15,%rdi
call   1070 <perror@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@.str.1 = [3 x i8] c"wb\00"
@EOF = global i32 0
@.str.2 = [16 x i8] c"WR &%06X &%02X\0A\00"
@.str.3 = [10 x i8] c"PC &%06X\0A\00"
define i32 @process(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @perror(i8* %0)
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %2
%9 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i32* %9, null
br i1 %10, label %11, label %71
11: ; preds = %8
%12 = tail call i32 @fclose(i32* %3)
%13 = tail call i32 @perror(i8* %1)
%14 = tail call i32 @exit(i32 1)
unreachable
15: ; preds = %75, %20
%16 = phi i32 [ %21, %20 ], [ %76, %75 ]
%17 = tail call i32 @fgetc(i32* %3)
%18 = load i32, i32* @EOF
%19 = icmp eq i32 %17, %18
br i1 %19, label %82, label %20
20: ; preds = %15
%21 = add i32 %16, 1
%22 = trunc i32 %21 to i2
%23 = icmp eq i2 %22, 1
br i1 %23, label %24, label %15
24: ; preds = %20
%25 = and i32 %77, -2147483520
%26 = icmp ne i32 %25, 0
%27 = and i32 %17, 128
%28 = icmp eq i32 %27, 0
%29 = or i1 %26, %28
br i1 %29, label %75, label %30
30: ; preds = %24
%31 = shl i32 %72, 6
%32 = and i32 %17, 63
%33 = or i32 %32, %31
%34 = and i32 %17, 64
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %30, %61, %64, %68
%37 = phi i32 [ 0, %68 ], [ 0, %64 ], [ 0, %61 ], [ %33, %30 ]
br label %71
38: ; preds = %30
%39 = and i32 %17, 32
%40 = icmp eq i32 %39, 0
br i1 %40, label %68, label %41
41: ; preds = %38
%42 = and i32 %17, 1
%43 = icmp eq i32 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = and i32 %72, 255
%46 = tail call i32 (i32*, i8*, i32, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 poison, i32 %45)
br label %47
47: ; preds = %44, %41
%48 = and i32 %17, 2
%49 = icmp eq i32 %48, 0
br i1 %49, label %54, label %50
50: ; preds = %47
%51 = lshr i32 %31, 14
%52 = and i32 %51, 255
%53 = tail call i32 (i32*, i8*, i32, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 poison, i32 %52)
br label %54
54: ; preds = %50, %47
%55 = and i32 %17, 4
%56 = icmp eq i32 %55, 0
br i1 %56, label %61, label %57
57: ; preds = %54
%58 = lshr i32 %31, 22
%59 = and i32 %58, 255
%60 = tail call i32 (i32*, i8*, i32, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 poison, i32 %59)
br label %61
61: ; preds = %57, %54
%62 = and i32 %17, 8
%63 = icmp eq i32 %62, 0
br i1 %63, label %36, label %64
64: ; preds = %61
%65 = ashr i32 %31, 30
%66 = and i32 %65, 255
%67 = tail call i32 (i32*, i8*, i32, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 poison, i32 %66)
br label %36
68: ; preds = %38
%69 = and i32 %72, 16777215
%70 = tail call i32 (i32*, i8*, i32, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %69)
br label %36
71: ; preds = %8, %36
%72 = phi i32 [ %37, %36 ], [ 0, %8 ]
%73 = phi i32 [ %81, %36 ], [ 0, %8 ]
%74 = phi i32 [ %17, %36 ], [ -1, %8 ]
br label %75
75: ; preds = %71, %24
%76 = phi i32 [ %81, %24 ], [ %73, %71 ]
%77 = phi i32 [ %17, %24 ], [ %74, %71 ]
%78 = add i32 %76, 1
%79 = sub i32 0, %76
%80 = and i32 %79, 3
%81 = add i32 %78, %80
br label %15
82: ; preds = %15
%83 = tail call i32 @fclose(i32* %9)
%84 = tail call i32 @fclose(i32* %3)
ret i32 0
}