#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*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
int usage(char *progname) {
  fprintf(
      stderr,
      "ntfsreloc - adjust filesystem start sector of an NTFS partition"
      "\nUsage: %s [-s start] [-w] [-b] [-f] device"
      "\nwhere device points to an NTFS partition"
      "\n"
      "\nOptions:"
      "\n-w\n\tWrite new start sector to the partition."
      "\n-s start\n\tNew start sector to write.  If omitted, determined via "
      "ioctl."
      "\n\tMust be specified if -b option is used."
      "\n-b\n\tProceed even if the specified device is not a partition (e.g. a"
      "\n-b\n\tregular file)"
      "\n-f\n\tForce the operation to occur even if device does not look like "
      "a valid"
      "\n\tNTFS partition."
      "\n"
      "\nThis utility displays the current starting sector as defined by the"
      "\nthe filesystem.  No change will actually be made without the -w"
      "\noption."
      "\n"
      "\nExit status is 2 if an error occured, 1 if a change was made or is "
      "needed"
      "\nor 0 if the filesystem already has the correct values."
      "\n",
      progname);
  return 0;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rdx
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [766 x i8] c"ntfsreloc - adjust filesystem start sector of an NTFS partition\0AUsage: %s [-s start] [-w] [-b] [-f] device\0Awhere device points to an NTFS partition\0A\0AOptions:\0A-w\0A\09Write new start sector to the partition.\0A-s start\0A\09New start sector to write. If omitted, determined via ioctl.\0A\09Must be specified if -b option is used.\0A-b\0A\09Proceed even if the specified device is not a partition (e.g. a\0A-b\0A\09regular file)\0A-f\0A\09Force the operation to occur even if device does not look like a valid\0A\09NTFS partition.\0A\0AThis utility displays the current starting sector as defined by the\0Athe filesystem. No change will actually be made without the -w\0Aoption.\0A\0AExit status is 2 if an error occured, 1 if a change was made or is needed\0Aor 0 if the filesystem already has the correct values.\0A\00"
define i32 @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([766 x i8], [766 x i8]* @.str, i64 0, i64 0), i8* %4)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [766 x i8] c"ntfsreloc - adjust filesystem start sector of an NTFS partition\0AUsage: %s [-s start] [-w] [-b] [-f] device\0Awhere device points to an NTFS partition\0A\0AOptions:\0A-w\0A\09Write new start sector to the partition.\0A-s start\0A\09New start sector to write. If omitted, determined via ioctl.\0A\09Must be specified if -b option is used.\0A-b\0A\09Proceed even if the specified device is not a partition (e.g. a\0A-b\0A\09regular file)\0A-f\0A\09Force the operation to occur even if device does not look like a valid\0A\09NTFS partition.\0A\0AThis utility displays the current starting sector as defined by the\0Athe filesystem. No change will actually be made without the -w\0Aoption.\0A\0AExit status is 2 if an error occured, 1 if a change was made or is needed\0Aor 0 if the filesystem already has the correct values.\0A\00"
define i32 @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([766 x i8], [766 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i32 0
}