#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*/ EXIT_FAILURE;
char *cli_check_help(int);
char *cli_encrypt_help(int);
char *cli_generate_help(int);
char *cli_sign_help(int);
char *cli_verify_help(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, ...);
int /*<<< orphan*/ stderr;
void usage(const char *error) {
  if (error)
    fprintf(stderr, "%s\n", error);
  fprintf(stderr,
          "usage:"
          "\tasignify [-q] %s\n"
          "\tasignify [-q] %s\n"
          "\tasignify [-q] %s\n"
          "\tasignify [-q] %s\n"
          "\tasignify [-q] %s\n",
          cli_verify_help(false), cli_check_help(false), cli_sign_help(false),
          cli_generate_help(false), cli_encrypt_help(false));
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     11a2 <usage+0x32>
mov    0x2e52(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec2(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
xor    %edi,%edi
call   1030 <cli_verify_help@plt>
mov    %rax,-0x28(%rbp)
xor    %edi,%edi
call   1040 <cli_check_help@plt>
mov    %rax,-0x20(%rbp)
xor    %edi,%edi
call   1080 <cli_sign_help@plt>
mov    %rax,-0x18(%rbp)
xor    %edi,%edi
call   1050 <cli_generate_help@plt>
mov    %rax,-0x10(%rbp)
xor    %edi,%edi
call   1070 <cli_encrypt_help@plt>
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x10(%rbp),%r9
lea    0xe05(%rip),%rsi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2dcb(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
test   %rdi,%rdi
je     119b <usage+0x2b>
mov    %rdi,%rdx
mov    0x2e55(%rip),%rax
mov    (%rax),%edi
lea    0xec9(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%r14d
xor    %edi,%edi
call   1030 <cli_verify_help@plt>
mov    %rax,%r15
xor    %edi,%edi
call   1040 <cli_check_help@plt>
mov    %rax,%r12
xor    %edi,%edi
call   1080 <cli_sign_help@plt>
mov    %rax,%rbx
xor    %edi,%edi
call   1050 <cli_generate_help@plt>
mov    %rax,%rbp
xor    %edi,%edi
call   1070 <cli_encrypt_help@plt>
mov    %rax,(%rsp)
lea    0xe21(%rip),%rsi
mov    %r14d,%edi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %rbx,%r8
mov    %rbp,%r9
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2ddc(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [97 x i8] c"usage:\09asignify [-q] %s\0A\09asignify [-q] %s\0A\09asignify [-q] %s\0A\09asignify [-q] %s\0A\09asignify [-q] %s\0A\00"
@EXIT_FAILURE = global i32 0
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 %9
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = load i8*, i8** %2
%8 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %7)
br label %9
9: ; preds = %5, %1
%10 = load i32, i32* @stderr
%11 = call i8* @cli_verify_help(i32 0)
%12 = call i8* @cli_check_help(i32 0)
%13 = call i8* @cli_sign_help(i32 0)
%14 = call i8* @cli_generate_help(i32 0)
%15 = call i8* @cli_encrypt_help(i32 0)
%16 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0), i8* %11, i8* %12, i8* %13, i8* %14, i8* %15)
%17 = load i32, i32* @EXIT_FAILURE
%18 = call i32 @exit(i32 %17)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [97 x i8] c"usage:\09asignify [-q] %s\0A\09asignify [-q] %s\0A\09asignify [-q] %s\0A\09asignify [-q] %s\0A\09asignify [-q] %s\0A\00"
@EXIT_FAILURE = global i32 0
define void @usage(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %6
6: ; preds = %3, %1
%7 = load i32, i32* @stderr
%8 = tail call i8* @cli_verify_help(i32 0)
%9 = tail call i8* @cli_check_help(i32 0)
%10 = tail call i8* @cli_sign_help(i32 0)
%11 = tail call i8* @cli_generate_help(i32 0)
%12 = tail call i8* @cli_encrypt_help(i32 0)
%13 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0), i8* %8, i8* %9, i8* %10, i8* %11, i8* %12)
%14 = load i32, i32* @EXIT_FAILURE
%15 = tail call i32 @exit(i32 %14)
unreachable
}