#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*/ BasicIOInit();
int /*<<< orphan*/ DebugInit();
int /*<<< orphan*/ HeapInit(int);
int /*<<< orphan*/ IncludeInit();
int /*<<< orphan*/ LexInit();
int /*<<< orphan*/ LibraryInit();
int /*<<< orphan*/ PlatformInit();
int /*<<< orphan*/ PlatformLibraryInit();
int /*<<< orphan*/ TableInit();
int /*<<< orphan*/ TypeInit();
int /*<<< orphan*/ VariableInit();
void PicocInitialise(int StackSize) {
  PlatformInit();
  BasicIOInit();
  HeapInit(StackSize);
  TableInit();
  VariableInit();
  LexInit();
  TypeInit();
  IncludeInit();
  LibraryInit();
  PlatformLibraryInit();
  DebugInit();
}


x86 assembly (clang, -O0):
<PicocInitialise>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1070 <PlatformInit@plt>
mov    $0x0,%al
call   10a0 <BasicIOInit@plt>
mov    -0x4(%rbp),%edi
call   10b0 <HeapInit@plt>
mov    $0x0,%al
call   1080 <TableInit@plt>
mov    $0x0,%al
call   1050 <VariableInit@plt>
mov    $0x0,%al
call   10d0 <LexInit@plt>
mov    $0x0,%al
call   10c0 <TypeInit@plt>
mov    $0x0,%al
call   1060 <IncludeInit@plt>
mov    $0x0,%al
call   1040 <LibraryInit@plt>
mov    $0x0,%al
call   1030 <PlatformLibraryInit@plt>
mov    $0x0,%al
call   1090 <DebugInit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PicocInitialise>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1070 <PlatformInit@plt>
xor    %eax,%eax
call   10a0 <BasicIOInit@plt>
mov    %ebx,%edi
call   10b0 <HeapInit@plt>
xor    %eax,%eax
call   1080 <TableInit@plt>
xor    %eax,%eax
call   1050 <VariableInit@plt>
xor    %eax,%eax
call   10d0 <LexInit@plt>
xor    %eax,%eax
call   10c0 <TypeInit@plt>
xor    %eax,%eax
call   1060 <IncludeInit@plt>
xor    %eax,%eax
call   1040 <LibraryInit@plt>
xor    %eax,%eax
call   1030 <PlatformLibraryInit@plt>
xor    %eax,%eax
pop    %rbx
jmp    1090 <DebugInit@plt>

LLVM IR (-O0):
define void @PicocInitialise(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @PlatformInit()
%4 = call i32 (...) @BasicIOInit()
%5 = load i32, i32* %2
%6 = call i32 @HeapInit(i32 %5)
%7 = call i32 (...) @TableInit()
%8 = call i32 (...) @VariableInit()
%9 = call i32 (...) @LexInit()
%10 = call i32 (...) @TypeInit()
%11 = call i32 (...) @IncludeInit()
%12 = call i32 (...) @LibraryInit()
%13 = call i32 (...) @PlatformLibraryInit()
%14 = call i32 (...) @DebugInit()
ret void
}

LLVM IR (-O2):
define void @PicocInitialise(i32 %0) {
%2 = tail call i32 (...) @PlatformInit()
%3 = tail call i32 (...) @BasicIOInit()
%4 = tail call i32 @HeapInit(i32 %0)
%5 = tail call i32 (...) @TableInit()
%6 = tail call i32 (...) @VariableInit()
%7 = tail call i32 (...) @LexInit()
%8 = tail call i32 (...) @TypeInit()
%9 = tail call i32 (...) @IncludeInit()
%10 = tail call i32 (...) @LibraryInit()
%11 = tail call i32 (...) @PlatformLibraryInit()
%12 = tail call i32 (...) @DebugInit()
ret void
}