#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*/ dprintf(int, char *);
scalar_t__ help_shortcmdline(int, char const *, char *);
void help_setfps(const char *program, int brief, int argc, char **argv) {
  if (!brief)
    dprintf(2, "\n setting framerate ('set-fps')"
               "\n =============================");
  if (help_shortcmdline(brief, program, "set-fps <device> <fps>"))
    return;
  dprintf(2, "\n <device>\teither specify a device name (e.g. '/dev/video1') "
             "or a device number ('1')."
             "\n    <fps>\tframes per second, either as integer ('30') or "
             "fraction ('50/2').");
}


x86 assembly (clang, -O0):
<help_setfps>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1151 <help_setfps+0x31>
mov    $0x2,%edi
lea    0xeb4(%rip),%rsi
call   1030 <dprintf@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%rsi
lea    0xee0(%rip),%rdx
call   1040 <help_shortcmdline@plt>
cmp    $0x0,%rax
je     1173 <help_setfps+0x53>
jmp    1184 <help_setfps+0x64>
mov    $0x2,%edi
lea    0xed7(%rip),%rsi
call   1030 <dprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help_setfps>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
test   %esi,%esi
jne    113d <help_setfps+0x1d>
lea    0xecd(%rip),%rsi
mov    $0x2,%edi
call   1030 <dprintf@plt>
lea    0xefb(%rip),%rdx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1040 <help_shortcmdline@plt>
test   %rax,%rax
je     115a <help_setfps+0x3a>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
lea    0xef5(%rip),%rsi
mov    $0x2,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <dprintf@plt>

LLVM IR (-O0):
@.str = [63 x i8] c"\0A setting framerate ('set-fps')\0A =============================\00"
@.str.1 = [23 x i8] c"set-fps <device> <fps>\00"
@.str.2 = [163 x i8] c"\0A <device>\09either specify a device name (e.g. '/dev/video1') or a device number ('1').\0A <fps>\09frames per second, either as integer ('30') or fraction ('50/2').\00"
define void @help_setfps(i8* %0, i32 %1, i32 %2, i8** %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8**
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8** %3, i8*** %8
%9 = load i32, i32* %6
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %4
%12 = call i32 @dprintf(i32 2, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
br label %13
13: ; preds = %11, %4
%14 = load i32, i32* %6
%15 = load i8*, i8** %5
%16 = call i64 @help_shortcmdline(i32 %14, i8* %15, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %13
br label %21
19: ; preds = %13
%20 = call i32 @dprintf(i32 2, i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %19, %18
ret void
}

LLVM IR (-O2):
@.str = [63 x i8] c"\0A setting framerate ('set-fps')\0A =============================\00"
@.str.1 = [23 x i8] c"set-fps <device> <fps>\00"
@.str.2 = [163 x i8] c"\0A <device>\09either specify a device name (e.g. '/dev/video1') or a device number ('1').\0A <fps>\09frames per second, either as integer ('30') or fraction ('50/2').\00"
define void @help_setfps(i8* %0, i32 %1, i32 %2, i8** nocapture readnone %3) {
%5 = icmp eq i32 %1, 0
br i1 %5, label %6, label %8
6: ; preds = %4
%7 = tail call i32 @dprintf(i32 2, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %4
%9 = tail call i64 @help_shortcmdline(i32 %1, i8* %0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = tail call i32 @dprintf(i32 2, i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.2, i64 0, i64 0))
br label %13
13: ; preds = %8, %11
ret void
}