#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*/ debug(char *);
int /*<<< orphan*/ kill_this_task();
int /*<<< orphan*/ make_global_int(char *, int);
int /*<<< orphan*/ set_dink_speed(int);
int /*<<< orphan*/ sp_frame_delay(int, int /*<<< orphan*/);
void main(void) {
  make_global_int("&exp", 0);
  make_global_int("&strength", 3);
  make_global_int("&defense", 0);
  make_global_int("&cur_weapon", 0);
  make_global_int("&cur_magic", 0);
  make_global_int("&gold", 0);
  make_global_int("&magic", 0);
  make_global_int("&magic_level", 0);
  make_global_int("&vision", 0);
  make_global_int("&result", 0);
  make_global_int("&speed", 1);
  make_global_int("&timing", 0);
  make_global_int("&lifemax", 10);
  make_global_int("&life", 10);
  make_global_int("&level", 1);
  make_global_int("&player_map", 1);
  make_global_int("&last_text", 0);
  make_global_int("&update_status", 0);
  make_global_int("&missile_target", 0);
  make_global_int("&enemy_sprite", 0);
  make_global_int("&magic_cost", 0);
  make_global_int("&missle_source", 0);
  set_dink_speed(3);
  sp_frame_delay(1, 0);
  debug("Dink started. Time to fight for your right to party.");
  kill_this_task();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xea5(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe9c(%rip),%rdi
mov    $0x3,%esi
call   1030 <make_global_int@plt>
lea    0xe95(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe90(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe8e(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe8b(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe83(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe7c(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe7b(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe75(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe6f(%rip),%rdi
mov    $0x1,%esi
call   1030 <make_global_int@plt>
lea    0xe65(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe5f(%rip),%rdi
mov    $0xa,%esi
call   1030 <make_global_int@plt>
lea    0xe57(%rip),%rdi
mov    $0xa,%esi
call   1030 <make_global_int@plt>
lea    0xe4c(%rip),%rdi
mov    $0x1,%esi
call   1030 <make_global_int@plt>
lea    0xe42(%rip),%rdi
mov    $0x1,%esi
call   1030 <make_global_int@plt>
lea    0xe3d(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe3a(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe3b(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe3d(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe3d(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe3b(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
mov    $0x3,%edi
call   1070 <set_dink_speed@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1060 <sp_frame_delay@plt>
lea    0xe26(%rip),%rdi
call   1050 <debug@plt>
mov    $0x0,%al
call   1040 <kill_this_task@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xea8(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe9f(%rip),%rdi
mov    $0x3,%esi
call   1030 <make_global_int@plt>
lea    0xe98(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe93(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe91(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe8e(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe86(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe7f(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe7e(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe78(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe72(%rip),%rdi
mov    $0x1,%esi
call   1030 <make_global_int@plt>
lea    0xe68(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe62(%rip),%rdi
mov    $0xa,%esi
call   1030 <make_global_int@plt>
lea    0xe5a(%rip),%rdi
mov    $0xa,%esi
call   1030 <make_global_int@plt>
lea    0xe4f(%rip),%rdi
mov    $0x1,%esi
call   1030 <make_global_int@plt>
lea    0xe45(%rip),%rdi
mov    $0x1,%esi
call   1030 <make_global_int@plt>
lea    0xe40(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe3d(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe3e(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe40(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe40(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
lea    0xe3e(%rip),%rdi
xor    %esi,%esi
call   1030 <make_global_int@plt>
mov    $0x3,%edi
call   1070 <set_dink_speed@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1060 <sp_frame_delay@plt>
lea    0xe29(%rip),%rdi
call   1050 <debug@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <kill_this_task@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"&exp\00"
@.str.1 = [10 x i8] c"&strength\00"
@.str.2 = [9 x i8] c"&defense\00"
@.str.3 = [12 x i8] c"&cur_weapon\00"
@.str.4 = [11 x i8] c"&cur_magic\00"
@.str.5 = [6 x i8] c"&gold\00"
@.str.6 = [7 x i8] c"&magic\00"
@.str.7 = [13 x i8] c"&magic_level\00"
@.str.8 = [8 x i8] c"&vision\00"
@.str.9 = [8 x i8] c"&result\00"
@.str.10 = [7 x i8] c"&speed\00"
@.str.11 = [8 x i8] c"&timing\00"
@.str.12 = [9 x i8] c"&lifemax\00"
@.str.13 = [6 x i8] c"&life\00"
@.str.14 = [7 x i8] c"&level\00"
@.str.15 = [12 x i8] c"&player_map\00"
@.str.16 = [11 x i8] c"&last_text\00"
@.str.17 = [15 x i8] c"&update_status\00"
@.str.18 = [16 x i8] c"&missile_target\00"
@.str.19 = [14 x i8] c"&enemy_sprite\00"
@.str.20 = [12 x i8] c"&magic_cost\00"
@.str.21 = [15 x i8] c"&missle_source\00"
@.str.22 = [53 x i8] c"Dink started. Time to fight for your right to party.\00"
define void @main() {
%1 = call i32 @make_global_int(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = call i32 @make_global_int(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 3)
%3 = call i32 @make_global_int(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 0)
%4 = call i32 @make_global_int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 0)
%5 = call i32 @make_global_int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 0)
%6 = call i32 @make_global_int(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 0)
%7 = call i32 @make_global_int(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 0)
%8 = call i32 @make_global_int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32 0)
%9 = call i32 @make_global_int(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 0)
%10 = call i32 @make_global_int(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 0)
%11 = call i32 @make_global_int(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 1)
%12 = call i32 @make_global_int(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i32 0)
%13 = call i32 @make_global_int(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 10)
%14 = call i32 @make_global_int(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 10)
%15 = call i32 @make_global_int(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i32 1)
%16 = call i32 @make_global_int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 1)
%17 = call i32 @make_global_int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 0)
%18 = call i32 @make_global_int(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), i32 0)
%19 = call i32 @make_global_int(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.18, i64 0, i64 0), i32 0)
%20 = call i32 @make_global_int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 0)
%21 = call i32 @make_global_int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 0)
%22 = call i32 @make_global_int(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 0)
%23 = call i32 @set_dink_speed(i32 3)
%24 = call i32 @sp_frame_delay(i32 1, i32 0)
%25 = call i32 @debug(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.22, i64 0, i64 0))
%26 = call i32 (...) @kill_this_task()
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"&exp\00"
@.str.1 = [10 x i8] c"&strength\00"
@.str.2 = [9 x i8] c"&defense\00"
@.str.3 = [12 x i8] c"&cur_weapon\00"
@.str.4 = [11 x i8] c"&cur_magic\00"
@.str.5 = [6 x i8] c"&gold\00"
@.str.6 = [7 x i8] c"&magic\00"
@.str.7 = [13 x i8] c"&magic_level\00"
@.str.8 = [8 x i8] c"&vision\00"
@.str.9 = [8 x i8] c"&result\00"
@.str.10 = [7 x i8] c"&speed\00"
@.str.11 = [8 x i8] c"&timing\00"
@.str.12 = [9 x i8] c"&lifemax\00"
@.str.13 = [6 x i8] c"&life\00"
@.str.14 = [7 x i8] c"&level\00"
@.str.15 = [12 x i8] c"&player_map\00"
@.str.16 = [11 x i8] c"&last_text\00"
@.str.17 = [15 x i8] c"&update_status\00"
@.str.18 = [16 x i8] c"&missile_target\00"
@.str.19 = [14 x i8] c"&enemy_sprite\00"
@.str.20 = [12 x i8] c"&magic_cost\00"
@.str.21 = [15 x i8] c"&missle_source\00"
@.str.22 = [53 x i8] c"Dink started. Time to fight for your right to party.\00"
define void @main() {
%1 = tail call i32 @make_global_int(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 @make_global_int(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 3)
%3 = tail call i32 @make_global_int(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 0)
%4 = tail call i32 @make_global_int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 0)
%5 = tail call i32 @make_global_int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 0)
%6 = tail call i32 @make_global_int(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 0)
%7 = tail call i32 @make_global_int(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 0)
%8 = tail call i32 @make_global_int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32 0)
%9 = tail call i32 @make_global_int(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 0)
%10 = tail call i32 @make_global_int(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 0)
%11 = tail call i32 @make_global_int(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 1)
%12 = tail call i32 @make_global_int(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i32 0)
%13 = tail call i32 @make_global_int(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 10)
%14 = tail call i32 @make_global_int(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 10)
%15 = tail call i32 @make_global_int(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i32 1)
%16 = tail call i32 @make_global_int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 1)
%17 = tail call i32 @make_global_int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 0)
%18 = tail call i32 @make_global_int(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), i32 0)
%19 = tail call i32 @make_global_int(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.18, i64 0, i64 0), i32 0)
%20 = tail call i32 @make_global_int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 0)
%21 = tail call i32 @make_global_int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 0)
%22 = tail call i32 @make_global_int(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 0)
%23 = tail call i32 @set_dink_speed(i32 3)
%24 = tail call i32 @sp_frame_delay(i32 1, i32 0)
%25 = tail call i32 @debug(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.22, i64 0, i64 0))
%26 = tail call i32 (...) @kill_this_task()
ret void
}