#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*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
size_t fread(unsigned char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(unsigned char *, int, size_t, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ show_help();
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ *stdout;
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  char *in_file, *out_file;
  FILE *fp_in, *fp_out;
  unsigned char buf[2048];
  int i;
  size_t dw;
  in_file = (argc < 2) ? "nscript.dat" : argv[1];
  out_file = (argc < 3) ? "nscript.txt" : argv[2];
  if (strcmp(in_file, "-"))
    fp_in = fopen(in_file, "rb");
  else
    fp_in = stdin;
  if (!fp_in) {
    if (argc < 2)
      show_help();
    else
      printf("Cannot open input file %s!!!", in_file);
    return -1;
  }
  if (strcmp(out_file, "-"))
    fp_out = fopen(out_file, "wt");
  else
    fp_out = stdout;
  if (!fp_out) {
    printf("Cannot open output file %s!!!", out_file);
    return -1;
  }
  while (!feof(fp_in)) {
    dw = fread(buf, 1, 2048, fp_in);
    for (i = 0; i < dw; i++) {
      buf[i] ^= 0x84;
    }
    fwrite(buf, 1, dw, fp_out);
  }
  fclose(fp_in);
  fclose(fp_out);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x850,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11b6 <main+0x36>
lea    0xe56(%rip),%rax
mov    %rax,-0x848(%rbp)
jmp    11c5 <main+0x45>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x848(%rbp)
mov    -0x848(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11ed <main+0x6d>
lea    0xe2b(%rip),%rax
mov    %rax,-0x850(%rbp)
jmp    11fc <main+0x7c>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x850(%rbp)
mov    -0x850(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe06(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     123a <main+0xba>
mov    -0x18(%rbp),%rdi
lea    0xdee(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x28(%rbp)
jmp    1248 <main+0xc8>
mov    0x2da7(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1285 <main+0x105>
cmpl   $0x2,-0x8(%rbp)
jge    1269 <main+0xe9>
mov    $0x0,%al
call   1080 <show_help@plt>
jmp    1279 <main+0xf9>
mov    -0x18(%rbp),%rsi
lea    0xda9(%rip),%rdi
call   1050 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b9 <main+0x239>
mov    -0x20(%rbp),%rdi
lea    0xd88(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     12b8 <main+0x138>
mov    -0x20(%rbp),%rdi
lea    0xd90(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x30(%rbp)
jmp    12c6 <main+0x146>
mov    0x2d19(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    12ed <main+0x16d>
mov    -0x20(%rbp),%rsi
lea    0xd61(%rip),%rdi
call   1050 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13b9 <main+0x239>
jmp    12f2 <main+0x172>
mov    -0x28(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1310 <main+0x190>
jmp    13a0 <main+0x220>
lea    -0x830(%rbp),%rdi
mov    -0x28(%rbp),%rcx
mov    $0x1,%esi
mov    $0x800,%edx
call   1030 <fread@plt>
mov    %rax,-0x840(%rbp)
movl   $0x0,-0x834(%rbp)
movslq -0x834(%rbp),%rax
cmp    -0x840(%rbp),%rax
jae    137f <main+0x1ff>
movslq -0x834(%rbp),%rax
movzbl -0x830(%rbp,%rax,1),%ecx
ff
xor    $0x84,%ecx
mov    %cl,-0x830(%rbp,%rax,1)
mov    -0x834(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x834(%rbp)
jmp    133b <main+0x1bb>
lea    -0x830(%rbp),%rdi
mov    -0x840(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    $0x1,%esi
call   10a0 <fwrite@plt>
jmp    12f2 <main+0x172>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x850,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x808,%rsp
mov    %edi,%ebp
lea    0xe86(%rip),%r15
cmp    $0x2,%edi
jge    11a4 <main+0x24>
lea    0xe6e(%rip),%r14
jmp    11ae <main+0x2e>
mov    0x8(%rsi),%r14
je     11ae <main+0x2e>
mov    0x10(%rsi),%r15
lea    0xe73(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1224 <main+0xa4>
lea    0xe61(%rip),%rsi
mov    %r14,%rdi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rbx,%rbx
je     1233 <main+0xb3>
lea    0xe48(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1241 <main+0xc1>
lea    0xe56(%rip),%rsi
mov    %r15,%rdi
call   1090 <fopen@plt>
mov    %rax,%r14
test   %r14,%r14
je     1250 <main+0xd0>
mov    %rbx,%rdi
call   1070 <feof@plt>
test   %eax,%eax
je     127e <main+0xfe>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
jmp    1270 <main+0xf0>
mov    0x2dbd(%rip),%rax
mov    (%rax),%rbx
test   %rbx,%rbx
jne    11d9 <main+0x59>
cmp    $0x1,%ebp
jg     125c <main+0xdc>
xor    %eax,%eax
call   1080 <show_help@plt>
jmp    126b <main+0xeb>
mov    0x2d90(%rip),%rax
mov    (%rax),%r14
test   %r14,%r14
jne    1204 <main+0x84>
lea    0xdf6(%rip),%rdi
mov    %r15,%rsi
jmp    1266 <main+0xe6>
lea    0xdca(%rip),%rdi
mov    %r14,%rsi
call   1050 <printf@plt>
mov    $0xffffffff,%eax
add    $0x808,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rsp,%r15
movabs $0x8484848484848484,%rbp
84 84 84
jmp    12b3 <main+0x133>
nopl   (%rax)
mov    %r15,%rdi
mov    $0x1,%esi
mov    %rax,%rdx
mov    %r14,%rcx
call   10a0 <fwrite@plt>
mov    %rbx,%rdi
call   1070 <feof@plt>
test   %eax,%eax
jne    1210 <main+0x90>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x800,%edx
mov    %rbx,%rcx
call   1030 <fread@plt>
test   %rax,%rax
je     1290 <main+0x110>
cmp    $0x8,%rax
jae    12e0 <main+0x160>
xor    %ecx,%ecx
jmp    13b0 <main+0x230>
nopw   0x0(%rax,%rax,1)
cmp    $0x20,%rax
jae    12ed <main+0x16d>
xor    %ecx,%ecx
jmp    1386 <main+0x206>
mov    %rax,%rcx
and    $0xffffffffffffffe0,%rcx
lea    -0x20(%rcx),%rsi
mov    %rsi,%rdx
shr    $0x5,%rdx
add    $0x1,%rdx
test   %rsi,%rsi
movaps 0xcf3(%rip),%xmm2
je     139f <main+0x21f>
mov    %rdx,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %esi,%esi
nopl   0x0(%rax)
movaps (%rsp,%rsi,1),%xmm0
xorps  %xmm2,%xmm0
movaps 0x10(%rsp,%rsi,1),%xmm1
xorps  %xmm2,%xmm1
movaps %xmm0,(%rsp,%rsi,1)
movaps %xmm1,0x10(%rsp,%rsi,1)
movaps 0x20(%rsp,%rsi,1),%xmm0
xorps  %xmm2,%xmm0
movaps 0x30(%rsp,%rsi,1),%xmm1
xorps  %xmm2,%xmm1
movaps %xmm0,0x20(%rsp,%rsi,1)
movaps %xmm1,0x30(%rsp,%rsi,1)
add    $0x40,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1320 <main+0x1a0>
test   $0x1,%dl
je     1379 <main+0x1f9>
movaps (%rsp,%rsi,1),%xmm0
xorps  %xmm2,%xmm0
movaps 0x10(%rsp,%rsi,1),%xmm1
xorps  %xmm2,%xmm1
movaps %xmm0,(%rsp,%rsi,1)
movaps %xmm1,0x10(%rsp,%rsi,1)
cmp    %rcx,%rax
je     1290 <main+0x110>
test   $0x18,%al
je     13b0 <main+0x230>
mov    %rcx,%rdx
mov    %rax,%rcx
and    $0xfffffffffffffff8,%rcx
xor    %rbp,(%rsp,%rdx,1)
add    $0x8,%rdx
cmp    %rdx,%rcx
jne    1390 <main+0x210>
jmp    13b8 <main+0x238>
xor    %esi,%esi
test   $0x1,%dl
jne    1361 <main+0x1e1>
jmp    1379 <main+0x1f9>
nopl   0x0(%rax,%rax,1)
xorb   $0x84,(%rsp,%rcx,1)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    13b0 <main+0x230>
jmp    1290 <main+0x110>

LLVM IR (-O0):
@.str = [12 x i8] c"nscript.dat\00"
@.str.1 = [12 x i8] c"nscript.txt\00"
@.str.2 = [2 x i8] c"-\00"
@.str.3 = [3 x i8] c"rb\00"
@stdin = global i32* null
@.str.4 = [29 x i8] c"Cannot open input file %s!!!\00"
@.str.5 = [3 x i8] c"wt\00"
@stdout = global i32* null
@.str.6 = [30 x i8] c"Cannot open output file %s!!!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca [2048 x i8]
%11 = alloca i32
%12 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %16
15: ; preds = %2
br label %20
16: ; preds = %2
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
br label %20
20: ; preds = %16, %15
%21 = phi i8* [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), %15 ], [ %19, %16 ]
store i8* %21, i8** %6
%22 = load i32, i32* %4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %25
24: ; preds = %20
br label %29
25: ; preds = %20
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 2
%28 = load i8*, i8** %27
br label %29
29: ; preds = %25, %24
%30 = phi i8* [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), %24 ], [ %28, %25 ]
store i8* %30, i8** %7
%31 = load i8*, i8** %6
%32 = call i64 @strcmp(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = load i8*, i8** %6
%36 = call i32* @fopen(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %36, i32** %8
br label %39
37: ; preds = %29
%38 = load i32*, i32** @stdin
store i32* %38, i32** %8
br label %39
39: ; preds = %37, %34
%40 = load i32*, i32** %8
%41 = icmp ne i32* %40, null
br i1 %41, label %51, label %42
42: ; preds = %39
%43 = load i32, i32* %4
%44 = icmp slt i32 %43, 2
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 (...) @show_help()
br label %50
47: ; preds = %42
%48 = load i8*, i8** %6
%49 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* %48)
br label %50
50: ; preds = %47, %45
store i32 -1, i32* %3
br label %102
51: ; preds = %39
%52 = load i8*, i8** %7
%53 = call i64 @strcmp(i8* %52, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %51
%56 = load i8*, i8** %7
%57 = call i32* @fopen(i8* %56, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
store i32* %57, i32** %9
br label %60
58: ; preds = %51
%59 = load i32*, i32** @stdout
store i32* %59, i32** %9
br label %60
60: ; preds = %58, %55
%61 = load i32*, i32** %9
%62 = icmp ne i32* %61, null
br i1 %62, label %66, label %63
63: ; preds = %60
%64 = load i8*, i8** %7
%65 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %64)
store i32 -1, i32* %3
br label %102
66: ; preds = %60
br label %67
67: ; preds = %92, %66
%68 = load i32*, i32** %8
%69 = call i32 @feof(i32* %68)
%70 = icmp ne i32 %69, 0
%71 = xor i1 %70, true
br i1 %71, label %72, label %97
72: ; preds = %67
%73 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%74 = load i32*, i32** %8
%75 = call i64 @fread(i8* %73, i32 1, i32 2048, i32* %74)
store i64 %75, i64* %12
store i32 0, i32* %11
br label %76
76: ; preds = %89, %72
%77 = load i32, i32* %11
%78 = sext i32 %77 to i64
%79 = load i64, i64* %12
%80 = icmp ult i64 %78, %79
br i1 %80, label %81, label %92
81: ; preds = %76
%82 = load i32, i32* %11
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 %83
%85 = load i8, i8* %84
%86 = zext i8 %85 to i32
%87 = xor i32 %86, 132
%88 = trunc i32 %87 to i8
store i8 %88, i8* %84
br label %89
89: ; preds = %81
%90 = load i32, i32* %11
%91 = add nsw i32 %90, 1
store i32 %91, i32* %11
br label %76
92: ; preds = %76
%93 = getelementptr inbounds [2048 x i8], [2048 x i8]* %10, i64 0, i64 0
%94 = load i64, i64* %12
%95 = load i32*, i32** %9
%96 = call i32 @fwrite(i8* %93, i32 1, i64 %94, i32* %95)
br label %67
97: ; preds = %67
%98 = load i32*, i32** %8
%99 = call i32 @fclose(i32* %98)
%100 = load i32*, i32** %9
%101 = call i32 @fclose(i32* %100)
store i32 0, i32* %3
br label %102
102: ; preds = %97, %63, %50
%103 = load i32, i32* %3
ret i32 %103
}

LLVM IR (-O2):
@.str = [12 x i8] c"nscript.dat\00"
@.str.1 = [12 x i8] c"nscript.txt\00"
@.str.2 = [2 x i8] c"-\00"
@.str.3 = [3 x i8] c"rb\00"
@stdin = global i32* null
@.str.4 = [29 x i8] c"Cannot open input file %s!!!\00"
@.str.5 = [3 x i8] c"wt\00"
@stdout = global i32* null
@.str.6 = [30 x i8] c"Cannot open output file %s!!!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [2048 x i8]
%4 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 2
br i1 %5, label %13, label %6
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = icmp eq i32 %0, 2
br i1 %9, label %13, label %10
10: ; preds = %6
%11 = getelementptr inbounds i8*, i8** %1, i64 2
%12 = load i8*, i8** %11
br label %13
13: ; preds = %2, %6, %10
%14 = phi i8* [ %8, %10 ], [ %8, %6 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), %2 ]
%15 = phi i8* [ %12, %10 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), %6 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), %2 ]
%16 = tail call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %13
%19 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %22
20: ; preds = %13
%21 = load i32*, i32** @stdin
br label %22
22: ; preds = %20, %18
%23 = phi i32* [ %19, %18 ], [ %21, %20 ]
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %30
25: ; preds = %22
br i1 %5, label %26, label %28
26: ; preds = %25
%27 = tail call i32 (...) @show_help()
br label %137
28: ; preds = %25
%29 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i8* %14)
br label %137
30: ; preds = %22
%31 = tail call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = tail call i32* @fopen(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %37
35: ; preds = %30
%36 = load i32*, i32** @stdout
br label %37
37: ; preds = %35, %33
%38 = phi i32* [ %34, %33 ], [ %36, %35 ]
%39 = icmp eq i32* %38, null
br i1 %39, label %43, label %40
40: ; preds = %37
%41 = tail call i32 @feof(i32* %23)
%42 = icmp eq i32 %41, 0
br i1 %42, label %45, label %134
43: ; preds = %37
%44 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %15)
br label %137
45: ; preds = %40, %130
%46 = call i64 @fread(i8* %4, i32 1, i32 2048, i32* %23)
%47 = icmp eq i64 %46, 0
br i1 %47, label %130, label %48
48: ; preds = %45
%49 = icmp ult i64 %46, 8
br i1 %49, label %121, label %50
50: ; preds = %48
%51 = icmp ult i64 %46, 32
br i1 %51, label %107, label %52
52: ; preds = %50
%53 = and i64 %46, -32
%54 = add i64 %53, -32
%55 = lshr exact i64 %54, 5
%56 = add nuw nsw i64 %55, 1
%57 = and i64 %56, 1
%58 = icmp eq i64 %54, 0
br i1 %58, label %88, label %59
59: ; preds = %52
%60 = and i64 %56, 1152921504606846974
br label %61
61: ; preds = %61, %59
%62 = phi i64 [ 0, %59 ], [ %85, %61 ]
%63 = phi i64 [ 0, %59 ], [ %86, %61 ]
%64 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 %62
%65 = bitcast i8* %64 to <16 x i8>*
%66 = load <16 x i8>, <16 x i8>* %65
%67 = getelementptr inbounds i8, i8* %64, i64 16
%68 = bitcast i8* %67 to <16 x i8>*
%69 = load <16 x i8>, <16 x i8>* %68
%70 = xor <16 x i8> %66, <i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124>
%71 = xor <16 x i8> %69, <i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124>
%72 = bitcast i8* %64 to <16 x i8>*
store <16 x i8> %70, <16 x i8>* %72
%73 = bitcast i8* %67 to <16 x i8>*
store <16 x i8> %71, <16 x i8>* %73
%74 = or i64 %62, 32
%75 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 %74
%76 = bitcast i8* %75 to <16 x i8>*
%77 = load <16 x i8>, <16 x i8>* %76
%78 = getelementptr inbounds i8, i8* %75, i64 16
%79 = bitcast i8* %78 to <16 x i8>*
%80 = load <16 x i8>, <16 x i8>* %79
%81 = xor <16 x i8> %77, <i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124>
%82 = xor <16 x i8> %80, <i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124>
%83 = bitcast i8* %75 to <16 x i8>*
store <16 x i8> %81, <16 x i8>* %83
%84 = bitcast i8* %78 to <16 x i8>*
store <16 x i8> %82, <16 x i8>* %84
%85 = add nuw i64 %62, 64
%86 = add i64 %63, 2
%87 = icmp eq i64 %86, %60
br i1 %87, label %88, label %61
88: ; preds = %61, %52
%89 = phi i64 [ 0, %52 ], [ %85, %61 ]
%90 = icmp eq i64 %57, 0
br i1 %90, label %102, label %91
91: ; preds = %88
%92 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 %89
%93 = bitcast i8* %92 to <16 x i8>*
%94 = load <16 x i8>, <16 x i8>* %93
%95 = getelementptr inbounds i8, i8* %92, i64 16
%96 = bitcast i8* %95 to <16 x i8>*
%97 = load <16 x i8>, <16 x i8>* %96
%98 = xor <16 x i8> %94, <i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124>
%99 = xor <16 x i8> %97, <i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124>
%100 = bitcast i8* %92 to <16 x i8>*
store <16 x i8> %98, <16 x i8>* %100
%101 = bitcast i8* %95 to <16 x i8>*
store <16 x i8> %99, <16 x i8>* %101
br label %102
102: ; preds = %88, %91
%103 = icmp eq i64 %46, %53
br i1 %103, label %130, label %104
104: ; preds = %102
%105 = and i64 %46, 24
%106 = icmp eq i64 %105, 0
br i1 %106, label %121, label %107
107: ; preds = %50, %104
%108 = phi i64 [ %53, %104 ], [ 0, %50 ]
%109 = and i64 %46, -8
br label %110
110: ; preds = %110, %107
%111 = phi i64 [ %108, %107 ], [ %117, %110 ]
%112 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 %111
%113 = bitcast i8* %112 to <8 x i8>*
%114 = load <8 x i8>, <8 x i8>* %113
%115 = xor <8 x i8> %114, <i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124, i8 -124>
%116 = bitcast i8* %112 to <8 x i8>*
store <8 x i8> %115, <8 x i8>* %116
%117 = add nuw i64 %111, 8
%118 = icmp eq i64 %117, %109
br i1 %118, label %119, label %110
119: ; preds = %110
%120 = icmp eq i64 %46, %109
br i1 %120, label %130, label %121
121: ; preds = %48, %104, %119
%122 = phi i64 [ 0, %48 ], [ %53, %104 ], [ %109, %119 ]
br label %123
123: ; preds = %121, %123
%124 = phi i64 [ %128, %123 ], [ %122, %121 ]
%125 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 %124
%126 = load i8, i8* %125
%127 = xor i8 %126, -124
store i8 %127, i8* %125
%128 = add nuw nsw i64 %124, 1
%129 = icmp eq i64 %128, %46
br i1 %129, label %130, label %123
130: ; preds = %123, %102, %119, %45
%131 = call i32 @fwrite(i8* %4, i32 1, i64 %46, i32* %38)
%132 = tail call i32 @feof(i32* %23)
%133 = icmp eq i32 %132, 0
br i1 %133, label %45, label %134
134: ; preds = %130, %40
%135 = tail call i32 @fclose(i32* %23)
%136 = tail call i32 @fclose(i32* %38)
br label %137
137: ; preds = %26, %28, %134, %43
%138 = phi i32 [ 0, %134 ], [ -1, %43 ], [ -1, %28 ], [ -1, %26 ]
ret i32 %138
}