#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;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ msg(int, char *, ...);
void usage(const char *arg0, const char *message) {
  if (message) {
    msg(-4, "%s: %s\n", arg0, message);
    msg(-3, "\n");
  }
  msg(message ? -3 : -1, "Usage: %s ACTION [OPTION...] [PATH...]\n", arg0);
  msg(message ? -3 : -1,
      "\n"
      "Where ACTION is one of:\n"
      "  -c, --compare            Show differences between stored and real "
      "metadata\n"
      "  -s, --save               Save current metadata\n"
      "  -a, --apply              Apply stored metadata\n"
      "  -d, --dump               Dump stored (if no PATH is given) or real "
      "metadata\n"
      "                           (if PATH is present, e.g. ./) in "
      "human-readable form\n"
      "  -V, --version            Output version information and exit\n"
      "  -h, --help               Help message (this text)\n"
      "\n"
      "Valid OPTIONS are:\n"
      "  -v, --verbose            Print more verbose messages\n"
      "  -q, --quiet              Print less verbose messages\n"
      "  -m, --mtime              Also take mtime into account for diff or "
      "apply\n"
      "  -e, --empty-dirs         Recreate missing empty directories\n"
      "  -E, --remove-empty-dirs  Remove extra empty directories\n"
      "  -g, --git                Do not omit .git directories\n"
      "  -f, --file=FILE          Set metadata file ("
      "./.metadata"
      " by default)\n");
  exit(message ? EXIT_FAILURE : EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1169 <usage+0x49>
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    $0xfffffffc,%edi
lea    0xeb1(%rip),%rsi
mov    $0x0,%al
call   1040 <msg@plt>
mov    $0xfffffffd,%edi
lea    0x1268(%rip),%rsi
mov    $0x0,%al
call   1040 <msg@plt>
mov    -0x10(%rbp),%rcx
mov    $0xffffffff,%edi
mov    $0xfffffffd,%eax
cmp    $0x0,%rcx
cmovne %eax,%edi
mov    -0x8(%rbp),%rdx
lea    0xe7f(%rip),%rsi
mov    $0x0,%al
call   1040 <msg@plt>
mov    -0x10(%rbp),%rcx
mov    $0xffffffff,%edi
mov    $0xfffffffd,%eax
cmp    $0x0,%rcx
cmovne %eax,%edi
lea    0xe84(%rip),%rsi
mov    $0x0,%al
call   1040 <msg@plt>
cmpq   $0x0,-0x10(%rbp)
je     11cf <usage+0xaf>
mov    0x2e1b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
jmp    11db <usage+0xbb>
mov    0x2e02(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%r14
mov    $0xffffffff,%ebp
test   %rsi,%rsi
je     1165 <usage+0x45>
lea    0xec5(%rip),%rsi
mov    $0xfffffffc,%edi
mov    %r14,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1040 <msg@plt>
lea    0x1276(%rip),%rsi
mov    $0xfffffffd,%ebp
mov    $0xfffffffd,%edi
xor    %eax,%eax
call   1040 <msg@plt>
lea    0xe9c(%rip),%rsi
mov    %ebp,%edi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <msg@plt>
lea    0xeb1(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1040 <msg@plt>
test   %rbx,%rbx
jne    119b <usage+0x7b>
mov    0x2e44(%rip),%rax
mov    (%rax),%edi
call   1030 <exit@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%edi
call   1030 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"%s: %s\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [40 x i8] c"Usage: %s ACTION [OPTION...] [PATH...]\0A\00"
@.str.3 = [924 x i8] c"\0AWhere ACTION is one of:\0A -c, --compare Show differences between stored and real metadata\0A -s, --save Save current metadata\0A -a, --apply Apply stored metadata\0A -d, --dump Dump stored (if no PATH is given) or real metadata\0A (if PATH is present, e.g. ./) in human-readable form\0A -V, --version Output version information and exit\0A -h, --help Help message (this text)\0A\0AValid OPTIONS are:\0A -v, --verbose Print more verbose messages\0A -q, --quiet Print less verbose messages\0A -m, --mtime Also take mtime into account for diff or apply\0A -e, --empty-dirs Recreate missing empty directories\0A -E, --remove-empty-dirs Remove extra empty directories\0A -g, --git Do not omit .git directories\0A -f, --file=FILE Set metadata file (./.metadata by default)\0A\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define void @usage(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = icmp ne i8* %5, null
br i1 %6, label %7, label %12
7: ; preds = %2
%8 = load i8*, i8** %3
%9 = load i8*, i8** %4
%10 = call i32 (i32, i8*, ...) @msg(i32 -4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %9)
%11 = call i32 (i32, i8*, ...) @msg(i32 -3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %7, %2
%13 = load i8*, i8** %4
%14 = icmp ne i8* %13, null
%15 = zext i1 %14 to i64
%16 = select i1 %14, i32 -3, i32 -1
%17 = load i8*, i8** %3
%18 = call i32 (i32, i8*, ...) @msg(i32 %16, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i8* %17)
%19 = load i8*, i8** %4
%20 = icmp ne i8* %19, null
%21 = zext i1 %20 to i64
%22 = select i1 %20, i32 -3, i32 -1
%23 = call i32 (i32, i8*, ...) @msg(i32 %22, i8* getelementptr inbounds ([924 x i8], [924 x i8]* @.str.3, i64 0, i64 0))
%24 = load i8*, i8** %4
%25 = icmp ne i8* %24, null
br i1 %25, label %26, label %28
26: ; preds = %12
%27 = load i32, i32* @EXIT_FAILURE
br label %30
28: ; preds = %12
%29 = load i32, i32* @EXIT_SUCCESS
br label %30
30: ; preds = %28, %26
%31 = phi i32 [ %27, %26 ], [ %29, %28 ]
%32 = call i32 @exit(i32 %31)
unreachable
}

LLVM IR (-O2):
@.str = [8 x i8] c"%s: %s\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [40 x i8] c"Usage: %s ACTION [OPTION...] [PATH...]\0A\00"
@.str.3 = [924 x i8] c"\0AWhere ACTION is one of:\0A -c, --compare Show differences between stored and real metadata\0A -s, --save Save current metadata\0A -a, --apply Apply stored metadata\0A -d, --dump Dump stored (if no PATH is given) or real metadata\0A (if PATH is present, e.g. ./) in human-readable form\0A -V, --version Output version information and exit\0A -h, --help Help message (this text)\0A\0AValid OPTIONS are:\0A -v, --verbose Print more verbose messages\0A -q, --quiet Print less verbose messages\0A -m, --mtime Also take mtime into account for diff or apply\0A -e, --empty-dirs Recreate missing empty directories\0A -E, --remove-empty-dirs Remove extra empty directories\0A -g, --git Do not omit .git directories\0A -f, --file=FILE Set metadata file (./.metadata by default)\0A\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define void @usage(i8* %0, i8* %1) {
%3 = icmp eq i8* %1, null
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = tail call i32 (i32, i8*, ...) @msg(i32 -4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
%6 = tail call i32 (i32, i8*, ...) @msg(i32 -3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %4, %2
%8 = phi i32 [ -3, %4 ], [ -1, %2 ]
%9 = tail call i32 (i32, i8*, ...) @msg(i32 %8, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%10 = tail call i32 (i32, i8*, ...) @msg(i32 %8, i8* getelementptr inbounds ([924 x i8], [924 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* @EXIT_FAILURE
%12 = load i32, i32* @EXIT_SUCCESS
%13 = select i1 %3, i32 %12, i32 %11
%14 = tail call i32 @exit(i32 %13)
unreachable
}