#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*/ COLOR_BLACK;
int /*<<< orphan*/ COLOR_BLUE;
int /*<<< orphan*/ COLOR_GREEN;
int /*<<< orphan*/ COLOR_RED;
int /*<<< orphan*/ COLOR_WHITE;
int /*<<< orphan*/ COLOR_YELLOW;
int /*<<< orphan*/ TRUE;
int /*<<< orphan*/ bkgd(int /*<<< orphan*/);
int /*<<< orphan*/ curs_set(int /*<<< orphan*/);
int /*<<< orphan*/ init_level(int);
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ init_space_obj_list();
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ keypad(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ noecho();
int /*<<< orphan*/ start_color();
int /*<<< orphan*/ stdscr;
int /*<<< orphan*/ use_default_colors();
void initialize() {
  initscr();
  keypad(stdscr, TRUE);
  noecho();
  curs_set(0);
  start_color();
  init_pair(1, COLOR_BLACK, COLOR_WHITE);
  init_pair(2, COLOR_BLUE, COLOR_WHITE);
  init_pair(3, COLOR_GREEN, COLOR_WHITE);
  init_pair(4, COLOR_YELLOW, COLOR_WHITE);
  init_pair(5, COLOR_RED, COLOR_WHITE);
  init_pair(6, COLOR_BLACK, COLOR_BLACK);
  init_pair(7, COLOR_WHITE, COLOR_BLUE);
  init_pair(8, COLOR_WHITE, COLOR_RED);
  bkgd(use_default_colors());
  init_space_obj_list();
  init_level(1);
}


x86 assembly (clang, -O0):
<initialize>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1080 <initscr@plt>
mov    0x2e36(%rip),%rax
mov    (%rax),%edi
mov    0x2e25(%rip),%rax
mov    (%rax),%esi
call   1070 <keypad@plt>
mov    $0x0,%al
call   10b0 <noecho@plt>
xor    %edi,%edi
call   10c0 <curs_set@plt>
mov    $0x0,%al
call   1090 <start_color@plt>
mov    0x2dfa(%rip),%rax
mov    (%rax),%esi
mov    0x2dd9(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1050 <init_pair@plt>
mov    0x2db6(%rip),%rax
mov    (%rax),%esi
mov    0x2dbd(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
call   1050 <init_pair@plt>
mov    0x2dba(%rip),%rax
mov    (%rax),%esi
mov    0x2da1(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
call   1050 <init_pair@plt>
mov    0x2d86(%rip),%rax
mov    (%rax),%esi
mov    0x2d85(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
call   1050 <init_pair@plt>
mov    0x2d5a(%rip),%rax
mov    (%rax),%esi
mov    0x2d69(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%edi
call   1050 <init_pair@plt>
mov    0x2d6e(%rip),%rax
mov    (%rax),%esi
mov    0x2d65(%rip),%rax
mov    (%rax),%edx
mov    $0x6,%edi
call   1050 <init_pair@plt>
mov    0x2d3a(%rip),%rax
mov    (%rax),%esi
mov    0x2d21(%rip),%rax
mov    (%rax),%edx
mov    $0x7,%edi
call   1050 <init_pair@plt>
mov    0x2d1e(%rip),%rax
mov    (%rax),%esi
mov    0x2cfd(%rip),%rax
mov    (%rax),%edx
mov    $0x8,%edi
call   1050 <init_pair@plt>
mov    $0x0,%al
call   1030 <use_default_colors@plt>
mov    %eax,%edi
call   10a0 <bkgd@plt>
mov    $0x0,%al
call   1060 <init_space_obj_list@plt>
mov    $0x1,%edi
call   1040 <init_level@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialize>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1080 <initscr@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
mov    0x2e21(%rip),%rax
mov    (%rax),%esi
call   1070 <keypad@plt>
xor    %eax,%eax
call   10b0 <noecho@plt>
xor    %edi,%edi
call   10c0 <curs_set@plt>
xor    %eax,%eax
call   1090 <start_color@plt>
mov    0x2df6(%rip),%r14
mov    (%r14),%esi
mov    0x2dd4(%rip),%rbx
mov    (%rbx),%edx
mov    $0x1,%edi
call   1050 <init_pair@plt>
mov    0x2db1(%rip),%r15
mov    (%r15),%esi
mov    (%rbx),%edx
mov    $0x2,%edi
call   1050 <init_pair@plt>
mov    0x2dbb(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x3,%edi
call   1050 <init_pair@plt>
mov    0x2d8e(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x4,%edi
call   1050 <init_pair@plt>
mov    0x2d69(%rip),%r12
mov    (%r12),%esi
mov    (%rbx),%edx
mov    $0x5,%edi
call   1050 <init_pair@plt>
mov    (%r14),%edx
mov    $0x6,%edi
mov    %edx,%esi
call   1050 <init_pair@plt>
mov    (%rbx),%esi
mov    (%r15),%edx
mov    $0x7,%edi
call   1050 <init_pair@plt>
mov    (%rbx),%esi
mov    (%r12),%edx
mov    $0x8,%edi
call   1050 <init_pair@plt>
xor    %eax,%eax
call   1030 <use_default_colors@plt>
mov    %eax,%edi
call   10a0 <bkgd@plt>
xor    %eax,%eax
call   1060 <init_space_obj_list@plt>
mov    $0x1,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1040 <init_level@plt>

LLVM IR (-O0):
@stdscr = global i32 0
@TRUE = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_WHITE = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_GREEN = global i32 0
@COLOR_YELLOW = global i32 0
@COLOR_RED = global i32 0
define void @initialize() {
%1 = call i32 (...) @initscr()
%2 = load i32, i32* @stdscr
%3 = load i32, i32* @TRUE
%4 = call i32 @keypad(i32 %2, i32 %3)
%5 = call i32 (...) @noecho()
%6 = call i32 @curs_set(i32 0)
%7 = call i32 (...) @start_color()
%8 = load i32, i32* @COLOR_BLACK
%9 = load i32, i32* @COLOR_WHITE
%10 = call i32 @init_pair(i32 1, i32 %8, i32 %9)
%11 = load i32, i32* @COLOR_BLUE
%12 = load i32, i32* @COLOR_WHITE
%13 = call i32 @init_pair(i32 2, i32 %11, i32 %12)
%14 = load i32, i32* @COLOR_GREEN
%15 = load i32, i32* @COLOR_WHITE
%16 = call i32 @init_pair(i32 3, i32 %14, i32 %15)
%17 = load i32, i32* @COLOR_YELLOW
%18 = load i32, i32* @COLOR_WHITE
%19 = call i32 @init_pair(i32 4, i32 %17, i32 %18)
%20 = load i32, i32* @COLOR_RED
%21 = load i32, i32* @COLOR_WHITE
%22 = call i32 @init_pair(i32 5, i32 %20, i32 %21)
%23 = load i32, i32* @COLOR_BLACK
%24 = load i32, i32* @COLOR_BLACK
%25 = call i32 @init_pair(i32 6, i32 %23, i32 %24)
%26 = load i32, i32* @COLOR_WHITE
%27 = load i32, i32* @COLOR_BLUE
%28 = call i32 @init_pair(i32 7, i32 %26, i32 %27)
%29 = load i32, i32* @COLOR_WHITE
%30 = load i32, i32* @COLOR_RED
%31 = call i32 @init_pair(i32 8, i32 %29, i32 %30)
%32 = call i32 (...) @use_default_colors()
%33 = call i32 @bkgd(i32 %32)
%34 = call i32 (...) @init_space_obj_list()
%35 = call i32 @init_level(i32 1)
ret void
}

LLVM IR (-O2):
@stdscr = global i32 0
@TRUE = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_WHITE = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_GREEN = global i32 0
@COLOR_YELLOW = global i32 0
@COLOR_RED = global i32 0
define void @initialize() {
%1 = tail call i32 (...) @initscr()
%2 = load i32, i32* @stdscr
%3 = load i32, i32* @TRUE
%4 = tail call i32 @keypad(i32 %2, i32 %3)
%5 = tail call i32 (...) @noecho()
%6 = tail call i32 @curs_set(i32 0)
%7 = tail call i32 (...) @start_color()
%8 = load i32, i32* @COLOR_BLACK
%9 = load i32, i32* @COLOR_WHITE
%10 = tail call i32 @init_pair(i32 1, i32 %8, i32 %9)
%11 = load i32, i32* @COLOR_BLUE
%12 = load i32, i32* @COLOR_WHITE
%13 = tail call i32 @init_pair(i32 2, i32 %11, i32 %12)
%14 = load i32, i32* @COLOR_GREEN
%15 = load i32, i32* @COLOR_WHITE
%16 = tail call i32 @init_pair(i32 3, i32 %14, i32 %15)
%17 = load i32, i32* @COLOR_YELLOW
%18 = load i32, i32* @COLOR_WHITE
%19 = tail call i32 @init_pair(i32 4, i32 %17, i32 %18)
%20 = load i32, i32* @COLOR_RED
%21 = load i32, i32* @COLOR_WHITE
%22 = tail call i32 @init_pair(i32 5, i32 %20, i32 %21)
%23 = load i32, i32* @COLOR_BLACK
%24 = tail call i32 @init_pair(i32 6, i32 %23, i32 %23)
%25 = load i32, i32* @COLOR_WHITE
%26 = load i32, i32* @COLOR_BLUE
%27 = tail call i32 @init_pair(i32 7, i32 %25, i32 %26)
%28 = load i32, i32* @COLOR_WHITE
%29 = load i32, i32* @COLOR_RED
%30 = tail call i32 @init_pair(i32 8, i32 %28, i32 %29)
%31 = tail call i32 (...) @use_default_colors()
%32 = tail call i32 @bkgd(i32 %31)
%33 = tail call i32 (...) @init_space_obj_list()
%34 = tail call i32 @init_level(i32 1)
ret void
}