#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 */

/* Variables and functions */
int EOF;
int atoi(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int getchar();
int getopt(int, char **, char *);
int /*<<< orphan*/ isprint(int);
int /*<<< orphan*/ keyfile_close();
int /*<<< orphan*/ keyfile_init();
int keyfile_next_char();
scalar_t__ keyfile_open(char *, int);
int /*<<< orphan*/ main_shutdown(char *);
int /*<<< orphan*/ mirrorfield_crypt_char(unsigned char, int);
int /*<<< orphan*/ mirrorfield_init();
int /*<<< orphan*/ mirrorfield_link();
scalar_t__ mirrorfield_set(unsigned char);
scalar_t__ mirrorfield_validate();
char *optarg;
int optopt;
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ putchar(int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  int o, ch;
  int autoCreate = 0;
  int debug = 0;
  char *version = "0.2.0";
  char *keyFileName = "default";
  keyfile_init();
  mirrorfield_init();
  while ((o = getopt(argc, argv, "ak:vd:")) != -1) {
    switch (o) {
    case 'a':
      autoCreate = 1;
      break;
    case 'k':
      keyFileName = optarg;
      break;
    case 'v':
      printf("mrrcrypt version %s\n", version);
      return 0;
    case 'd':
      debug = atoi(optarg);
      break;
    case '?':
      if (isprint(optopt))
        fprintf(stderr, "Unknown option '-%c'.\n", optopt);
      else
        fprintf(stderr, "Unknown option character '\\x%x'.\n", optopt);
      main_shutdown("Invalid command option(s).");
    }
  }
  if (strcmp("default", keyFileName) == 0)
    autoCreate = 1;
  if (keyfile_open(keyFileName, autoCreate) == 0) {
    if (autoCreate)
      main_shutdown("Could not auto-create key file. Check permissions.");
    else
      main_shutdown("Key file not found. Use -a to auto-create.");
  }
  while ((ch = keyfile_next_char()) != EOF)
    if ((mirrorfield_set((unsigned char)ch)) == 0)
      break;
  keyfile_close();
  if (mirrorfield_validate() == 0)
    main_shutdown("Key file error. Invalid content.");
  mirrorfield_link();
  while ((ch = getchar()) != EOF) {
    putchar(mirrorfield_crypt_char((unsigned char)ch, debug));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
lea    0xdb5(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xdb0(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    $0x0,%al
call   1050 <keyfile_init@plt>
mov    $0x0,%al
call   10f0 <mirrorfield_init@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xd98(%rip),%rdx
call   1120 <getopt@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
je     139a <main+0x17a>
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
sub    $0x3f,%eax
je     1331 <main+0x111>
jmp    129b <main+0x7b>
mov    -0x34(%rbp),%eax
sub    $0x61,%eax
je     12df <main+0xbf>
jmp    12ac <main+0x8c>
mov    -0x34(%rbp),%eax
sub    $0x64,%eax
je     131a <main+0xfa>
jmp    12bd <main+0x9d>
mov    -0x34(%rbp),%eax
sub    $0x6b,%eax
je     12eb <main+0xcb>
jmp    12ce <main+0xae>
mov    -0x34(%rbp),%eax
sub    $0x76,%eax
je     12fe <main+0xde>
jmp    1395 <main+0x175>
movl   $0x1,-0x1c(%rbp)
jmp    1395 <main+0x175>
mov    0x2d06(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
jmp    1395 <main+0x175>
mov    -0x28(%rbp),%rsi
lea    0xd0c(%rip),%rdi
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    149f <main+0x27f>
mov    0x2cd7(%rip),%rax
mov    (%rax),%rdi
call   1130 <atoi@plt>
mov    %eax,-0x20(%rbp)
jmp    1395 <main+0x175>
mov    0x2ca8(%rip),%rax
mov    (%rax),%edi
call   1100 <isprint@plt>
cmp    $0x0,%eax
je     136b <main+0x14b>
mov    0x2c79(%rip),%rax
mov    (%rax),%edi
mov    0x2c88(%rip),%rax
mov    (%rax),%edx
lea    0xcc9(%rip),%rsi
call   10c0 <fprintf@plt>
jmp    1389 <main+0x169>
mov    0x2c56(%rip),%rax
mov    (%rax),%edi
mov    0x2c65(%rip),%rax
mov    (%rax),%edx
lea    0xcbd(%rip),%rsi
call   10c0 <fprintf@plt>
lea    0xcd3(%rip),%rdi
call   1070 <main_shutdown@plt>
jmp    1268 <main+0x48>
mov    -0x30(%rbp),%rsi
lea    0xc61(%rip),%rdi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13bb <main+0x19b>
movl   $0x1,-0x1c(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x1c(%rbp),%esi
call   1110 <keyfile_open@plt>
cmp    $0x0,%rax
jne    13fd <main+0x1dd>
cmpl   $0x0,-0x1c(%rbp)
je     13ec <main+0x1cc>
lea    0xc9c(%rip),%rdi
call   1070 <main_shutdown@plt>
jmp    13f8 <main+0x1d8>
lea    0xcbe(%rip),%rdi
call   1070 <main_shutdown@plt>
jmp    13fd <main+0x1dd>
jmp    1402 <main+0x1e2>
mov    $0x0,%al
call   10d0 <keyfile_next_char@plt>
mov    %eax,-0x18(%rbp)
mov    0x2bc5(%rip),%rcx
cmp    (%rcx),%eax
je     143a <main+0x21a>
mov    -0x18(%rbp),%eax
movzbl %al,%edi
call   1080 <mirrorfield_set@plt>
cmp    $0x0,%rax
jne    1435 <main+0x215>
jmp    143a <main+0x21a>
jmp    1402 <main+0x1e2>
mov    $0x0,%al
call   1090 <keyfile_close@plt>
mov    $0x0,%al
call   1040 <mirrorfield_validate@plt>
cmp    $0x0,%rax
jne    145e <main+0x23e>
lea    0xc83(%rip),%rdi
call   1070 <main_shutdown@plt>
mov    $0x0,%al
call   10e0 <mirrorfield_link@plt>
mov    $0x0,%al
call   10b0 <getchar@plt>
mov    %eax,-0x18(%rbp)
mov    0x2b62(%rip),%rcx
cmp    (%rcx),%eax
je     1498 <main+0x278>
mov    -0x18(%rbp),%eax
mov    -0x20(%rbp),%esi
movzbl %al,%edi
call   1140 <mirrorfield_crypt_char@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
jmp    1465 <main+0x245>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbp
mov    %edi,%ebx
movl   $0x0,0x8(%rsp)
xor    %eax,%eax
call   1050 <keyfile_init@plt>
xor    %eax,%eax
call   10f0 <mirrorfield_init@plt>
lea    0xe0e(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xe0a(%rip),%r13
lea    0xe58(%rip),%r14
lea    0xd96(%rip),%r12
movl   $0x0,0xc(%rsp)
jmp    12bf <main+0x9f>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x2d59(%rip),%rax
mov    (%rax),%r15d
mov    %r15d,%edi
call   1100 <isprint@plt>
test   %eax,%eax
mov    0x2d2d(%rip),%rax
mov    (%rax),%edi
lea    0xdde(%rip),%rsi
lea    0xdee(%rip),%rax
cmove  %rax,%rsi
mov    %r15d,%edx
call   10c0 <fprintf@plt>
mov    %r14,%rdi
call   1070 <main_shutdown@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    %r13,%rdx
call   1120 <getopt@plt>
cmp    $0x3f,%eax
je     1280 <main+0x60>
lea    -0x61(%rax),%ecx
cmp    $0x15,%ecx
ja     12f0 <main+0xd0>
movslq (%r12,%rcx,4),%rax
add    %r12,%rax
jmp    *%rax
movl   $0x1,0x8(%rsp)
jmp    12bf <main+0x9f>
nopl   0x0(%rax)
cmp    $0xffffffff,%eax
jne    12bf <main+0x9f>
jmp    1341 <main+0x121>
mov    0x2cfa(%rip),%rax
mov    (%rax),%rdi
call   1130 <atoi@plt>
mov    %eax,0xc(%rsp)
jmp    12bf <main+0x9f>
mov    0x2ce5(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x10(%rsp)
jmp    12bf <main+0x9f>
lea    0xd49(%rip),%rdi
lea    0xd2d(%rip),%rsi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd16(%rip),%rdi
mov    0x10(%rsp),%rbp
mov    %rbp,%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
mov    $0x1,%eax
mov    0x8(%rsp),%ebx
cmove  %eax,%ebx
mov    %rbp,%rdi
mov    %ebx,%esi
call   1110 <keyfile_open@plt>
test   %rax,%rax
jne    138c <main+0x16c>
test   %ebx,%ebx
lea    0xd8d(%rip),%rax
lea    0xd53(%rip),%rdi
cmove  %rax,%rdi
call   1070 <main_shutdown@plt>
mov    0x2c45(%rip),%rbx
mov    0xc(%rsp),%ebp
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10d0 <keyfile_next_char@plt>
cmp    (%rbx),%eax
je     13b8 <main+0x198>
movzbl %al,%edi
call   1080 <mirrorfield_set@plt>
test   %rax,%rax
jne    13a0 <main+0x180>
xor    %eax,%eax
call   1090 <keyfile_close@plt>
xor    %eax,%eax
call   1040 <mirrorfield_validate@plt>
test   %rax,%rax
jne    13d7 <main+0x1b7>
lea    0xd62(%rip),%rdi
call   1070 <main_shutdown@plt>
xor    %eax,%eax
call   10e0 <mirrorfield_link@plt>
xchg   %ax,%ax
xor    %eax,%eax
call   10b0 <getchar@plt>
cmp    (%rbx),%eax
je     1330 <main+0x110>
movzbl %al,%edi
mov    %ebp,%esi
call   1140 <mirrorfield_crypt_char@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
jmp    13e0 <main+0x1c0>

LLVM IR (-O0):
@.str = [6 x i8] c"0.2.0\00"
@.str.1 = [8 x i8] c"default\00"
@.str.2 = [7 x i8] c"ak:vd:\00"
@optarg = global i8* null
@.str.3 = [21 x i8] c"mrrcrypt version %s\0A\00"
@optopt = global i32 0
@stderr = global i32 0
@.str.4 = [23 x i8] c"Unknown option '-%c'.\0A\00"
@.str.5 = [34 x i8] c"Unknown option character '\\x%x'.\0A\00"
@.str.6 = [27 x i8] c"Invalid command option(s).\00"
@.str.7 = [51 x i8] c"Could not auto-create key file. Check permissions.\00"
@.str.8 = [43 x i8] c"Key file not found. Use -a to auto-create.\00"
@EOF = global i32 0
@.str.9 = [33 x i8] c"Key file error. Invalid content.\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 i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
store i32 0, i32* %9
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %10
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** %11
%12 = call i32 (...) @keyfile_init()
%13 = call i32 (...) @mirrorfield_init()
br label %14
14: ; preds = %44, %2
%15 = load i32, i32* %4
%16 = load i8**, i8*** %5
%17 = call i32 @getopt(i32 %15, i8** %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
store i32 %17, i32* %6
%18 = icmp ne i32 %17, -1
br i1 %18, label %19, label %45
19: ; preds = %14
%20 = load i32, i32* %6
switch i32 %20, label %44 [
i32 97, label %21
i32 107, label %22
i32 118, label %24
i32 100, label %27
i32 63, label %30
]
21: ; preds = %19
store i32 1, i32* %8
br label %44
22: ; preds = %19
%23 = load i8*, i8** @optarg
store i8* %23, i8** %11
br label %44
24: ; preds = %19
%25 = load i8*, i8** %10
%26 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* %25)
store i32 0, i32* %3
br label %94
27: ; preds = %19
%28 = load i8*, i8** @optarg
%29 = call i32 @atoi(i8* %28)
store i32 %29, i32* %9
br label %44
30: ; preds = %19
%31 = load i32, i32* @optopt
%32 = call i32 @isprint(i32 %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %30
%35 = load i32, i32* @stderr
%36 = load i32, i32* @optopt
%37 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %36)
br label %42
38: ; preds = %30
%39 = load i32, i32* @stderr
%40 = load i32, i32* @optopt
%41 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i32 %40)
br label %42
42: ; preds = %38, %34
%43 = call i32 @main_shutdown(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
br label %44
44: ; preds = %42, %19, %27, %22, %21
br label %14
45: ; preds = %14
%46 = load i8*, i8** %11
%47 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %46)
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %45
store i32 1, i32* %8
br label %50
50: ; preds = %49, %45
%51 = load i8*, i8** %11
%52 = load i32, i32* %8
%53 = call i64 @keyfile_open(i8* %51, i32 %52)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %50
%56 = load i32, i32* %8
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @main_shutdown(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
br label %62
60: ; preds = %55
%61 = call i32 @main_shutdown(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
br label %62
62: ; preds = %60, %58
br label %63
63: ; preds = %62, %50
br label %64
64: ; preds = %74, %63
%65 = call i32 (...) @keyfile_next_char()
store i32 %65, i32* %7
%66 = load i32, i32* @EOF
%67 = icmp ne i32 %65, %66
br i1 %67, label %68, label %75
68: ; preds = %64
%69 = load i32, i32* %7
%70 = trunc i32 %69 to i8
%71 = call i64 @mirrorfield_set(i8 zeroext %70)
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %68
br label %75
74: ; preds = %68
br label %64
75: ; preds = %73, %64
%76 = call i32 (...) @keyfile_close()
%77 = call i64 (...) @mirrorfield_validate()
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = call i32 @main_shutdown(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
br label %81
81: ; preds = %79, %75
%82 = call i32 (...) @mirrorfield_link()
br label %83
83: ; preds = %87, %81
%84 = call i32 (...) @getchar()
store i32 %84, i32* %7
%85 = load i32, i32* @EOF
%86 = icmp ne i32 %84, %85
br i1 %86, label %87, label %93
87: ; preds = %83
%88 = load i32, i32* %7
%89 = trunc i32 %88 to i8
%90 = load i32, i32* %9
%91 = call i32 @mirrorfield_crypt_char(i8 zeroext %89, i32 %90)
%92 = call i32 @putchar(i32 %91)
br label %83
93: ; preds = %83
store i32 0, i32* %3
br label %94
94: ; preds = %93, %24
%95 = load i32, i32* %3
ret i32 %95
}

LLVM IR (-O2):
@.str = [6 x i8] c"0.2.0\00"
@.str.1 = [8 x i8] c"default\00"
@.str.2 = [7 x i8] c"ak:vd:\00"
@optarg = global i8* null
@.str.3 = [21 x i8] c"mrrcrypt version %s\0A\00"
@optopt = global i32 0
@stderr = global i32 0
@.str.4 = [23 x i8] c"Unknown option '-%c'.\0A\00"
@.str.5 = [34 x i8] c"Unknown option character '\\x%x'.\0A\00"
@.str.6 = [27 x i8] c"Invalid command option(s).\00"
@.str.7 = [51 x i8] c"Could not auto-create key file. Check permissions.\00"
@.str.8 = [43 x i8] c"Key file not found. Use -a to auto-create.\00"
@EOF = global i32 0
@.str.9 = [33 x i8] c"Key file error. Invalid content.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (...) @keyfile_init()
%4 = tail call i32 (...) @mirrorfield_init()
br label %5
5: ; preds = %14, %2
%6 = phi i32 [ 0, %2 ], [ 1, %14 ]
%7 = phi i32 [ 0, %2 ], [ %10, %14 ]
%8 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), %2 ], [ %13, %14 ]
br label %9
9: ; preds = %5, %21
%10 = phi i32 [ %7, %5 ], [ %23, %21 ]
%11 = phi i8* [ %8, %5 ], [ %13, %21 ]
br label %12
12: ; preds = %9, %17
%13 = phi i8* [ %11, %9 ], [ %18, %17 ]
br label %14
14: ; preds = %16, %12
%15 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
switch i32 %15, label %16 [
i32 -1, label %32
i32 97, label %5
i32 107, label %17
i32 118, label %19
i32 100, label %21
i32 63, label %24
]
16: ; preds = %14, %24
br label %14
17: ; preds = %14
%18 = load i8*, i8** @optarg
br label %12
19: ; preds = %14
%20 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %70
21: ; preds = %14
%22 = load i8*, i8** @optarg
%23 = tail call i32 @atoi(i8* %22)
br label %9
24: ; preds = %14
%25 = load i32, i32* @optopt
%26 = tail call i32 @isprint(i32 %25)
%27 = icmp eq i32 %26, 0
%28 = load i32, i32* @stderr
%29 = select i1 %27, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0)
%30 = tail call i32 @fprintf(i32 %28, i8* %29, i32 %25)
%31 = tail call i32 @main_shutdown(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
br label %16
32: ; preds = %14
%33 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%34 = icmp eq i64 %33, 0
%35 = select i1 %34, i32 1, i32 %6
%36 = tail call i64 @keyfile_open(i8* %13, i32 %35)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %32
%39 = icmp eq i32 %35, 0
%40 = select i1 %39, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0)
%41 = tail call i32 @main_shutdown(i8* %40)
br label %42
42: ; preds = %38, %32
br label %43
43: ; preds = %42, %47
%44 = tail call i32 (...) @keyfile_next_char()
%45 = load i32, i32* @EOF
%46 = icmp eq i32 %44, %45
br i1 %46, label %51, label %47
47: ; preds = %43
%48 = trunc i32 %44 to i8
%49 = tail call i64 @mirrorfield_set(i8 zeroext %48)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %43
51: ; preds = %47, %43
%52 = tail call i32 (...) @keyfile_close()
%53 = tail call i64 (...) @mirrorfield_validate()
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = tail call i32 @main_shutdown(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
br label %57
57: ; preds = %55, %51
%58 = tail call i32 (...) @mirrorfield_link()
%59 = tail call i32 (...) @getchar()
%60 = load i32, i32* @EOF
%61 = icmp eq i32 %59, %60
br i1 %61, label %70, label %62
62: ; preds = %57, %62
%63 = phi i32 [ %67, %62 ], [ %59, %57 ]
%64 = trunc i32 %63 to i8
%65 = tail call i32 @mirrorfield_crypt_char(i8 zeroext %64, i32 %10)
%66 = tail call i32 @putchar(i32 %65)
%67 = tail call i32 (...) @getchar()
%68 = load i32, i32* @EOF
%69 = icmp eq i32 %67, %68
br i1 %69, label %70, label %62
70: ; preds = %62, %57, %19
ret i32 0
}