#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*/ getch();
int /*<<< orphan*/ home_screen();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ puts(char *);
void syntax_of_quickScript() {
  char *title = "\n\n\t____________________________________\n\n\t\tQUICKSCRIPT "
                "SYNTAX\n\t____________________________________\n\n\n";
  char *info =
      "\tENTRY TYPE \t- \tPREFIX/SYMBOL        \n\n\n\r        Pattern \t: "
      "\t>> \n\r        Reply \t\t: \t## and ++ \n\r        SRAI \t\t: \t== "
      "\n\r        Wildcards \t: \t* and _ \n\r        Comment \t: \t// \n\r   "
      "     Learn Command \t: \t{LEARN} \n\r        \n\n\r        IT IS HIGHLY "
      "RECOMMENDED TO READ THE QUICKSCRIPT DOCUMENTATION.";
  puts(title);
  puts(info);
  printf("\n\tPress any key to go back to the home screen... ");
  getch();
  home_screen();
}


x86 assembly (clang, -O0):
<syntax_of_quickScript>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    0xf0d(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x10(%rbp),%rdi
call   1030 <puts@plt>
lea    0x1018(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <getch@plt>
mov    $0x0,%al
call   1050 <home_screen@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<syntax_of_quickScript>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf13(%rip),%rdi
call   1030 <puts@plt>
lea    0x102f(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <getch@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <home_screen@plt>

LLVM IR (-O0):
@.str = [103 x i8] c"\0A\0A\09____________________________________\0A\0A\09\09QUICKSCRIPT SYNTAX\0A\09____________________________________\0A\0A\0A\00"
@.str.1 = [296 x i8] c"\09ENTRY TYPE \09- \09PREFIX/SYMBOL \0A\0A\0A\0D Pattern \09: \09>> \0A\0D Reply \09\09: \09## and ++ \0A\0D SRAI \09\09: \09== \0A\0D Wildcards \09: \09* and _ \0A\0D Comment \09: \09// \0A\0D Learn Command \09: \09{LEARN} \0A\0D \0A\0A\0D IT IS HIGHLY RECOMMENDED TO READ THE QUICKSCRIPT DOCUMENTATION.\00"
@.str.2 = [50 x i8] c"\0A\09Press any key to go back to the home screen... \00"
define void @syntax_of_quickScript() {
%1 = alloca i8*
%2 = alloca i8*
store i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0), i8** %1
store i8* getelementptr inbounds ([296 x i8], [296 x i8]* @.str.1, i64 0, i64 0), i8** %2
%3 = load i8*, i8** %1
%4 = call i32 @puts(i8* %3)
%5 = load i8*, i8** %2
%6 = call i32 @puts(i8* %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (...) @getch()
%9 = call i32 (...) @home_screen()
ret void
}

LLVM IR (-O2):
@.str = [103 x i8] c"\0A\0A\09____________________________________\0A\0A\09\09QUICKSCRIPT SYNTAX\0A\09____________________________________\0A\0A\0A\00"
@.str.1 = [296 x i8] c"\09ENTRY TYPE \09- \09PREFIX/SYMBOL \0A\0A\0A\0D Pattern \09: \09>> \0A\0D Reply \09\09: \09## and ++ \0A\0D SRAI \09\09: \09== \0A\0D Wildcards \09: \09* and _ \0A\0D Comment \09: \09// \0A\0D Learn Command \09: \09{LEARN} \0A\0D \0A\0A\0D IT IS HIGHLY RECOMMENDED TO READ THE QUICKSCRIPT DOCUMENTATION.\00"
@.str.2 = [50 x i8] c"\0A\09Press any key to go back to the home screen... \00"
define void @syntax_of_quickScript() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([296 x i8], [296 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (...) @getch()
%5 = tail call i32 (...) @home_screen()
ret void
}