#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 usage(char *argv[]) {
  printf("Nintendo DS Roms Trimmer ");
  printf("1.7");
  printf("\nCopyleft by\n");
  printf("Fortunato Ventre - vorione@gmail.com - http://www.voria.org\n\n");
  printf("USAGE: %s [OPTIONS] rom1 rom2 ...\n", argv[0]);
  printf("\nOPTIONS:\n");
  printf("  -b\t\tDo NOT preserve original rom(s) as backup.\n");
  printf("    \t\tThis option is only valid when the destination directory\n");
  printf("    \t\tis the same as the original one. Otherwise, it's ignored.\n");
  printf("  -d <dir>\tPut trimmed rom(s) in <dir> directory.\n");
  printf("  -h\t\tPrint this help.\n");
  printf("  -q\t\tDo not print rom statistics.\n");
  printf("  -s\t\tSimulate trim action. No real write will be performed.\n");
  printf("\nReleased under GPLv3 terms.\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xf08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1018(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
lea    0xefb(%rip),%rdi
call   1030 <puts@plt>
mov    (%rbx),%rsi
lea    0xebc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf1b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf71(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfed(%rip),%rdi
call   1030 <puts@plt>
lea    0x101e(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"Nintendo DS Roms Trimmer \00"
@.str.1 = [4 x i8] c"1.7\00"
@.str.2 = [14 x i8] c"\0ACopyleft by\0A\00"
@.str.3 = [62 x i8] c"Fortunato Ventre - vorione@gmail.com - http://www.voria.org\0A\0A\00"
@.str.4 = [35 x i8] c"USAGE: %s [OPTIONS] rom1 rom2 ...\0A\00"
@.str.5 = [11 x i8] c"\0AOPTIONS:\0A\00"
@.str.6 = [50 x i8] c" -b\09\09Do NOT preserve original rom(s) as backup.\0A\00"
@.str.7 = [64 x i8] c" \09\09This option is only valid when the destination directory\0A\00"
@.str.8 = [65 x i8] c" \09\09is the same as the original one. Otherwise, it's ignored.\0A\00"
@.str.9 = [51 x i8] c" -d <dir>\09Put trimmed rom(s) in <dir> directory.\0A\00"
@.str.10 = [24 x i8] c" -h\09\09Print this help.\0A\00"
@.str.11 = [36 x i8] c" -q\09\09Do not print rom statistics.\0A\00"
@.str.12 = [62 x i8] c" -s\09\09Simulate trim action. No real write will be performed.\0A\00"
@.str.13 = [30 x i8] c"\0AReleased under GPLv3 terms.\0A\00"
define void @usage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%7 = load i8**, i8*** %2
%8 = getelementptr inbounds i8*, i8** %7, i64 0
%9 = load i8*, i8** %8
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i8* %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"Nintendo DS Roms Trimmer \00"
@.str.1 = [4 x i8] c"1.7\00"
@.str.4 = [35 x i8] c"USAGE: %s [OPTIONS] rom1 rom2 ...\0A\00"
@str = [13 x i8] c"\0ACopyleft by\00"
@str.14 = [61 x i8] c"Fortunato Ventre - vorione@gmail.com - http://www.voria.org\0A\00"
@str.15 = [10 x i8] c"\0AOPTIONS:\00"
@str.16 = [49 x i8] c" -b\09\09Do NOT preserve original rom(s) as backup.\00"
@str.17 = [63 x i8] c" \09\09This option is only valid when the destination directory\00"
@str.18 = [64 x i8] c" \09\09is the same as the original one. Otherwise, it's ignored.\00"
@str.19 = [50 x i8] c" -d <dir>\09Put trimmed rom(s) in <dir> directory.\00"
@str.20 = [23 x i8] c" -h\09\09Print this help.\00"
@str.21 = [35 x i8] c" -q\09\09Do not print rom statistics.\00"
@str.22 = [61 x i8] c" -s\09\09Simulate trim action. No real write will be performed.\00"
@str.23 = [29 x i8] c"\0AReleased under GPLv3 terms.\00"
define void @usage(i8** nocapture %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.14, i64 0, i64 0))
%6 = load i8*, i8** %0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.15, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.16, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.17, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.18, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.19, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.20, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.21, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.22, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.23, i64 0, i64 0))
ret void
}