#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*/ ServeDeckTable();
int /*<<< orphan*/ ServeHeaderTable(char *);
int /*<<< orphan*/ ServeSpacerTable();
int /*<<< orphan*/ ServeStatusTable();
int /*<<< orphan*/ ServeTrafficTable();
int /*<<< orphan*/ printf(char *);
void ServeBasePage(char *sSubHead) {
  printf("<tr align=\"center\"><td>\n");
  ServeHeaderTable(sSubHead);
  printf("</td></tr>\n");
  printf("<tr align=\"center\"><td>\n");
  ServeStatusTable();
  printf("</td></tr>\n");
  printf("<tr align=\"center\"><td>\n");
  ServeSpacerTable();
  printf("</td></tr>\n");
  printf("<tr align=\"center\"><td>\n");
  ServeDeckTable();
  printf("</td></tr>\n");
  printf("<tr align=\"center\"><td>\n");
  ServeSpacerTable();
  printf("</td></tr>\n");
  printf("<tr align=\"center\"><td>\n");
  ServeTrafficTable();
  printf("</td></tr>\n");
}


x86 assembly (clang, -O0):
<ServeBasePage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xe8d(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1070 <ServeHeaderTable@plt>
lea    0xe91(%rip),%rdi
call   1040 <printf@plt>
lea    0xe6c(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1080 <ServeStatusTable@plt>
lea    0xe72(%rip),%rdi
call   1040 <printf@plt>
lea    0xe4d(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <ServeSpacerTable@plt>
lea    0xe53(%rip),%rdi
call   1040 <printf@plt>
lea    0xe2e(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <ServeDeckTable@plt>
lea    0xe34(%rip),%rdi
call   1040 <printf@plt>
lea    0xe0f(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <ServeSpacerTable@plt>
lea    0xe15(%rip),%rdi
call   1040 <printf@plt>
lea    0xdf0(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <ServeTrafficTable@plt>
lea    0xdf6(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ServeBasePage>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xe92(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1070 <ServeHeaderTable@plt>
lea    0xe93(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <ServeStatusTable@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <ServeSpacerTable@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <ServeDeckTable@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <ServeSpacerTable@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <ServeTrafficTable@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"<tr align=\22center\22><td>\0A\00"
@.str.1 = [12 x i8] c"</td></tr>\0A\00"
define void @ServeBasePage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 @ServeHeaderTable(i8* %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @ServeStatusTable()
%9 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (...) @ServeSpacerTable()
%12 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (...) @ServeDeckTable()
%15 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%17 = call i32 (...) @ServeSpacerTable()
%18 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%20 = call i32 (...) @ServeTrafficTable()
%21 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str.11 = [24 x i8] c"<tr align=\22center\22><td>\00"
@str.12 = [11 x i8] c"</td></tr>\00"
define void @ServeBasePage(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.11, i64 0, i64 0))
%3 = tail call i32 @ServeHeaderTable(i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.12, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 (...) @ServeStatusTable()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.12, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.11, i64 0, i64 0))
%9 = tail call i32 (...) @ServeSpacerTable()
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.12, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.11, i64 0, i64 0))
%12 = tail call i32 (...) @ServeDeckTable()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.12, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.11, i64 0, i64 0))
%15 = tail call i32 (...) @ServeSpacerTable()
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.12, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.11, i64 0, i64 0))
%18 = tail call i32 (...) @ServeTrafficTable()
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.12, i64 0, i64 0))
ret void
}