#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void usage(char *name) {
  fprintf(stderr,
          "usage: %s [-aAbflrtvVwy] [-d path -d ...] "
          "[-u path -u ...]\n%15sdevice\n",
          name, "");
  fprintf(stderr, "  -a       automatically repair the filesystem\n");
  fprintf(stderr, "  -A       toggle Atari filesystem format\n");
  fprintf(stderr, "  -b       make read-only boot sector check\n");
  fprintf(stderr,
          "  -c N     use DOS codepage N to decode short file names (default: "
          "%d)\n",
          437);
  fprintf(stderr, "  -d path  drop that file\n");
  fprintf(stderr, "  -f       salvage unused chains to files\n");
  fprintf(stderr, "  -l       list path names\n");
  fprintf(stderr,
          "  -n       no-op, check non-interactively without changing\n");
  fprintf(stderr, "  -p       same as -a, for compat with other *fsck\n");
  fprintf(stderr, "  -r       interactively repair the filesystem\n");
  fprintf(stderr, "  -t       test for bad clusters\n");
  fprintf(stderr, "  -u path  try to undelete that (non-directory) file\n");
  fprintf(stderr, "  -v       verbose mode\n");
  fprintf(stderr, "  -V       perform a verification pass\n");
  fprintf(stderr, "  -w       write changes to disk immediately\n");
  fprintf(stderr, "  -y       same as -a, for compat with other *fsck\n");
  exit(2);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
lea    0xfcf(%rip),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
lea    0xee9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
lea    0xf02(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e5d(%rip),%rax
mov    (%rax),%edi
lea    0xf16(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e46(%rip),%rax
mov    (%rax),%edi
lea    0xf2c(%rip),%rsi
mov    $0x1b5,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%edi
lea    0xf58(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e13(%rip),%rax
mov    (%rax),%edi
lea    0xf5c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%edi
lea    0xf70(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2de5(%rip),%rax
mov    (%rax),%edi
lea    0xf75(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
lea    0xf9a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2db7(%rip),%rax
mov    (%rax),%edi
lea    0xfb7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
lea    0xfd0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d89(%rip),%rax
mov    (%rax),%edi
lea    0xfdb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d72(%rip),%rax
mov    (%rax),%edi
lea    0xffa(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edi
lea    0xffc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d44(%rip),%rax
mov    (%rax),%edi
lea    0x100d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d2d(%rip),%rax
mov    (%rax),%edi
lea    0x1024(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0x2,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rbx
mov    (%rbx),%edi
lea    0xecc(%rip),%rsi
lea    0xfdb(%rip),%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xefc(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf1c(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf37(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf54(%rip),%rsi
mov    $0x1b5,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf87(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf92(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfad(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfb9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfe5(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1009(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1029(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x103b(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1061(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x106a(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1082(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10a0(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x2,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [71 x i8] c"usage: %s [-aAbflrtvVwy] [-d path -d ...] [-u path -u ...]\0A%15sdevice\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [48 x i8] c" -a automatically repair the filesystem\0A\00"
@.str.3 = [43 x i8] c" -A toggle Atari filesystem format\0A\00"
@.str.4 = [45 x i8] c" -b make read-only boot sector check\0A\00"
@.str.5 = [72 x i8] c" -c N use DOS codepage N to decode short file names (default: %d)\0A\00"
@.str.6 = [27 x i8] c" -d path drop that file\0A\00"
@.str.7 = [43 x i8] c" -f salvage unused chains to files\0A\00"
@.str.8 = [28 x i8] c" -l list path names\0A\00"
@.str.9 = [60 x i8] c" -n no-op, check non-interactively without changing\0A\00"
@.str.10 = [52 x i8] c" -p same as -a, for compat with other *fsck\0A\00"
@.str.11 = [48 x i8] c" -r interactively repair the filesystem\0A\00"
@.str.12 = [34 x i8] c" -t test for bad clusters\0A\00"
@.str.13 = [54 x i8] c" -u path try to undelete that (non-directory) file\0A\00"
@.str.14 = [25 x i8] c" -v verbose mode\0A\00"
@.str.15 = [40 x i8] c" -V perform a verification pass\0A\00"
@.str.16 = [46 x i8] c" -w write changes to disk immediately\0A\00"
@.str.17 = [52 x i8] c" -y same as -a, for compat with other *fsck\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.5, i64 0, i64 0), i32 437)
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.13, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.15, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.16, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.17, i64 0, i64 0))
%38 = call i32 @exit(i32 2)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [71 x i8] c"usage: %s [-aAbflrtvVwy] [-d path -d ...] [-u path -u ...]\0A%15sdevice\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [48 x i8] c" -a automatically repair the filesystem\0A\00"
@.str.3 = [43 x i8] c" -A toggle Atari filesystem format\0A\00"
@.str.4 = [45 x i8] c" -b make read-only boot sector check\0A\00"
@.str.5 = [72 x i8] c" -c N use DOS codepage N to decode short file names (default: %d)\0A\00"
@.str.6 = [27 x i8] c" -d path drop that file\0A\00"
@.str.7 = [43 x i8] c" -f salvage unused chains to files\0A\00"
@.str.8 = [28 x i8] c" -l list path names\0A\00"
@.str.9 = [60 x i8] c" -n no-op, check non-interactively without changing\0A\00"
@.str.10 = [52 x i8] c" -p same as -a, for compat with other *fsck\0A\00"
@.str.11 = [48 x i8] c" -r interactively repair the filesystem\0A\00"
@.str.12 = [34 x i8] c" -t test for bad clusters\0A\00"
@.str.13 = [54 x i8] c" -u path try to undelete that (non-directory) file\0A\00"
@.str.14 = [25 x i8] c" -v verbose mode\0A\00"
@.str.15 = [40 x i8] c" -V perform a verification pass\0A\00"
@.str.16 = [46 x i8] c" -w write changes to disk immediately\0A\00"
@.str.17 = [52 x i8] c" -y same as -a, for compat with other *fsck\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.5, i64 0, i64 0), i32 437)
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.13, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.15, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.16, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.17, i64 0, i64 0))
%36 = tail call i32 @exit(i32 2)
unreachable
}