#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 */
scalar_t__ TRUE;
int /*<<< orphan*/ curs_set(int);
int /*<<< orphan*/ halfdelay(int);
scalar_t__ has_colors();
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ noecho();
int /*<<< orphan*/ plaza_create_windows();
int /*<<< orphan*/ plaza_init_colors();
int /*<<< orphan*/ plaza_update_uiinfo();
int /*<<< orphan*/ plazach_unicode_enable();
int /*<<< orphan*/ plazaio_init();
void plazaui_init() {
  plazach_unicode_enable();
  initscr();
  noecho();
  halfdelay(1);
  curs_set(true);
  if (has_colors() == TRUE)
    plaza_init_colors();
  plaza_update_uiinfo();
  plaza_create_windows();
  plazaio_init();
}


x86 assembly (clang, -O0):
<plazaui_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <plazach_unicode_enable@plt>
mov    $0x0,%al
call   1050 <initscr@plt>
mov    $0x0,%al
call   10a0 <noecho@plt>
mov    $0x1,%edi
call   1090 <halfdelay@plt>
mov    $0x1,%edi
call   10c0 <curs_set@plt>
mov    $0x0,%al
call   1030 <has_colors@plt>
mov    0x2e0d(%rip),%rcx
cmp    (%rcx),%rax
jne    11eb <plazaui_init+0x4b>
mov    $0x0,%al
call   1080 <plaza_init_colors@plt>
mov    $0x0,%al
call   1060 <plaza_update_uiinfo@plt>
mov    $0x0,%al
call   1040 <plaza_create_windows@plt>
mov    $0x0,%al
call   10b0 <plazaio_init@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<plazaui_init>:
push   %rax
xor    %eax,%eax
call   1070 <plazach_unicode_enable@plt>
xor    %eax,%eax
call   1050 <initscr@plt>
xor    %eax,%eax
call   10a0 <noecho@plt>
mov    $0x1,%edi
call   1090 <halfdelay@plt>
mov    $0x1,%edi
call   10c0 <curs_set@plt>
xor    %eax,%eax
call   1030 <has_colors@plt>
mov    0x2e10(%rip),%rcx
cmp    (%rcx),%rax
jne    11e4 <plazaui_init+0x44>
xor    %eax,%eax
call   1080 <plaza_init_colors@plt>
xor    %eax,%eax
call   1060 <plaza_update_uiinfo@plt>
xor    %eax,%eax
call   1040 <plaza_create_windows@plt>
xor    %eax,%eax
pop    %rcx
jmp    10b0 <plazaio_init@plt>

LLVM IR (-O0):
@TRUE = global i64 0
define void @plazaui_init() {
%1 = call i32 (...) @plazach_unicode_enable()
%2 = call i32 (...) @initscr()
%3 = call i32 (...) @noecho()
%4 = call i32 @halfdelay(i32 1)
%5 = call i32 @curs_set(i32 1)
%6 = call i64 (...) @has_colors()
%7 = load i64, i64* @TRUE
%8 = icmp eq i64 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (...) @plaza_init_colors()
br label %11
11: ; preds = %9, %0
%12 = call i32 (...) @plaza_update_uiinfo()
%13 = call i32 (...) @plaza_create_windows()
%14 = call i32 (...) @plazaio_init()
ret void
}

LLVM IR (-O2):
@TRUE = global i64 0
define void @plazaui_init() {
%1 = tail call i32 (...) @plazach_unicode_enable()
%2 = tail call i32 (...) @initscr()
%3 = tail call i32 (...) @noecho()
%4 = tail call i32 @halfdelay(i32 1)
%5 = tail call i32 @curs_set(i32 1)
%6 = tail call i64 (...) @has_colors()
%7 = load i64, i64* @TRUE
%8 = icmp eq i64 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = tail call i32 (...) @plaza_init_colors()
br label %11
11: ; preds = %9, %0
%12 = tail call i32 (...) @plaza_update_uiinfo()
%13 = tail call i32 (...) @plaza_create_windows()
%14 = tail call i32 (...) @plazaio_init()
ret void
}