#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*/ InitElementGraphicInfo();
int /*<<< orphan*/ InitElementSmallImages();
int /*<<< orphan*/ InitElementSpecialGraphicInfo();
int /*<<< orphan*/ InitFontGraphicInfo();
int /*<<< orphan*/ InitGadgets();
int /*<<< orphan*/ InitGraphicInfo();
int /*<<< orphan*/ InitGraphicInfo_EM();
int /*<<< orphan*/ InitScaledImages();
int /*<<< orphan*/ InitToons();
int /*<<< orphan*/ SetDoorBackgroundImage(int);
int /*<<< orphan*/ SetMainBackgroundImage(int);
int /*<<< orphan*/ print_timestamp_done(char *);
int /*<<< orphan*/ print_timestamp_init(char *);
int /*<<< orphan*/ print_timestamp_time(char *);
void ReinitializeGraphics() {
  print_timestamp_init("ReinitializeGraphics");
  InitGraphicInfo();
  print_timestamp_time("InitGraphicInfo");
  InitElementGraphicInfo();
  print_timestamp_time("InitElementGraphicInfo");
  InitElementSpecialGraphicInfo();
  print_timestamp_time("InitElementSpecialGraphicInfo");
  InitElementSmallImages();
  print_timestamp_time("InitElementSmallImages");
  InitScaledImages();
  print_timestamp_time("InitScaledImages");
  InitFontGraphicInfo();
  print_timestamp_time("InitFontGraphicInfo");
  InitGraphicInfo_EM();
  print_timestamp_time("InitGraphicInfo_EM");
  SetMainBackgroundImage(1749);
  print_timestamp_time("SetMainBackgroundImage");
  SetDoorBackgroundImage(1765);
  print_timestamp_time("SetDoorBackgroundImage");
  InitGadgets();
  print_timestamp_time("InitGadgets");
  InitToons();
  print_timestamp_time("InitToons");
  print_timestamp_done("ReinitializeGraphics");
}


x86 assembly (clang, -O0):
<ReinitializeGraphics>:
push   %rbp
mov    %rsp,%rbp
lea    0xe15(%rip),%rdi
call   1070 <print_timestamp_init@plt>
mov    $0x0,%al
call   1100 <InitGraphicInfo@plt>
lea    0xe17(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x0,%al
call   10a0 <InitElementGraphicInfo@plt>
lea    0xe14(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x0,%al
call   1080 <InitElementSpecialGraphicInfo@plt>
lea    0xe18(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x0,%al
call   10e0 <InitElementSmallImages@plt>
lea    0xe23(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x0,%al
call   1090 <InitScaledImages@plt>
lea    0xe27(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x0,%al
call   10b0 <InitFontGraphicInfo@plt>
lea    0xe25(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x0,%al
call   1060 <InitGraphicInfo_EM@plt>
lea    0xe26(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x6d5,%edi
call   10d0 <SetMainBackgroundImage@plt>
lea    0xe23(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x6e5,%edi
call   1030 <SetDoorBackgroundImage@plt>
lea    0xe24(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x0,%al
call   1040 <InitGadgets@plt>
lea    0xe28(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x0,%al
call   1050 <InitToons@plt>
lea    0xe21(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
lea    0xd32(%rip),%rdi
call   10c0 <print_timestamp_done@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ReinitializeGraphics>:
push   %rbx
lea    0xe18(%rip),%rbx
mov    %rbx,%rdi
call   1070 <print_timestamp_init@plt>
xor    %eax,%eax
call   1100 <InitGraphicInfo@plt>
lea    0xe17(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
xor    %eax,%eax
call   10a0 <InitElementGraphicInfo@plt>
lea    0xe14(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
xor    %eax,%eax
call   1080 <InitElementSpecialGraphicInfo@plt>
lea    0xe18(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
xor    %eax,%eax
call   10e0 <InitElementSmallImages@plt>
lea    0xe23(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
xor    %eax,%eax
call   1090 <InitScaledImages@plt>
lea    0xe27(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
xor    %eax,%eax
call   10b0 <InitFontGraphicInfo@plt>
lea    0xe25(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
xor    %eax,%eax
call   1060 <InitGraphicInfo_EM@plt>
lea    0xe26(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x6d5,%edi
call   10d0 <SetMainBackgroundImage@plt>
lea    0xe23(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    $0x6e5,%edi
call   1030 <SetDoorBackgroundImage@plt>
lea    0xe24(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
xor    %eax,%eax
call   1040 <InitGadgets@plt>
lea    0xe28(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
xor    %eax,%eax
call   1050 <InitToons@plt>
lea    0xe21(%rip),%rdi
call   10f0 <print_timestamp_time@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    10c0 <print_timestamp_done@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"ReinitializeGraphics\00"
@.str.1 = [16 x i8] c"InitGraphicInfo\00"
@.str.2 = [23 x i8] c"InitElementGraphicInfo\00"
@.str.3 = [30 x i8] c"InitElementSpecialGraphicInfo\00"
@.str.4 = [23 x i8] c"InitElementSmallImages\00"
@.str.5 = [17 x i8] c"InitScaledImages\00"
@.str.6 = [20 x i8] c"InitFontGraphicInfo\00"
@.str.7 = [19 x i8] c"InitGraphicInfo_EM\00"
@.str.8 = [23 x i8] c"SetMainBackgroundImage\00"
@.str.9 = [23 x i8] c"SetDoorBackgroundImage\00"
@.str.10 = [12 x i8] c"InitGadgets\00"
@.str.11 = [10 x i8] c"InitToons\00"
define void @ReinitializeGraphics() {
%1 = call i32 @print_timestamp_init(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @InitGraphicInfo()
%3 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @InitElementGraphicInfo()
%5 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 (...) @InitElementSpecialGraphicInfo()
%7 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (...) @InitElementSmallImages()
%9 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (...) @InitScaledImages()
%11 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (...) @InitFontGraphicInfo()
%13 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 (...) @InitGraphicInfo_EM()
%15 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 @SetMainBackgroundImage(i32 1749)
%17 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 @SetDoorBackgroundImage(i32 1765)
%19 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%20 = call i32 (...) @InitGadgets()
%21 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%22 = call i32 (...) @InitToons()
%23 = call i32 @print_timestamp_time(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%24 = call i32 @print_timestamp_done(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"ReinitializeGraphics\00"
@.str.1 = [16 x i8] c"InitGraphicInfo\00"
@.str.2 = [23 x i8] c"InitElementGraphicInfo\00"
@.str.3 = [30 x i8] c"InitElementSpecialGraphicInfo\00"
@.str.4 = [23 x i8] c"InitElementSmallImages\00"
@.str.5 = [17 x i8] c"InitScaledImages\00"
@.str.6 = [20 x i8] c"InitFontGraphicInfo\00"
@.str.7 = [19 x i8] c"InitGraphicInfo_EM\00"
@.str.8 = [23 x i8] c"SetMainBackgroundImage\00"
@.str.9 = [23 x i8] c"SetDoorBackgroundImage\00"
@.str.10 = [12 x i8] c"InitGadgets\00"
@.str.11 = [10 x i8] c"InitToons\00"
define void @ReinitializeGraphics() {
%1 = tail call i32 @print_timestamp_init(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @InitGraphicInfo()
%3 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (...) @InitElementGraphicInfo()
%5 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (...) @InitElementSpecialGraphicInfo()
%7 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 (...) @InitElementSmallImages()
%9 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 (...) @InitScaledImages()
%11 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%12 = tail call i32 (...) @InitFontGraphicInfo()
%13 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 (...) @InitGraphicInfo_EM()
%15 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%16 = tail call i32 @SetMainBackgroundImage(i32 1749)
%17 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0))
%18 = tail call i32 @SetDoorBackgroundImage(i32 1765)
%19 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%20 = tail call i32 (...) @InitGadgets()
%21 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%22 = tail call i32 (...) @InitToons()
%23 = tail call i32 @print_timestamp_time(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%24 = tail call i32 @print_timestamp_done(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret void
}