#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 syntax() {
  printf("Syntax: xboxdumper <list|dump <FATX filename> <output filename>> "
         "<XBOX image file>\n");
  printf(
      "Syntax: xboxdumper <create <XBOX image file> <partitionsize in MB>\n");
  printf("Syntax: xboxdumper <mkfs   <XBOX image file>\n");
  printf("Syntax: xboxdumper <cluster <XBOX image file> <sector number>\n");
  printf("Syntax: xboxdumper <listpartitions <XBOX image file>\n");
  printf("Syntax: xboxdumper <prepare <XBOX hdd dev> <partition type>\n");
  printf("Syntax: xboxdumper <preparefg <XBOX hdd dev> <partition type>\n");
  printf("Syntax: where partition type is value of 0, 1, 2 or 3\n");
  printf("Syntax: partition type 0: F partition is capped at 137Gb or less\n");
  printf("Syntax: partition type 1: F partition occupies all space\n");
  printf("Syntax: partition type 2: G partition occupies space after 137Gb\n");
  printf("Syntax: partition type 3: F and G partitions splits space evenly\n");
  printf(
      "Syntax: xboxdumper <customf <XBOX hdd dev> <f partition size in GB>\n");
  exit(1);
}


x86 assembly (clang, -O0):
<syntax>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
lea    0xf77(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1005(%rip),%rdi
call   1030 <printf@plt>
lea    0x1038(%rip),%rdi
call   1030 <printf@plt>
lea    0x1063(%rip),%rdi
call   1030 <printf@plt>
lea    0x1099(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c7(%rip),%rdi
call   1030 <printf@plt>
lea    0x10fd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1133(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<syntax>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf56(%rip),%rdi
call   1030 <puts@plt>
lea    0xf77(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa9(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1002(%rip),%rdi
call   1030 <puts@plt>
lea    0x1034(%rip),%rdi
call   1030 <puts@plt>
lea    0x105e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1093(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c0(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f5(%rip),%rdi
call   1030 <puts@plt>
lea    0x112a(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [84 x i8] c"Syntax: xboxdumper <list|dump <FATX filename> <output filename>> <XBOX image file>\0A\00"
@.str.1 = [68 x i8] c"Syntax: xboxdumper <create <XBOX image file> <partitionsize in MB>\0A\00"
@.str.2 = [46 x i8] c"Syntax: xboxdumper <mkfs <XBOX image file>\0A\00"
@.str.3 = [63 x i8] c"Syntax: xboxdumper <cluster <XBOX image file> <sector number>\0A\00"
@.str.4 = [54 x i8] c"Syntax: xboxdumper <listpartitions <XBOX image file>\0A\00"
@.str.5 = [61 x i8] c"Syntax: xboxdumper <prepare <XBOX hdd dev> <partition type>\0A\00"
@.str.6 = [63 x i8] c"Syntax: xboxdumper <preparefg <XBOX hdd dev> <partition type>\0A\00"
@.str.7 = [55 x i8] c"Syntax: where partition type is value of 0, 1, 2 or 3\0A\00"
@.str.8 = [66 x i8] c"Syntax: partition type 0: F partition is capped at 137Gb or less\0A\00"
@.str.9 = [58 x i8] c"Syntax: partition type 1: F partition occupies all space\0A\00"
@.str.10 = [66 x i8] c"Syntax: partition type 2: G partition occupies space after 137Gb\0A\00"
@.str.11 = [66 x i8] c"Syntax: partition type 3: F and G partitions splits space evenly\0A\00"
@.str.12 = [69 x i8] c"Syntax: xboxdumper <customf <XBOX hdd dev> <f partition size in GB>\0A\00"
define void @syntax() {
%1 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 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 ([66 x i8], [66 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [83 x i8] c"Syntax: xboxdumper <list|dump <FATX filename> <output filename>> <XBOX image file>\00"
@str.13 = [67 x i8] c"Syntax: xboxdumper <create <XBOX image file> <partitionsize in MB>\00"
@str.14 = [45 x i8] c"Syntax: xboxdumper <mkfs <XBOX image file>\00"
@str.15 = [62 x i8] c"Syntax: xboxdumper <cluster <XBOX image file> <sector number>\00"
@str.16 = [53 x i8] c"Syntax: xboxdumper <listpartitions <XBOX image file>\00"
@str.17 = [60 x i8] c"Syntax: xboxdumper <prepare <XBOX hdd dev> <partition type>\00"
@str.18 = [62 x i8] c"Syntax: xboxdumper <preparefg <XBOX hdd dev> <partition type>\00"
@str.19 = [54 x i8] c"Syntax: where partition type is value of 0, 1, 2 or 3\00"
@str.20 = [65 x i8] c"Syntax: partition type 0: F partition is capped at 137Gb or less\00"
@str.21 = [57 x i8] c"Syntax: partition type 1: F partition occupies all space\00"
@str.22 = [65 x i8] c"Syntax: partition type 2: G partition occupies space after 137Gb\00"
@str.23 = [65 x i8] c"Syntax: partition type 3: F and G partitions splits space evenly\00"
@str.24 = [68 x i8] c"Syntax: xboxdumper <customf <XBOX hdd dev> <f partition size in GB>\00"
define void @syntax() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.13, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.14, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 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 ([65 x i8], [65 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @exit(i32 1)
unreachable
}