#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*/ clearunslist();
int /*<<< orphan*/ freefont();
int /*<<< orphan*/ freesfx(int);
int /*<<< orphan*/ freetileset();
void freeallresources(void) {
  int n;
  freefont();
  freetileset();
  clearunslist();
  for (n = 0; n < 26; ++n)
    freesfx(n);
}


x86 assembly (clang, -O0):
<freeallresources>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <freefont@plt>
mov    $0x0,%al
call   1040 <freetileset@plt>
mov    $0x0,%al
call   1050 <clearunslist@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x1a,-0x4(%rbp)
jge    1184 <freeallresources+0x44>
mov    -0x4(%rbp),%edi
call   1060 <freesfx@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1164 <freeallresources+0x24>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<freeallresources>:
push   %rax
xor    %eax,%eax
call   1030 <freefont@plt>
xor    %eax,%eax
call   1040 <freetileset@plt>
xor    %eax,%eax
call   1050 <clearunslist@plt>
xor    %edi,%edi
call   1060 <freesfx@plt>
mov    $0x1,%edi
call   1060 <freesfx@plt>
mov    $0x2,%edi
call   1060 <freesfx@plt>
mov    $0x3,%edi
call   1060 <freesfx@plt>
mov    $0x4,%edi
call   1060 <freesfx@plt>
mov    $0x5,%edi
call   1060 <freesfx@plt>
mov    $0x6,%edi
call   1060 <freesfx@plt>
mov    $0x7,%edi
call   1060 <freesfx@plt>
mov    $0x8,%edi
call   1060 <freesfx@plt>
mov    $0x9,%edi
call   1060 <freesfx@plt>
mov    $0xa,%edi
call   1060 <freesfx@plt>
mov    $0xb,%edi
call   1060 <freesfx@plt>
mov    $0xc,%edi
call   1060 <freesfx@plt>
mov    $0xd,%edi
call   1060 <freesfx@plt>
mov    $0xe,%edi
call   1060 <freesfx@plt>
mov    $0xf,%edi
call   1060 <freesfx@plt>
mov    $0x10,%edi
call   1060 <freesfx@plt>
mov    $0x11,%edi
call   1060 <freesfx@plt>
mov    $0x12,%edi
call   1060 <freesfx@plt>
mov    $0x13,%edi
call   1060 <freesfx@plt>
mov    $0x14,%edi
call   1060 <freesfx@plt>
mov    $0x15,%edi
call   1060 <freesfx@plt>
mov    $0x16,%edi
call   1060 <freesfx@plt>
mov    $0x17,%edi
call   1060 <freesfx@plt>
mov    $0x18,%edi
call   1060 <freesfx@plt>
mov    $0x19,%edi
pop    %rax
jmp    1060 <freesfx@plt>

LLVM IR (-O0):
define void @freeallresources() {
%1 = alloca i32
%2 = call i32 (...) @freefont()
%3 = call i32 (...) @freetileset()
%4 = call i32 (...) @clearunslist()
store i32 0, i32* %1
br label %5
5: ; preds = %11, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 26
br i1 %7, label %8, label %14
8: ; preds = %5
%9 = load i32, i32* %1
%10 = call i32 @freesfx(i32 %9)
br label %11
11: ; preds = %8
%12 = load i32, i32* %1
%13 = add nsw i32 %12, 1
store i32 %13, i32* %1
br label %5
14: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @freeallresources() {
%1 = tail call i32 (...) @freefont()
%2 = tail call i32 (...) @freetileset()
%3 = tail call i32 (...) @clearunslist()
%4 = tail call i32 @freesfx(i32 0)
%5 = tail call i32 @freesfx(i32 1)
%6 = tail call i32 @freesfx(i32 2)
%7 = tail call i32 @freesfx(i32 3)
%8 = tail call i32 @freesfx(i32 4)
%9 = tail call i32 @freesfx(i32 5)
%10 = tail call i32 @freesfx(i32 6)
%11 = tail call i32 @freesfx(i32 7)
%12 = tail call i32 @freesfx(i32 8)
%13 = tail call i32 @freesfx(i32 9)
%14 = tail call i32 @freesfx(i32 10)
%15 = tail call i32 @freesfx(i32 11)
%16 = tail call i32 @freesfx(i32 12)
%17 = tail call i32 @freesfx(i32 13)
%18 = tail call i32 @freesfx(i32 14)
%19 = tail call i32 @freesfx(i32 15)
%20 = tail call i32 @freesfx(i32 16)
%21 = tail call i32 @freesfx(i32 17)
%22 = tail call i32 @freesfx(i32 18)
%23 = tail call i32 @freesfx(i32 19)
%24 = tail call i32 @freesfx(i32 20)
%25 = tail call i32 @freesfx(i32 21)
%26 = tail call i32 @freesfx(i32 22)
%27 = tail call i32 @freesfx(i32 23)
%28 = tail call i32 @freesfx(i32 24)
%29 = tail call i32 @freesfx(i32 25)
ret void
}