#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*/ halt();
int /*<<< orphan*/ screentext_clear();
int /*<<< orphan*/ screentext_writecharplace(char, int, int);
int sanders_exit(int argc, char *argv[]) {
  screentext_clear();
  screentext_writecharplace('G', 16, 4);
  screentext_writecharplace('o', 17, 4);
  screentext_writecharplace('o', 18, 4);
  screentext_writecharplace('d', 19, 4);
  screentext_writecharplace('b', 20, 4);
  screentext_writecharplace('y', 21, 4);
  screentext_writecharplace('e', 22, 4);
  screentext_writecharplace('!', 23, 4);
  halt();
  return 0;
}


x86 assembly (clang, -O0):
<sanders_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <screentext_clear@plt>
mov    $0x47,%edi
mov    $0x10,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x6f,%edi
mov    $0x11,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x6f,%edi
mov    $0x12,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x64,%edi
mov    $0x13,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x62,%edi
mov    $0x14,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x79,%edi
mov    $0x15,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x65,%edi
mov    $0x16,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x21,%edi
mov    $0x17,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x0,%al
call   1050 <halt@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sanders_exit>:
push   %rax
xor    %eax,%eax
call   1030 <screentext_clear@plt>
mov    $0x47,%edi
mov    $0x10,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x6f,%edi
mov    $0x11,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x6f,%edi
mov    $0x12,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x64,%edi
mov    $0x13,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x62,%edi
mov    $0x14,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x79,%edi
mov    $0x15,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x65,%edi
mov    $0x16,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
mov    $0x21,%edi
mov    $0x17,%esi
mov    $0x4,%edx
call   1040 <screentext_writecharplace@plt>
xor    %eax,%eax
call   1050 <halt@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @sanders_exit(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 (...) @screentext_clear()
%6 = call i32 @screentext_writecharplace(i8 signext 71, i32 16, i32 4)
%7 = call i32 @screentext_writecharplace(i8 signext 111, i32 17, i32 4)
%8 = call i32 @screentext_writecharplace(i8 signext 111, i32 18, i32 4)
%9 = call i32 @screentext_writecharplace(i8 signext 100, i32 19, i32 4)
%10 = call i32 @screentext_writecharplace(i8 signext 98, i32 20, i32 4)
%11 = call i32 @screentext_writecharplace(i8 signext 121, i32 21, i32 4)
%12 = call i32 @screentext_writecharplace(i8 signext 101, i32 22, i32 4)
%13 = call i32 @screentext_writecharplace(i8 signext 33, i32 23, i32 4)
%14 = call i32 (...) @halt()
ret i32 0
}

LLVM IR (-O2):
define i32 @sanders_exit(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @screentext_clear()
%4 = tail call i32 @screentext_writecharplace(i8 signext 71, i32 16, i32 4)
%5 = tail call i32 @screentext_writecharplace(i8 signext 111, i32 17, i32 4)
%6 = tail call i32 @screentext_writecharplace(i8 signext 111, i32 18, i32 4)
%7 = tail call i32 @screentext_writecharplace(i8 signext 100, i32 19, i32 4)
%8 = tail call i32 @screentext_writecharplace(i8 signext 98, i32 20, i32 4)
%9 = tail call i32 @screentext_writecharplace(i8 signext 121, i32 21, i32 4)
%10 = tail call i32 @screentext_writecharplace(i8 signext 101, i32 22, i32 4)
%11 = tail call i32 @screentext_writecharplace(i8 signext 33, i32 23, i32 4)
%12 = tail call i32 (...) @halt()
ret i32 0
}