#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("\nnhale v0.1\n");
  printf(
      "Yet another Nvidia rom editor.  Use this program at your own risk.\n\n");
  printf("Options:\n");
  printf("   --list\t\t\tList all detected nvidia cards and "
         "their\n\t\t\t\tindices.\n");
  printf("   -l, --load <filename>\tLoad input file.\n");
  printf("   -s, --save <filename>\tSave output file.\n");
  printf("   -i, --index <num>\t\tUse card at this index for all "
         "operations.\n\t\t\t\tFind indices with --list.\n");
  printf("   -n, --no-checksum\t\tDo not correct checksum on file save.\n");
  printf("   -p, --info\t\t\tPrint the rom information.\n");
  printf("   -r, --ram\t\t\tAttempt to shadow bios from Video Ram "
         "(PRAMIN)\n\t\t\t\tbefore PROM.\n");
  printf(
      "   -f, --force\t\t\tForce bios writing to unsupported architectures\n");
  printf("   -v, --verbose\t\tPrint verbose information.\n");
  printf("   -h, --help\t\t\tPrint this usage information.\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf54(%rip),%rdi
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
call   1030 <printf@plt>
lea    0xf93(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1018(%rip),%rdi
call   1030 <printf@plt>
lea    0x1038(%rip),%rdi
call   1030 <printf@plt>
lea    0x107c(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b2(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d4(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf20(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf53(%rip),%rdi
call   1030 <puts@plt>
lea    0xf71(%rip),%rdi
call   1030 <puts@plt>
lea    0xf90(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1013(%rip),%rdi
call   1030 <puts@plt>
lea    0x1032(%rip),%rdi
call   1030 <puts@plt>
lea    0x1075(%rip),%rdi
call   1030 <puts@plt>
lea    0x10aa(%rip),%rdi
call   1030 <puts@plt>
lea    0x10cb(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"\0Anhale v0.1\0A\00"
@.str.1 = [69 x i8] c"Yet another Nvidia rom editor. Use this program at your own risk.\0A\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [67 x i8] c" --list\09\09\09List all detected nvidia cards and their\0A\09\09\09\09indices.\0A\00"
@.str.4 = [43 x i8] c" -l, --load <filename>\09Load input file.\0A\00"
@.str.5 = [44 x i8] c" -s, --save <filename>\09Save output file.\0A\00"
@.str.6 = [96 x i8] c" -i, --index <num>\09\09Use card at this index for all operations.\0A\09\09\09\09Find indices with --list.\0A\00"
@.str.7 = [61 x i8] c" -n, --no-checksum\09\09Do not correct checksum on file save.\0A\00"
@.str.8 = [44 x i8] c" -p, --info\09\09\09Print the rom information.\0A\00"
@.str.9 = [80 x i8] c" -r, --ram\09\09\09Attempt to shadow bios from Video Ram (PRAMIN)\0A\09\09\09\09before PROM.\0A\00"
@.str.10 = [66 x i8] c" -f, --force\09\09\09Force bios writing to unsupported architectures\0A\00"
@.str.11 = [46 x i8] c" -v, --verbose\09\09Print verbose information.\0A\00"
@.str.12 = [48 x i8] c" -h, --help\09\09\09Print this usage information.\0A\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [12 x i8] c"\0Anhale v0.1\00"
@str.13 = [68 x i8] c"Yet another Nvidia rom editor. Use this program at your own risk.\0A\00"
@str.14 = [9 x i8] c"Options:\00"
@str.15 = [66 x i8] c" --list\09\09\09List all detected nvidia cards and their\0A\09\09\09\09indices.\00"
@str.16 = [42 x i8] c" -l, --load <filename>\09Load input file.\00"
@str.17 = [43 x i8] c" -s, --save <filename>\09Save output file.\00"
@str.18 = [95 x i8] c" -i, --index <num>\09\09Use card at this index for all operations.\0A\09\09\09\09Find indices with --list.\00"
@str.19 = [60 x i8] c" -n, --no-checksum\09\09Do not correct checksum on file save.\00"
@str.20 = [43 x i8] c" -p, --info\09\09\09Print the rom information.\00"
@str.21 = [79 x i8] c" -r, --ram\09\09\09Attempt to shadow bios from Video Ram (PRAMIN)\0A\09\09\09\09before PROM.\00"
@str.22 = [65 x i8] c" -f, --force\09\09\09Force bios writing to unsupported architectures\00"
@str.23 = [45 x i8] c" -v, --verbose\09\09Print verbose information.\00"
@str.24 = [47 x i8] c" -h, --help\09\09\09Print this usage information.\0A\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.24, i64 0, i64 0))
ret void
}