#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 *);
void helpmsg(void) {
  printf("Syntax: agtout <options> <game name>\n");
  printf("Options:\n");
  printf("(all of these can be turned off by putting a - after the option)\n");
  printf("-v Verbose: equivalent to -dmia\n");
  printf("-i Print basic diagnostic information\n");
  printf("-d Print out dictionary\n");
  printf("-m Dump messages\n");
  printf("-o Try to avoid printing 'undefined' objects.\n");
  printf("-s Show all possible messages printed out by RandomMessage.\n");
  printf("-q Quick RandomMessage printout (only show actual arguments).\n");
  printf("-u Leave commands unsorted.\n");
  printf("-x Examine .DA1 file as it is read (implies -i).\n");
  printf("-a Interpret arguments to metacommands (implies -r-).\n");
  printf("-r Raw command out: don't disassemble metacommands (implies -a-)\n");
}


x86 assembly (clang, -O0):
<helpmsg>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
lea    0xf33(%rip),%rdi
call   1030 <printf@plt>
lea    0xf48(%rip),%rdi
call   1030 <printf@plt>
lea    0xf63(%rip),%rdi
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
call   1030 <printf@plt>
lea    0xf76(%rip),%rdi
call   1030 <printf@plt>
lea    0xf99(%rip),%rdi
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
call   1030 <printf@plt>
lea    0xffd(%rip),%rdi
call   1030 <printf@plt>
lea    0x100e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1034(%rip),%rdi
call   1030 <printf@plt>
lea    0x105f(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<helpmsg>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf01(%rip),%rdi
call   1030 <puts@plt>
lea    0xefe(%rip),%rdi
call   1030 <puts@plt>
lea    0xf33(%rip),%rdi
call   1030 <puts@plt>
lea    0xf47(%rip),%rdi
call   1030 <puts@plt>
lea    0xf61(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf72(%rip),%rdi
call   1030 <puts@plt>
lea    0xf94(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc4(%rip),%rdi
call   1030 <puts@plt>
lea    0xff6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1006(%rip),%rdi
call   1030 <puts@plt>
lea    0x102b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1055(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"Syntax: agtout <options> <game name>\0A\00"
@.str.1 = [10 x i8] c"Options:\0A\00"
@.str.2 = [66 x i8] c"(all of these can be turned off by putting a - after the option)\0A\00"
@.str.3 = [33 x i8] c"-v Verbose: equivalent to -dmia\0A\00"
@.str.4 = [39 x i8] c"-i Print basic diagnostic information\0A\00"
@.str.5 = [25 x i8] c"-d Print out dictionary\0A\00"
@.str.6 = [18 x i8] c"-m Dump messages\0A\00"
@.str.7 = [47 x i8] c"-o Try to avoid printing 'undefined' objects.\0A\00"
@.str.8 = [61 x i8] c"-s Show all possible messages printed out by RandomMessage.\0A\00"
@.str.9 = [63 x i8] c"-q Quick RandomMessage printout (only show actual arguments).\0A\00"
@.str.10 = [29 x i8] c"-u Leave commands unsorted.\0A\00"
@.str.11 = [50 x i8] c"-x Examine .DA1 file as it is read (implies -i).\0A\00"
@.str.12 = [55 x i8] c"-a Interpret arguments to metacommands (implies -r-).\0A\00"
@.str.13 = [66 x i8] c"-r Raw command out: don't disassemble metacommands (implies -a-)\0A\00"
define void @helpmsg() {
%1 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [37 x i8] c"Syntax: agtout <options> <game name>\00"
@str.14 = [9 x i8] c"Options:\00"
@str.15 = [65 x i8] c"(all of these can be turned off by putting a - after the option)\00"
@str.16 = [32 x i8] c"-v Verbose: equivalent to -dmia\00"
@str.17 = [38 x i8] c"-i Print basic diagnostic information\00"
@str.18 = [24 x i8] c"-d Print out dictionary\00"
@str.19 = [17 x i8] c"-m Dump messages\00"
@str.20 = [46 x i8] c"-o Try to avoid printing 'undefined' objects.\00"
@str.21 = [60 x i8] c"-s Show all possible messages printed out by RandomMessage.\00"
@str.22 = [62 x i8] c"-q Quick RandomMessage printout (only show actual arguments).\00"
@str.23 = [28 x i8] c"-u Leave commands unsorted.\00"
@str.24 = [49 x i8] c"-x Examine .DA1 file as it is read (implies -i).\00"
@str.25 = [54 x i8] c"-a Interpret arguments to metacommands (implies -r-).\00"
@str.26 = [65 x i8] c"-r Raw command out: don't disassemble metacommands (implies -a-)\00"
define void @helpmsg() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.14, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.15, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.26, i64 0, i64 0))
ret void
}