#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*/ printf(char *, ...);
void help(char *progname) {
  printf("Usage: %s [OPTION] [DEVICE]\n", progname);
  printf("USB HID Monitor Control Utility\n\n");
  printf(
      "DEVICE is hiddevN device (usually /dev/hiddevN or /dev/usb/hiddevN\n");
  printf("If DEVICE is omitted, first USB monitor found is assumed.\n");
  printf("Use '-l' option to find all DEVICEs automatically.\n");
  printf("\nAvailable OPTIONs:\n");
  printf("  -g, --get=TYPE,NUMBER\t\tget value of control NUMBER\n");
  printf("        \t\t\t(TYPE=F for FEATURE or I for INPUT)\n");
  printf(
      "  -s, --set=TYPE,NUMBER=VALUE\tset value of control NUMBER to VALUE\n");
  printf("        \t\t\t(TYPE=F for FEATURE or O for OUTPUT)\n");
  printf("  -c, --check\t\t\tcheck if DEVICE is an USB HID monitor (for udev "
         "use)\n");
  printf("  -h, --help\t\t\tdisplay this help and exit\n");
  printf("  -l, --list\t\t\tlist all USB monitors and their controls\n");
  printf("  -v, --verbose\t\t\tbe verbose\n");
  printf("  -V, --version\t\t\tdisplay version information and exit\n");
  printf("\nNumbers can be specified in decimal or hexadecimal (prefixed by "
         "'0x').\n");
  printf("\nExamples:\n");
  printf("  usbmonctl -s O,0x01,0,0=1\t\tdegauss\n");
  printf("  usbmonctl -g F,16\t\tget current brightness value\n");
  printf("  usbmonctl -s F,0x12=10\tset contrast to 10\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x100c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1067(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1084(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10af(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10bf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1124(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1122(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x113a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x115f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf85(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1010(%rip),%rdi
call   1030 <puts@plt>
lea    0x1034(%rip),%rdi
call   1030 <puts@plt>
lea    0x106d(%rip),%rdi
call   1030 <puts@plt>
lea    0x108b(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b7(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c8(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f3(%rip),%rdi
call   1030 <puts@plt>
lea    0x112f(%rip),%rdi
call   1030 <puts@plt>
lea    0x112e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1147(%rip),%rdi
call   1030 <puts@plt>
lea    0x116d(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Usage: %s [OPTION] [DEVICE]\0A\00"
@.str.1 = [34 x i8] c"USB HID Monitor Control Utility\0A\0A\00"
@.str.2 = [68 x i8] c"DEVICE is hiddevN device (usually /dev/hiddevN or /dev/usb/hiddevN\0A\00"
@.str.3 = [59 x i8] c"If DEVICE is omitted, first USB monitor found is assumed.\0A\00"
@.str.4 = [52 x i8] c"Use '-l' option to find all DEVICEs automatically.\0A\00"
@.str.5 = [21 x i8] c"\0AAvailable OPTIONs:\0A\00"
@.str.6 = [54 x i8] c" -g, --get=TYPE,NUMBER\09\09get value of control NUMBER\0A\00"
@.str.7 = [48 x i8] c" \09\09\09(TYPE=F for FEATURE or I for INPUT)\0A\00"
@.str.8 = [68 x i8] c" -s, --set=TYPE,NUMBER=VALUE\09set value of control NUMBER to VALUE\0A\00"
@.str.9 = [49 x i8] c" \09\09\09(TYPE=F for FEATURE or O for OUTPUT)\0A\00"
@.str.10 = [70 x i8] c" -c, --check\09\09\09check if DEVICE is an USB HID monitor (for udev use)\0A\00"
@.str.11 = [43 x i8] c" -h, --help\09\09\09display this help and exit\0A\00"
@.str.12 = [57 x i8] c" -l, --list\09\09\09list all USB monitors and their controls\0A\00"
@.str.13 = [30 x i8] c" -v, --verbose\09\09\09be verbose\0A\00"
@.str.14 = [56 x i8] c" -V, --version\09\09\09display version information and exit\0A\00"
@.str.15 = [73 x i8] c"\0ANumbers can be specified in decimal or hexadecimal (prefixed by '0x').\0A\00"
@.str.16 = [12 x i8] c"\0AExamples:\0A\00"
@.str.17 = [38 x i8] c" usbmonctl -s O,0x01,0,0=1\09\09degauss\0A\00"
@.str.18 = [51 x i8] c" usbmonctl -g F,16\09\09get current brightness value\0A\00"
@.str.19 = [45 x i8] c" usbmonctl -s F,0x12=10\09set contrast to 10\0A\00"
define void @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.17, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.18, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.19, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"Usage: %s [OPTION] [DEVICE]\0A\00"
@str = [33 x i8] c"USB HID Monitor Control Utility\0A\00"
@str.20 = [67 x i8] c"DEVICE is hiddevN device (usually /dev/hiddevN or /dev/usb/hiddevN\00"
@str.21 = [58 x i8] c"If DEVICE is omitted, first USB monitor found is assumed.\00"
@str.22 = [51 x i8] c"Use '-l' option to find all DEVICEs automatically.\00"
@str.23 = [20 x i8] c"\0AAvailable OPTIONs:\00"
@str.24 = [53 x i8] c" -g, --get=TYPE,NUMBER\09\09get value of control NUMBER\00"
@str.25 = [47 x i8] c" \09\09\09(TYPE=F for FEATURE or I for INPUT)\00"
@str.26 = [67 x i8] c" -s, --set=TYPE,NUMBER=VALUE\09set value of control NUMBER to VALUE\00"
@str.27 = [48 x i8] c" \09\09\09(TYPE=F for FEATURE or O for OUTPUT)\00"
@str.28 = [69 x i8] c" -c, --check\09\09\09check if DEVICE is an USB HID monitor (for udev use)\00"
@str.29 = [42 x i8] c" -h, --help\09\09\09display this help and exit\00"
@str.30 = [56 x i8] c" -l, --list\09\09\09list all USB monitors and their controls\00"
@str.31 = [29 x i8] c" -v, --verbose\09\09\09be verbose\00"
@str.32 = [55 x i8] c" -V, --version\09\09\09display version information and exit\00"
@str.33 = [72 x i8] c"\0ANumbers can be specified in decimal or hexadecimal (prefixed by '0x').\00"
@str.34 = [11 x i8] c"\0AExamples:\00"
@str.35 = [37 x i8] c" usbmonctl -s O,0x01,0,0=1\09\09degauss\00"
@str.36 = [50 x i8] c" usbmonctl -g F,16\09\09get current brightness value\00"
@str.37 = [44 x i8] c" usbmonctl -s F,0x12=10\09set contrast to 10\00"
define void @help(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.20, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.21, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.22, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.23, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.24, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.25, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.26, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.27, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.28, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.29, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.30, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.31, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.32, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.33, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.34, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.35, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.36, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.37, i64 0, i64 0))
ret void
}