#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*/ TRUE;
int /*<<< orphan*/ cbreak();
int /*<<< orphan*/ clear();
int /*<<< orphan*/ curs_set(int /*<<< orphan*/);
int /*<<< orphan*/ graphics_sprites_init();
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ keypad(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ nodelay(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ noecho();
int /*<<< orphan*/ random_drop_init();
int /*<<< orphan*/ start_color();
int /*<<< orphan*/ stdscr;
int /*<<< orphan*/ use_default_colors();
void core_init(void) {
  initscr();
  cbreak();
  noecho();
  keypad(stdscr, TRUE);
  nodelay(stdscr, TRUE);
  start_color();
  use_default_colors();
  curs_set(0);
  clear();
  random_drop_init();
  graphics_sprites_init();
}


x86 assembly (clang, -O0):
<core_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1060 <initscr@plt>
mov    $0x0,%al
call   1040 <cbreak@plt>
mov    $0x0,%al
call   10b0 <noecho@plt>
mov    0x2e18(%rip),%rax
mov    (%rax),%edi
mov    0x2e07(%rip),%rax
mov    (%rax),%esi
call   1050 <keypad@plt>
mov    0x2e01(%rip),%rax
mov    (%rax),%edi
mov    0x2df0(%rip),%rax
mov    (%rax),%esi
call   1080 <nodelay@plt>
mov    $0x0,%al
call   1070 <start_color@plt>
mov    $0x0,%al
call   1030 <use_default_colors@plt>
xor    %edi,%edi
call   10d0 <curs_set@plt>
mov    $0x0,%al
call   10c0 <clear@plt>
mov    $0x0,%al
call   1090 <random_drop_init@plt>
mov    $0x0,%al
call   10a0 <graphics_sprites_init@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<core_init>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1060 <initscr@plt>
xor    %eax,%eax
call   1040 <cbreak@plt>
xor    %eax,%eax
call   10b0 <noecho@plt>
mov    0x2e18(%rip),%r14
mov    (%r14),%edi
mov    0x2e06(%rip),%rbx
mov    (%rbx),%esi
call   1050 <keypad@plt>
mov    (%r14),%edi
mov    (%rbx),%esi
call   1080 <nodelay@plt>
xor    %eax,%eax
call   1070 <start_color@plt>
xor    %eax,%eax
call   1030 <use_default_colors@plt>
xor    %edi,%edi
call   10d0 <curs_set@plt>
xor    %eax,%eax
call   10c0 <clear@plt>
xor    %eax,%eax
call   1090 <random_drop_init@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    10a0 <graphics_sprites_init@plt>

LLVM IR (-O0):
@stdscr = global i32 0
@TRUE = global i32 0
define void @core_init() {
%1 = call i32 (...) @initscr()
%2 = call i32 (...) @cbreak()
%3 = call i32 (...) @noecho()
%4 = load i32, i32* @stdscr
%5 = load i32, i32* @TRUE
%6 = call i32 @keypad(i32 %4, i32 %5)
%7 = load i32, i32* @stdscr
%8 = load i32, i32* @TRUE
%9 = call i32 @nodelay(i32 %7, i32 %8)
%10 = call i32 (...) @start_color()
%11 = call i32 (...) @use_default_colors()
%12 = call i32 @curs_set(i32 0)
%13 = call i32 (...) @clear()
%14 = call i32 (...) @random_drop_init()
%15 = call i32 (...) @graphics_sprites_init()
ret void
}

LLVM IR (-O2):
@stdscr = global i32 0
@TRUE = global i32 0
define void @core_init() {
%1 = tail call i32 (...) @initscr()
%2 = tail call i32 (...) @cbreak()
%3 = tail call i32 (...) @noecho()
%4 = load i32, i32* @stdscr
%5 = load i32, i32* @TRUE
%6 = tail call i32 @keypad(i32 %4, i32 %5)
%7 = load i32, i32* @stdscr
%8 = load i32, i32* @TRUE
%9 = tail call i32 @nodelay(i32 %7, i32 %8)
%10 = tail call i32 (...) @start_color()
%11 = tail call i32 (...) @use_default_colors()
%12 = tail call i32 @curs_set(i32 0)
%13 = tail call i32 (...) @clear()
%14 = tail call i32 (...) @random_drop_init()
%15 = tail call i32 (...) @graphics_sprites_init()
ret void
}