#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 */
char *gettext(char *);
int /*<<< orphan*/ printf(char *, ...);
void helpbox() {
  printf("\n");
  printf(gettext("\tcryptoJKA from JKA Network - Version: %s\n"), "0.5.1");
  printf("\n");
  printf(gettext("\tThe text must be between ASCII 32 and ASCII 126\n\n"));
  printf(gettext("\tOptions:\n"));
  printf(gettext("\t -f [file_name]\tinput file\n"));
  printf(gettext("\t -o [file_name]\toutput file (default : crypt.out)\n"));
  printf(gettext("\t -p [text]\t\tpassword (default: pass)\n"));
  printf(gettext("\t -t [text]\t\ttext (default: text)\n\t\t\t\t\tIf you put "
                 "-f and -t, text have preference\n"));
  printf(gettext("\t -e\t\t\tencrypt mode\n"));
  printf(gettext("\t -d\t\t\tdecrypt mode\n"));
  printf(gettext(
      "\t -r [number]\t\twith random generation [number of character]\n"));
  printf(gettext("\t -i\t\t\tinteractive mode\n"));
  printf(gettext("\t -b\t\t\tcyption mode whith before algorithm (before "
                 "version 0.4.5)\n"));
  printf(gettext("\t -h, --help\t\tshow this box\n"));
  printf(gettext("\t -v, --version\t\tshow version\n\n"));
  printf(gettext("\t Examples:\n\n"));
  printf(gettext("\t\tcryptojka -e -t \"Example text\" -p password -o "
                 "file_name -r 600\n"));
  printf(gettext("\t\tcryptojka -d -f file_name -p password\n\n"));
}


x86 assembly (clang, -O0):
<helpbox>:
push   %rbp
mov    %rsp,%rbp
lea    0xf37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec7(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
lea    0xee3(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xecd(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xee6(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf04(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf15(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf52(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf51(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf50(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf77(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf7a(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfa7(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfae(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfb8(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfb0(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfdc(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
mov    $0x0,%al
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<helpbox>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xebe(%rip),%rdi
call   1040 <gettext@plt>
lea    0xedd(%rip),%rsi
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xec8(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xee5(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeda(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xee1(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeff(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf10(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf4d(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf4c(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf4b(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf72(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf75(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfa2(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfa9(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfb3(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfab(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfd7(%rip),%rdi
call   1040 <gettext@plt>
mov    %rax,%rdi
xor    %eax,%eax
pop    %rcx
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [43 x i8] c"\09cryptoJKA from JKA Network - Version: %s\0A\00"
@.str.2 = [6 x i8] c"0.5.1\00"
@.str.3 = [51 x i8] c"\09The text must be between ASCII 32 and ASCII 126\0A\0A\00"
@.str.4 = [11 x i8] c"\09Options:\0A\00"
@.str.5 = [29 x i8] c"\09 -f [file_name]\09input file\0A\00"
@.str.6 = [52 x i8] c"\09 -o [file_name]\09output file (default : crypt.out)\0A\00"
@.str.7 = [39 x i8] c"\09 -p [text]\09\09password (default: pass)\0A\00"
@.str.8 = [83 x i8] c"\09 -t [text]\09\09text (default: text)\0A\09\09\09\09\09If you put -f and -t, text have preference\0A\00"
@.str.9 = [21 x i8] c"\09 -e\09\09\09encrypt mode\0A\00"
@.str.10 = [21 x i8] c"\09 -d\09\09\09decrypt mode\0A\00"
@.str.11 = [61 x i8] c"\09 -r [number]\09\09with random generation [number of character]\0A\00"
@.str.12 = [25 x i8] c"\09 -i\09\09\09interactive mode\0A\00"
@.str.13 = [67 x i8] c"\09 -b\09\09\09cyption mode whith before algorithm (before version 0.4.5)\0A\00"
@.str.14 = [29 x i8] c"\09 -h, --help\09\09show this box\0A\00"
@.str.15 = [32 x i8] c"\09 -v, --version\09\09show version\0A\0A\00"
@.str.16 = [14 x i8] c"\09 Examples:\0A\0A\00"
@.str.17 = [66 x i8] c"\09\09cryptojka -e -t \22Example text\22 -p password -o file_name -r 600\0A\00"
@.str.18 = [42 x i8] c"\09\09cryptojka -d -f file_name -p password\0A\0A\00"
define void @helpbox() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i8* @gettext(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = call i8* @gettext(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* %5)
%7 = call i8* @gettext(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* %7)
%9 = call i8* @gettext(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* %9)
%11 = call i8* @gettext(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* %11)
%13 = call i8* @gettext(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* %13)
%15 = call i8* @gettext(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* %15)
%17 = call i8* @gettext(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* %17)
%19 = call i8* @gettext(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* %19)
%21 = call i8* @gettext(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.11, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* %21)
%23 = call i8* @gettext(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* %23)
%25 = call i8* @gettext(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.13, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* %25)
%27 = call i8* @gettext(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.14, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* %27)
%29 = call i8* @gettext(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* %29)
%31 = call i8* @gettext(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* %31)
%33 = call i8* @gettext(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.17, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* %33)
%35 = call i8* @gettext(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.18, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* %35)
ret void
}

LLVM IR (-O2):
@.str.1 = [43 x i8] c"\09cryptoJKA from JKA Network - Version: %s\0A\00"
@.str.2 = [6 x i8] c"0.5.1\00"
@.str.3 = [51 x i8] c"\09The text must be between ASCII 32 and ASCII 126\0A\0A\00"
@.str.4 = [11 x i8] c"\09Options:\0A\00"
@.str.5 = [29 x i8] c"\09 -f [file_name]\09input file\0A\00"
@.str.6 = [52 x i8] c"\09 -o [file_name]\09output file (default : crypt.out)\0A\00"
@.str.7 = [39 x i8] c"\09 -p [text]\09\09password (default: pass)\0A\00"
@.str.8 = [83 x i8] c"\09 -t [text]\09\09text (default: text)\0A\09\09\09\09\09If you put -f and -t, text have preference\0A\00"
@.str.9 = [21 x i8] c"\09 -e\09\09\09encrypt mode\0A\00"
@.str.10 = [21 x i8] c"\09 -d\09\09\09decrypt mode\0A\00"
@.str.11 = [61 x i8] c"\09 -r [number]\09\09with random generation [number of character]\0A\00"
@.str.12 = [25 x i8] c"\09 -i\09\09\09interactive mode\0A\00"
@.str.13 = [67 x i8] c"\09 -b\09\09\09cyption mode whith before algorithm (before version 0.4.5)\0A\00"
@.str.14 = [29 x i8] c"\09 -h, --help\09\09show this box\0A\00"
@.str.15 = [32 x i8] c"\09 -v, --version\09\09show version\0A\0A\00"
@.str.16 = [14 x i8] c"\09 Examples:\0A\0A\00"
@.str.17 = [66 x i8] c"\09\09cryptojka -e -t \22Example text\22 -p password -o file_name -r 600\0A\00"
@.str.18 = [42 x i8] c"\09\09cryptojka -d -f file_name -p password\0A\0A\00"
define void @helpbox() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i8* @gettext(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i8* @gettext(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %5)
%7 = tail call i8* @gettext(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %7)
%9 = tail call i8* @gettext(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %9)
%11 = tail call i8* @gettext(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %11)
%13 = tail call i8* @gettext(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %13)
%15 = tail call i8* @gettext(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %15)
%17 = tail call i8* @gettext(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %17)
%19 = tail call i8* @gettext(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %19)
%21 = tail call i8* @gettext(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.11, i64 0, i64 0))
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %21)
%23 = tail call i8* @gettext(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %23)
%25 = tail call i8* @gettext(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.13, i64 0, i64 0))
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %25)
%27 = tail call i8* @gettext(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.14, i64 0, i64 0))
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %27)
%29 = tail call i8* @gettext(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0))
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %29)
%31 = tail call i8* @gettext(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.16, i64 0, i64 0))
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %31)
%33 = tail call i8* @gettext(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.17, i64 0, i64 0))
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %33)
%35 = tail call i8* @gettext(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.18, i64 0, i64 0))
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %35)
ret void
}