#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 */
scalar_t__ AllocMyMemory();
scalar_t__ CreateMainWindow();
scalar_t__ InitEmulation();
scalar_t__ InitLocationDat();
scalar_t__ InitWhereAmI();
scalar_t__ KC2MKCInit();
scalar_t__ LoadInitialImages();
scalar_t__ LoadMacRom();
scalar_t__ MySound_Init();
scalar_t__ ScanCommandLine();
scalar_t__ Screen_Init();
int InitOSGLU(void) {
  if (AllocMyMemory())
    if (InitWhereAmI())
      if (ScanCommandLine())
        if (LoadInitialImages())
          if (LoadMacRom())
            if (InitLocationDat())
              if (MySound_Init())
                if (Screen_Init())
                  if (CreateMainWindow())
                    if (KC2MKCInit())
                      if (InitEmulation()) {
                        return 1;
                      }
  return 0;
}


x86 assembly (clang, -O0):
<InitOSGLU>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <AllocMyMemory@plt>
cmp    $0x0,%rax
je     12b1 <InitOSGLU+0x101>
mov    $0x0,%al
call   1060 <InitWhereAmI@plt>
cmp    $0x0,%rax
je     12ac <InitOSGLU+0xfc>
mov    $0x0,%al
call   1040 <ScanCommandLine@plt>
cmp    $0x0,%rax
je     12a7 <InitOSGLU+0xf7>
mov    $0x0,%al
call   10c0 <LoadInitialImages@plt>
cmp    $0x0,%rax
je     12a2 <InitOSGLU+0xf2>
mov    $0x0,%al
call   1080 <LoadMacRom@plt>
cmp    $0x0,%rax
je     129d <InitOSGLU+0xed>
mov    $0x0,%al
call   10b0 <InitLocationDat@plt>
cmp    $0x0,%rax
je     1298 <InitOSGLU+0xe8>
mov    $0x0,%al
call   1030 <MySound_Init@plt>
cmp    $0x0,%rax
je     1293 <InitOSGLU+0xe3>
mov    $0x0,%al
call   10a0 <Screen_Init@plt>
cmp    $0x0,%rax
je     128e <InitOSGLU+0xde>
mov    $0x0,%al
call   1090 <CreateMainWindow@plt>
cmp    $0x0,%rax
je     1289 <InitOSGLU+0xd9>
mov    $0x0,%al
call   10d0 <KC2MKCInit@plt>
cmp    $0x0,%rax
je     1284 <InitOSGLU+0xd4>
mov    $0x0,%al
call   1070 <InitEmulation@plt>
cmp    $0x0,%rax
je     127f <InitOSGLU+0xcf>
movl   $0x1,-0x4(%rbp)
jmp    12b8 <InitOSGLU+0x108>
jmp    1284 <InitOSGLU+0xd4>
jmp    1289 <InitOSGLU+0xd9>
jmp    128e <InitOSGLU+0xde>
jmp    1293 <InitOSGLU+0xe3>
jmp    1298 <InitOSGLU+0xe8>
jmp    129d <InitOSGLU+0xed>
jmp    12a2 <InitOSGLU+0xf2>
jmp    12a7 <InitOSGLU+0xf7>
jmp    12ac <InitOSGLU+0xfc>
jmp    12b1 <InitOSGLU+0x101>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<InitOSGLU>:
push   %rax
xor    %eax,%eax
call   1050 <AllocMyMemory@plt>
test   %rax,%rax
je     1241 <InitOSGLU+0x91>
xor    %eax,%eax
call   1060 <InitWhereAmI@plt>
test   %rax,%rax
je     1241 <InitOSGLU+0x91>
xor    %eax,%eax
call   1040 <ScanCommandLine@plt>
test   %rax,%rax
je     1241 <InitOSGLU+0x91>
xor    %eax,%eax
call   10c0 <LoadInitialImages@plt>
test   %rax,%rax
je     1241 <InitOSGLU+0x91>
xor    %eax,%eax
call   1080 <LoadMacRom@plt>
test   %rax,%rax
je     1241 <InitOSGLU+0x91>
xor    %eax,%eax
call   10b0 <InitLocationDat@plt>
test   %rax,%rax
je     1241 <InitOSGLU+0x91>
xor    %eax,%eax
call   1030 <MySound_Init@plt>
test   %rax,%rax
je     1241 <InitOSGLU+0x91>
xor    %eax,%eax
call   10a0 <Screen_Init@plt>
test   %rax,%rax
je     1241 <InitOSGLU+0x91>
xor    %eax,%eax
call   1090 <CreateMainWindow@plt>
test   %rax,%rax
je     1241 <InitOSGLU+0x91>
xor    %eax,%eax
call   10d0 <KC2MKCInit@plt>
test   %rax,%rax
je     1241 <InitOSGLU+0x91>
xor    %eax,%eax
call   1070 <InitEmulation@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
jne    1243 <InitOSGLU+0x93>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @InitOSGLU() {
%1 = alloca i32
%2 = call i64 (...) @AllocMyMemory()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %45
4: ; preds = %0
%5 = call i64 (...) @InitWhereAmI()
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %44
7: ; preds = %4
%8 = call i64 (...) @ScanCommandLine()
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %43
10: ; preds = %7
%11 = call i64 (...) @LoadInitialImages()
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %42
13: ; preds = %10
%14 = call i64 (...) @LoadMacRom()
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %41
16: ; preds = %13
%17 = call i64 (...) @InitLocationDat()
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %40
19: ; preds = %16
%20 = call i64 (...) @MySound_Init()
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %39
22: ; preds = %19
%23 = call i64 (...) @Screen_Init()
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %38
25: ; preds = %22
%26 = call i64 (...) @CreateMainWindow()
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %37
28: ; preds = %25
%29 = call i64 (...) @KC2MKCInit()
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = call i64 (...) @InitEmulation()
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %31
store i32 1, i32* %1
br label %46
35: ; preds = %31
br label %36
36: ; preds = %35, %28
br label %37
37: ; preds = %36, %25
br label %38
38: ; preds = %37, %22
br label %39
39: ; preds = %38, %19
br label %40
40: ; preds = %39, %16
br label %41
41: ; preds = %40, %13
br label %42
42: ; preds = %41, %10
br label %43
43: ; preds = %42, %7
br label %44
44: ; preds = %43, %4
br label %45
45: ; preds = %44, %0
store i32 0, i32* %1
br label %46
46: ; preds = %45, %34
%47 = load i32, i32* %1
ret i32 %47
}

LLVM IR (-O2):
define i32 @InitOSGLU() {
%1 = tail call i64 (...) @AllocMyMemory()
%2 = icmp eq i64 %1, 0
br i1 %2, label %33, label %3
3: ; preds = %0
%4 = tail call i64 (...) @InitWhereAmI()
%5 = icmp eq i64 %4, 0
br i1 %5, label %33, label %6
6: ; preds = %3
%7 = tail call i64 (...) @ScanCommandLine()
%8 = icmp eq i64 %7, 0
br i1 %8, label %33, label %9
9: ; preds = %6
%10 = tail call i64 (...) @LoadInitialImages()
%11 = icmp eq i64 %10, 0
br i1 %11, label %33, label %12
12: ; preds = %9
%13 = tail call i64 (...) @LoadMacRom()
%14 = icmp eq i64 %13, 0
br i1 %14, label %33, label %15
15: ; preds = %12
%16 = tail call i64 (...) @InitLocationDat()
%17 = icmp eq i64 %16, 0
br i1 %17, label %33, label %18
18: ; preds = %15
%19 = tail call i64 (...) @MySound_Init()
%20 = icmp eq i64 %19, 0
br i1 %20, label %33, label %21
21: ; preds = %18
%22 = tail call i64 (...) @Screen_Init()
%23 = icmp eq i64 %22, 0
br i1 %23, label %33, label %24
24: ; preds = %21
%25 = tail call i64 (...) @CreateMainWindow()
%26 = icmp eq i64 %25, 0
br i1 %26, label %33, label %27
27: ; preds = %24
%28 = tail call i64 (...) @KC2MKCInit()
%29 = icmp eq i64 %28, 0
br i1 %29, label %33, label %30
30: ; preds = %27
%31 = tail call i64 (...) @InitEmulation()
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %3, %9, %15, %21, %27, %30, %24, %18, %12, %6, %0
br label %34
34: ; preds = %30, %33
%35 = phi i32 [ 0, %33 ], [ 1, %30 ]
ret i32 %35
}