#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*/ CWaitForConsoleKeyInput();
int /*<<< orphan*/ ConsoleWindow_Init();
int /*<<< orphan*/ ConsoleWindow_Shutdown();
int /*<<< orphan*/ InitLUTs();
int /*<<< orphan*/ ParseCommandLine(int, char **);
int /*<<< orphan*/ displayVersionMsg();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ wolfDataDecipher();
int main(int argc, char *argv[]) {
  ParseCommandLine(argc, argv);
  InitLUTs();
  ConsoleWindow_Init();
  displayVersionMsg();
  wolfDataDecipher();
  printf("\nPress a key to exit.\n");
  CWaitForConsoleKeyInput();
  ConsoleWindow_Shutdown();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1080 <ParseCommandLine@plt>
mov    $0x0,%al
call   10a0 <InitLUTs@plt>
mov    $0x0,%al
call   1060 <ConsoleWindow_Init@plt>
mov    $0x0,%al
call   1030 <displayVersionMsg@plt>
mov    $0x0,%al
call   1090 <wolfDataDecipher@plt>
lea    0xe3b(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <CWaitForConsoleKeyInput@plt>
mov    $0x0,%al
call   1050 <ConsoleWindow_Shutdown@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1080 <ParseCommandLine@plt>
xor    %eax,%eax
call   10a0 <InitLUTs@plt>
xor    %eax,%eax
call   1060 <ConsoleWindow_Init@plt>
xor    %eax,%eax
call   1030 <displayVersionMsg@plt>
xor    %eax,%eax
call   1090 <wolfDataDecipher@plt>
lea    0xe57(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <CWaitForConsoleKeyInput@plt>
xor    %eax,%eax
call   1050 <ConsoleWindow_Shutdown@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"\0APress a key to exit.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 @ParseCommandLine(i32 %6, i8** %7)
%9 = call i32 (...) @InitLUTs()
%10 = call i32 (...) @ConsoleWindow_Init()
%11 = call i32 (...) @displayVersionMsg()
%12 = call i32 (...) @wolfDataDecipher()
%13 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (...) @CWaitForConsoleKeyInput()
%15 = call i32 (...) @ConsoleWindow_Shutdown()
ret i32 0
}

LLVM IR (-O2):
@str = [22 x i8] c"\0APress a key to exit.\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @ParseCommandLine(i32 %0, i8** %1)
%4 = tail call i32 (...) @InitLUTs()
%5 = tail call i32 (...) @ConsoleWindow_Init()
%6 = tail call i32 (...) @displayVersionMsg()
%7 = tail call i32 (...) @wolfDataDecipher()
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 (...) @CWaitForConsoleKeyInput()
%10 = tail call i32 (...) @ConsoleWindow_Shutdown()
ret i32 0
}