#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*/ exit(int);
int /*<<< orphan*/ printf(char *);
void help() {
  printf("\n*****************************\n");
  printf("Help Screen:\n");
  printf("\tSndplay\n");
  printf("*****************************\n");
  printf("\tSupported Switches:");
  printf("-h (help), -w (output wav file instead of cs229), \n\t-o filename "
         "(output to specified filename, otherwise stdout)");
  printf("--mute n (mutes the instrument number n), --bits n (specify the "
         "bitdepth), \n\t--sr n (sets the samplerate to n)");
  printf("\n\tSndplay takes a .abc229 file in as a command line argument (ONLY "
         "ONE) and creates a sound file conforming to those specs.\n");
  printf("\tEnsure all files are in the same directory if using relative path, "
         "otherwise use absolute.\n");
  printf("\tThis program will exit after writing the new sound file conforming "
         "to the user specified .abc229 file.\n");
  printf("\tThis program supports writing to stdout (by not using the -o "
         "switch) but does not read from stdin.\n");
  printf("\nPlease view the README file for more detailed "
         "information.\nWritten by Michael Johnson.\n\n");
  printf("\n*****************************\n\n");
  exit(1);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4b(%rip),%rdi
call   1030 <printf@plt>
lea    0xfae(%rip),%rdi
call   1030 <printf@plt>
lea    0x101f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1070(%rip),%rdi
call   1030 <printf@plt>
lea    0x10cd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1126(%rip),%rdi
call   1030 <printf@plt>
lea    0x1174(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xfbd(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd1(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9a(%rip),%rdi
call   1030 <puts@plt>
lea    0xe98(%rip),%rdi
call   1040 <printf@plt>
lea    0xea1(%rip),%rdi
call   1040 <printf@plt>
lea    0xf06(%rip),%rdi
call   1040 <printf@plt>
lea    0xf9e(%rip),%rdi
call   1030 <puts@plt>
lea    0x100e(%rip),%rdi
call   1030 <puts@plt>
lea    0x105e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ba(%rip),%rdi
call   1030 <puts@plt>
lea    0x1112(%rip),%rdi
call   1030 <puts@plt>
lea    0x115f(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"\0A*****************************\0A\00"
@.str.1 = [14 x i8] c"Help Screen:\0A\00"
@.str.2 = [10 x i8] c"\09Sndplay\0A\00"
@.str.3 = [31 x i8] c"*****************************\0A\00"
@.str.4 = [21 x i8] c"\09Supported Switches:\00"
@.str.5 = [113 x i8] c"-h (help), -w (output wav file instead of cs229), \0A\09-o filename (output to specified filename, otherwise stdout)\00"
@.str.6 = [111 x i8] c"--mute n (mutes the instrument number n), --bits n (specify the bitdepth), \0A\09--sr n (sets the samplerate to n)\00"
@.str.7 = [125 x i8] c"\0A\09Sndplay takes a .abc229 file in as a command line argument (ONLY ONE) and creates a sound file conforming to those specs.\0A\00"
@.str.8 = [93 x i8] c"\09Ensure all files are in the same directory if using relative path, otherwise use absolute.\0A\00"
@.str.9 = [105 x i8] c"\09This program will exit after writing the new sound file conforming to the user specified .abc229 file.\0A\00"
@.str.10 = [101 x i8] c"\09This program supports writing to stdout (by not using the -o switch) but does not read from stdin.\0A\00"
@.str.11 = [90 x i8] c"\0APlease view the README file for more detailed information.\0AWritten by Michael Johnson.\0A\0A\00"
@.str.12 = [33 x i8] c"\0A*****************************\0A\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([125 x i8], [125 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str.4 = [21 x i8] c"\09Supported Switches:\00"
@.str.5 = [113 x i8] c"-h (help), -w (output wav file instead of cs229), \0A\09-o filename (output to specified filename, otherwise stdout)\00"
@.str.6 = [111 x i8] c"--mute n (mutes the instrument number n), --bits n (specify the bitdepth), \0A\09--sr n (sets the samplerate to n)\00"
@str = [31 x i8] c"\0A*****************************\00"
@str.13 = [13 x i8] c"Help Screen:\00"
@str.14 = [9 x i8] c"\09Sndplay\00"
@str.15 = [30 x i8] c"*****************************\00"
@str.16 = [124 x i8] c"\0A\09Sndplay takes a .abc229 file in as a command line argument (ONLY ONE) and creates a sound file conforming to those specs.\00"
@str.17 = [92 x i8] c"\09Ensure all files are in the same directory if using relative path, otherwise use absolute.\00"
@str.18 = [104 x i8] c"\09This program will exit after writing the new sound file conforming to the user specified .abc229 file.\00"
@str.19 = [100 x i8] c"\09This program supports writing to stdout (by not using the -o switch) but does not read from stdin.\00"
@str.20 = [89 x i8] c"\0APlease view the README file for more detailed information.\0AWritten by Michael Johnson.\0A\00"
@str.21 = [32 x i8] c"\0A*****************************\0A\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([113 x i8], [113 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([111 x i8], [111 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([124 x i8], [124 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.21, i64 0, i64 0))
%14 = tail call i32 @exit(i32 1)
unreachable
}