#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 help(char *progname) {
  fprintf(stderr, "------------------------------------------------------------"
                  "-----------\n");
  fprintf(stderr,
          "Usage: %s\n"
          "  -i | --input \"<input-plugin.so> [parameters]\"\n"
          "  -o | --output \"<output-plugin.so> [parameters]\"\n"
          " [-h | --help ]........: display this help\n"
          " [-v | --version ].....: display version information\n"
          " [-b | --background]...: fork to the background, daemon mode\n",
          progname);
  fprintf(stderr, "------------------------------------------------------------"
                  "-----------\n");
  fprintf(stderr,
          "Example #1:\n"
          " To open an UVC webcam \"/dev/video1\" and stream it via HTTP:\n"
          "  %s -i \"input_uvc.so -d /dev/video1\" -o \"output_http.so\"\n",
          progname);
  fprintf(stderr, "------------------------------------------------------------"
                  "-----------\n");
  fprintf(stderr,
          "Example #2:\n"
          " To open an UVC webcam and stream via HTTP port 8090:\n"
          "  %s -i \"input_uvc.so\" -o \"output_http.so -p 8090\"\n",
          progname);
  fprintf(stderr, "------------------------------------------------------------"
                  "-----------\n");
  fprintf(stderr,
          "Example #3:\n"
          " To get help for a certain input plugin:\n"
          "  %s -i \"input_uvc.so --help\"\n",
          progname);
  fprintf(stderr, "------------------------------------------------------------"
                  "-----------\n");
  fprintf(
      stderr,
      "In case the modules (=plugins) can not be found:\n"
      " * Set the default search path for the modules with:\n"
      "   export LD_LIBRARY_PATH=/path/to/plugins,\n"
      " * or put the plugins into the \"/lib/\" or \"/usr/lib\" folder,\n"
      " * or instead of just providing the plugin file name, use a complete\n"
      "   path and filename:\n"
      "   %s -i \"/path/to/modules/input_uvc.so\"\n",
      progname);
  fprintf(stderr, "------------------------------------------------------------"
                  "-----------\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xf02(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
lea    0xea2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xfda(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
lea    0xe70(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e42(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x102c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e27(%rip),%rax
mov    (%rax),%edi
lea    0xe3e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e10(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x1070(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2df5(%rip),%rax
mov    (%rax),%edi
lea    0xe0c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0x1092(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%edi
lea    0xdda(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%rbx
mov    0x2ec1(%rip),%r15
mov    (%r15),%edi
lea    0xed7(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xf0c(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xff5(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x1058(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x10ad(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0x10e0(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    %r14,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [73 x i8] c"-----------------------------------------------------------------------\0A\00"
@.str.1 = [266 x i8] c"Usage: %s\0A -i | --input \22<input-plugin.so> [parameters]\22\0A -o | --output \22<output-plugin.so> [parameters]\22\0A [-h | --help ]........: display this help\0A [-v | --version ].....: display version information\0A [-b | --background]...: fork to the background, daemon mode\0A\00"
@.str.2 = [132 x i8] c"Example:\0A To open an UVC webcam \22/dev/video1\22 and stream it via HTTP:\0A %s -i \22input_uvc.so -d /dev/video1\22 -o \22output_http.so\22\0A\00"
@.str.3 = [118 x i8] c"Example:\0A To open an UVC webcam and stream via HTTP port 8090:\0A %s -i \22input_uvc.so\22 -o \22output_http.so -p 8090\22\0A\00"
@.str.4 = [84 x i8] c"Example:\0A To get help for a certain input plugin:\0A %s -i \22input_uvc.so --help\22\0A\00"
@.str.5 = [340 x i8] c"In case the modules (=plugins) can not be found:\0A * Set the default search path for the modules with:\0A export LD_LIBRARY_PATH=/path/to/plugins,\0A * or put the plugins into the \22/lib/\22 or \22/usr/lib\22 folder,\0A * or instead of just providing the plugin file name, use a complete\0A path and filename:\0A %s -i \22/path/to/modules/input_uvc.so\22\0A\00"
define void @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %2
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([266 x i8], [266 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @stderr
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = load i8*, i8** %2
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([132 x i8], [132 x i8]* @.str.2, i64 0, i64 0), i8* %11)
%13 = load i32, i32* @stderr
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = load i8*, i8** %2
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([118 x i8], [118 x i8]* @.str.3, i64 0, i64 0), i8* %16)
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = load i8*, i8** %2
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.4, i64 0, i64 0), i8* %21)
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = load i8*, i8** %2
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([340 x i8], [340 x i8]* @.str.5, i64 0, i64 0), i8* %26)
%28 = load i32, i32* @stderr
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [73 x i8] c"-----------------------------------------------------------------------\0A\00"
@.str.1 = [266 x i8] c"Usage: %s\0A -i | --input \22<input-plugin.so> [parameters]\22\0A -o | --output \22<output-plugin.so> [parameters]\22\0A [-h | --help ]........: display this help\0A [-v | --version ].....: display version information\0A [-b | --background]...: fork to the background, daemon mode\0A\00"
@.str.2 = [132 x i8] c"Example:\0A To open an UVC webcam \22/dev/video1\22 and stream it via HTTP:\0A %s -i \22input_uvc.so -d /dev/video1\22 -o \22output_http.so\22\0A\00"
@.str.3 = [118 x i8] c"Example:\0A To open an UVC webcam and stream via HTTP port 8090:\0A %s -i \22input_uvc.so\22 -o \22output_http.so -p 8090\22\0A\00"
@.str.4 = [84 x i8] c"Example:\0A To get help for a certain input plugin:\0A %s -i \22input_uvc.so --help\22\0A\00"
@.str.5 = [340 x i8] c"In case the modules (=plugins) can not be found:\0A * Set the default search path for the modules with:\0A export LD_LIBRARY_PATH=/path/to/plugins,\0A * or put the plugins into the \22/lib/\22 or \22/usr/lib\22 folder,\0A * or instead of just providing the plugin file name, use a complete\0A path and filename:\0A %s -i \22/path/to/modules/input_uvc.so\22\0A\00"
define void @help(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([266 x i8], [266 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([132 x i8], [132 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([118 x i8], [118 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([340 x i8], [340 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
ret void
}