#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*/ bitmapOptions();
int /*<<< orphan*/ charsetProcessorOptions();
int /*<<< orphan*/ nameTableProcessorOptions();
int /*<<< orphan*/ pngReaderOptions();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ showTitle();
void showUsage() {
  showTitle();
  printf("Usage:\n");
  printf("\tPNG2MSX [options] charset.png\n");
  printf("\tPNG2MSX [options] charset.png [extra.png ...]\n");
  printf("\tPNG2MSX [options] charset.png -n [screen.png ...]\n");
  printf("where:\n");
  printf("\tcharset.png\tinput PNG file\n");
  printf("\textra.png\tadditional input PNG files: extra charsets\n");
  printf("\tscreen.png\tadditional input PNG files: screens to map\n");
  printf("options are:\n");
  printf("\t-v\tverbose execution\n");
  printf("\t-d\tdry run. Doesn't write output files\n");
  pngReaderOptions();
  bitmapOptions();
  charsetProcessorOptions();
  nameTableProcessorOptions();
}


x86 assembly (clang, -O0):
<showUsage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <showTitle@plt>
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5b(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <pngReaderOptions@plt>
mov    $0x0,%al
call   1080 <bitmapOptions@plt>
mov    $0x0,%al
call   1050 <charsetProcessorOptions@plt>
mov    $0x0,%al
call   1040 <nameTableProcessorOptions@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showUsage>:
push   %rax
xor    %eax,%eax
call   1070 <showTitle@plt>
lea    0xe91(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8c(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xec2(%rip),%rdi
call   1030 <puts@plt>
lea    0xee9(%rip),%rdi
call   1030 <puts@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf54(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <pngReaderOptions@plt>
xor    %eax,%eax
call   1080 <bitmapOptions@plt>
xor    %eax,%eax
call   1050 <charsetProcessorOptions@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <nameTableProcessorOptions@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [32 x i8] c"\09PNG2MSX [options] charset.png\0A\00"
@.str.2 = [48 x i8] c"\09PNG2MSX [options] charset.png [extra.png ...]\0A\00"
@.str.3 = [52 x i8] c"\09PNG2MSX [options] charset.png -n [screen.png ...]\0A\00"
@.str.4 = [8 x i8] c"where:\0A\00"
@.str.5 = [29 x i8] c"\09charset.png\09input PNG file\0A\00"
@.str.6 = [55 x i8] c"\09extra.png\09additional input PNG files: extra charsets\0A\00"
@.str.7 = [56 x i8] c"\09screen.png\09additional input PNG files: screens to map\0A\00"
@.str.8 = [14 x i8] c"options are:\0A\00"
@.str.9 = [23 x i8] c"\09-v\09verbose execution\0A\00"
@.str.10 = [41 x i8] c"\09-d\09dry run. Doesn't write output files\0A\00"
define void @showUsage() {
%1 = call i32 (...) @showTitle()
%2 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 (...) @pngReaderOptions()
%14 = call i32 (...) @bitmapOptions()
%15 = call i32 (...) @charsetProcessorOptions()
%16 = call i32 (...) @nameTableProcessorOptions()
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"Usage:\00"
@str.11 = [31 x i8] c"\09PNG2MSX [options] charset.png\00"
@str.12 = [47 x i8] c"\09PNG2MSX [options] charset.png [extra.png ...]\00"
@str.13 = [51 x i8] c"\09PNG2MSX [options] charset.png -n [screen.png ...]\00"
@str.14 = [7 x i8] c"where:\00"
@str.15 = [28 x i8] c"\09charset.png\09input PNG file\00"
@str.16 = [54 x i8] c"\09extra.png\09additional input PNG files: extra charsets\00"
@str.17 = [55 x i8] c"\09screen.png\09additional input PNG files: screens to map\00"
@str.18 = [13 x i8] c"options are:\00"
@str.19 = [22 x i8] c"\09-v\09verbose execution\00"
@str.20 = [40 x i8] c"\09-d\09dry run. Doesn't write output files\00"
define void @showUsage() {
%1 = tail call i32 (...) @showTitle()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.11, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.12, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 (...) @pngReaderOptions()
%14 = tail call i32 (...) @bitmapOptions()
%15 = tail call i32 (...) @charsetProcessorOptions()
%16 = tail call i32 (...) @nameTableProcessorOptions()
ret void
}