#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 usage(const char *argv0) {
  printf("Usage: %s [options] device\n", argv0);
  printf("Supported options:\n");
  printf("-c, --capture[=nframes]		Capture frames\n");
  printf("-d, --delay			Delay (in ms) before requeuing "
         "buffers\n");
  printf("-f, --format format		Set the video format\n");
  printf("-F, --file[=prefix]		Read/write frames from/to disk\n");
  printf("-h, --help			Show this help screen\n");
  printf("-i, --input input		Select the video input\n");
  printf("-l, --list-controls		List available controls\n");
  printf("-n, --nbufs n			Set the number of video buffers\n");
  printf("-p, --pause			Pause before starting the video "
         "stream\n");
  printf("-q, --quality n			MJPEG quality (0-100)\n");
  printf("-r, --get-control ctrl		Get control 'ctrl'\n");
  printf("-s, --size WxH			Set the frame size\n");
  printf("-t, --time-per-frame num/denom	Set the time per frame (eg. "
         "1/25 = 25 fps)\n");
  printf("-u, --userptr			Use the user pointers streaming "
         "method\n");
  printf("-w, --set-control 'ctrl value'	Set control 'ctrl' to "
         "'value'\n");
  printf("    --enum-formats		Enumerate formats\n");
  printf("    --enum-inputs		Enumerate inputs\n");
  printf("    --no-query			Don't query capabilities on "
         "open\n");
  printf("    --offset			User pointer buffer offset from page "
         "start\n");
  printf("    --requeue-last		Requeue the last buffers before "
         "streamoff\n");
  printf("    --skip n			Skip the first n frames\n");
  printf("    --sleep-forever		Sleep forever after configuring the "
         "device\n");
}


x86 assembly (clang, -O0):
<usage>:
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    0xee7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1012(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x104b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1062(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x109f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1112(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1129(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x114e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x117b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11ac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11c6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
lea    0xf06(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf75(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfaa(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0xfef(%rip),%rdi
call   1030 <puts@plt>
lea    0x1018(%rip),%rdi
call   1030 <puts@plt>
lea    0x1034(%rip),%rdi
call   1030 <puts@plt>
lea    0x1053(%rip),%rdi
call   1030 <puts@plt>
lea    0x106b(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1105(%rip),%rdi
call   1030 <puts@plt>
lea    0x111f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1137(%rip),%rdi
call   1030 <puts@plt>
lea    0x115d(%rip),%rdi
call   1030 <puts@plt>
lea    0x118b(%rip),%rdi
call   1030 <puts@plt>
lea    0x11bd(%rip),%rdi
call   1030 <puts@plt>
lea    0x11d8(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"Usage: %s [options] device\0A\00"
@.str.1 = [20 x i8] c"Supported options:\0A\00"
@.str.2 = [41 x i8] c"-c, --capture[=nframes]\09\09Capture frames\0A\00"
@.str.3 = [54 x i8] c"-d, --delay\09\09\09Delay (in ms) before requeuing buffers\0A\00"
@.str.4 = [43 x i8] c"-f, --format format\09\09Set the video format\0A\00"
@.str.5 = [53 x i8] c"-F, --file[=prefix]\09\09Read/write frames from/to disk\0A\00"
@.str.6 = [36 x i8] c"-h, --help\09\09\09Show this help screen\0A\00"
@.str.7 = [43 x i8] c"-i, --input input\09\09Select the video input\0A\00"
@.str.8 = [46 x i8] c"-l, --list-controls\09\09List available controls\0A\00"
@.str.9 = [49 x i8] c"-n, --nbufs n\09\09\09Set the number of video buffers\0A\00"
@.str.10 = [54 x i8] c"-p, --pause\09\09\09Pause before starting the video stream\0A\00"
@.str.11 = [41 x i8] c"-q, --quality n\09\09\09MJPEG quality (0-100)\0A\00"
@.str.12 = [44 x i8] c"-r, --get-control ctrl\09\09Get control 'ctrl'\0A\00"
@.str.13 = [37 x i8] c"-s, --size WxH\09\09\09Set the frame size\0A\00"
@.str.14 = [75 x i8] c"-t, --time-per-frame num/denom\09Set the time per frame (eg. 1/25 = 25 fps)\0A\00"
@.str.15 = [56 x i8] c"-u, --userptr\09\09\09Use the user pointers streaming method\0A\00"
@.str.16 = [62 x i8] c"-w, --set-control 'ctrl value'\09Set control 'ctrl' to 'value'\0A\00"
@.str.17 = [39 x i8] c" --enum-formats\09\09Enumerate formats\0A\00"
@.str.18 = [37 x i8] c" --enum-inputs\09\09Enumerate inputs\0A\00"
@.str.19 = [51 x i8] c" --no-query\09\09\09Don't query capabilities on open\0A\00"
@.str.20 = [59 x i8] c" --offset\09\09\09User pointer buffer offset from page start\0A\00"
@.str.21 = [63 x i8] c" --requeue-last\09\09Requeue the last buffers before streamoff\0A\00"
@.str.22 = [40 x i8] c" --skip n\09\09\09Skip the first n frames\0A\00"
@.str.23 = [65 x i8] c" --sleep-forever\09\09Sleep forever after configuring the device\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 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 ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.17, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.19, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.20, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.21, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.22, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.23, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"Usage: %s [options] device\0A\00"
@str = [19 x i8] c"Supported options:\00"
@str.24 = [40 x i8] c"-c, --capture[=nframes]\09\09Capture frames\00"
@str.25 = [53 x i8] c"-d, --delay\09\09\09Delay (in ms) before requeuing buffers\00"
@str.26 = [42 x i8] c"-f, --format format\09\09Set the video format\00"
@str.27 = [52 x i8] c"-F, --file[=prefix]\09\09Read/write frames from/to disk\00"
@str.28 = [35 x i8] c"-h, --help\09\09\09Show this help screen\00"
@str.29 = [42 x i8] c"-i, --input input\09\09Select the video input\00"
@str.30 = [45 x i8] c"-l, --list-controls\09\09List available controls\00"
@str.31 = [48 x i8] c"-n, --nbufs n\09\09\09Set the number of video buffers\00"
@str.32 = [53 x i8] c"-p, --pause\09\09\09Pause before starting the video stream\00"
@str.33 = [40 x i8] c"-q, --quality n\09\09\09MJPEG quality (0-100)\00"
@str.34 = [43 x i8] c"-r, --get-control ctrl\09\09Get control 'ctrl'\00"
@str.35 = [36 x i8] c"-s, --size WxH\09\09\09Set the frame size\00"
@str.36 = [74 x i8] c"-t, --time-per-frame num/denom\09Set the time per frame (eg. 1/25 = 25 fps)\00"
@str.37 = [55 x i8] c"-u, --userptr\09\09\09Use the user pointers streaming method\00"
@str.38 = [61 x i8] c"-w, --set-control 'ctrl value'\09Set control 'ctrl' to 'value'\00"
@str.39 = [38 x i8] c" --enum-formats\09\09Enumerate formats\00"
@str.40 = [36 x i8] c" --enum-inputs\09\09Enumerate inputs\00"
@str.41 = [50 x i8] c" --no-query\09\09\09Don't query capabilities on open\00"
@str.42 = [58 x i8] c" --offset\09\09\09User pointer buffer offset from page start\00"
@str.43 = [62 x i8] c" --requeue-last\09\09Requeue the last buffers before streamoff\00"
@str.44 = [39 x i8] c" --skip n\09\09\09Skip the first n frames\00"
@str.45 = [64 x i8] c" --sleep-forever\09\09Sleep forever after configuring the device\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.24, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.25, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.26, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.27, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.28, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.29, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.30, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.31, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.32, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.33, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.34, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.35, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.36, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.37, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.38, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.39, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.40, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.41, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.42, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.43, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.44, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.45, i64 0, i64 0))
ret void
}