#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_unmap [--grpnum=GN] [--help] [--in=FILE] [--lba=LBA,LBA..]\n"
          "                [--num=NUM,NUM...] [--timeout=TO] [--verbose] "
          "[--version]\n"
          "                DEVICE\n"
          "  where:\n"
          "    --grpnum=GN|-g GN    GN is group number field (def: 0)\n"
          "    --help|-h            print out usage message\n"
          "    --in=FILE|-I FILE      read LBA, NUM pairs in ASCII hex "
          "from FILE\n"
          "                           ('-I -' means read from stdin)\n"
          "    --lba=LBA,LBA...|-l LBA,LBA...     LBA is the logical block "
          "address to\n"
          "                                       start NUM unmaps\n"
          "    --num=NUM,NUM...|-n NUM,NUM...     NUM is number of logical "
          "blocks to\n"
          "                                       unmap\n"
          "    --timeout=TO|-t TO    command timeout (unit: seconds) "
          "(def: 60)\n"
          "    --verbose|-v         increase verbosity\n"
          "    --version|-V         print version string and exit\n\n"
          "Perform a SCSI UNMAP command. LBA, NUM and the values in FILE "
          "are assumed\n"
          "to be decimal. Use '0x' prefix or 'h' suffix for hex values.\n"
          "Example to unmap LBA 0x12345:\n"
          "    sg_unmap --lba=0x12345 --num=1 /dev/sdb\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 = [1039 x i8] c"Usage: sg_unmap [--grpnum=GN] [--help] [--in=FILE] [--lba=LBA,LBA..]\0A [--num=NUM,NUM...] [--timeout=TO] [--verbose] [--version]\0A DEVICE\0A where:\0A --grpnum=GN|-g GN GN is group number field (def: 0)\0A --help|-h print out usage message\0A --in=FILE|-I FILE read LBA, NUM pairs in ASCII hex from FILE\0A ('-I -' means read from stdin)\0A --lba=LBA,LBA...|-l LBA,LBA... LBA is the logical block address to\0A start NUM unmaps\0A --num=NUM,NUM...|-n NUM,NUM... NUM is number of logical blocks to\0A unmap\0A --timeout=TO|-t TO command timeout (unit: seconds) (def: 60)\0A --verbose|-v increase verbosity\0A --version|-V print version string and exit\0A\0APerform a SCSI UNMAP command. LBA, NUM and the values in FILE are assumed\0Ato be decimal. Use '0x' prefix or 'h' suffix for hex values.\0AExample to unmap LBA 0x12345:\0A sg_unmap --lba=0x12345 --num=1 /dev/sdb\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1039 x i8], [1039 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [1039 x i8] c"Usage: sg_unmap [--grpnum=GN] [--help] [--in=FILE] [--lba=LBA,LBA..]\0A [--num=NUM,NUM...] [--timeout=TO] [--verbose] [--version]\0A DEVICE\0A where:\0A --grpnum=GN|-g GN GN is group number field (def: 0)\0A --help|-h print out usage message\0A --in=FILE|-I FILE read LBA, NUM pairs in ASCII hex from FILE\0A ('-I -' means read from stdin)\0A --lba=LBA,LBA...|-l LBA,LBA... LBA is the logical block address to\0A start NUM unmaps\0A --num=NUM,NUM...|-n NUM,NUM... NUM is number of logical blocks to\0A unmap\0A --timeout=TO|-t TO command timeout (unit: seconds) (def: 60)\0A --verbose|-v increase verbosity\0A --version|-V print version string and exit\0A\0APerform a SCSI UNMAP command. LBA, NUM and the values in FILE are assumed\0Ato be decimal. Use '0x' prefix or 'h' suffix for hex values.\0AExample to unmap LBA 0x12345:\0A sg_unmap --lba=0x12345 --num=1 /dev/sdb\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1039 x i8], [1039 x i8]* @.str, i64 0, i64 0))
ret void
}