#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_destroy();
int /*<<< orphan*/ backend_destroybackground();
int /*<<< orphan*/ backend_unloadfont(char *);
int /*<<< orphan*/ backend_unloadimage(char *);
int /*<<< orphan*/ backend_unloadsample(char *);
void destroy(void) {
  backend_unloadsample("select");
  backend_unloadsample("unselect");
  backend_unloadsample("click");
  backend_unloadfont("default");
  backend_unloadfont("icon");
  backend_unloadfont("bigicon");
  backend_destroybackground();
  backend_unloadimage("background");
  backend_destroy();
}


x86 assembly (clang, -O0):
<destroy>:
push   %rbp
mov    %rsp,%rbp
lea    0xea7(%rip),%rdi
call   1070 <backend_unloadsample@plt>
lea    0xe99(%rip),%rdi
call   1070 <backend_unloadsample@plt>
lea    0xe96(%rip),%rdi
call   1070 <backend_unloadsample@plt>
lea    0xe90(%rip),%rdi
call   1030 <backend_unloadfont@plt>
lea    0xe8f(%rip),%rdi
call   1030 <backend_unloadfont@plt>
lea    0xe80(%rip),%rdi
call   1030 <backend_unloadfont@plt>
mov    $0x0,%al
call   1050 <backend_destroybackground@plt>
lea    0xe75(%rip),%rdi
call   1060 <backend_unloadimage@plt>
mov    $0x0,%al
call   1040 <backend_destroy@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<destroy>:
push   %rax
lea    0xeaa(%rip),%rdi
call   1070 <backend_unloadsample@plt>
lea    0xe9c(%rip),%rdi
call   1070 <backend_unloadsample@plt>
lea    0xe99(%rip),%rdi
call   1070 <backend_unloadsample@plt>
lea    0xe93(%rip),%rdi
call   1030 <backend_unloadfont@plt>
lea    0xe92(%rip),%rdi
call   1030 <backend_unloadfont@plt>
lea    0xe83(%rip),%rdi
call   1030 <backend_unloadfont@plt>
xor    %eax,%eax
call   1050 <backend_destroybackground@plt>
lea    0xe78(%rip),%rdi
call   1060 <backend_unloadimage@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <backend_destroy@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"select\00"
@.str.1 = [9 x i8] c"unselect\00"
@.str.2 = [6 x i8] c"click\00"
@.str.3 = [8 x i8] c"default\00"
@.str.4 = [5 x i8] c"icon\00"
@.str.5 = [8 x i8] c"bigicon\00"
@.str.6 = [11 x i8] c"background\00"
define void @destroy() {
%1 = call i32 @backend_unloadsample(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @backend_unloadsample(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @backend_unloadsample(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @backend_unloadfont(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @backend_unloadfont(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @backend_unloadfont(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (...) @backend_destroybackground()
%8 = call i32 @backend_unloadimage(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 (...) @backend_destroy()
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"select\00"
@.str.1 = [9 x i8] c"unselect\00"
@.str.2 = [6 x i8] c"click\00"
@.str.3 = [8 x i8] c"default\00"
@.str.4 = [5 x i8] c"icon\00"
@.str.5 = [8 x i8] c"bigicon\00"
@.str.6 = [11 x i8] c"background\00"
define void @destroy() {
%1 = tail call i32 @backend_unloadsample(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @backend_unloadsample(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @backend_unloadsample(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @backend_unloadfont(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @backend_unloadfont(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @backend_unloadfont(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 (...) @backend_destroybackground()
%8 = tail call i32 @backend_unloadimage(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 (...) @backend_destroy()
ret void
}