#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*/ A_BOLD;
int /*<<< orphan*/ getmaxyx(int /*<<< orphan*/, int, int);
int /*<<< orphan*/ print_text(int, int, char *, int, int /*<<< orphan*/, int,
                              int);
int /*<<< orphan*/ stdscr;
void print_main_menu() {
  int logo_display_speed = 1;
  int history_display_speed = 50;
  int start_display_speed = 1;
  int x, y;
  getmaxyx(stdscr, y, x);
  print_text(x, 0, "                                                      ", 1,
             0, 1, logo_display_speed);
  print_text(x, 1, " _______           _______  _______  _______  ______  ", 1,
             0, 1, logo_display_speed);
  print_text(x, 2,
             "(  ____ \\|\\     /|(  ____ )(  ____ \\(  ____ \\(  __  \\ ", 1,
             0, 1, logo_display_speed);
  print_text(x, 3, "| (    \\/| )   ( || (    )|| (    \\/| (    \\/| (  \\  )",
             1, 0, 1, logo_display_speed);
  print_text(x, 4, "| |      | |   | || (____)|| (_____ | (__    | |   ) |", 1,
             0, 1, logo_display_speed);
  print_text(x, 5, "| |      | |   | ||     __)(_____  )|  __)   | |   | |", 1,
             0, 1, logo_display_speed);
  print_text(x, 6, "| |      | |   | || (\\ (         ) || (      | |   ) |", 1,
             0, 1, logo_display_speed);
  print_text(x, 7,
             "| (____/\\| (___) || ) \\ \\__/\\____) || (____/\\| (__/  )", 1,
             0, 1, logo_display_speed);
  print_text(x, 8, "(_______/(_______)|/   \\__/\\_______)(_______/(______/ ",
             1, 0, 1, logo_display_speed);
  print_text(x, 10, " _______  _______  _______  _______  _______  ", 1, 0, 1,
             logo_display_speed);
  print_text(x, 11, "(  ____ \\(  ____ )(  ___  )(  ____ \\(  ____ \\", 1, 0, 1,
             logo_display_speed);
  print_text(x, 12, "| (    \\/| (    )|| (   ) || (    \\/| (    \\/ ", 1, 0,
             1, logo_display_speed);
  print_text(x, 13, "| (_____ | (____)|| (___) || |      | (__     ", 1, 0, 1,
             logo_display_speed);
  print_text(x, 14, "(_____  )|  _____)|  ___  || |      |  __)    ", 1, 0, 1,
             logo_display_speed);
  print_text(x, 15, "      ) || (      | (   ) || |      | (       ", 1, 0, 1,
             logo_display_speed);
  print_text(x, 16, "/\\____) || )      | )   ( || (____/\\| (____/\\ ", 1, 0,
             1, logo_display_speed);
  print_text(x, 17, "\\_______)|/       |/     \\|(_______/(_______/ ", 1, 0, 1,
             logo_display_speed);
  print_text(x, 22, "On a remote terminal very far far far away", 1, 0, 1,
             history_display_speed);
  print_text(x, 23, "there is a universe on the edge of its very existence,", 1,
             0, 1, history_display_speed);
  print_text(x, 24, "infested with ASCII asteroids and aliens.", 1, 0, 1,
             history_display_speed);
  print_text(x, 25, "But there is still hope!", 1, 0, 1, history_display_speed);
  print_text(x, 26, "You can make the difference aboard the killer ship!", 1, 0,
             1, history_display_speed);
  print_text(x, 27, "Your terminal is counting on you! Good hunt!", 1, 0, 1,
             history_display_speed);
  print_text(x, 35, "Press any key to start", 1, A_BOLD, 1,
             start_display_speed);
}


x86 assembly (clang, -O0):
<print_main_menu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x1,-0x4(%rbp)
movl   $0x32,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    0x2ea4(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <getmaxyx@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
xor    %r8d,%r8d
lea    0xe9f(%rip),%rdx
mov    $0x1,%r9d
mov    %r8d,%esi
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0x1,%r9d
lea    0xeaf(%rip),%rdx
xor    %r8d,%r8d
mov    %r9d,%esi
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0x2,%esi
lea    0xec3(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0x3,%esi
lea    0xed4(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0x4,%esi
lea    0xee5(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0x5,%esi
lea    0xef6(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0x6,%esi
lea    0xf07(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0x7,%esi
lea    0xf18(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0x8,%esi
lea    0xf29(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0xa,%esi
lea    0xf3a(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0xb,%esi
lea    0xf43(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0xc,%esi
lea    0xf4b(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0xd,%esi
lea    0xf54(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0xe,%esi
lea    0xf5d(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0xf,%esi
lea    0xf66(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0x10,%esi
lea    0xf6f(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%eax
mov    $0x11,%esi
lea    0xf78(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%eax
mov    $0x16,%esi
lea    0xf81(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%eax
mov    $0x17,%esi
lea    0xf86(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%eax
mov    $0x18,%esi
lea    0xf97(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%eax
mov    $0x19,%esi
lea    0xf9b(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%eax
mov    $0x1a,%esi
lea    0xf8e(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%eax
mov    $0x1b,%esi
lea    0xf9c(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    0x2b17(%rip),%rax
mov    (%rax),%r8d
mov    -0xc(%rbp),%eax
mov    $0x23,%esi
lea    0xf99(%rip),%rdx
mov    $0x1,%r9d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_main_menu>:
push   %rax
mov    0x2ec0(%rip),%rax
mov    (%rax),%edi
call   1040 <getmaxyx@plt>
movl   $0x1,(%rsp)
lea    0xec3(%rip),%rdx
xor    %esi,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xed7(%rip),%rdx
mov    $0x1,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xee8(%rip),%rdx
mov    $0x2,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xef9(%rip),%rdx
mov    $0x3,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf0a(%rip),%rdx
mov    $0x4,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf1b(%rip),%rdx
mov    $0x5,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf2c(%rip),%rdx
mov    $0x6,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf3d(%rip),%rdx
mov    $0x7,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf4e(%rip),%rdx
mov    $0x8,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf5f(%rip),%rdx
mov    $0xa,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf68(%rip),%rdx
mov    $0xb,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf70(%rip),%rdx
mov    $0xc,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf79(%rip),%rdx
mov    $0xd,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf82(%rip),%rdx
mov    $0xe,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf8b(%rip),%rdx
mov    $0xf,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf94(%rip),%rdx
mov    $0x10,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf9d(%rip),%rdx
mov    $0x11,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x32,(%rsp)
lea    0xfa6(%rip),%rdx
mov    $0x16,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x32,(%rsp)
lea    0xfab(%rip),%rdx
mov    $0x17,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x32,(%rsp)
lea    0xfbc(%rip),%rdx
mov    $0x18,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x32,(%rsp)
lea    0xfc0(%rip),%rdx
mov    $0x19,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x32,(%rsp)
lea    0xfb3(%rip),%rdx
mov    $0x1a,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x32,(%rsp)
lea    0xfc1(%rip),%rdx
mov    $0x1b,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
mov    0x2b3b(%rip),%rax
mov    (%rax),%r8d
movl   $0x1,(%rsp)
lea    0xfbe(%rip),%rdx
mov    $0x23,%esi
mov    $0x1,%ecx
mov    $0x1,%r9d
call   1030 <print_text@plt>
pop    %rax
ret

LLVM IR (-O0):
@stdscr = global i32 0
@.str = [55 x i8] c" \00"
@.str.1 = [55 x i8] c" _______ _______ _______ _______ ______ \00"
@.str.2 = [55 x i8] c"( ____ \\|\\ /|( ____ )( ____ \\( ____ \\( __ \\ \00"
@.str.3 = [55 x i8] c"| ( \\/| ) ( || ( )|| ( \\/| ( \\/| ( \\ )\00"
@.str.4 = [55 x i8] c"| | | | | || (____)|| (_____ | (__ | | ) |\00"
@.str.5 = [55 x i8] c"| | | | | || __)(_____ )| __) | | | |\00"
@.str.6 = [55 x i8] c"| | | | | || (\\ ( ) || ( | | ) |\00"
@.str.7 = [55 x i8] c"| (____/\\| (___) || ) \\ \\__/\\____) || (____/\\| (__/ )\00"
@.str.8 = [55 x i8] c"(_______/(_______)|/ \\__/\\_______)(_______/(______/ \00"
@.str.9 = [47 x i8] c" _______ _______ _______ _______ _______ \00"
@.str.10 = [46 x i8] c"( ____ \\( ____ )( ___ )( ____ \\( ____ \\\00"
@.str.11 = [47 x i8] c"| ( \\/| ( )|| ( ) || ( \\/| ( \\/ \00"
@.str.12 = [47 x i8] c"| (_____ | (____)|| (___) || | | (__ \00"
@.str.13 = [47 x i8] c"(_____ )| _____)| ___ || | | __) \00"
@.str.14 = [47 x i8] c" ) || ( | ( ) || | | ( \00"
@.str.15 = [47 x i8] c"/\\____) || ) | ) ( || (____/\\| (____/\\ \00"
@.str.16 = [47 x i8] c"\\_______)|/ |/ \\|(_______/(_______/ \00"
@.str.17 = [43 x i8] c"On a remote terminal very far far far away\00"
@.str.18 = [55 x i8] c"there is a universe on the edge of its very existence,\00"
@.str.19 = [42 x i8] c"infested with ASCII asteroids and aliens.\00"
@.str.20 = [25 x i8] c"But there is still hope!\00"
@.str.21 = [52 x i8] c"You can make the difference aboard the killer ship!\00"
@.str.22 = [45 x i8] c"Your terminal is counting on you! Good hunt!\00"
@.str.23 = [23 x i8] c"Press any key to start\00"
@A_BOLD = global i32 0
define void @print_main_menu() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 1, i32* %1
store i32 50, i32* %2
store i32 1, i32* %3
%6 = load i32, i32* @stdscr
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = call i32 @getmaxyx(i32 %6, i32 %7, i32 %8)
%10 = load i32, i32* %4
%11 = load i32, i32* %1
%12 = call i32 @print_text(i32 %10, i32 0, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %11)
%13 = load i32, i32* %4
%14 = load i32, i32* %1
%15 = call i32 @print_text(i32 %13, i32 1, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %14)
%16 = load i32, i32* %4
%17 = load i32, i32* %1
%18 = call i32 @print_text(i32 %16, i32 2, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %17)
%19 = load i32, i32* %4
%20 = load i32, i32* %1
%21 = call i32 @print_text(i32 %19, i32 3, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %20)
%22 = load i32, i32* %4
%23 = load i32, i32* %1
%24 = call i32 @print_text(i32 %22, i32 4, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %23)
%25 = load i32, i32* %4
%26 = load i32, i32* %1
%27 = call i32 @print_text(i32 %25, i32 5, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %26)
%28 = load i32, i32* %4
%29 = load i32, i32* %1
%30 = call i32 @print_text(i32 %28, i32 6, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %29)
%31 = load i32, i32* %4
%32 = load i32, i32* %1
%33 = call i32 @print_text(i32 %31, i32 7, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %32)
%34 = load i32, i32* %4
%35 = load i32, i32* %1
%36 = call i32 @print_text(i32 %34, i32 8, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %35)
%37 = load i32, i32* %4
%38 = load i32, i32* %1
%39 = call i32 @print_text(i32 %37, i32 10, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %38)
%40 = load i32, i32* %4
%41 = load i32, i32* %1
%42 = call i32 @print_text(i32 %40, i32 11, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %41)
%43 = load i32, i32* %4
%44 = load i32, i32* %1
%45 = call i32 @print_text(i32 %43, i32 12, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %44)
%46 = load i32, i32* %4
%47 = load i32, i32* %1
%48 = call i32 @print_text(i32 %46, i32 13, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %47)
%49 = load i32, i32* %4
%50 = load i32, i32* %1
%51 = call i32 @print_text(i32 %49, i32 14, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.13, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %50)
%52 = load i32, i32* %4
%53 = load i32, i32* %1
%54 = call i32 @print_text(i32 %52, i32 15, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %53)
%55 = load i32, i32* %4
%56 = load i32, i32* %1
%57 = call i32 @print_text(i32 %55, i32 16, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.15, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %56)
%58 = load i32, i32* %4
%59 = load i32, i32* %1
%60 = call i32 @print_text(i32 %58, i32 17, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.16, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %59)
%61 = load i32, i32* %4
%62 = load i32, i32* %2
%63 = call i32 @print_text(i32 %61, i32 22, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.17, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %62)
%64 = load i32, i32* %4
%65 = load i32, i32* %2
%66 = call i32 @print_text(i32 %64, i32 23, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.18, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %65)
%67 = load i32, i32* %4
%68 = load i32, i32* %2
%69 = call i32 @print_text(i32 %67, i32 24, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.19, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %68)
%70 = load i32, i32* %4
%71 = load i32, i32* %2
%72 = call i32 @print_text(i32 %70, i32 25, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.20, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %71)
%73 = load i32, i32* %4
%74 = load i32, i32* %2
%75 = call i32 @print_text(i32 %73, i32 26, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.21, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %74)
%76 = load i32, i32* %4
%77 = load i32, i32* %2
%78 = call i32 @print_text(i32 %76, i32 27, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.22, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %77)
%79 = load i32, i32* %4
%80 = load i32, i32* @A_BOLD
%81 = load i32, i32* %3
%82 = call i32 @print_text(i32 %79, i32 35, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), i32 1, i32 %80, i32 1, i32 %81)
ret void
}

LLVM IR (-O2):
@stdscr = global i32 0
@.str = [55 x i8] c" \00"
@.str.1 = [55 x i8] c" _______ _______ _______ _______ ______ \00"
@.str.2 = [55 x i8] c"( ____ \\|\\ /|( ____ )( ____ \\( ____ \\( __ \\ \00"
@.str.3 = [55 x i8] c"| ( \\/| ) ( || ( )|| ( \\/| ( \\/| ( \\ )\00"
@.str.4 = [55 x i8] c"| | | | | || (____)|| (_____ | (__ | | ) |\00"
@.str.5 = [55 x i8] c"| | | | | || __)(_____ )| __) | | | |\00"
@.str.6 = [55 x i8] c"| | | | | || (\\ ( ) || ( | | ) |\00"
@.str.7 = [55 x i8] c"| (____/\\| (___) || ) \\ \\__/\\____) || (____/\\| (__/ )\00"
@.str.8 = [55 x i8] c"(_______/(_______)|/ \\__/\\_______)(_______/(______/ \00"
@.str.9 = [47 x i8] c" _______ _______ _______ _______ _______ \00"
@.str.10 = [46 x i8] c"( ____ \\( ____ )( ___ )( ____ \\( ____ \\\00"
@.str.11 = [47 x i8] c"| ( \\/| ( )|| ( ) || ( \\/| ( \\/ \00"
@.str.12 = [47 x i8] c"| (_____ | (____)|| (___) || | | (__ \00"
@.str.13 = [47 x i8] c"(_____ )| _____)| ___ || | | __) \00"
@.str.14 = [47 x i8] c" ) || ( | ( ) || | | ( \00"
@.str.15 = [47 x i8] c"/\\____) || ) | ) ( || (____/\\| (____/\\ \00"
@.str.16 = [47 x i8] c"\\_______)|/ |/ \\|(_______/(_______/ \00"
@.str.17 = [43 x i8] c"On a remote terminal very far far far away\00"
@.str.18 = [55 x i8] c"there is a universe on the edge of its very existence,\00"
@.str.19 = [42 x i8] c"infested with ASCII asteroids and aliens.\00"
@.str.20 = [25 x i8] c"But there is still hope!\00"
@.str.21 = [52 x i8] c"You can make the difference aboard the killer ship!\00"
@.str.22 = [45 x i8] c"Your terminal is counting on you! Good hunt!\00"
@.str.23 = [23 x i8] c"Press any key to start\00"
@A_BOLD = global i32 0
define void @print_main_menu() {
%1 = load i32, i32* @stdscr
%2 = tail call i32 @getmaxyx(i32 %1, i32 undef, i32 undef)
%3 = tail call i32 @print_text(i32 undef, i32 0, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%4 = tail call i32 @print_text(i32 undef, i32 1, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%5 = tail call i32 @print_text(i32 undef, i32 2, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%6 = tail call i32 @print_text(i32 undef, i32 3, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%7 = tail call i32 @print_text(i32 undef, i32 4, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%8 = tail call i32 @print_text(i32 undef, i32 5, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%9 = tail call i32 @print_text(i32 undef, i32 6, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%10 = tail call i32 @print_text(i32 undef, i32 7, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%11 = tail call i32 @print_text(i32 undef, i32 8, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%12 = tail call i32 @print_text(i32 undef, i32 10, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%13 = tail call i32 @print_text(i32 undef, i32 11, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%14 = tail call i32 @print_text(i32 undef, i32 12, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%15 = tail call i32 @print_text(i32 undef, i32 13, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%16 = tail call i32 @print_text(i32 undef, i32 14, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.13, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%17 = tail call i32 @print_text(i32 undef, i32 15, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.14, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%18 = tail call i32 @print_text(i32 undef, i32 16, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.15, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%19 = tail call i32 @print_text(i32 undef, i32 17, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.16, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%20 = tail call i32 @print_text(i32 undef, i32 22, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.17, i64 0, i64 0), i32 1, i32 0, i32 1, i32 50)
%21 = tail call i32 @print_text(i32 undef, i32 23, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.18, i64 0, i64 0), i32 1, i32 0, i32 1, i32 50)
%22 = tail call i32 @print_text(i32 undef, i32 24, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.19, i64 0, i64 0), i32 1, i32 0, i32 1, i32 50)
%23 = tail call i32 @print_text(i32 undef, i32 25, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.20, i64 0, i64 0), i32 1, i32 0, i32 1, i32 50)
%24 = tail call i32 @print_text(i32 undef, i32 26, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.21, i64 0, i64 0), i32 1, i32 0, i32 1, i32 50)
%25 = tail call i32 @print_text(i32 undef, i32 27, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.22, i64 0, i64 0), i32 1, i32 0, i32 1, i32 50)
%26 = load i32, i32* @A_BOLD
%27 = tail call i32 @print_text(i32 undef, i32 35, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), i32 1, i32 %26, i32 1, i32 1)
ret void
}