#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_MAGENTA;
int /*<<< orphan*/ COLOR_PAIR(int);
int /*<<< orphan*/ attrset(int /*<<< orphan*/);
int /*<<< orphan*/ clear();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ printw(char *);
int /*<<< orphan*/ start_color();
void jogo_inicio() {
  start_color();
  init_pair(1, COLOR_MAGENTA, COLOR_BLACK);
  attrset(COLOR_PAIR(1));
  printw(" _______   _______    _______    _______     _      _______  \n");
  printw("|_||_||_| |_||_||_|  |_||_||_|  |_||_||_|   |_|    |_||_||_| \n");
  printw("   |_|	  |_| _  _      |_|     |_|   |_|   |_|    |_|_____  "
         "\n");
  printw("   |_|    |_||_||_|     |_|     |_||_||_|   |_|    |_||_||_| \n");
  printw("   |_|    |_| _  _      |_|     |_||_| _    |_|     _____|_| \n");
  printw("   |_|    |_||_||_|     |_|     |_|   |_|   |_|    |_||_||_| \n\n");
  printw("                  BEM VINDO AO TETRIS!!!\n");
  printw("              aperte enter para continuar");
  getch();
  clear();
}


x86 assembly (clang, -O0):
<jogo_inicio>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <start_color@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%esi
mov    0x2e5d(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    $0x1,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attrset@plt>
lea    0xe51(%rip),%rdi
call   1050 <printw@plt>
lea    0xe84(%rip),%rdi
call   1050 <printw@plt>
lea    0xeb7(%rip),%rdi
call   1050 <printw@plt>
lea    0xee9(%rip),%rdi
call   1050 <printw@plt>
lea    0xf1c(%rip),%rdi
call   1050 <printw@plt>
lea    0xf4f(%rip),%rdi
call   1050 <printw@plt>
lea    0xf83(%rip),%rdi
call   1050 <printw@plt>
lea    0xfa1(%rip),%rdi
call   1050 <printw@plt>
mov    $0x0,%al
call   1070 <getch@plt>
mov    $0x0,%al
call   1090 <clear@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<jogo_inicio>:
push   %rax
xor    %eax,%eax
call   1040 <start_color@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%esi
mov    0x2e60(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    $0x1,%edi
call   1060 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attrset@plt>
lea    0xe54(%rip),%rdi
call   1050 <printw@plt>
lea    0xe87(%rip),%rdi
call   1050 <printw@plt>
lea    0xeba(%rip),%rdi
call   1050 <printw@plt>
lea    0xeec(%rip),%rdi
call   1050 <printw@plt>
lea    0xf1f(%rip),%rdi
call   1050 <printw@plt>
lea    0xf52(%rip),%rdi
call   1050 <printw@plt>
lea    0xf86(%rip),%rdi
call   1050 <printw@plt>
lea    0xfa4(%rip),%rdi
call   1050 <printw@plt>
xor    %eax,%eax
call   1070 <getch@plt>
xor    %eax,%eax
pop    %rcx
jmp    1090 <clear@plt>

LLVM IR (-O0):
@COLOR_MAGENTA = global i32 0
@COLOR_BLACK = global i32 0
@.str = [63 x i8] c" _______ _______ _______ _______ _ _______ \0A\00"
@.str.1 = [63 x i8] c"|_||_||_| |_||_||_| |_||_||_| |_||_||_| |_| |_||_||_| \0A\00"
@.str.2 = [62 x i8] c" |_|\09 |_| _ _ |_| |_| |_| |_| |_|_____ \0A\00"
@.str.3 = [63 x i8] c" |_| |_||_||_| |_| |_||_||_| |_| |_||_||_| \0A\00"
@.str.4 = [63 x i8] c" |_| |_| _ _ |_| |_||_| _ |_| _____|_| \0A\00"
@.str.5 = [64 x i8] c" |_| |_||_||_| |_| |_| |_| |_| |_||_||_| \0A\0A\00"
@.str.6 = [42 x i8] c" BEM VINDO AO TETRIS!!!\0A\00"
@.str.7 = [42 x i8] c" aperte enter para continuar\00"
define void @jogo_inicio() {
%1 = call i32 (...) @start_color()
%2 = load i32, i32* @COLOR_MAGENTA
%3 = load i32, i32* @COLOR_BLACK
%4 = call i32 @init_pair(i32 1, i32 %2, i32 %3)
%5 = call i32 @COLOR_PAIR(i32 1)
%6 = call i32 @attrset(i32 %5)
%7 = call i32 @printw(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @printw(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @printw(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @printw(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @printw(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 @printw(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 (...) @getch()
%16 = call i32 (...) @clear()
ret void
}

LLVM IR (-O2):
@COLOR_MAGENTA = global i32 0
@COLOR_BLACK = global i32 0
@.str = [63 x i8] c" _______ _______ _______ _______ _ _______ \0A\00"
@.str.1 = [63 x i8] c"|_||_||_| |_||_||_| |_||_||_| |_||_||_| |_| |_||_||_| \0A\00"
@.str.2 = [62 x i8] c" |_|\09 |_| _ _ |_| |_| |_| |_| |_|_____ \0A\00"
@.str.3 = [63 x i8] c" |_| |_||_||_| |_| |_||_||_| |_| |_||_||_| \0A\00"
@.str.4 = [63 x i8] c" |_| |_| _ _ |_| |_||_| _ |_| _____|_| \0A\00"
@.str.5 = [64 x i8] c" |_| |_||_||_| |_| |_| |_| |_| |_||_||_| \0A\0A\00"
@.str.6 = [42 x i8] c" BEM VINDO AO TETRIS!!!\0A\00"
@.str.7 = [42 x i8] c" aperte enter para continuar\00"
define void @jogo_inicio() {
%1 = tail call i32 (...) @start_color()
%2 = load i32, i32* @COLOR_MAGENTA
%3 = load i32, i32* @COLOR_BLACK
%4 = tail call i32 @init_pair(i32 1, i32 %2, i32 %3)
%5 = tail call i32 @COLOR_PAIR(i32 1)
%6 = tail call i32 @attrset(i32 %5)
%7 = tail call i32 @printw(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @printw(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @printw(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @printw(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @printw(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0))
%12 = tail call i32 @printw(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
%15 = tail call i32 (...) @getch()
%16 = tail call i32 (...) @clear()
ret void
}