#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*/ tty_setup();
int /*<<< orphan*/ tty_writestring(char *);
void kernel_main() {
  tty_setup();
  tty_writestring(" _  __                    _   _   _\n");
  tty_writestring("| |/ /___ _ __ _ __   ___| | | | | |_ __\n");
  tty_writestring("| ' // _ \\ '__| '_ \\ / _ \\ | | | | | '_ \\\n");
  tty_writestring("| . \\  __/ |  | | | |  __/ | | |_| | |_) |\n");
  tty_writestring("|_|\\_\\___|_|  |_| |_|\\___|_|  \\___/| .__/\n");
  tty_writestring("                                   |_|\n");
}


x86 assembly (clang, -O0):
<kernel_main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <tty_setup@plt>
lea    0xece(%rip),%rdi
call   1030 <tty_writestring@plt>
lea    0xee7(%rip),%rdi
call   1030 <tty_writestring@plt>
lea    0xf05(%rip),%rdi
call   1030 <tty_writestring@plt>
lea    0xf24(%rip),%rdi
call   1030 <tty_writestring@plt>
lea    0xf44(%rip),%rdi
call   1030 <tty_writestring@plt>
lea    0xf63(%rip),%rdi
call   1030 <tty_writestring@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_main>:
push   %rax
xor    %eax,%eax
call   1040 <tty_setup@plt>
lea    0xed1(%rip),%rdi
call   1030 <tty_writestring@plt>
lea    0xeea(%rip),%rdi
call   1030 <tty_writestring@plt>
lea    0xf08(%rip),%rdi
call   1030 <tty_writestring@plt>
lea    0xf27(%rip),%rdi
call   1030 <tty_writestring@plt>
lea    0xf47(%rip),%rdi
call   1030 <tty_writestring@plt>
lea    0xf66(%rip),%rdi
pop    %rax
jmp    1030 <tty_writestring@plt>

LLVM IR (-O0):
@.str = [37 x i8] c" _ __ _ _ _\0A\00"
@.str.1 = [42 x i8] c"| |/ /___ _ __ _ __ ___| | | | | |_ __\0A\00"
@.str.2 = [43 x i8] c"| ' // _ \\ '__| '_ \\ / _ \\ | | | | | '_ \\\0A\00"
@.str.3 = [44 x i8] c"| . \\ __/ | | | | | __/ | | |_| | |_) |\0A\00"
@.str.4 = [43 x i8] c"|_|\\_\\___|_| |_| |_|\\___|_| \\___/| .__/\0A\00"
@.str.5 = [40 x i8] c" |_|\0A\00"
define void @kernel_main() {
%1 = call i32 (...) @tty_setup()
%2 = call i32 @tty_writestring(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @tty_writestring(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @tty_writestring(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @tty_writestring(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @tty_writestring(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @tty_writestring(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [37 x i8] c" _ __ _ _ _\0A\00"
@.str.1 = [42 x i8] c"| |/ /___ _ __ _ __ ___| | | | | |_ __\0A\00"
@.str.2 = [43 x i8] c"| ' // _ \\ '__| '_ \\ / _ \\ | | | | | '_ \\\0A\00"
@.str.3 = [44 x i8] c"| . \\ __/ | | | | | __/ | | |_| | |_) |\0A\00"
@.str.4 = [43 x i8] c"|_|\\_\\___|_| |_| |_|\\___|_| \\___/| .__/\0A\00"
@.str.5 = [40 x i8] c" |_|\0A\00"
define void @kernel_main() {
%1 = tail call i32 (...) @tty_setup()
%2 = tail call i32 @tty_writestring(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @tty_writestring(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @tty_writestring(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @tty_writestring(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @tty_writestring(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @tty_writestring(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
ret void
}