#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,
      "adjust filesystem geometry for a NTFS partition"
      "\nUsage: %s [-h # -t #] [-s start] [-b] [-w] [-f] [-p] device"
      "\nwhere device points to an NTFS partition"
      "\n"
      "\nOptions:"
      "\n-w:\t\tWrite new start sector to the partition."
      "\n-h # -t #:\tSpecify number of heads and number of sectors per track"
      "\n\t\tIf omitted, determined via ioctl."
      "\n-s start:\tNew start sector to write."
      "\n\t\tIf omitted, determined via ioctl."
      "\n-b:\t\tProceed even if the specified device is not a"
      "\n\t\tpartition (e.g. a regular file)"
      "\n-f:\t\tForce the operation to occur even if device does not look"
      "\n\t\tlike a valid NTFS partition or values are equal."
      "\n-p:\t\tPrint debug information (values read, values requested etc.)"
      "\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:"
      "\n* 0 - success (values are correct, or changed successfully)"
      "\n* 1 - a change is needed, but -w was not specified"
      "\n* 2 - an error occured"
      "\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 = [936 x i8] c"adjust filesystem geometry for a NTFS partition\0AUsage: %s [-h # -t #] [-s start] [-b] [-w] [-f] [-p] device\0Awhere device points to an NTFS partition\0A\0AOptions:\0A-w:\09\09Write new start sector to the partition.\0A-h # -t #:\09Specify number of heads and number of sectors per track\0A\09\09If omitted, determined via ioctl.\0A-s start:\09New start sector to write.\0A\09\09If omitted, determined via ioctl.\0A-b:\09\09Proceed even if the specified device is not a\0A\09\09partition (e.g. a regular file)\0A-f:\09\09Force the operation to occur even if device does not look\0A\09\09like a valid NTFS partition or values are equal.\0A-p:\09\09Print debug information (values read, values requested etc.)\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:\0A* 0 - success (values are correct, or changed successfully)\0A* 1 - a change is needed, but -w was not specified\0A* 2 - an error occured\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 ([936 x i8], [936 x i8]* @.str, i64 0, i64 0), i8* %4)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [936 x i8] c"adjust filesystem geometry for a NTFS partition\0AUsage: %s [-h # -t #] [-s start] [-b] [-w] [-f] [-p] device\0Awhere device points to an NTFS partition\0A\0AOptions:\0A-w:\09\09Write new start sector to the partition.\0A-h # -t #:\09Specify number of heads and number of sectors per track\0A\09\09If omitted, determined via ioctl.\0A-s start:\09New start sector to write.\0A\09\09If omitted, determined via ioctl.\0A-b:\09\09Proceed even if the specified device is not a\0A\09\09partition (e.g. a regular file)\0A-f:\09\09Force the operation to occur even if device does not look\0A\09\09like a valid NTFS partition or values are equal.\0A-p:\09\09Print debug information (values read, values requested etc.)\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:\0A* 0 - success (values are correct, or changed successfully)\0A* 1 - a change is needed, but -w was not specified\0A* 2 - an error occured\0A\00"
define i32 @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([936 x i8], [936 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i32 0
}