#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*/ getchar();
int /*<<< orphan*/ getmaxyx(int /*<<< orphan*/, int, int);
int /*<<< orphan*/ print_text(int, int, char *, int, int /*<<< orphan*/, int,
                              int);
int /*<<< orphan*/ stdscr;
void print_youdied_menu() {
  int logo_display_speed = 1;
  int history_display_speed = 50;
  int start_display_speed = 1;
  int x, y;
  getmaxyx(stdscr, y, x);
  y /= 4;
  print_text(
      x, y,
      "          _______             ______  _________ _______  ______   _ ", 1,
      0, 1, logo_display_speed);
  print_text(x, y + 1,
             "|\\     /|(  ___  )|\\     /|  (  __  \\ \\__   __/(  ____ \\(  "
             "__  \\ ( )",
             1, 0, 1, logo_display_speed);
  print_text(x, y + 2,
             "( \\   / )| (   ) || )   ( |  | (  \\  )   ) (   | (    \\/| (  "
             "\\  )| |",
             1, 0, 1, logo_display_speed);
  print_text(
      x, y + 3,
      " \\ (_) / | |   | || |   | |  | |   ) |   | |   | (__    | |   ) || |",
      1, 0, 1, logo_display_speed);
  print_text(
      x, y + 4,
      "  \\   /  | |   | || |   | |  | |   | |   | |   |  __)   | |   | || |",
      1, 0, 1, logo_display_speed);
  print_text(
      x, y + 5,
      "   ) (   | |   | || |   | |  | |   ) |   | |   | (      | |   ) |(_)", 1,
      0, 1, logo_display_speed);
  print_text(
      x, y + 6,
      "   | |   | (___) || (___) |  | (__/  )___) (___| (____/\\| (__/  ) _ ",
      1, 0, 1, logo_display_speed);
  print_text(
      x, y + 7,
      "   \\_/   (_______)(_______)  (______/ \\_______/(_______/(______/ (_)",
      1, 0, 1, logo_display_speed);
  getchar();
}


x86 assembly (clang, -O0):
<print_youdied_menu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x1,-0x4(%rbp)
movl   $0x32,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
call   1040 <getmaxyx@plt>
mov    -0x14(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x4(%rbp),%eax
lea    0xe81(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x1,%esi
mov    -0x4(%rbp),%eax
lea    0xe9f(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x2,%esi
mov    -0x4(%rbp),%eax
lea    0xebd(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x3,%esi
mov    -0x4(%rbp),%eax
lea    0xedb(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x4,%esi
mov    -0x4(%rbp),%eax
lea    0xef9(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x5,%esi
mov    -0x4(%rbp),%eax
lea    0xf17(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x6,%esi
mov    -0x4(%rbp),%eax
lea    0xf35(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    -0x10(%rbp),%edi
mov    -0x14(%rbp),%esi
add    $0x7,%esi
mov    -0x4(%rbp),%eax
lea    0xf53(%rip),%rdx
mov    $0x1,%r9d
xor    %r8d,%r8d
mov    %r9d,%ecx
mov    %eax,(%rsp)
call   1030 <print_text@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_youdied_menu>:
push   %rax
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
call   1040 <getmaxyx@plt>
movl   $0x1,(%rsp)
lea    0xeb3(%rip),%rdx
xor    %esi,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xed5(%rip),%rdx
mov    $0x1,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xef4(%rip),%rdx
mov    $0x2,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf13(%rip),%rdx
mov    $0x3,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf32(%rip),%rdx
mov    $0x4,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf51(%rip),%rdx
mov    $0x5,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf70(%rip),%rdx
mov    $0x6,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
movl   $0x1,(%rsp)
lea    0xf8f(%rip),%rdx
mov    $0x7,%esi
mov    $0x1,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <print_text@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <getchar@plt>

LLVM IR (-O0):
@stdscr = global i32 0
@.str = [69 x i8] c" _______ ______ _________ _______ ______ _ \00"
@.str.1 = [69 x i8] c"|\\ /|( ___ )|\\ /| ( __ \\ \\__ __/( ____ \\( __ \\ ( )\00"
@.str.2 = [69 x i8] c"( \\ / )| ( ) || ) ( | | ( \\ ) ) ( | ( \\/| ( \\ )| |\00"
@.str.3 = [69 x i8] c" \\ (_) / | | | || | | | | | ) | | | | (__ | | ) || |\00"
@.str.4 = [69 x i8] c" \\ / | | | || | | | | | | | | | | __) | | | || |\00"
@.str.5 = [69 x i8] c" ) ( | | | || | | | | | ) | | | | ( | | ) |(_)\00"
@.str.6 = [69 x i8] c" | | | (___) || (___) | | (__/ )___) (___| (____/\\| (__/ ) _ \00"
@.str.7 = [69 x i8] c" \\_/ (_______)(_______) (______/ \\_______/(_______/(______/ (_)\00"
define void @print_youdied_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* %5
%11 = sdiv i32 %10, 4
store i32 %11, i32* %5
%12 = load i32, i32* %4
%13 = load i32, i32* %5
%14 = load i32, i32* %1
%15 = call i32 @print_text(i32 %12, i32 %13, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %14)
%16 = load i32, i32* %4
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
%19 = load i32, i32* %1
%20 = call i32 @print_text(i32 %16, i32 %18, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %19)
%21 = load i32, i32* %4
%22 = load i32, i32* %5
%23 = add nsw i32 %22, 2
%24 = load i32, i32* %1
%25 = call i32 @print_text(i32 %21, i32 %23, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %24)
%26 = load i32, i32* %4
%27 = load i32, i32* %5
%28 = add nsw i32 %27, 3
%29 = load i32, i32* %1
%30 = call i32 @print_text(i32 %26, i32 %28, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %29)
%31 = load i32, i32* %4
%32 = load i32, i32* %5
%33 = add nsw i32 %32, 4
%34 = load i32, i32* %1
%35 = call i32 @print_text(i32 %31, i32 %33, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %34)
%36 = load i32, i32* %4
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 5
%39 = load i32, i32* %1
%40 = call i32 @print_text(i32 %36, i32 %38, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %39)
%41 = load i32, i32* %4
%42 = load i32, i32* %5
%43 = add nsw i32 %42, 6
%44 = load i32, i32* %1
%45 = call i32 @print_text(i32 %41, i32 %43, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %44)
%46 = load i32, i32* %4
%47 = load i32, i32* %5
%48 = add nsw i32 %47, 7
%49 = load i32, i32* %1
%50 = call i32 @print_text(i32 %46, i32 %48, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 0, i32 1, i32 %49)
%51 = call i32 (...) @getchar()
ret void
}

LLVM IR (-O2):
@stdscr = global i32 0
@.str = [69 x i8] c" _______ ______ _________ _______ ______ _ \00"
@.str.1 = [69 x i8] c"|\\ /|( ___ )|\\ /| ( __ \\ \\__ __/( ____ \\( __ \\ ( )\00"
@.str.2 = [69 x i8] c"( \\ / )| ( ) || ) ( | | ( \\ ) ) ( | ( \\/| ( \\ )| |\00"
@.str.3 = [69 x i8] c" \\ (_) / | | | || | | | | | ) | | | | (__ | | ) || |\00"
@.str.4 = [69 x i8] c" \\ / | | | || | | | | | | | | | | __) | | | || |\00"
@.str.5 = [69 x i8] c" ) ( | | | || | | | | | ) | | | | ( | | ) |(_)\00"
@.str.6 = [69 x i8] c" | | | (___) || (___) | | (__/ )___) (___| (____/\\| (__/ ) _ \00"
@.str.7 = [69 x i8] c" \\_/ (_______)(_______) (______/ \\_______/(_______/(______/ (_)\00"
define void @print_youdied_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 ([69 x i8], [69 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 ([69 x i8], [69 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 ([69 x i8], [69 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 ([69 x i8], [69 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 ([69 x i8], [69 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 ([69 x i8], [69 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 ([69 x i8], [69 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 ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 0, i32 1, i32 1)
%11 = tail call i32 (...) @getchar()
ret void
}