#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*/ A_NORMAL;
int /*<<< orphan*/ A_REVERSE;
int /*<<< orphan*/ attrset(int /*<<< orphan*/);
int /*<<< orphan*/ clear();
int /*<<< orphan*/ curs_set(int);
int /*<<< orphan*/ flushinp();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ printw(char *);
int /*<<< orphan*/ refresh();
void splash_intro(void) {
  flushinp();
  clear();
  printw("\n");
  printw("         _____  _    ___ ____   _    _   _               "
         "===============\n");
  printw("        |_   _|/ \\  |_ _|  _ \\ / \\  | \\ | |              Created "
         "by:\n");
  printw("          | | / _ \\  | || |_) / _ \\ |  \\| |                 Art "
         "Canfil\n");
  printw("          | |/ ___ \\ | ||  __/ ___ \\| |\\  |\n");
  printw("          |_/_/   \\_\\___|_| /_/   \\_\\_| \\_|              "
         "===============\n");
  printw("                                                         Programmed "
         "by:\n");
  printw(
      "   A game based on the China trade of the 1800's            Jay Link\n");
  printw("\n");
  printw(
      "                      ~~|     ,                          jaylink1971\n");
  printw("                       ,|`-._/|                               "
         "@gmail.com\n");
  printw("                     .' |   /||\\                         "
         "===============\n");
  printw("                   .'   | ./ ||`\\                         TRS80 "
         "version \n");
  printw(
      "                  / `-. |/._ ||  \\                              by\n");
  printw("                 /     `||  `|;-._\\                         Art "
         "Canfil\n");
  printw("                 |      ||   ||   \\\n");
  printw("~^~_-~^~=~^~~^= /       ||   ||__  \\~^=~^~-~^~_~^~=      "
         "===============\n");
  printw(" ~=~^~ _~^~ =~ `--------|`---||  `\"-`___~~^~ =_~^=        Press ");
  attrset(A_REVERSE);
  printw("ANY");
  attrset(A_NORMAL);
  printw(" key\n");
  printw("~ ~^~=~^_~^~ =~ \\~~~~~~~'~~~~'~~~~/~~`` ~=~^~ ~^=           to "
         "start.\n");
  printw(" ~^=~^~_~-=~^~ ^ `--------------'~^~=~^~_~^=~^~=~\n");
  curs_set(0);
  refresh();
  getch();
  curs_set(1);
  return;
}


x86 assembly (clang, -O0):
<splash_intro>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <flushinp@plt>
mov    $0x0,%al
call   1080 <clear@plt>
lea    0x1177(%rip),%rdi
call   1030 <printw@plt>
lea    0xe6b(%rip),%rdi
call   1030 <printw@plt>
lea    0xea9(%rip),%rdi
call   1030 <printw@plt>
lea    0xee3(%rip),%rdi
call   1030 <printw@plt>
lea    0xf1f(%rip),%rdi
call   1030 <printw@plt>
lea    0xf40(%rip),%rdi
call   1030 <printw@plt>
lea    0xf7e(%rip),%rdi
call   1030 <printw@plt>
lea    0xfbb(%rip),%rdi
call   1030 <printw@plt>
lea    0x1117(%rip),%rdi
call   1030 <printw@plt>
lea    0xfe9(%rip),%rdi
call   1030 <printw@plt>
lea    0x1023(%rip),%rdi
call   1030 <printw@plt>
lea    0x1061(%rip),%rdi
call   1030 <printw@plt>
lea    0x109f(%rip),%rdi
call   1030 <printw@plt>
lea    0x10dd(%rip),%rdi
call   1030 <printw@plt>
lea    0x1115(%rip),%rdi
call   1030 <printw@plt>
lea    0x1151(%rip),%rdi
call   1030 <printw@plt>
lea    0x116a(%rip),%rdi
call   1030 <printw@plt>
lea    0x11a8(%rip),%rdi
call   1030 <printw@plt>
mov    0x2d77(%rip),%rax
mov    (%rax),%edi
call   1060 <attrset@plt>
lea    0x11cf(%rip),%rdi
call   1030 <printw@plt>
mov    0x2d6d(%rip),%rax
mov    (%rax),%edi
call   1060 <attrset@plt>
lea    0x11b9(%rip),%rdi
call   1030 <printw@plt>
lea    0x11b3(%rip),%rdi
call   1030 <printw@plt>
lea    0x11ee(%rip),%rdi
call   1030 <printw@plt>
xor    %edi,%edi
call   1090 <curs_set@plt>
mov    $0x0,%al
call   1040 <refresh@plt>
mov    $0x0,%al
call   1050 <getch@plt>
mov    $0x1,%edi
call   1090 <curs_set@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<splash_intro>:
push   %rbx
xor    %eax,%eax
call   1070 <flushinp@plt>
xor    %eax,%eax
call   1080 <clear@plt>
lea    0x117a(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printw@plt>
lea    0xe6b(%rip),%rdi
call   1030 <printw@plt>
lea    0xea9(%rip),%rdi
call   1030 <printw@plt>
lea    0xee3(%rip),%rdi
call   1030 <printw@plt>
lea    0xf1f(%rip),%rdi
call   1030 <printw@plt>
lea    0xf40(%rip),%rdi
call   1030 <printw@plt>
lea    0xf7e(%rip),%rdi
call   1030 <printw@plt>
lea    0xfbb(%rip),%rdi
call   1030 <printw@plt>
mov    %rbx,%rdi
call   1030 <printw@plt>
lea    0xfed(%rip),%rdi
call   1030 <printw@plt>
lea    0x1027(%rip),%rdi
call   1030 <printw@plt>
lea    0x1065(%rip),%rdi
call   1030 <printw@plt>
lea    0x10a3(%rip),%rdi
call   1030 <printw@plt>
lea    0x10e1(%rip),%rdi
call   1030 <printw@plt>
lea    0x1119(%rip),%rdi
call   1030 <printw@plt>
lea    0x1155(%rip),%rdi
call   1030 <printw@plt>
lea    0x116e(%rip),%rdi
call   1030 <printw@plt>
lea    0x11ac(%rip),%rdi
call   1030 <printw@plt>
mov    0x2d7b(%rip),%rax
mov    (%rax),%edi
call   1060 <attrset@plt>
lea    0x11d3(%rip),%rdi
call   1030 <printw@plt>
mov    0x2d71(%rip),%rax
mov    (%rax),%edi
call   1060 <attrset@plt>
lea    0x11bd(%rip),%rdi
call   1030 <printw@plt>
lea    0x11b7(%rip),%rdi
call   1030 <printw@plt>
lea    0x11f2(%rip),%rdi
call   1030 <printw@plt>
xor    %edi,%edi
call   1090 <curs_set@plt>
xor    %eax,%eax
call   1040 <refresh@plt>
xor    %eax,%eax
call   1050 <getch@plt>
mov    $0x1,%edi
pop    %rbx
jmp    1090 <curs_set@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [74 x i8] c" _____ _ ___ ____ _ _ _ ===============\0A\00"
@.str.2 = [70 x i8] c" |_ _|/ \\ |_ _| _ \\ / \\ | \\ | | Created by:\0A\00"
@.str.3 = [72 x i8] c" | | / _ \\ | || |_) / _ \\ | \\| | Art Canfil\0A\00"
@.str.4 = [45 x i8] c" | |/ ___ \\ | || __/ ___ \\| |\\ |\0A\00"
@.str.5 = [74 x i8] c" |_/_/ \\_\\___|_| /_/ \\_\\_| \\_| ===============\0A\00"
@.str.6 = [73 x i8] c" Programmed by:\0A\00"
@.str.7 = [70 x i8] c" A game based on the China trade of the 1800's Jay Link\0A\00"
@.str.8 = [70 x i8] c" ~~| , jaylink1971\0A\00"
@.str.9 = [74 x i8] c" ,|`-._/| @gmail.com\0A\00"
@.str.10 = [74 x i8] c" .' | /||\\ ===============\0A\00"
@.str.11 = [74 x i8] c" .' | ./ ||`\\ TRS80 version \0A\00"
@.str.12 = [68 x i8] c" / `-. |/._ || \\ by\0A\00"
@.str.13 = [72 x i8] c" / `|| `|;-._\\ Art Canfil\0A\00"
@.str.14 = [37 x i8] c" | || || \\\0A\00"
@.str.15 = [74 x i8] c"~^~_-~^~=~^~~^= / || ||__ \\~^=~^~-~^~_~^~= ===============\0A\00"
@.str.16 = [65 x i8] c" ~=~^~ _~^~ =~ `--------|`---|| `\22-`___~~^~ =_~^= Press \00"
@A_REVERSE = global i32 0
@.str.17 = [4 x i8] c"ANY\00"
@A_NORMAL = global i32 0
@.str.18 = [6 x i8] c" key\0A\00"
@.str.19 = [71 x i8] c"~ ~^~=~^_~^~ =~ \\~~~~~~~'~~~~'~~~~/~~`` ~=~^~ ~^= to start.\0A\00"
@.str.20 = [51 x i8] c" ~^=~^~_~-=~^~ ^ `--------------'~^~=~^~_~^=~^~=~\0A\00"
define void @splash_intro() {
%1 = call i32 (...) @flushinp()
%2 = call i32 (...) @clear()
%3 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printw(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printw(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printw(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printw(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printw(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @printw(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 @printw(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 @printw(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 @printw(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 @printw(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.16, i64 0, i64 0))
%21 = load i32, i32* @A_REVERSE
%22 = call i32 @attrset(i32 %21)
%23 = call i32 @printw(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%24 = load i32, i32* @A_NORMAL
%25 = call i32 @attrset(i32 %24)
%26 = call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%27 = call i32 @printw(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.19, i64 0, i64 0))
%28 = call i32 @printw(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.20, i64 0, i64 0))
%29 = call i32 @curs_set(i32 0)
%30 = call i32 (...) @refresh()
%31 = call i32 (...) @getch()
%32 = call i32 @curs_set(i32 1)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [74 x i8] c" _____ _ ___ ____ _ _ _ ===============\0A\00"
@.str.2 = [70 x i8] c" |_ _|/ \\ |_ _| _ \\ / \\ | \\ | | Created by:\0A\00"
@.str.3 = [72 x i8] c" | | / _ \\ | || |_) / _ \\ | \\| | Art Canfil\0A\00"
@.str.4 = [45 x i8] c" | |/ ___ \\ | || __/ ___ \\| |\\ |\0A\00"
@.str.5 = [74 x i8] c" |_/_/ \\_\\___|_| /_/ \\_\\_| \\_| ===============\0A\00"
@.str.6 = [73 x i8] c" Programmed by:\0A\00"
@.str.7 = [70 x i8] c" A game based on the China trade of the 1800's Jay Link\0A\00"
@.str.8 = [70 x i8] c" ~~| , jaylink1971\0A\00"
@.str.9 = [74 x i8] c" ,|`-._/| @gmail.com\0A\00"
@.str.10 = [74 x i8] c" .' | /||\\ ===============\0A\00"
@.str.11 = [74 x i8] c" .' | ./ ||`\\ TRS80 version \0A\00"
@.str.12 = [68 x i8] c" / `-. |/._ || \\ by\0A\00"
@.str.13 = [72 x i8] c" / `|| `|;-._\\ Art Canfil\0A\00"
@.str.14 = [37 x i8] c" | || || \\\0A\00"
@.str.15 = [74 x i8] c"~^~_-~^~=~^~~^= / || ||__ \\~^=~^~-~^~_~^~= ===============\0A\00"
@.str.16 = [65 x i8] c" ~=~^~ _~^~ =~ `--------|`---|| `\22-`___~~^~ =_~^= Press \00"
@A_REVERSE = global i32 0
@.str.17 = [4 x i8] c"ANY\00"
@A_NORMAL = global i32 0
@.str.18 = [6 x i8] c" key\0A\00"
@.str.19 = [71 x i8] c"~ ~^~=~^_~^~ =~ \\~~~~~~~'~~~~'~~~~/~~`` ~=~^~ ~^= to start.\0A\00"
@.str.20 = [51 x i8] c" ~^=~^~_~-=~^~ ^ `--------------'~^~=~^~_~^=~^~=~\0A\00"
define void @splash_intro() {
%1 = tail call i32 (...) @flushinp()
%2 = tail call i32 (...) @clear()
%3 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @printw(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printw(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @printw(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @printw(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 @printw(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 @printw(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0))
%13 = tail call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.9, i64 0, i64 0))
%14 = tail call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.10, i64 0, i64 0))
%15 = tail call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0))
%16 = tail call i32 @printw(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0))
%17 = tail call i32 @printw(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.13, i64 0, i64 0))
%18 = tail call i32 @printw(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0))
%19 = tail call i32 @printw(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.15, i64 0, i64 0))
%20 = tail call i32 @printw(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.16, i64 0, i64 0))
%21 = load i32, i32* @A_REVERSE
%22 = tail call i32 @attrset(i32 %21)
%23 = tail call i32 @printw(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%24 = load i32, i32* @A_NORMAL
%25 = tail call i32 @attrset(i32 %24)
%26 = tail call i32 @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%27 = tail call i32 @printw(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.19, i64 0, i64 0))
%28 = tail call i32 @printw(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.20, i64 0, i64 0))
%29 = tail call i32 @curs_set(i32 0)
%30 = tail call i32 (...) @refresh()
%31 = tail call i32 (...) @getch()
%32 = tail call i32 @curs_set(i32 1)
ret void
}