#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void usage(void) {
  printf("Usage:\n");
  printf("  -d, --device <dev> use device <dev> instead of /dev/video0\n");
  printf("  -h, --help         display this help message\n");
  printf("  -K, --passthrough <mode>\n");
  printf("                     set passthrough mode: 1 = on, 0 = off "
         "[IVTV_IOC_PASSTHROUGH_MODE]\n");
  printf("  --get-yuv-mode     display the current yuv mode\n");
  printf("  --set-yuv-mode mode=<mode>\n");
  printf("                     set the current yuv mode:\n");
  printf(
      "       		     mode 0: interlaced (top transmitted first)\n");
  printf(
      "       		     mode 1: interlaced (bottom transmitted first)\n");
  printf("       		     mode 2: progressive\n");
  printf("       		     mode 3: auto\n");
  printf("  --reset <mask>     reset the infrared receiver (1) or digitizer "
         "(2) [VIDIOC_INT_RESET]\n");
  printf("\n");
  printf("Expert options:\n");
  printf("  -D, --set-debug <level>\n");
  printf("                     set the module debug variable\n");
  printf("                        1/0x0001: warning\n");
  printf("                        2/0x0002: info\n");
  printf("                        4/0x0004: mailbox\n");
  printf("                        8/0x0008: ioctl\n");
  printf("                       16/0x0010: file\n");
  printf("                       32/0x0020: dma\n");
  printf("                       64/0x0040: irq\n");
  printf("                      128/0x0080: decoder\n");
  printf("                      256/0x0100: yuv\n");
  printf("                      512/0x0200: i2c\n");
  printf("                     1024/0x0400: high volume\n");
  printf("  -e, --get-debug    query the module debug variable\n");
  printf("  -I, --list-gpio\n");
  printf("                     show GPIO input/direction/output bits\n");
  printf("  -i, --set-gpio [dir=<dir>,]val=<val>\n");
  printf("                     set GPIO direction bits to <dir> and set output "
         "to <val>\n");
  exit(0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
call   1030 <printf@plt>
lea    0xf83(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbc(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe0(%rip),%rdi
call   1030 <printf@plt>
lea    0x100e(%rip),%rdi
call   1030 <printf@plt>
lea    0x103f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1056(%rip),%rdi
call   1030 <printf@plt>
lea    0x1066(%rip),%rdi
call   1030 <printf@plt>
lea    0x1019(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a8(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ad(%rip),%rdi
call   1030 <printf@plt>
lea    0x10bc(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1103(%rip),%rdi
call   1030 <printf@plt>
lea    0x111f(%rip),%rdi
call   1030 <printf@plt>
lea    0x113e(%rip),%rdi
call   1030 <printf@plt>
lea    0x115b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1177(%rip),%rdi
call   1030 <printf@plt>
lea    0x1192(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ad(%rip),%rdi
call   1030 <printf@plt>
lea    0x11cc(%rip),%rdi
call   1030 <printf@plt>
lea    0x11e7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1202(%rip),%rdi
call   1030 <printf@plt>
lea    0x1225(%rip),%rdi
call   1030 <printf@plt>
lea    0x124f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1256(%rip),%rdi
call   1030 <printf@plt>
lea    0x1286(%rip),%rdi
call   1030 <printf@plt>
lea    0x12a2(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
lea    0xec3(%rip),%rdi
call   1040 <puts@plt>
lea    0xef4(%rip),%rdi
call   1040 <puts@plt>
lea    0xf17(%rip),%rdi
call   1040 <puts@plt>
lea    0xf26(%rip),%rdi
call   1040 <puts@plt>
lea    0xf71(%rip),%rdi
call   1040 <puts@plt>
lea    0xf97(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1040 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1040 <puts@plt>
lea    0xff8(%rip),%rdi
call   1040 <puts@plt>
lea    0x1028(%rip),%rdi
call   1040 <puts@plt>
lea    0x103e(%rip),%rdi
call   1040 <puts@plt>
lea    0x104d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1090(%rip),%rdi
call   1040 <puts@plt>
lea    0x1094(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a2(%rip),%rdi
call   1040 <puts@plt>
lea    0x10c9(%rip),%rdi
call   1040 <puts@plt>
lea    0x10e7(%rip),%rdi
call   1040 <puts@plt>
lea    0x1102(%rip),%rdi
call   1040 <puts@plt>
lea    0x1120(%rip),%rdi
call   1040 <puts@plt>
lea    0x113c(%rip),%rdi
call   1040 <puts@plt>
lea    0x1157(%rip),%rdi
call   1040 <puts@plt>
lea    0x1171(%rip),%rdi
call   1040 <puts@plt>
lea    0x118b(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a9(%rip),%rdi
call   1040 <puts@plt>
lea    0x11c3(%rip),%rdi
call   1040 <puts@plt>
lea    0x11dd(%rip),%rdi
call   1040 <puts@plt>
lea    0x11ff(%rip),%rdi
call   1040 <puts@plt>
lea    0x1228(%rip),%rdi
call   1040 <puts@plt>
lea    0x122e(%rip),%rdi
call   1040 <puts@plt>
lea    0x125d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1278(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [62 x i8] c" -d, --device <dev> use device <dev> instead of /dev/video0\0A\00"
@.str.2 = [48 x i8] c" -h, --help display this help message\0A\00"
@.str.3 = [28 x i8] c" -K, --passthrough <mode>\0A\00"
@.str.4 = [88 x i8] c" set passthrough mode: 1 = on, 0 = off [IVTV_IOC_PASSTHROUGH_MODE]\0A\00"
@.str.5 = [51 x i8] c" --get-yuv-mode display the current yuv mode\0A\00"
@.str.6 = [30 x i8] c" --set-yuv-mode mode=<mode>\0A\00"
@.str.7 = [48 x i8] c" set the current yuv mode:\0A\00"
@.str.8 = [58 x i8] c" \09\09 mode 0: interlaced (top transmitted first)\0A\00"
@.str.9 = [61 x i8] c" \09\09 mode 1: interlaced (bottom transmitted first)\0A\00"
@.str.10 = [35 x i8] c" \09\09 mode 2: progressive\0A\00"
@.str.11 = [28 x i8] c" \09\09 mode 3: auto\0A\00"
@.str.12 = [90 x i8] c" --reset <mask> reset the infrared receiver (1) or digitizer (2) [VIDIOC_INT_RESET]\0A\00"
@.str.13 = [2 x i8] c"\0A\00"
@.str.14 = [17 x i8] c"Expert options:\0A\00"
@.str.15 = [27 x i8] c" -D, --set-debug <level>\0A\00"
@.str.16 = [52 x i8] c" set the module debug variable\0A\00"
@.str.17 = [43 x i8] c" 1/0x0001: warning\0A\00"
@.str.18 = [40 x i8] c" 2/0x0002: info\0A\00"
@.str.19 = [43 x i8] c" 4/0x0004: mailbox\0A\00"
@.str.20 = [41 x i8] c" 8/0x0008: ioctl\0A\00"
@.str.21 = [40 x i8] c" 16/0x0010: file\0A\00"
@.str.22 = [39 x i8] c" 32/0x0020: dma\0A\00"
@.str.23 = [39 x i8] c" 64/0x0040: irq\0A\00"
@.str.24 = [43 x i8] c" 128/0x0080: decoder\0A\00"
@.str.25 = [39 x i8] c" 256/0x0100: yuv\0A\00"
@.str.26 = [39 x i8] c" 512/0x0200: i2c\0A\00"
@.str.27 = [47 x i8] c" 1024/0x0400: high volume\0A\00"
@.str.28 = [54 x i8] c" -e, --get-debug query the module debug variable\0A\00"
@.str.29 = [19 x i8] c" -I, --list-gpio\0A\00"
@.str.30 = [60 x i8] c" show GPIO input/direction/output bits\0A\00"
@.str.31 = [40 x i8] c" -i, --set-gpio [dir=<dir>,]val=<val>\0A\00"
@.str.32 = [79 x i8] c" set GPIO direction bits to <dir> and set output to <val>\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.27, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.28, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.29, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.30, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.31, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.32, i64 0, i64 0))
%34 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [7 x i8] c"Usage:\00"
@str.33 = [61 x i8] c" -d, --device <dev> use device <dev> instead of /dev/video0\00"
@str.34 = [47 x i8] c" -h, --help display this help message\00"
@str.35 = [27 x i8] c" -K, --passthrough <mode>\00"
@str.36 = [87 x i8] c" set passthrough mode: 1 = on, 0 = off [IVTV_IOC_PASSTHROUGH_MODE]\00"
@str.37 = [50 x i8] c" --get-yuv-mode display the current yuv mode\00"
@str.38 = [29 x i8] c" --set-yuv-mode mode=<mode>\00"
@str.39 = [47 x i8] c" set the current yuv mode:\00"
@str.40 = [57 x i8] c" \09\09 mode 0: interlaced (top transmitted first)\00"
@str.41 = [60 x i8] c" \09\09 mode 1: interlaced (bottom transmitted first)\00"
@str.42 = [34 x i8] c" \09\09 mode 2: progressive\00"
@str.43 = [27 x i8] c" \09\09 mode 3: auto\00"
@str.44 = [89 x i8] c" --reset <mask> reset the infrared receiver (1) or digitizer (2) [VIDIOC_INT_RESET]\00"
@str.45 = [16 x i8] c"Expert options:\00"
@str.46 = [26 x i8] c" -D, --set-debug <level>\00"
@str.47 = [51 x i8] c" set the module debug variable\00"
@str.48 = [42 x i8] c" 1/0x0001: warning\00"
@str.49 = [39 x i8] c" 2/0x0002: info\00"
@str.50 = [42 x i8] c" 4/0x0004: mailbox\00"
@str.51 = [40 x i8] c" 8/0x0008: ioctl\00"
@str.52 = [39 x i8] c" 16/0x0010: file\00"
@str.53 = [38 x i8] c" 32/0x0020: dma\00"
@str.54 = [38 x i8] c" 64/0x0040: irq\00"
@str.55 = [42 x i8] c" 128/0x0080: decoder\00"
@str.56 = [38 x i8] c" 256/0x0100: yuv\00"
@str.57 = [38 x i8] c" 512/0x0200: i2c\00"
@str.58 = [46 x i8] c" 1024/0x0400: high volume\00"
@str.59 = [53 x i8] c" -e, --get-debug query the module debug variable\00"
@str.60 = [18 x i8] c" -I, --list-gpio\00"
@str.61 = [59 x i8] c" show GPIO input/direction/output bits\00"
@str.62 = [39 x i8] c" -i, --set-gpio [dir=<dir>,]val=<val>\00"
@str.63 = [78 x i8] c" set GPIO direction bits to <dir> and set output to <val>\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.33, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.34, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.35, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.36, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.37, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.38, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.39, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.40, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.41, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.42, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.43, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str.44, i64 0, i64 0))
%14 = tail call i32 @putchar(i32 10)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.45, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.46, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.47, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.48, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.49, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.50, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.51, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.52, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.53, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.54, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.55, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.56, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.57, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.58, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.59, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.60, i64 0, i64 0))
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.61, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.62, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.63, i64 0, i64 0))
%34 = tail call i32 @exit(i32 0)
unreachable
}