#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*/ ARPV4_Init();
int /*<<< orphan*/ ETH_Init();
int /*<<< orphan*/ IPV4_Init();
int /*<<< orphan*/ Network_WaitForLink();
int /*<<< orphan*/ TCP_Init();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ rtcc_init();
int /*<<< orphan*/ timersInit();
void Network_Init(void) {
  printf("eth init\r\n");
  ETH_Init();
  printf("arpv4 init\r\n");
  ARPV4_Init();
  printf("ipv4 init\r\n");
  IPV4_Init();
  printf("tcp init\r\n");
  TCP_Init();
  printf("rtcc init\r\n");
  rtcc_init();
  printf("wait for link\r\n");
  Network_WaitForLink();
  printf("timers init\r\n");
  timersInit();
}


x86 assembly (clang, -O0):
<Network_Init>:
push   %rbp
mov    %rsp,%rbp
lea    0xe75(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1070 <ETH_Init@plt>
lea    0xe6d(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1050 <ARPV4_Init@plt>
lea    0xe67(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   10a0 <IPV4_Init@plt>
lea    0xe60(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1080 <TCP_Init@plt>
lea    0xe58(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1030 <rtcc_init@plt>
lea    0xe51(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1040 <Network_WaitForLink@plt>
lea    0xe4e(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1090 <timersInit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Network_Init>:
push   %rax
lea    0xe78(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <ETH_Init@plt>
lea    0xe6f(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <ARPV4_Init@plt>
lea    0xe68(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   10a0 <IPV4_Init@plt>
lea    0xe60(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1080 <TCP_Init@plt>
lea    0xe57(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <rtcc_init@plt>
lea    0xe4f(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1050 <Network_WaitForLink@plt>
lea    0xe4b(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rcx
jmp    1090 <timersInit@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"eth init\0D\0A\00"
@.str.1 = [13 x i8] c"arpv4 init\0D\0A\00"
@.str.2 = [12 x i8] c"ipv4 init\0D\0A\00"
@.str.3 = [11 x i8] c"tcp init\0D\0A\00"
@.str.4 = [12 x i8] c"rtcc init\0D\0A\00"
@.str.5 = [16 x i8] c"wait for link\0D\0A\00"
@.str.6 = [14 x i8] c"timers init\0D\0A\00"
define void @Network_Init() {
%1 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @ETH_Init()
%3 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @ARPV4_Init()
%5 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 (...) @IPV4_Init()
%7 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (...) @TCP_Init()
%9 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (...) @rtcc_init()
%11 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (...) @Network_WaitForLink()
%13 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 (...) @timersInit()
ret void
}

LLVM IR (-O2):
@str = [10 x i8] c"eth init\0D\00"
@str.7 = [12 x i8] c"arpv4 init\0D\00"
@str.8 = [11 x i8] c"ipv4 init\0D\00"
@str.9 = [10 x i8] c"tcp init\0D\00"
@str.10 = [11 x i8] c"rtcc init\0D\00"
@str.11 = [15 x i8] c"wait for link\0D\00"
@str.12 = [13 x i8] c"timers init\0D\00"
define void @Network_Init() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @ETH_Init()
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 (...) @ARPV4_Init()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.8, i64 0, i64 0))
%6 = tail call i32 (...) @IPV4_Init()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.9, i64 0, i64 0))
%8 = tail call i32 (...) @TCP_Init()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.10, i64 0, i64 0))
%10 = tail call i32 (...) @rtcc_init()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.11, i64 0, i64 0))
%12 = tail call i32 (...) @Network_WaitForLink()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.12, i64 0, i64 0))
%14 = tail call i32 (...) @timersInit()
ret void
}