#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*/ stdout;
void usage(char *use[]) {
  if (use != NULL) {
    (void)fprintf(stdout, "\n\t%s\n\n", *use);
    while (*++use != NULL)
      (void)fprintf(stdout, "\t%s\n", *use);
    (void)fprintf(stdout, "\n");
  }
  return;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1199 <usage+0x89>
mov    0x2eb2(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
lea    0xec2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
cmpq   $0x0,0x8(%rax)
je     1182 <usage+0x72>
mov    0x2e7a(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
lea    0xe91(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1145 <usage+0x35>
mov    0x2e57(%rip),%rax
mov    (%rax),%edi
lea    0xe73(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
test   %rdi,%rdi
je     117f <usage+0x6f>
push   %r15
push   %r14
push   %rbx
mov    %rdi,%rbx
mov    0x2ebc(%rip),%r15
mov    (%r15),%edi
mov    (%rbx),%rdx
lea    0xecf(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x8(%rbx),%rdx
test   %rdx,%rdx
je     1169 <usage+0x59>
add    $0x10,%rbx
lea    0xebb(%rip),%r14
nopl   0x0(%rax)
mov    (%r15),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%rdx
add    $0x8,%rbx
test   %rdx,%rdx
jne    1150 <usage+0x40>
mov    (%r15),%edi
lea    0xe92(%rip),%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [7 x i8] c"\0A\09%s\0A\0A\00"
@.str.1 = [5 x i8] c"\09%s\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
define void @usage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = icmp ne i8** %3, null
br i1 %4, label %5, label %23
5: ; preds = %1
%6 = load i32, i32* @stdout
%7 = load i8**, i8*** %2
%8 = load i8*, i8** %7
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %8)
br label %10
10: ; preds = %15, %5
%11 = load i8**, i8*** %2
%12 = getelementptr inbounds i8*, i8** %11, i32 1
store i8** %12, i8*** %2
%13 = load i8*, i8** %12
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %20
15: ; preds = %10
%16 = load i32, i32* @stdout
%17 = load i8**, i8*** %2
%18 = load i8*, i8** %17
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %18)
br label %10
20: ; preds = %10
%21 = load i32, i32* @stdout
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %23
23: ; preds = %20, %1
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [7 x i8] c"\0A\09%s\0A\0A\00"
@.str.1 = [5 x i8] c"\09%s\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
define void @usage(i8** %0) {
%2 = icmp eq i8** %0, null
br i1 %2, label %21, label %3
3: ; preds = %1
%4 = load i32, i32* @stdout
%5 = load i8*, i8** %0
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = getelementptr inbounds i8*, i8** %0, i64 1
%8 = load i8*, i8** %7
%9 = icmp eq i8* %8, null
br i1 %9, label %18, label %10
10: ; preds = %3, %10
%11 = phi i8* [ %16, %10 ], [ %8, %3 ]
%12 = phi i8** [ %15, %10 ], [ %7, %3 ]
%13 = load i32, i32* @stdout
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%15 = getelementptr inbounds i8*, i8** %12, i64 1
%16 = load i8*, i8** %15
%17 = icmp eq i8* %16, null
br i1 %17, label %18, label %10
18: ; preds = %10, %3
%19 = load i32, i32* @stdout
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %18, %1
ret void
}