#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 mix files in sndmix, 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)");
  printf("\n\tSupported Arguments: mult1, Inputfile1, mult2, Inputfile2... "
         "multn, Inputfilen  \n\tWill mix file1 -> file2...->filen with the "
         "specified multpliers\n\tSwitches must come before arguments!\n");
  printf("\tMult must be a value specified between -10 and 10, and Inputfile "
         "must be a valid file path.\n");
  printf("\tOnce all files are scaled with their given value (-10 to 10) they "
         "will be summed into a new sound file.\n\n");
  printf("\tIMPORTANT NOTE: If you chose a value of 0 to scale a file, it is "
         "basically muted since all samples are multiplied by zero.\n\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 argument files mixed into one.\n\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    0xf30(%rip),%rdi
call   1030 <printf@plt>
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf83(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1097(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e9(%rip),%rdi
call   1030 <printf@plt>
lea    0x1148(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ba(%rip),%rdi
call   1030 <printf@plt>
lea    0x120c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1269(%rip),%rdi
call   1030 <printf@plt>
lea    0x12b6(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rbx
lea    0x100c(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf3f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf41(%rip),%rdi
call   1030 <puts@plt>
lea    0xf84(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe8d(%rip),%rdi
call   1040 <printf@plt>
lea    0xe96(%rip),%rdi
call   1040 <printf@plt>
lea    0xfd8(%rip),%rdi
call   1030 <puts@plt>
lea    0x1086(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d7(%rip),%rdi
call   1030 <puts@plt>
lea    0x1135(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a6(%rip),%rdi
call   1030 <puts@plt>
lea    0x11f7(%rip),%rdi
call   1030 <puts@plt>
lea    0x1253(%rip),%rdi
call   1030 <puts@plt>
lea    0x129f(%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 = [80 x i8] c"\09IMPORTANT: To mix files in sndmix, 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 = [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 = [187 x i8] c"\0A\09Supported Arguments: mult1, Inputfile1, mult2, Inputfile2... multn, Inputfilen \0A\09Will mix file1 -> file2...->filen with the specified multpliers\0A\09Switches must come before arguments!\0A\00"
@.str.7 = [94 x i8] c"\09Mult must be a value specified between -10 and 10, and Inputfile must be a valid file path.\0A\00"
@.str.8 = [107 x i8] c"\09Once all files are scaled with their given value (-10 to 10) they will be summed into a new sound file.\0A\0A\00"
@.str.9 = [126 x i8] c"\09IMPORTANT NOTE: If you chose a value of 0 to scale a file, it is basically muted since all samples are multiplied by zero.\0A\0A\00"
@.str.10 = [94 x i8] c"\09Ensure all files are in the same directory if using relative path, otherwise use absolute.\0A\0A\00"
@.str.11 = [105 x i8] c"\09This program will exit after writing the new sound file containing all argument files mixed into one.\0A\0A\00"
@.str.12 = [89 x i8] c"For more information please see the included README file.\0A\0AWritten by Michael Johnson.\0A\0A\00"
@.str.13 = [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 ([80 x i8], [80 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 ([113 x i8], [113 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([187 x i8], [187 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 ([107 x i8], [107 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([126 x i8], [126 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%16 = 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.14 = [14 x i8] c"Help Screen:\0A\00"
@str.15 = [79 x i8] c"\09IMPORTANT: To mix files in sndmix, sound files MUST have the same samplerate.\00"
@str.16 = [97 x i8] c"\09ALSO IMPORTANT: ALL FILES PASSED AS ARGUMENTS MUST HAVE PROPER EXTENSIONS (i.e. .wav or .cs229)\00"
@str.17 = [31 x i8] c"\0A*****************************\00"
@str.18 = [186 x i8] c"\0A\09Supported Arguments: mult1, Inputfile1, mult2, Inputfile2... multn, Inputfilen \0A\09Will mix file1 -> file2...->filen with the specified multpliers\0A\09Switches must come before arguments!\00"
@str.19 = [93 x i8] c"\09Mult must be a value specified between -10 and 10, and Inputfile must be a valid file path.\00"
@str.20 = [106 x i8] c"\09Once all files are scaled with their given value (-10 to 10) they will be summed into a new sound file.\0A\00"
@str.21 = [125 x i8] c"\09IMPORTANT NOTE: If you chose a value of 0 to scale a file, it is basically muted since all samples are multiplied by zero.\0A\00"
@str.22 = [93 x i8] c"\09Ensure all files are in the same directory if using relative path, otherwise use absolute.\0A\00"
@str.23 = [104 x i8] c"\09This program will exit after writing the new sound file containing all argument files mixed into one.\0A\00"
@str.24 = [88 x i8] c"For more information please see the included README file.\0A\0AWritten by Michael Johnson.\0A\00"
@str.25 = [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.17, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.14, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.15, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.17, 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 @printf(i8* dereferenceable(1) getelementptr inbounds ([113 x i8], [113 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([186 x i8], [186 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([106 x i8], [106 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([125 x i8], [125 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.22, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str.23, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.24, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.25, i64 0, i64 0))
%16 = tail call i32 @exit(i32 1)
unreachable
}