#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*/ LC_ALL;
int /*<<< orphan*/ TRUE;
int /*<<< orphan*/ cbreak();
int /*<<< orphan*/ curs_set(int /*<<< orphan*/);
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ init_colors();
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ jkiss_init();
int /*<<< orphan*/ keypad(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ noecho();
int /*<<< orphan*/ play_multiplayer();
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stdscr;
main() {
  jkiss_init();
  setlocale(LC_ALL, "");
  initscr();
  cbreak();
  noecho();
  keypad(stdscr, TRUE);
  curs_set(0);
  init_colors();
  play_multiplayer();
  endwin();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <jkiss_init@plt>
mov    0x2e1e(%rip),%rax
mov    (%rax),%edi
lea    0xe45(%rip),%rsi
call   1080 <setlocale@plt>
mov    $0x0,%al
call   1070 <initscr@plt>
mov    $0x0,%al
call   1040 <cbreak@plt>
mov    $0x0,%al
call   10a0 <noecho@plt>
mov    0x2e0c(%rip),%rax
mov    (%rax),%edi
mov    0x2dfb(%rip),%rax
mov    (%rax),%esi
call   1060 <keypad@plt>
xor    %edi,%edi
call   10c0 <curs_set@plt>
mov    $0x0,%al
call   10b0 <init_colors@plt>
mov    $0x0,%al
call   1030 <play_multiplayer@plt>
mov    $0x0,%al
call   1090 <endwin@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <jkiss_init@plt>
mov    0x2e21(%rip),%rax
mov    (%rax),%edi
lea    0xe48(%rip),%rsi
call   1080 <setlocale@plt>
xor    %eax,%eax
call   1070 <initscr@plt>
xor    %eax,%eax
call   1040 <cbreak@plt>
xor    %eax,%eax
call   10a0 <noecho@plt>
mov    0x2e0f(%rip),%rax
mov    (%rax),%edi
mov    0x2dfe(%rip),%rax
mov    (%rax),%esi
call   1060 <keypad@plt>
xor    %edi,%edi
call   10c0 <curs_set@plt>
xor    %eax,%eax
call   10b0 <init_colors@plt>
xor    %eax,%eax
call   1030 <play_multiplayer@plt>
xor    %eax,%eax
call   1090 <endwin@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@stdscr = global i32 0
@TRUE = global i32 0
define i32 @main() {
%1 = call i32 (...) @jkiss_init()
%2 = load i32, i32* @LC_ALL
%3 = call i32 @setlocale(i32 %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (...) @initscr()
%5 = call i32 (...) @cbreak()
%6 = call i32 (...) @noecho()
%7 = load i32, i32* @stdscr
%8 = load i32, i32* @TRUE
%9 = call i32 @keypad(i32 %7, i32 %8)
%10 = call i32 @curs_set(i32 0)
%11 = call i32 (...) @init_colors()
%12 = call i32 (...) @play_multiplayer()
%13 = call i32 (...) @endwin()
ret i32 0
}

LLVM IR (-O2):
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@stdscr = global i32 0
@TRUE = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @jkiss_init()
%2 = load i32, i32* @LC_ALL
%3 = tail call i32 @setlocale(i32 %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (...) @initscr()
%5 = tail call i32 (...) @cbreak()
%6 = tail call i32 (...) @noecho()
%7 = load i32, i32* @stdscr
%8 = load i32, i32* @TRUE
%9 = tail call i32 @keypad(i32 %7, i32 %8)
%10 = tail call i32 @curs_set(i32 0)
%11 = tail call i32 (...) @init_colors()
%12 = tail call i32 (...) @play_multiplayer()
%13 = tail call i32 (...) @endwin()
ret i32 0
}