#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 /*<<< orphan*/ puts(char *);
void print_help() {
  puts("HashRot Help:");
  puts("");
  puts("-p or --password:         The password used to encrypt the file.");
  puts("-k or --keyfile:          The file to use as the encryption key.");
  puts("-i or --input:            The file to encrypt.");
  puts("-o or --output:           Name to use for the new encrypted file.");
  puts("-r or --reverse:          Run the encryption in reverse.");
  puts("-h or --help:             Display this output.");
  puts("");
  puts("Example:");
  puts("hashrot -p mysecretpassword -i plain.txt -o encrypted.txt");
  puts("hashrot -k ./keyfile.txt -i encrypted.txt -i decrypted.txt -r");
  return;
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd9(%rip),%rdi
call   1030 <puts@plt>
lea    0xedb(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xf68(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0xf85(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdf(%rip),%rdi
call   1030 <puts@plt>
lea    0x100d(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xed0(%rip),%rdi
call   1040 <puts@plt>
lea    0xf05(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5d(%rip),%rdi
call   1040 <puts@plt>
lea    0xf93(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc0(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfd9(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd6(%rip),%rdi
call   1040 <puts@plt>
lea    0x1004(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"HashRot Help:\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [65 x i8] c"-p or --password: The password used to encrypt the file.\00"
@.str.3 = [65 x i8] c"-k or --keyfile: The file to use as the encryption key.\00"
@.str.4 = [47 x i8] c"-i or --input: The file to encrypt.\00"
@.str.5 = [66 x i8] c"-o or --output: Name to use for the new encrypted file.\00"
@.str.6 = [57 x i8] c"-r or --reverse: Run the encryption in reverse.\00"
@.str.7 = [47 x i8] c"-h or --help: Display this output.\00"
@.str.8 = [9 x i8] c"Example:\00"
@.str.9 = [58 x i8] c"hashrot -p mysecretpassword -i plain.txt -o encrypted.txt\00"
@.str.10 = [62 x i8] c"hashrot -k ./keyfile.txt -i encrypted.txt -i decrypted.txt -r\00"
define void @print_help() {
%1 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"HashRot Help:\00"
@.str.2 = [65 x i8] c"-p or --password: The password used to encrypt the file.\00"
@.str.3 = [65 x i8] c"-k or --keyfile: The file to use as the encryption key.\00"
@.str.4 = [47 x i8] c"-i or --input: The file to encrypt.\00"
@.str.5 = [66 x i8] c"-o or --output: Name to use for the new encrypted file.\00"
@.str.6 = [57 x i8] c"-r or --reverse: Run the encryption in reverse.\00"
@.str.7 = [47 x i8] c"-h or --help: Display this output.\00"
@.str.8 = [9 x i8] c"Example:\00"
@.str.9 = [58 x i8] c"hashrot -p mysecretpassword -i plain.txt -o encrypted.txt\00"
@.str.10 = [62 x i8] c"hashrot -k ./keyfile.txt -i encrypted.txt -i decrypted.txt -r\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.9, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.10, i64 0, i64 0))
ret void
}