#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 *);
int /*<<< orphan*/ stderr;
void usage() {
  fprintf(stderr,
          "Usage: sg_readcap [--brief] [--help] [--hex] "
          "[--lba=LBA] [--long] [--16]\n"
          "                  [--pmi] [--raw] [--verbose] [--version] "
          "DEVICE\n"
          "  where:\n"
          "    --brief|-b      brief, two hex numbers: number of blocks "
          "and block size\n"
          "    --help|-h       print this usage message and exit\n"
          "    --hex|-H        output response in hexadecimal to stdout\n"
          "    --lba=LBA|-L LBA    yields the last block prior to (head "
          "movement) delay\n"
          "                        after LBA [in decimal (def: 0) "
          "valid with '--pmi']\n"
          "    --long|-l       use READ CAPACITY (16) cdb (def: use "
          "10 byte cdb)\n"
          "    --16            use READ CAPACITY (16) cdb (same as "
          "--long)\n"
          "    --pmi|-p        partial medium indicator (without this "
          "option shows\n"
          "                    total disk capacity)\n"
          "    --raw|-r        output response in binary to stdout\n"
          "    --verbose|-v    increase verbosity\n"
          "    --version|-V    print version string and exit\n\n"
          "Perform a SCSI READ CAPACITY (10 or 16) command\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [932 x i8] c"Usage: sg_readcap [--brief] [--help] [--hex] [--lba=LBA] [--long] [--16]\0A [--pmi] [--raw] [--verbose] [--version] DEVICE\0A where:\0A --brief|-b brief, two hex numbers: number of blocks and block size\0A --help|-h print this usage message and exit\0A --hex|-H output response in hexadecimal to stdout\0A --lba=LBA|-L LBA yields the last block prior to (head movement) delay\0A after LBA [in decimal (def: 0) valid with '--pmi']\0A --long|-l use READ CAPACITY (16) cdb (def: use 10 byte cdb)\0A --16 use READ CAPACITY (16) cdb (same as --long)\0A --pmi|-p partial medium indicator (without this option shows\0A total disk capacity)\0A --raw|-r output response in binary to stdout\0A --verbose|-v increase verbosity\0A --version|-V print version string and exit\0A\0APerform a SCSI READ CAPACITY (10 or 16) command\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([932 x i8], [932 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [932 x i8] c"Usage: sg_readcap [--brief] [--help] [--hex] [--lba=LBA] [--long] [--16]\0A [--pmi] [--raw] [--verbose] [--version] DEVICE\0A where:\0A --brief|-b brief, two hex numbers: number of blocks and block size\0A --help|-h print this usage message and exit\0A --hex|-H output response in hexadecimal to stdout\0A --lba=LBA|-L LBA yields the last block prior to (head movement) delay\0A after LBA [in decimal (def: 0) valid with '--pmi']\0A --long|-l use READ CAPACITY (16) cdb (def: use 10 byte cdb)\0A --16 use READ CAPACITY (16) cdb (same as --long)\0A --pmi|-p partial medium indicator (without this option shows\0A total disk capacity)\0A --raw|-r output response in binary to stdout\0A --verbose|-v increase verbosity\0A --version|-V print version string and exit\0A\0APerform a SCSI READ CAPACITY (10 or 16) command\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([932 x i8], [932 x i8]* @.str, i64 0, i64 0))
ret void
}