#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*/ OSDebugInit();
int /*<<< orphan*/ OSInitHookBegin();
int /*<<< orphan*/ OSInitHookEnd();
int /*<<< orphan*/ OSTmr_Init();
int /*<<< orphan*/ OS_FlagInit();
int /*<<< orphan*/ OS_InitEventList();
int /*<<< orphan*/ OS_InitMisc();
int /*<<< orphan*/ OS_InitRdyList();
int /*<<< orphan*/ OS_InitTCBList();
int /*<<< orphan*/ OS_InitTaskIdle();
int /*<<< orphan*/ OS_InitTaskStat();
int /*<<< orphan*/ OS_MemInit();
int /*<<< orphan*/ OS_QInit();
void OSInit(void) {
  OSInitHookBegin();
  OS_InitMisc();
  OS_InitRdyList();
  OS_InitTCBList();
  OS_InitEventList();
  OS_FlagInit();
  OS_MemInit();
  OS_QInit();
  OS_InitTaskIdle();
  OS_InitTaskStat();
  OSTmr_Init();
  OSInitHookEnd();
  OSDebugInit();
}


x86 assembly (clang, -O0):
<OSInit>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   10e0 <OSInitHookBegin@plt>
mov    $0x0,%al
call   10d0 <OS_InitMisc@plt>
mov    $0x0,%al
call   10b0 <OS_InitRdyList@plt>
mov    $0x0,%al
call   1090 <OS_InitTCBList@plt>
mov    $0x0,%al
call   10f0 <OS_InitEventList@plt>
mov    $0x0,%al
call   1080 <OS_FlagInit@plt>
mov    $0x0,%al
call   1040 <OS_MemInit@plt>
mov    $0x0,%al
call   1030 <OS_QInit@plt>
mov    $0x0,%al
call   10a0 <OS_InitTaskIdle@plt>
mov    $0x0,%al
call   1050 <OS_InitTaskStat@plt>
mov    $0x0,%al
call   10c0 <OSTmr_Init@plt>
mov    $0x0,%al
call   1060 <OSInitHookEnd@plt>
mov    $0x0,%al
call   1070 <OSDebugInit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<OSInit>:
push   %rax
xor    %eax,%eax
call   10e0 <OSInitHookBegin@plt>
xor    %eax,%eax
call   10d0 <OS_InitMisc@plt>
xor    %eax,%eax
call   10b0 <OS_InitRdyList@plt>
xor    %eax,%eax
call   1090 <OS_InitTCBList@plt>
xor    %eax,%eax
call   10f0 <OS_InitEventList@plt>
xor    %eax,%eax
call   1080 <OS_FlagInit@plt>
xor    %eax,%eax
call   1040 <OS_MemInit@plt>
xor    %eax,%eax
call   1030 <OS_QInit@plt>
xor    %eax,%eax
call   10a0 <OS_InitTaskIdle@plt>
xor    %eax,%eax
call   1050 <OS_InitTaskStat@plt>
xor    %eax,%eax
call   10c0 <OSTmr_Init@plt>
xor    %eax,%eax
call   1060 <OSInitHookEnd@plt>
xor    %eax,%eax
pop    %rcx
jmp    1070 <OSDebugInit@plt>

LLVM IR (-O0):
define void @OSInit() {
%1 = call i32 (...) @OSInitHookBegin()
%2 = call i32 (...) @OS_InitMisc()
%3 = call i32 (...) @OS_InitRdyList()
%4 = call i32 (...) @OS_InitTCBList()
%5 = call i32 (...) @OS_InitEventList()
%6 = call i32 (...) @OS_FlagInit()
%7 = call i32 (...) @OS_MemInit()
%8 = call i32 (...) @OS_QInit()
%9 = call i32 (...) @OS_InitTaskIdle()
%10 = call i32 (...) @OS_InitTaskStat()
%11 = call i32 (...) @OSTmr_Init()
%12 = call i32 (...) @OSInitHookEnd()
%13 = call i32 (...) @OSDebugInit()
ret void
}

LLVM IR (-O2):
define void @OSInit() {
%1 = tail call i32 (...) @OSInitHookBegin()
%2 = tail call i32 (...) @OS_InitMisc()
%3 = tail call i32 (...) @OS_InitRdyList()
%4 = tail call i32 (...) @OS_InitTCBList()
%5 = tail call i32 (...) @OS_InitEventList()
%6 = tail call i32 (...) @OS_FlagInit()
%7 = tail call i32 (...) @OS_MemInit()
%8 = tail call i32 (...) @OS_QInit()
%9 = tail call i32 (...) @OS_InitTaskIdle()
%10 = tail call i32 (...) @OS_InitTaskStat()
%11 = tail call i32 (...) @OSTmr_Init()
%12 = tail call i32 (...) @OSInitHookEnd()
%13 = tail call i32 (...) @OSDebugInit()
ret void
}