#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(void) {
  int i;
  fprintf(stderr,
          " ---------------------------------------------------------------\n"
          " Help for input plugin..: "
          "S3C2410 embedded camera"
          "\n"
          " ---------------------------------------------------------------\n"
          " The following parameters can be passed to this plugin:\n\n"
          " [-d | --device ].......: video device to open (your camera)\n"
          " [-r | --resolution XxY ]...: the resolution of the video device,\n"
          " [-g | --grayscale ]......: encode grayscale images (discard color "
          "information)\n");
  fprintf(
      stderr,
      " ---------------------------------------------------------------\n\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec1(%rip),%rax
mov    (%rax),%edi
lea    0xed8(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2eac(%rip),%rax
mov    (%rax),%edi
lea    0x1080(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x108e(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [445 x i8] c" ---------------------------------------------------------------\0A Help for input plugin..: S3C2410 embedded camera\0A ---------------------------------------------------------------\0A The following parameters can be passed to this plugin:\0A\0A [-d | --device ].......: video device to open (your camera)\0A [-r | --resolution XxY ]...: the resolution of the video device,\0A [-g | --grayscale ]......: encode grayscale images (discard color information)\0A\00"
@.str.1 = [67 x i8] c" ---------------------------------------------------------------\0A\0A\00"
define void @help() {
%1 = alloca i32
%2 = load i32, i32* @stderr
%3 = call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([445 x i8], [445 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [445 x i8] c" ---------------------------------------------------------------\0A Help for input plugin..: S3C2410 embedded camera\0A ---------------------------------------------------------------\0A The following parameters can be passed to this plugin:\0A\0A [-d | --device ].......: video device to open (your camera)\0A [-r | --resolution XxY ]...: the resolution of the video device,\0A [-g | --grayscale ]......: encode grayscale images (discard color information)\0A\00"
@.str.1 = [67 x i8] c" ---------------------------------------------------------------\0A\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([445 x i8], [445 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0))
ret void
}