#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ *stdout;
int usage_command_internal(char const *const *, char const *, int,
                           int /*<<< orphan*/, int /*<<< orphan*/ *);
void usage_command_usagestr(const char *const *usagestr, const char *token,
                            int full, int err) {
  FILE *outf = err ? stderr : stdout;
  int ret;
  ret = usage_command_internal(usagestr, token, full, 0, outf);
  if (!ret)
    fputc('\n', outf);
}


x86 assembly (clang, -O0):
<usage_command_usagestr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     1153 <usage_command_usagestr+0x33>
mov    0x2e99(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
jmp    1161 <usage_command_usagestr+0x41>
mov    0x2e7e(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%r8
xor    %ecx,%ecx
call   1040 <usage_command_internal@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    119a <usage_command_usagestr+0x7a>
mov    -0x20(%rbp),%rsi
mov    $0xa,%edi
call   1030 <fputc@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage_command_usagestr>:
push   %rbx
test   %ecx,%ecx
jne    112e <usage_command_usagestr+0xe>
mov    0x2eac(%rip),%rax
jmp    1135 <usage_command_usagestr+0x15>
mov    0x2eab(%rip),%rax
mov    (%rax),%rbx
xor    %ecx,%ecx
mov    %rbx,%r8
call   1040 <usage_command_internal@plt>
test   %eax,%eax
je     1148 <usage_command_usagestr+0x28>
pop    %rbx
ret
mov    $0xa,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <fputc@plt>

LLVM IR (-O0):
@stderr = global i32* null
@stdout = global i32* null
define void @usage_command_usagestr(i8** %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32
store i8** %0, i8*** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%11 = load i32, i32* %8
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %4
%14 = load i32*, i32** @stderr
br label %17
15: ; preds = %4
%16 = load i32*, i32** @stdout
br label %17
17: ; preds = %15, %13
%18 = phi i32* [ %14, %13 ], [ %16, %15 ]
store i32* %18, i32** %9
%19 = load i8**, i8*** %5
%20 = load i8*, i8** %6
%21 = load i32, i32* %7
%22 = load i32*, i32** %9
%23 = call i32 @usage_command_internal(i8** %19, i8* %20, i32 %21, i32 0, i32* %22)
store i32 %23, i32* %10
%24 = load i32, i32* %10
%25 = icmp ne i32 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %17
%27 = load i32*, i32** %9
%28 = call i32 @fputc(i8 signext 10, i32* %27)
br label %29
29: ; preds = %26, %17
ret void
}

LLVM IR (-O2):
@stderr = global i32* null
@stdout = global i32* null
define void @usage_command_usagestr(i8** %0, i8* %1, i32 %2, i32 %3) {
%5 = icmp eq i32 %3, 0
%6 = load i32*, i32** @stderr
%7 = load i32*, i32** @stdout
%8 = select i1 %5, i32* %7, i32* %6
%9 = tail call i32 @usage_command_internal(i8** %0, i8* %1, i32 %2, i32 0, i32* %8)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %4
%12 = tail call i32 @fputc(i8 signext 10, i32* %8)
br label %13
13: ; preds = %11, %4
ret void
}