#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*/ backend_createbackground(char *);
int /*<<< orphan*/ backend_init();
int /*<<< orphan*/ backend_loadfont(char *, char *, int);
int /*<<< orphan*/ backend_loadimage(char *, char *);
int /*<<< orphan*/ backend_loadsample(char *, char *);
int /*<<< orphan*/ session_setup();
void init(void) {
  backend_init();
  backend_loadimage("background", "back.png");
  backend_createbackground("background");
  backend_loadfont("default", "habbo.ttf", 16);
  backend_loadfont("icon", "icofont.ttf", 16);
  backend_loadfont("bigicon", "icofont.ttf", 40);
  backend_loadsample("select", "select.wav");
  backend_loadsample("unselect", "unselect.wav");
  backend_loadsample("click", "click.wav");
  session_setup();
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <backend_init@plt>
lea    0xe8e(%rip),%rdi
lea    0xe92(%rip),%rsi
call   1060 <backend_loadimage@plt>
lea    0xe7b(%rip),%rdi
call   1080 <backend_createbackground@plt>
lea    0xe83(%rip),%rdi
lea    0xe84(%rip),%rsi
mov    $0x10,%edx
call   1030 <backend_loadfont@plt>
lea    0xe8c(%rip),%rdi
lea    0xe76(%rip),%rsi
mov    $0x10,%edx
call   1030 <backend_loadfont@plt>
lea    0xe71(%rip),%rdi
lea    0xe5e(%rip),%rsi
mov    $0x28,%edx
call   1030 <backend_loadfont@plt>
lea    0xe63(%rip),%rdi
lea    0xe65(%rip),%rsi
call   1040 <backend_loadsample@plt>
lea    0xe4e(%rip),%rdi
lea    0xe50(%rip),%rsi
call   1040 <backend_loadsample@plt>
lea    0xe51(%rip),%rdi
lea    0xe50(%rip),%rsi
call   1040 <backend_loadsample@plt>
mov    $0x0,%al
call   1050 <session_setup@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rbx
xor    %eax,%eax
call   1070 <backend_init@plt>
lea    0xe91(%rip),%rbx
lea    0xe95(%rip),%rsi
mov    %rbx,%rdi
call   1060 <backend_loadimage@plt>
mov    %rbx,%rdi
call   1080 <backend_createbackground@plt>
lea    0xe87(%rip),%rdi
lea    0xe88(%rip),%rsi
mov    $0x10,%edx
call   1030 <backend_loadfont@plt>
lea    0xe90(%rip),%rdi
lea    0xe7a(%rip),%rbx
mov    %rbx,%rsi
mov    $0x10,%edx
call   1030 <backend_loadfont@plt>
lea    0xe72(%rip),%rdi
mov    %rbx,%rsi
mov    $0x28,%edx
call   1030 <backend_loadfont@plt>
lea    0xe68(%rip),%rdi
lea    0xe6a(%rip),%rsi
call   1040 <backend_loadsample@plt>
lea    0xe53(%rip),%rdi
lea    0xe55(%rip),%rsi
call   1040 <backend_loadsample@plt>
lea    0xe56(%rip),%rdi
lea    0xe55(%rip),%rsi
call   1040 <backend_loadsample@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <session_setup@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"background\00"
@.str.1 = [9 x i8] c"back.png\00"
@.str.2 = [8 x i8] c"default\00"
@.str.3 = [10 x i8] c"habbo.ttf\00"
@.str.4 = [5 x i8] c"icon\00"
@.str.5 = [12 x i8] c"icofont.ttf\00"
@.str.6 = [8 x i8] c"bigicon\00"
@.str.7 = [7 x i8] c"select\00"
@.str.8 = [11 x i8] c"select.wav\00"
@.str.9 = [9 x i8] c"unselect\00"
@.str.10 = [13 x i8] c"unselect.wav\00"
@.str.11 = [6 x i8] c"click\00"
@.str.12 = [10 x i8] c"click.wav\00"
define void @init() {
%1 = call i32 (...) @backend_init()
%2 = call i32 @backend_loadimage(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @backend_createbackground(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @backend_loadfont(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 16)
%5 = call i32 @backend_loadfont(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 16)
%6 = call i32 @backend_loadfont(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 40)
%7 = call i32 @backend_loadsample(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%8 = call i32 @backend_loadsample(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%9 = call i32 @backend_loadsample(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%10 = call i32 (...) @session_setup()
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"background\00"
@.str.1 = [9 x i8] c"back.png\00"
@.str.2 = [8 x i8] c"default\00"
@.str.3 = [10 x i8] c"habbo.ttf\00"
@.str.4 = [5 x i8] c"icon\00"
@.str.5 = [12 x i8] c"icofont.ttf\00"
@.str.6 = [8 x i8] c"bigicon\00"
@.str.7 = [7 x i8] c"select\00"
@.str.8 = [11 x i8] c"select.wav\00"
@.str.9 = [9 x i8] c"unselect\00"
@.str.10 = [13 x i8] c"unselect.wav\00"
@.str.11 = [6 x i8] c"click\00"
@.str.12 = [10 x i8] c"click.wav\00"
define void @init() {
%1 = tail call i32 (...) @backend_init()
%2 = tail call i32 @backend_loadimage(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @backend_createbackground(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @backend_loadfont(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 16)
%5 = tail call i32 @backend_loadfont(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 16)
%6 = tail call i32 @backend_loadfont(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 40)
%7 = tail call i32 @backend_loadsample(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%8 = tail call i32 @backend_loadsample(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%9 = tail call i32 @backend_loadsample(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%10 = tail call i32 (...) @session_setup()
ret void
}