#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*/ printf(char *);
int /*<<< orphan*/ showTitle();
int /*<<< orphan*/ tiledOptions();
void showUsage() {
  showTitle();
  printf("Usage:\n");
  printf("\tTMX2BIN [options] tmxFilename\n");
  printf("where:\n");
  printf("\ttmxFilename\tinput TMX file\n");
  printf("options are:\n");
  printf("\t-v\tverbose execution\n");
  printf("\t-d\tdry run. Doesn't write output files\n");
  tiledOptions();
}


x86 assembly (clang, -O0):
<showUsage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <showTitle@plt>
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <tiledOptions@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showUsage>:
push   %rax
xor    %eax,%eax
call   1040 <showTitle@plt>
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
call   1030 <puts@plt>
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xeca(%rip),%rdi
call   1030 <puts@plt>
lea    0xeda(%rip),%rdi
call   1030 <puts@plt>
lea    0xedb(%rip),%rdi
call   1030 <puts@plt>
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <tiledOptions@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [32 x i8] c"\09TMX2BIN [options] tmxFilename\0A\00"
@.str.2 = [8 x i8] c"where:\0A\00"
@.str.3 = [29 x i8] c"\09tmxFilename\09input TMX file\0A\00"
@.str.4 = [14 x i8] c"options are:\0A\00"
@.str.5 = [23 x i8] c"\09-v\09verbose execution\0A\00"
@.str.6 = [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 ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 (...) @tiledOptions()
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"Usage:\00"
@str.7 = [31 x i8] c"\09TMX2BIN [options] tmxFilename\00"
@str.8 = [7 x i8] c"where:\00"
@str.9 = [28 x i8] c"\09tmxFilename\09input TMX file\00"
@str.10 = [13 x i8] c"options are:\00"
@str.11 = [22 x i8] c"\09-v\09verbose execution\00"
@str.12 = [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.7, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.9, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.10, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.11, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.12, i64 0, i64 0))
%9 = tail call i32 (...) @tiledOptions()
ret void
}