#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\n");
  printf("\tIMPORTANT: To merge channels in sndchan, sound files MUST have the "
         "same samplerate.\n");
  printf("\tALSO IMPORTANT: ALL FILES PASSED AS ARGUMENTS MUST HAVE PROPER "
         "EXTENSIONS (i.e. .wav or .cs229)\n");
  printf("\n*****************************\n");
  printf("\tSupported Switches:");
  printf("-h (help), -w (output wav file instead of cs229), \n\t-o filename "
         "(output to specified filename, otherwise stdout)\n\t-c n (n is only "
         "output that channel).\n");
  printf("\n\tSupported Arguments: Inputfile1, Inputfile2...Inputfilen  Will "
         "concat file1 -> file2...->filen\n\tSwitches must come before "
         "arguments!\n\tIf no arguments are listed, we will read from standard "
         "input.\n");
  printf("\tEnsure all files are in the same directory if using relative path, "
         "otherwise use absolute.\n\n");
  printf(
      "\tThis program will exit after writing the new sound file containing "
      "all channels of the given argument sound files combined into one.\n\n");
  printf("\tWARNING: If your output file only has 1 channel, most players will "
         "play that channel out of all channels. Also, if you use "
         "iTunes,\n\tit doesn't seem to want to play files with more than 2 "
         "channels.  Use another player.\n");
  printf("For more information please see the included README file.\n\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    0xeec(%rip),%rdi
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
call   1030 <printf@plt>
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf80(%rip),%rdi
call   1030 <printf@plt>
lea    0xf89(%rip),%rdi
call   1030 <printf@plt>
lea    0x1016(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d1(%rip),%rdi
call   1030 <printf@plt>
lea    0x1123(%rip),%rdi
call   1030 <printf@plt>
lea    0x119f(%rip),%rdi
call   1030 <printf@plt>
lea    0x126f(%rip),%rdi
call   1030 <printf@plt>
lea    0x12bc(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rbx
lea    0xfa1(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe8d(%rip),%rdi
call   1040 <printf@plt>
lea    0xf79(%rip),%rdi
call   1030 <puts@plt>
lea    0x1005(%rip),%rdi
call   1030 <puts@plt>
lea    0x10bf(%rip),%rdi
call   1030 <puts@plt>
lea    0x1110(%rip),%rdi
call   1030 <puts@plt>
lea    0x118b(%rip),%rdi
call   1030 <puts@plt>
lea    0x125a(%rip),%rdi
call   1030 <puts@plt>
lea    0x12a6(%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 = [15 x i8] c"Help Screen:\0A\0A\00"
@.str.2 = [86 x i8] c"\09IMPORTANT: To merge channels in sndchan, sound files MUST have the same samplerate.\0A\00"
@.str.3 = [98 x i8] c"\09ALSO IMPORTANT: ALL FILES PASSED AS ARGUMENTS MUST HAVE PROPER EXTENSIONS (i.e. .wav or .cs229)\0A\00"
@.str.4 = [21 x i8] c"\09Supported Switches:\00"
@.str.5 = [153 x i8] c"-h (help), -w (output wav file instead of cs229), \0A\09-o filename (output to specified filename, otherwise stdout)\0A\09-c n (n is only output that channel).\0A\00"
@.str.6 = [199 x i8] c"\0A\09Supported Arguments: Inputfile1, Inputfile2...Inputfilen Will concat file1 -> file2...->filen\0A\09Switches must come before arguments!\0A\09If no arguments are listed, we will read from standard input.\0A\00"
@.str.7 = [94 x i8] c"\09Ensure all files are in the same directory if using relative path, otherwise use absolute.\0A\0A\00"
@.str.8 = [136 x i8] c"\09This program will exit after writing the new sound file containing all channels of the given argument sound files combined into one.\0A\0A\00"
@.str.9 = [220 x i8] c"\09WARNING: If your output file only has 1 channel, most players will play that channel out of all channels. Also, if you use iTunes,\0A\09it doesn't seem to want to play files with more than 2 channels. Use another player.\0A\00"
@.str.10 = [89 x i8] c"For more information please see the included README file.\0A\0AWritten by Michael Johnson.\0A\0A\00"
@.str.11 = [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 ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([153 x i8], [153 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([199 x i8], [199 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([220 x i8], [220 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str.4 = [21 x i8] c"\09Supported Switches:\00"
@str.12 = [14 x i8] c"Help Screen:\0A\00"
@str.13 = [85 x i8] c"\09IMPORTANT: To merge channels in sndchan, sound files MUST have the same samplerate.\00"
@str.14 = [97 x i8] c"\09ALSO IMPORTANT: ALL FILES PASSED AS ARGUMENTS MUST HAVE PROPER EXTENSIONS (i.e. .wav or .cs229)\00"
@str.15 = [31 x i8] c"\0A*****************************\00"
@str.16 = [152 x i8] c"-h (help), -w (output wav file instead of cs229), \0A\09-o filename (output to specified filename, otherwise stdout)\0A\09-c n (n is only output that channel).\00"
@str.17 = [198 x i8] c"\0A\09Supported Arguments: Inputfile1, Inputfile2...Inputfilen Will concat file1 -> file2...->filen\0A\09Switches must come before arguments!\0A\09If no arguments are listed, we will read from standard input.\00"
@str.18 = [93 x i8] c"\09Ensure all files are in the same directory if using relative path, otherwise use absolute.\0A\00"
@str.19 = [135 x i8] c"\09This program will exit after writing the new sound file containing all channels of the given argument sound files combined into one.\0A\00"
@str.20 = [219 x i8] c"\09WARNING: If your output file only has 1 channel, most players will play that channel out of all channels. Also, if you use iTunes,\0A\09it doesn't seem to want to play files with more than 2 channels. Use another player.\00"
@str.21 = [88 x i8] c"For more information please see the included README file.\0A\0AWritten by Michael Johnson.\0A\00"
@str.22 = [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.15, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([152 x i8], [152 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([198 x i8], [198 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([135 x i8], [135 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([219 x i8], [219 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @exit(i32 1)
unreachable
}