#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ tfont_ary_show_list(int /*<<< orphan*/);
void ShowCaps(void) {
  fprintf(stdout,
          "======== Capabilities =====================================\n"
          "[[ COLOR ]]\n"
          " VGA16"
          " Pseudo"
          " True"
          "\n"
          "[[ BITS ]]\n"
          " 2bpp"
          " 4bpp(VGA)"
          " 8bpp"
          " 15bpp"
          " 16bpp"
          " 24bpp"
          " 32bpp"
          "\n");
  fprintf(stdout, "[[ FONTSET ]]\n");
  tfont_ary_show_list(stdout);
  fprintf(stdout, "[[ ENCODING ]]\n");
  fprintf(stdout, " ISO-2022-*");
  fprintf(stdout, " UTF-8");
  fprintf(stdout, " OTHER-CODING-SYSTEM");
  fprintf(stdout, "\n");
  fprintf(stdout, "[[ MISC ]]\n"
                  "\n");
}


x86 assembly (clang, -O0):
<ShowCaps>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0xf4b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
call   1040 <tfont_ary_show_list@plt>
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
lea    0xf37(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
lea    0xf32(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e53(%rip),%rax
mov    (%rax),%edi
lea    0xf29(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%edi
lea    0xf1b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e29(%rip),%rax
mov    (%rax),%edi
lea    0xf26(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
lea    0xf06(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ShowCaps>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf55(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
call   1040 <tfont_ary_show_list@plt>
mov    (%rbx),%edi
lea    0xf4f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf51(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf4f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf48(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf5a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf41(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [148 x i8] c"======== Capabilities =====================================\0A[[ COLOR ]]\0A VGA16 Pseudo True\0A[[ BITS ]]\0A 2bpp 4bpp(VGA) 8bpp 15bpp 16bpp 24bpp 32bpp\0A\00"
@.str.1 = [15 x i8] c"[[ FONTSET ]]\0A\00"
@.str.2 = [16 x i8] c"[[ ENCODING ]]\0A\00"
@.str.3 = [12 x i8] c" ISO-2022-*\00"
@.str.4 = [7 x i8] c" UTF-8\00"
@.str.5 = [21 x i8] c" OTHER-CODING-SYSTEM\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [13 x i8] c"[[ MISC ]]\0A\0A\00"
define void @ShowCaps() {
%1 = load i32, i32* @stdout
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = call i32 @tfont_ary_show_list(i32 %5)
%7 = load i32, i32* @stdout
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [148 x i8] c"======== Capabilities =====================================\0A[[ COLOR ]]\0A VGA16 Pseudo True\0A[[ BITS ]]\0A 2bpp 4bpp(VGA) 8bpp 15bpp 16bpp 24bpp 32bpp\0A\00"
@.str.1 = [15 x i8] c"[[ FONTSET ]]\0A\00"
@.str.2 = [16 x i8] c"[[ ENCODING ]]\0A\00"
@.str.3 = [12 x i8] c" ISO-2022-*\00"
@.str.4 = [7 x i8] c" UTF-8\00"
@.str.5 = [21 x i8] c" OTHER-CODING-SYSTEM\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [13 x i8] c"[[ MISC ]]\0A\0A\00"
define void @ShowCaps() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([148 x i8], [148 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = tail call i32 @tfont_ary_show_list(i32 %5)
%7 = load i32, i32* @stdout
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
ret void
}