#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ *stdout;
void usage(int status) {
  FILE *stream = status ? stderr : stdout;
  (void)fprintf(
      stream,
      "Usage: cstow [-cdDhnRtv] <package-name>\n"
      "  -c,     Do not exit when a conflict is found, continue as if\n"
      "          nothing happened.  This options implies -n.\n"
      "  -d DIR, Set the package directory to DIR.  If not\n"
      "          specified the current directory will be used.\n"
      "  -D,     Delete the package instead of installing it.\n"
      "  -h,     Show this help message.\n"
      "  -n,     Do not perform any of the operations, only pretend.\n"
      "          Useful for detecting errors without damaging anything.\n"
      "  -R,     Reinstall a package.  Equivalent to invoking cstow\n"
      "          to install and deinstall in sequence.\n"
      "  -t DIR, Set the target directory to DIR.  If not\n"
      "          specified the parent directory will be used.\n"
      "  -v,     Be verbose, showing each operation performed.\n");
  exit(status);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1148 <usage+0x28>
mov    0x2ea4(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
jmp    1156 <usage+0x36>
mov    0x2e89(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe97(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %edi,%ebx
test   %edi,%edi
jne    1130 <usage+0x10>
mov    0x2eaa(%rip),%rax
jmp    1137 <usage+0x17>
mov    0x2ea9(%rip),%rax
mov    (%rax),%rcx
lea    0xebf(%rip),%rdi
mov    $0x2f0,%esi
mov    $0x1,%edx
call   1040 <fwrite@plt>
mov    %ebx,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
@stderr = global i32* null
@stdout = global i32* null
@.str = [753 x i8] c"Usage: cstow [-cdDhnRtv] <package-name>\0A -c, Do not exit when a conflict is found, continue as if\0A nothing happened. This options implies -n.\0A -d DIR, Set the package directory to DIR. If not\0A specified the current directory will be used.\0A -D, Delete the package instead of installing it.\0A -h, Show this help message.\0A -n, Do not perform any of the operations, only pretend.\0A Useful for detecting errors without damaging anything.\0A -R, Reinstall a package. Equivalent to invoking cstow\0A to install and deinstall in sequence.\0A -t DIR, Set the target directory to DIR. If not\0A specified the parent directory will be used.\0A -v, Be verbose, showing each operation performed.\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = load i32*, i32** @stderr
br label %10
8: ; preds = %1
%9 = load i32*, i32** @stdout
br label %10
10: ; preds = %8, %6
%11 = phi i32* [ %7, %6 ], [ %9, %8 ]
store i32* %11, i32** %3
%12 = load i32*, i32** %3
%13 = call i32 @fprintf(i32* %12, i8* getelementptr inbounds ([753 x i8], [753 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* %2
%15 = call i32 @exit(i32 %14)
unreachable
}

LLVM IR (-O2):
@stderr = global i32* null
@stdout = global i32* null
@.str = [753 x i8] c"Usage: cstow [-cdDhnRtv] <package-name>\0A -c, Do not exit when a conflict is found, continue as if\0A nothing happened. This options implies -n.\0A -d DIR, Set the package directory to DIR. If not\0A specified the current directory will be used.\0A -D, Delete the package instead of installing it.\0A -h, Show this help message.\0A -n, Do not perform any of the operations, only pretend.\0A Useful for detecting errors without damaging anything.\0A -R, Reinstall a package. Equivalent to invoking cstow\0A to install and deinstall in sequence.\0A -t DIR, Set the target directory to DIR. If not\0A specified the parent directory will be used.\0A -v, Be verbose, showing each operation performed.\0A\00"
define void @usage(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = load i32*, i32** @stderr
%4 = load i32*, i32** @stdout
%5 = select i1 %2, i32* %4, i32* %3
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([753 x i8], [753 x i8]* @.str, i64 0, i64 0), i64 752, i64 1, i32* %5)
%7 = tail call i32 @exit(i32 %0)
unreachable
}