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


x86 assembly (clang, -O0):
<usage_old>:
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_old>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

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

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