#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*/ puts(char *);
void print_help(void) {
  puts("mksd v.1.0 (c) 50m30n3 2011");
  puts("USAGE: mksd -m device -c channel -i inputfile -o outputfile action");
  puts("Options:");
  puts("\t-h\tDisplay help");
  puts("\t-v\tDisplay version");
  puts("\t-m dev\tSet midi device\t\t\t\t/dev/midi");
  puts("\t-c chan\tSet midi channel\t\t\t1");
  puts("\t-i file\tSet input filename (\"-\" for stdin)\t-");
  puts("\t-o file\tSet output filename (\"-\" for stdout)\t-");
  puts("\t-n\tDon't check replies of device during upload");
  puts("Actions:");
  puts("\t-I\tIdentify device");
  puts("\t-d\tDownload current program");
  puts("\t-u\tUpload program to device");
  puts("\t-t\tShow text info about patch");
  puts("\t-r name\tRename a patch (max 12 chars)");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf29(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf36(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf61(%rip),%rdi
call   1030 <puts@plt>
lea    0xf83(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe1(%rip),%rdi
call   1030 <puts@plt>
lea    0xff2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1005(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf31(%rip),%rdi
call   1030 <puts@plt>
lea    0xf39(%rip),%rdi
call   1030 <puts@plt>
lea    0xf52(%rip),%rdi
call   1030 <puts@plt>
lea    0xf64(%rip),%rdi
call   1030 <puts@plt>
lea    0xf86(%rip),%rdi
call   1030 <puts@plt>
lea    0xfaa(%rip),%rdi
call   1030 <puts@plt>
lea    0xfce(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd3(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe4(%rip),%rdi
call   1030 <puts@plt>
lea    0xff5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1008(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"mksd v.1.0 (c) 50m30n3 2011\00"
@.str.1 = [67 x i8] c"USAGE: mksd -m device -c channel -i inputfile -o outputfile action\00"
@.str.2 = [9 x i8] c"Options:\00"
@.str.3 = [17 x i8] c"\09-h\09Display help\00"
@.str.4 = [20 x i8] c"\09-v\09Display version\00"
@.str.5 = [37 x i8] c"\09-m dev\09Set midi device\09\09\09\09/dev/midi\00"
@.str.6 = [30 x i8] c"\09-c chan\09Set midi channel\09\09\091\00"
@.str.7 = [46 x i8] c"\09-i file\09Set input filename (\22-\22 for stdin)\09-\00"
@.str.8 = [48 x i8] c"\09-o file\09Set output filename (\22-\22 for stdout)\09-\00"
@.str.9 = [48 x i8] c"\09-n\09Don't check replies of device during upload\00"
@.str.10 = [9 x i8] c"Actions:\00"
@.str.11 = [20 x i8] c"\09-I\09Identify device\00"
@.str.12 = [29 x i8] c"\09-d\09Download current program\00"
@.str.13 = [29 x i8] c"\09-u\09Upload program to device\00"
@.str.14 = [31 x i8] c"\09-t\09Show text info about patch\00"
@.str.15 = [39 x i8] c"\09-r name\09Rename a patch (max 12 chars)\00"
define void @print_help() {
%1 = call i32 @puts(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"mksd v.1.0 (c) 50m30n3 2011\00"
@.str.1 = [67 x i8] c"USAGE: mksd -m device -c channel -i inputfile -o outputfile action\00"
@.str.2 = [9 x i8] c"Options:\00"
@.str.3 = [17 x i8] c"\09-h\09Display help\00"
@.str.4 = [20 x i8] c"\09-v\09Display version\00"
@.str.5 = [37 x i8] c"\09-m dev\09Set midi device\09\09\09\09/dev/midi\00"
@.str.6 = [30 x i8] c"\09-c chan\09Set midi channel\09\09\091\00"
@.str.7 = [46 x i8] c"\09-i file\09Set input filename (\22-\22 for stdin)\09-\00"
@.str.8 = [48 x i8] c"\09-o file\09Set output filename (\22-\22 for stdout)\09-\00"
@.str.9 = [48 x i8] c"\09-n\09Don't check replies of device during upload\00"
@.str.10 = [9 x i8] c"Actions:\00"
@.str.11 = [20 x i8] c"\09-I\09Identify device\00"
@.str.12 = [29 x i8] c"\09-d\09Download current program\00"
@.str.13 = [29 x i8] c"\09-u\09Upload program to device\00"
@.str.14 = [31 x i8] c"\09-t\09Show text info about patch\00"
@.str.15 = [39 x i8] c"\09-r name\09Rename a patch (max 12 chars)\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0))
ret void
}