#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(void) {
  printf("Usage: %s [-d MASK] -l INFILE\n"
         "       %s [-d MASK] -w SECTION INFILE OUTFILE\n\n",
         "lqs2mem", "lqs2mem");
  printf("List available sections in INFILE or extract SECTION from "
         "INFILE and write it\nto OUTFILE\n\n");
  printf("Options:\n");
  printf("  -d MASK     enable debug output\n");
  printf("  -l          list available sections in INFILE\n");
  printf("  -w SECTION  extract SECTION from INFILE and write it to "
         "OUTFILE\n\n");
  printf("Examples:\n");
  printf("  %s -l instance-00000d93.save\n", "lqs2mem");
  printf("  %s -w pc.ram instance-00000d93.save instance-00000d93.ram\n",
         "lqs2mem");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf2c(%rip),%rdx
mov    %rdx,%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd7(%rip),%rdi
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe2(%rip),%rdi
lea    0xeab(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
lea    0xed8(%rip),%rdi
lea    0xf1f(%rip),%rbx
mov    %rbx,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf70(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbe(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbb(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd1(%rip),%rdi
call   1030 <puts@plt>
lea    0xff5(%rip),%rdi
call   1030 <puts@plt>
lea    0x102c(%rip),%rdi
call   1030 <puts@plt>
lea    0xecb(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeda(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [78 x i8] c"Usage: %s [-d MASK] -l INFILE\0A %s [-d MASK] -w SECTION INFILE OUTFILE\0A\0A\00"
@.str.1 = [8 x i8] c"lqs2mem\00"
@.str.2 = [91 x i8] c"List available sections in INFILE or extract SECTION from INFILE and write it\0Ato OUTFILE\0A\0A\00"
@.str.3 = [10 x i8] c"Options:\0A\00"
@.str.4 = [35 x i8] c" -d MASK enable debug output\0A\00"
@.str.5 = [49 x i8] c" -l list available sections in INFILE\0A\00"
@.str.6 = [68 x i8] c" -w SECTION extract SECTION from INFILE and write it to OUTFILE\0A\0A\00"
@.str.7 = [11 x i8] c"Examples:\0A\00"
@.str.8 = [32 x i8] c" %s -l instance-00000d93.save\0A\00"
@.str.9 = [61 x i8] c" %s -w pc.ram instance-00000d93.save instance-00000d93.ram\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [78 x i8] c"Usage: %s [-d MASK] -l INFILE\0A %s [-d MASK] -w SECTION INFILE OUTFILE\0A\0A\00"
@.str.1 = [8 x i8] c"lqs2mem\00"
@.str.8 = [32 x i8] c" %s -l instance-00000d93.save\0A\00"
@.str.9 = [61 x i8] c" %s -w pc.ram instance-00000d93.save instance-00000d93.ram\0A\00"
@str = [90 x i8] c"List available sections in INFILE or extract SECTION from INFILE and write it\0Ato OUTFILE\0A\00"
@str.10 = [9 x i8] c"Options:\00"
@str.11 = [34 x i8] c" -d MASK enable debug output\00"
@str.12 = [48 x i8] c" -l list available sections in INFILE\00"
@str.13 = [67 x i8] c" -w SECTION extract SECTION from INFILE and write it to OUTFILE\0A\00"
@str.14 = [10 x i8] c"Examples:\00"
define void @usage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.10, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.11, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.12, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.13, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.14, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
ret void
}