#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_delete(const char *program, int brief, int argc, char **argv) {
  if (!brief)
    dprintf(2, "\n deleting devices ('delete')"
               "\n ===========================");
  if (help_shortcmdline(brief, program, "delete <device>"))
    return;
  dprintf(2, "\n <device>\tcan be given one more more times (to delete "
             "multiple devices at once)."
             "\n         \teither specify a device name (e.g. '/dev/video1') "
             "or a device number ('1').");
}


x86 assembly (clang, -O0):
<help_delete>:
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_delete+0x31>
mov    $0x2,%edi
lea    0xeb4(%rip),%rsi
call   1030 <dprintf@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%rsi
lea    0xedc(%rip),%rdx
call   1040 <help_shortcmdline@plt>
cmp    $0x0,%rax
je     1173 <help_delete+0x53>
jmp    1184 <help_delete+0x64>
mov    $0x2,%edi
lea    0xecc(%rip),%rsi
call   1030 <dprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [59 x i8] c"\0A deleting devices ('delete')\0A ===========================\00"
@.str.1 = [16 x i8] c"delete <device>\00"
@.str.2 = [168 x i8] c"\0A <device>\09can be given one more more times (to delete multiple devices at once).\0A \09either specify a device name (e.g. '/dev/video1') or a device number ('1').\00"
define void @help_delete(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 ([59 x i8], [59 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 ([16 x i8], [16 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 ([168 x i8], [168 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %19, %18
ret void
}

LLVM IR (-O2):
@.str = [59 x i8] c"\0A deleting devices ('delete')\0A ===========================\00"
@.str.1 = [16 x i8] c"delete <device>\00"
@.str.2 = [168 x i8] c"\0A <device>\09can be given one more more times (to delete multiple devices at once).\0A \09either specify a device name (e.g. '/dev/video1') or a device number ('1').\00"
define void @help_delete(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 ([59 x i8], [59 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 ([16 x i8], [16 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 ([168 x i8], [168 x i8]* @.str.2, i64 0, i64 0))
br label %13
13: ; preds = %8, %11
ret void
}