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

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int fread(unsigned short *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, const char *argv[]) {
  FILE *file;
  unsigned int state;
  unsigned short data, prevdata = 1;
  if (argc != 2) {
    fprintf(stderr, "Usage: %s input-file\n", argv[0]);
    return 255;
  }
  if ((file = fopen(argv[1], "rb")) == NULL) {
    perror("fopen");
    return 1;
  }
  while (fread(&data, 2, 1, file) == 1) {
    if (data == 0) {
      printf("\\0");
    } else if (data == '\r' || data == '\n') {
      printf("\\%03o", data);
    } else if (((prevdata == 0) && (data >= '0') && (data <= '7'))) {
      printf("00%c", data);
    } else if ((data == '\'') || (data == '\\')) {
      printf("\\%c", (char)data);
    } else if (data == 0x2028 || ((data >= 0xD800) && (data <= 0xDFFF))) {
      printf("\\u%04x", data);
    } else if (data < 0x80) {
      printf("%c", (char)data);
    } else if (data < 0x800) {
      printf("%c%c", ((data >> 6) & 0x1F) | 0xC0, (data & 0x3F) | 0x80);
    } else {
      printf("%c%c%c", ((data >> 12) & 0x0F) | 0xE0,
             ((data >> 6) & 0x3F) | 0x80, ((data)&0x3F) | 0x80);
    }
    prevdata = data;
  }
  fclose(file);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movw   $0x1,-0x20(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11ae <main+0x4e>
mov    0x2e53(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe63(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0xff,-0x4(%rbp)
jmp    13f2 <main+0x292>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe59(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    11e8 <main+0x88>
lea    0xe42(%rip),%rdi
call   1080 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    13f2 <main+0x292>
jmp    11ed <main+0x8d>
mov    -0x18(%rbp),%rcx
lea    -0x1e(%rbp),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
cmp    $0x1,%eax
jne    13e2 <main+0x282>
movzwl -0x1e(%rbp),%eax
cmp    $0x0,%eax
jne    122d <main+0xcd>
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13d5 <main+0x275>
movzwl -0x1e(%rbp),%eax
cmp    $0xd,%eax
je     1247 <main+0xe7>
movzwl -0x1e(%rbp),%eax
cmp    $0xa,%eax
jne    125e <main+0xfe>
movzwl -0x1e(%rbp),%esi
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13d0 <main+0x270>
movzwl -0x20(%rbp),%eax
cmp    $0x0,%eax
jne    129c <main+0x13c>
movzwl -0x1e(%rbp),%eax
cmp    $0x30,%eax
jl     129c <main+0x13c>
movzwl -0x1e(%rbp),%eax
cmp    $0x37,%eax
jg     129c <main+0x13c>
movzwl -0x1e(%rbp),%esi
lea    0xd98(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13cb <main+0x26b>
movzwl -0x1e(%rbp),%eax
cmp    $0x27,%eax
je     12b6 <main+0x156>
movzwl -0x1e(%rbp),%eax
cmp    $0x5c,%eax
jne    12d0 <main+0x170>
mov    -0x1e(%rbp),%ax
movsbl %al,%esi
lea    0xd69(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13c6 <main+0x266>
movzwl -0x1e(%rbp),%eax
cmp    $0x2028,%eax
je     12fd <main+0x19d>
movzwl -0x1e(%rbp),%eax
cmp    $0xd800,%eax
jl     1314 <main+0x1b4>
movzwl -0x1e(%rbp),%eax
cmp    $0xdfff,%eax
jg     1314 <main+0x1b4>
movzwl -0x1e(%rbp),%esi
lea    0xd29(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13c1 <main+0x261>
movzwl -0x1e(%rbp),%eax
cmp    $0x80,%eax
jge    133d <main+0x1dd>
mov    -0x1e(%rbp),%ax
movsbl %al,%esi
lea    0xcf9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13bc <main+0x25c>
movzwl -0x1e(%rbp),%eax
cmp    $0x800,%eax
jge    137c <main+0x21c>
movzwl -0x1e(%rbp),%esi
sar    $0x6,%esi
and    $0x1f,%esi
or     $0xc0,%esi
movzwl -0x1e(%rbp),%edx
and    $0x3f,%edx
or     $0x80,%edx
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13b7 <main+0x257>
movzwl -0x1e(%rbp),%esi
sar    $0xc,%esi
and    $0xf,%esi
or     $0xe0,%esi
movzwl -0x1e(%rbp),%edx
sar    $0x6,%edx
and    $0x3f,%edx
or     $0x80,%edx
movzwl -0x1e(%rbp),%ecx
and    $0x3f,%ecx
or     $0x80,%ecx
lea    0xc88(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13bc <main+0x25c>
jmp    13c1 <main+0x261>
jmp    13c6 <main+0x266>
jmp    13cb <main+0x26b>
jmp    13d0 <main+0x270>
jmp    13d5 <main+0x275>
mov    -0x1e(%rbp),%ax
mov    %ax,-0x20(%rbp)
jmp    11ed <main+0x8d>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jne    1301 <main+0x191>
mov    0x8(%rsi),%rdi
lea    0xe87(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1339 <main+0x1c9>
mov    %rax,%rbx
lea    0x6(%rsp),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1040 <fread@plt>
cmp    $0x1,%eax
jne    1320 <main+0x1b0>
mov    $0x1,%bp
lea    0xe57(%rip),%r14
lea    0x6(%rsp),%r15
lea    0xe48(%rip),%r12
lea    0xe4a(%rip),%r13
jmp    1208 <main+0x98>
mov    %r12,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
cmp    $0x1,%eax
jne    1320 <main+0x1b0>
mov    %ebp,%eax
movzwl 0x6(%rsp),%ebp
cmp    $0xd,%ebp
je     1240 <main+0xd0>
cmp    $0xa,%bp
je     1240 <main+0xd0>
test   %bp,%bp
je     11e0 <main+0x70>
test   %ax,%ax
jne    124e <main+0xde>
cmp    $0x30,%bp
jb     124e <main+0xde>
cmp    $0x37,%bp
ja     124e <main+0xde>
mov    %r13,%rdi
jmp    1243 <main+0xd3>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11ea <main+0x7a>
cmp    $0x27,%bp
je     1264 <main+0xf4>
movzwl %bp,%eax
cmp    $0x2028,%eax
je     127b <main+0x10b>
cmp    $0x5c,%bp
jne    126d <main+0xfd>
lea    0xdc2(%rip),%rdi
jmp    1243 <main+0xd3>
mov    %ebp,%eax
and    $0xf800,%eax
cmp    $0xd800,%eax
jne    1284 <main+0x114>
lea    0xdaf(%rip),%rdi
jmp    1243 <main+0xd3>
cmp    $0x7f,%bp
ja     1298 <main+0x128>
movsbl %bpl,%edi
call   1030 <putchar@plt>
jmp    11ea <main+0x7a>
mov    %ebp,%esi
cmp    $0x7ff,%ebp
ja     12cc <main+0x15c>
shr    $0x6,%esi
and    $0x1f,%esi
or     $0xc0,%esi
mov    %ebp,%edx
and    $0x3f,%edx
or     $0x80,%edx
lea    0xd7a(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11ea <main+0x7a>
shr    $0xc,%esi
or     $0xe0,%esi
mov    %ebp,%edx
shr    $0x6,%edx
and    $0x3f,%edx
or     $0x80,%edx
mov    %ebp,%ecx
and    $0x3f,%ecx
or     $0x80,%ecx
lea    0xd43(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11ea <main+0x7a>
mov    0x2cd8(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xcec(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0xff,%eax
jmp    132a <main+0x1ba>
mov    %rbx,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcd9(%rip),%rdi
call   1090 <perror@plt>
mov    $0x1,%eax
jmp    132a <main+0x1ba>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [22 x i8] c"Usage: %s input-file\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [6 x i8] c"fopen\00"
@.str.3 = [3 x i8] c"\\0\00"
@.str.4 = [6 x i8] c"\\%03o\00"
@.str.5 = [5 x i8] c"00%c\00"
@.str.6 = [4 x i8] c"\\%c\00"
@.str.7 = [7 x i8] c"\\u%04x\00"
@.str.8 = [3 x i8] c"%c\00"
@.str.9 = [5 x i8] c"%c%c\00"
@.str.10 = [7 x i8] c"%c%c%c\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 i16
%9 = alloca i16
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i16 1, i16* %9
%10 = load i32, i32* %4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %18
12: ; preds = %2
%13 = load i32, i32* @stderr
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 0
%16 = load i8*, i8** %15
%17 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %16)
store i32 255, i32* %3
br label %145
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%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** %6
%23 = icmp eq i32* %22, null
br i1 %23, label %24, label %26
24: ; preds = %18
%25 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %3
br label %145
26: ; preds = %18
br label %27
27: ; preds = %140, %26
%28 = load i32*, i32** %6
%29 = call i32 @fread(i16* %8, i32 2, i32 1, i32* %28)
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %142
31: ; preds = %27
%32 = load i16, i16* %8
%33 = zext i16 %32 to i32
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %140
37: ; preds = %31
%38 = load i16, i16* %8
%39 = zext i16 %38 to i32
%40 = icmp eq i32 %39, 13
br i1 %40, label %45, label %41
41: ; preds = %37
%42 = load i16, i16* %8
%43 = zext i16 %42 to i32
%44 = icmp eq i32 %43, 10
br i1 %44, label %45, label %49
45: ; preds = %41, %37
%46 = load i16, i16* %8
%47 = zext i16 %46 to i32
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %47)
br label %139
49: ; preds = %41
%50 = load i16, i16* %9
%51 = zext i16 %50 to i32
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %65
53: ; preds = %49
%54 = load i16, i16* %8
%55 = zext i16 %54 to i32
%56 = icmp sge i32 %55, 48
br i1 %56, label %57, label %65
57: ; preds = %53
%58 = load i16, i16* %8
%59 = zext i16 %58 to i32
%60 = icmp sle i32 %59, 55
br i1 %60, label %61, label %65
61: ; preds = %57
%62 = load i16, i16* %8
%63 = zext i16 %62 to i32
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %63)
br label %138
65: ; preds = %57, %53, %49
%66 = load i16, i16* %8
%67 = zext i16 %66 to i32
%68 = icmp eq i32 %67, 39
br i1 %68, label %73, label %69
69: ; preds = %65
%70 = load i16, i16* %8
%71 = zext i16 %70 to i32
%72 = icmp eq i32 %71, 92
br i1 %72, label %73, label %78
73: ; preds = %69, %65
%74 = load i16, i16* %8
%75 = trunc i16 %74 to i8
%76 = sext i8 %75 to i32
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %76)
br label %137
78: ; preds = %69
%79 = load i16, i16* %8
%80 = zext i16 %79 to i32
%81 = icmp eq i32 %80, 8232
br i1 %81, label %90, label %82
82: ; preds = %78
%83 = load i16, i16* %8
%84 = zext i16 %83 to i32
%85 = icmp sge i32 %84, 55296
br i1 %85, label %86, label %94
86: ; preds = %82
%87 = load i16, i16* %8
%88 = zext i16 %87 to i32
%89 = icmp sle i32 %88, 57343
br i1 %89, label %90, label %94
90: ; preds = %86, %78
%91 = load i16, i16* %8
%92 = zext i16 %91 to i32
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %92)
br label %136
94: ; preds = %86, %82
%95 = load i16, i16* %8
%96 = zext i16 %95 to i32
%97 = icmp slt i32 %96, 128
br i1 %97, label %98, label %103
98: ; preds = %94
%99 = load i16, i16* %8
%100 = trunc i16 %99 to i8
%101 = sext i8 %100 to i32
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %101)
br label %135
103: ; preds = %94
%104 = load i16, i16* %8
%105 = zext i16 %104 to i32
%106 = icmp slt i32 %105, 2048
br i1 %106, label %107, label %118
107: ; preds = %103
%108 = load i16, i16* %8
%109 = zext i16 %108 to i32
%110 = ashr i32 %109, 6
%111 = and i32 %110, 31
%112 = or i32 %111, 192
%113 = load i16, i16* %8
%114 = zext i16 %113 to i32
%115 = and i32 %114, 63
%116 = or i32 %115, 128
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %112, i32 %116)
br label %134
118: ; preds = %103
%119 = load i16, i16* %8
%120 = zext i16 %119 to i32
%121 = ashr i32 %120, 12
%122 = and i32 %121, 15
%123 = or i32 %122, 224
%124 = load i16, i16* %8
%125 = zext i16 %124 to i32
%126 = ashr i32 %125, 6
%127 = and i32 %126, 63
%128 = or i32 %127, 128
%129 = load i16, i16* %8
%130 = zext i16 %129 to i32
%131 = and i32 %130, 63
%132 = or i32 %131, 128
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %123, i32 %128, i32 %132)
br label %134
134: ; preds = %118, %107
br label %135
135: ; preds = %134, %98
br label %136
136: ; preds = %135, %90
br label %137
137: ; preds = %136, %73
br label %138
138: ; preds = %137, %61
br label %139
139: ; preds = %138, %45
br label %140
140: ; preds = %139, %35
%141 = load i16, i16* %8
store i16 %141, i16* %9
br label %27
142: ; preds = %27
%143 = load i32*, i32** %6
%144 = call i32 @fclose(i32* %143)
store i32 0, i32* %3
br label %145
145: ; preds = %142, %24, %12
%146 = load i32, i32* %3
ret i32 %146
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [22 x i8] c"Usage: %s input-file\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [6 x i8] c"fopen\00"
@.str.3 = [3 x i8] c"\\0\00"
@.str.4 = [6 x i8] c"\\%03o\00"
@.str.5 = [5 x i8] c"00%c\00"
@.str.6 = [4 x i8] c"\\%c\00"
@.str.7 = [7 x i8] c"\\u%04x\00"
@.str.9 = [5 x i8] c"%c%c\00"
@.str.10 = [7 x i8] c"%c%c%c\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i16
%4 = bitcast i16* %3 to i8*
%5 = icmp eq i32 %0, 2
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = load i8*, i8** %1
%9 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %8)
br label %73
10: ; preds = %2
%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.1, i64 0, i64 0))
%14 = icmp eq i32* %13, null
br i1 %14, label %18, label %15
15: ; preds = %10
%16 = call i32 @fread(i16* %3, i32 2, i32 1, i32* %13)
%17 = icmp eq i32 %16, 1
br i1 %17, label %20, label %71
18: ; preds = %10
%19 = tail call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %73
20: ; preds = %15, %68
%21 = phi i16 [ %22, %68 ], [ 1, %15 ]
%22 = load i16, i16* %3
%23 = zext i16 %22 to i32
switch i16 %22, label %28 [
i16 0, label %24
i16 13, label %26
i16 10, label %26
]
24: ; preds = %20
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %68
26: ; preds = %20, %20
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %23)
br label %68
28: ; preds = %20
%29 = icmp eq i16 %21, 0
%30 = icmp ugt i16 %22, 47
%31 = select i1 %29, i1 %30, i1 false
%32 = icmp ult i16 %22, 56
%33 = select i1 %31, i1 %32, i1 false
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %23)
br label %68
36: ; preds = %28
switch i16 %22, label %39 [
i16 92, label %37
i16 39, label %37
i16 8232, label %42
]
37: ; preds = %36, %36
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %23)
br label %68
39: ; preds = %36
%40 = and i16 %22, -2048
%41 = icmp eq i16 %40, -10240
br i1 %41, label %42, label %44
42: ; preds = %36, %39
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %23)
br label %68
44: ; preds = %39
%45 = icmp ult i16 %22, 128
br i1 %45, label %46, label %50
46: ; preds = %44
%47 = shl i32 %23, 24
%48 = ashr exact i32 %47, 24
%49 = tail call i32 @putchar(i32 %48)
br label %68
50: ; preds = %44
%51 = icmp ult i16 %22, 2048
br i1 %51, label %52, label %59
52: ; preds = %50
%53 = lshr i32 %23, 6
%54 = and i32 %53, 31
%55 = or i32 %54, 192
%56 = and i32 %23, 63
%57 = or i32 %56, 128
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %55, i32 %57)
br label %68
59: ; preds = %50
%60 = lshr i32 %23, 12
%61 = or i32 %60, 224
%62 = lshr i32 %23, 6
%63 = and i32 %62, 63
%64 = or i32 %63, 128
%65 = and i32 %23, 63
%66 = or i32 %65, 128
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %61, i32 %64, i32 %66)
br label %68
68: ; preds = %26, %37, %46, %59, %52, %42, %34, %24
%69 = call i32 @fread(i16* %3, i32 2, i32 1, i32* %13)
%70 = icmp eq i32 %69, 1
br i1 %70, label %20, label %71
71: ; preds = %68, %15
%72 = tail call i32 @fclose(i32* %13)
br label %73
73: ; preds = %71, %18, %6
%74 = phi i32 [ 255, %6 ], [ 1, %18 ], [ 0, %71 ]
ret i32 %74
}