#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*/ archdep_startup_log_error(char *);
scalar_t__ autostart_resources_init();
scalar_t__ debug_resources_init();
scalar_t__ disk_image_resources_init();
scalar_t__ event_resources_init();
scalar_t__ file_system_resources_init();
scalar_t__ fliplist_resources_init();
scalar_t__ fsdevice_resources_init();
scalar_t__ gfxoutput_resources_init();
int /*<<< orphan*/ init_resource_fail(char *);
scalar_t__ joystick_init_resources();
scalar_t__ log_resources_init();
int /*<<< orphan*/ machine_get_name();
scalar_t__ machine_resources_init();
scalar_t__ network_resources_init();
scalar_t__ ram_resources_init();
scalar_t__ resources_init(int /*<<< orphan*/);
scalar_t__ romset_resources_init();
scalar_t__ sysfile_resources_init();
scalar_t__ ui_resources_init();
int init_resources(void) {
  if (resources_init(machine_get_name())) {
    archdep_startup_log_error("Cannot initialize resource handling.\n");
    return -1;
  }
  if (log_resources_init() < 0) {
    init_resource_fail("log");
    return -1;
  }
  if (sysfile_resources_init() < 0) {
    init_resource_fail("system file locator");
    return -1;
  }
  if (autostart_resources_init() < 0) {
    init_resource_fail("autostart");
    return -1;
  }
  if (romset_resources_init() < 0) {
    init_resource_fail("romset");
    return -1;
  }
  if (ui_resources_init() < 0) {
    init_resource_fail("UI");
    return -1;
  }
  if (fliplist_resources_init() < 0) {
    init_resource_fail("flip list");
    return -1;
  }
  if (file_system_resources_init() < 0) {
    init_resource_fail("file system");
    return -1;
  }
  if (fsdevice_resources_init() < 0) {
    init_resource_fail("file system device");
    return -1;
  }
  if (disk_image_resources_init() < 0) {
    init_resource_fail("disk image");
    return -1;
  }
  if (event_resources_init() < 0) {
    init_resource_fail("event");
    return -1;
  }
  if (debug_resources_init() < 0) {
    init_resource_fail("debug");
    return -1;
  }
  if (machine_resources_init() < 0) {
    init_resource_fail("machine");
    return -1;
  }
  if (joystick_init_resources() < 0) {
    init_resource_fail("joystick");
    return -1;
  }
  if (ram_resources_init() < 0) {
    init_resource_fail("RAM");
    return -1;
  }
  if (gfxoutput_resources_init() < 0) {
    init_resource_fail("GFXOUTPUT");
    return -1;
  }
  if (network_resources_init() < 0) {
    init_resource_fail("network");
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<init_resources>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <machine_get_name@plt>
mov    %eax,%edi
call   1090 <resources_init@plt>
cmp    $0x0,%rax
je     1278 <init_resources+0x38>
lea    0xd99(%rip),%rdi
call   10a0 <archdep_startup_log_error@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1060 <log_resources_init@plt>
cmp    $0x0,%rax
jge    12a1 <init_resources+0x61>
lea    0xd96(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1040 <sysfile_resources_init@plt>
cmp    $0x0,%rax
jge    12ca <init_resources+0x8a>
lea    0xd71(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1130 <autostart_resources_init@plt>
cmp    $0x0,%rax
jge    12f3 <init_resources+0xb3>
lea    0xd5c(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   10d0 <romset_resources_init@plt>
cmp    $0x0,%rax
jge    131c <init_resources+0xdc>
lea    0xd3d(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1030 <ui_resources_init@plt>
cmp    $0x0,%rax
jge    1345 <init_resources+0x105>
lea    0xd1b(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   10e0 <fliplist_resources_init@plt>
cmp    $0x0,%rax
jge    136e <init_resources+0x12e>
lea    0xcf5(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1070 <file_system_resources_init@plt>
cmp    $0x0,%rax
jge    1397 <init_resources+0x157>
lea    0xcd6(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1120 <fsdevice_resources_init@plt>
cmp    $0x0,%rax
jge    13c0 <init_resources+0x180>
lea    0xcb9(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1100 <disk_image_resources_init@plt>
cmp    $0x0,%rax
jge    13e9 <init_resources+0x1a9>
lea    0xca3(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   10c0 <event_resources_init@plt>
cmp    $0x0,%rax
jge    1412 <init_resources+0x1d2>
lea    0xc85(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1160 <debug_resources_init@plt>
cmp    $0x0,%rax
jge    143b <init_resources+0x1fb>
lea    0xc62(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1110 <machine_resources_init@plt>
cmp    $0x0,%rax
jge    1464 <init_resources+0x224>
lea    0xc3f(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1080 <joystick_init_resources@plt>
cmp    $0x0,%rax
jge    148d <init_resources+0x24d>
lea    0xc1e(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1150 <ram_resources_init@plt>
cmp    $0x0,%rax
jge    14b6 <init_resources+0x276>
lea    0xbfe(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   10f0 <gfxoutput_resources_init@plt>
cmp    $0x0,%rax
jge    14df <init_resources+0x29f>
lea    0xbd9(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
mov    $0x0,%al
call   1140 <network_resources_init@plt>
cmp    $0x0,%rax
jge    1508 <init_resources+0x2c8>
lea    0xbba(%rip),%rdi
call   10b0 <init_resource_fail@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    150f <init_resources+0x2cf>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_resources>:
push   %rbx
xor    %eax,%eax
call   1050 <machine_get_name@plt>
mov    %eax,%edi
call   1090 <resources_init@plt>
test   %rax,%rax
je     1265 <init_resources+0x25>
lea    0xda5(%rip),%rdi
call   10a0 <archdep_startup_log_error@plt>
jmp    13fd <init_resources+0x1bd>
xor    %eax,%eax
call   1060 <log_resources_init@plt>
test   %rax,%rax
js     1373 <init_resources+0x133>
xor    %eax,%eax
call   1040 <sysfile_resources_init@plt>
test   %rax,%rax
js     137c <init_resources+0x13c>
xor    %eax,%eax
call   1130 <autostart_resources_init@plt>
test   %rax,%rax
js     1385 <init_resources+0x145>
xor    %eax,%eax
call   10d0 <romset_resources_init@plt>
test   %rax,%rax
js     138e <init_resources+0x14e>
xor    %eax,%eax
call   1030 <ui_resources_init@plt>
test   %rax,%rax
js     1397 <init_resources+0x157>
xor    %eax,%eax
call   10e0 <fliplist_resources_init@plt>
test   %rax,%rax
js     13a0 <init_resources+0x160>
xor    %eax,%eax
call   1070 <file_system_resources_init@plt>
test   %rax,%rax
js     13a9 <init_resources+0x169>
xor    %eax,%eax
call   1120 <fsdevice_resources_init@plt>
test   %rax,%rax
js     13b2 <init_resources+0x172>
xor    %eax,%eax
call   1100 <disk_image_resources_init@plt>
test   %rax,%rax
js     13bb <init_resources+0x17b>
xor    %eax,%eax
call   10c0 <event_resources_init@plt>
test   %rax,%rax
js     13c4 <init_resources+0x184>
xor    %eax,%eax
call   1160 <debug_resources_init@plt>
test   %rax,%rax
js     13cd <init_resources+0x18d>
xor    %eax,%eax
call   1110 <machine_resources_init@plt>
test   %rax,%rax
js     13d6 <init_resources+0x196>
xor    %eax,%eax
call   1080 <joystick_init_resources@plt>
test   %rax,%rax
js     13df <init_resources+0x19f>
xor    %eax,%eax
call   1150 <ram_resources_init@plt>
test   %rax,%rax
js     13e8 <init_resources+0x1a8>
xor    %ebx,%ebx
xor    %eax,%eax
call   10f0 <gfxoutput_resources_init@plt>
test   %rax,%rax
js     13f1 <init_resources+0x1b1>
xor    %eax,%eax
call   1140 <network_resources_init@plt>
test   %rax,%rax
jns    1402 <init_resources+0x1c2>
lea    0xd43(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcac(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xca7(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcb2(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcb3(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcb1(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcab(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcac(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcaf(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcb9(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcbb(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcb8(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcb5(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcb4(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcb4(%rip),%rdi
jmp    13f8 <init_resources+0x1b8>
lea    0xcaf(%rip),%rdi
call   10b0 <init_resource_fail@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [38 x i8] c"Cannot initialize resource handling.\0A\00"
@.str.1 = [4 x i8] c"log\00"
@.str.2 = [20 x i8] c"system file locator\00"
@.str.3 = [10 x i8] c"autostart\00"
@.str.4 = [7 x i8] c"romset\00"
@.str.5 = [3 x i8] c"UI\00"
@.str.6 = [10 x i8] c"flip list\00"
@.str.7 = [12 x i8] c"file system\00"
@.str.8 = [19 x i8] c"file system device\00"
@.str.9 = [11 x i8] c"disk image\00"
@.str.10 = [6 x i8] c"event\00"
@.str.11 = [6 x i8] c"debug\00"
@.str.12 = [8 x i8] c"machine\00"
@.str.13 = [9 x i8] c"joystick\00"
@.str.14 = [4 x i8] c"RAM\00"
@.str.15 = [10 x i8] c"GFXOUTPUT\00"
@.str.16 = [8 x i8] c"network\00"
define i32 @init_resources() {
%1 = alloca i32
%2 = call i32 (...) @machine_get_name()
%3 = call i64 @resources_init(i32 %2)
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @archdep_startup_log_error(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
7: ; preds = %0
%8 = call i64 (...) @log_resources_init()
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @init_resource_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
12: ; preds = %7
%13 = call i64 (...) @sysfile_resources_init()
%14 = icmp slt i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @init_resource_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
17: ; preds = %12
%18 = call i64 (...) @autostart_resources_init()
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @init_resource_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
22: ; preds = %17
%23 = call i64 (...) @romset_resources_init()
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @init_resource_fail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
27: ; preds = %22
%28 = call i64 (...) @ui_resources_init()
%29 = icmp slt i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @init_resource_fail(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
32: ; preds = %27
%33 = call i64 (...) @fliplist_resources_init()
%34 = icmp slt i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @init_resource_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
37: ; preds = %32
%38 = call i64 (...) @file_system_resources_init()
%39 = icmp slt i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @init_resource_fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
42: ; preds = %37
%43 = call i64 (...) @fsdevice_resources_init()
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @init_resource_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
47: ; preds = %42
%48 = call i64 (...) @disk_image_resources_init()
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @init_resource_fail(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
52: ; preds = %47
%53 = call i64 (...) @event_resources_init()
%54 = icmp slt i64 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @init_resource_fail(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
57: ; preds = %52
%58 = call i64 (...) @debug_resources_init()
%59 = icmp slt i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = call i32 @init_resource_fail(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
62: ; preds = %57
%63 = call i64 (...) @machine_resources_init()
%64 = icmp slt i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 @init_resource_fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
67: ; preds = %62
%68 = call i64 (...) @joystick_init_resources()
%69 = icmp slt i64 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = call i32 @init_resource_fail(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
72: ; preds = %67
%73 = call i64 (...) @ram_resources_init()
%74 = icmp slt i64 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 @init_resource_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
77: ; preds = %72
%78 = call i64 (...) @gfxoutput_resources_init()
%79 = icmp slt i64 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 @init_resource_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
82: ; preds = %77
%83 = call i64 (...) @network_resources_init()
%84 = icmp slt i64 %83, 0
br i1 %84, label %85, label %87
85: ; preds = %82
%86 = call i32 @init_resource_fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
store i32 -1, i32* %1
br label %88
87: ; preds = %82
store i32 0, i32* %1
br label %88
88: ; preds = %87, %85, %80, %75, %70, %65, %60, %55, %50, %45, %40, %35, %30, %25, %20, %15, %10, %5
%89 = load i32, i32* %1
ret i32 %89
}

LLVM IR (-O2):
@.str = [38 x i8] c"Cannot initialize resource handling.\0A\00"
@.str.1 = [4 x i8] c"log\00"
@.str.2 = [20 x i8] c"system file locator\00"
@.str.3 = [10 x i8] c"autostart\00"
@.str.4 = [7 x i8] c"romset\00"
@.str.5 = [3 x i8] c"UI\00"
@.str.6 = [10 x i8] c"flip list\00"
@.str.7 = [12 x i8] c"file system\00"
@.str.8 = [19 x i8] c"file system device\00"
@.str.9 = [11 x i8] c"disk image\00"
@.str.10 = [6 x i8] c"event\00"
@.str.11 = [6 x i8] c"debug\00"
@.str.12 = [8 x i8] c"machine\00"
@.str.13 = [9 x i8] c"joystick\00"
@.str.14 = [4 x i8] c"RAM\00"
@.str.15 = [10 x i8] c"GFXOUTPUT\00"
@.str.16 = [8 x i8] c"network\00"
define i32 @init_resources() {
%1 = tail call i32 (...) @machine_get_name()
%2 = tail call i64 @resources_init(i32 %1)
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %0
%5 = tail call i32 @archdep_startup_log_error(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
br label %86
6: ; preds = %0
%7 = tail call i64 (...) @log_resources_init()
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %86
11: ; preds = %6
%12 = tail call i64 (...) @sysfile_resources_init()
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
br label %86
16: ; preds = %11
%17 = tail call i64 (...) @autostart_resources_init()
%18 = icmp slt i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %86
21: ; preds = %16
%22 = tail call i64 (...) @romset_resources_init()
%23 = icmp slt i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %86
26: ; preds = %21
%27 = tail call i64 (...) @ui_resources_init()
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %86
31: ; preds = %26
%32 = tail call i64 (...) @fliplist_resources_init()
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %86
36: ; preds = %31
%37 = tail call i64 (...) @file_system_resources_init()
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
br label %86
41: ; preds = %36
%42 = tail call i64 (...) @fsdevice_resources_init()
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
br label %86
46: ; preds = %41
%47 = tail call i64 (...) @disk_image_resources_init()
%48 = icmp slt i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
br label %86
51: ; preds = %46
%52 = tail call i64 (...) @event_resources_init()
%53 = icmp slt i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %86
56: ; preds = %51
%57 = tail call i64 (...) @debug_resources_init()
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
br label %86
61: ; preds = %56
%62 = tail call i64 (...) @machine_resources_init()
%63 = icmp slt i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %86
66: ; preds = %61
%67 = tail call i64 (...) @joystick_init_resources()
%68 = icmp slt i64 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %66
%70 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
br label %86
71: ; preds = %66
%72 = tail call i64 (...) @ram_resources_init()
%73 = icmp slt i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %71
%75 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
br label %86
76: ; preds = %71
%77 = tail call i64 (...) @gfxoutput_resources_init()
%78 = icmp slt i64 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
br label %86
81: ; preds = %76
%82 = tail call i64 (...) @network_resources_init()
%83 = icmp slt i64 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %81
%85 = tail call i32 @init_resource_fail(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
br label %86
86: ; preds = %81, %84, %79, %74, %69, %64, %59, %54, %49, %44, %39, %34, %29, %24, %19, %14, %9, %4
%87 = phi i32 [ -1, %4 ], [ -1, %9 ], [ -1, %14 ], [ -1, %19 ], [ -1, %24 ], [ -1, %29 ], [ -1, %34 ], [ -1, %39 ], [ -1, %44 ], [ -1, %49 ], [ -1, %54 ], [ -1, %59 ], [ -1, %64 ], [ -1, %69 ], [ -1, %74 ], [ -1, %79 ], [ -1, %84 ], [ 0, %81 ]
ret i32 %87
}