#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(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
void usage(char *progname) {
  printf("Usage: %s [-v] [-h] [-p port] [-u <userpw>] [-a <adminpw>] -r "
         "<rootpw> <localfile> <host>:<remotefile>\n",
         progname);
  putchar('\n');
  printf("       %s [-v] [-h] [-p port] [-u <userpw>] [-a <adminpw>] -r "
         "<rootpw> <host>:<remotefile> <localfile>\n",
         progname);
  putchar('\n');
  printf("       host        remote machine to connect to\n");
  printf("       remotefile  path to file on remote machine\n");
  printf("       localfile   path to local file\n");
  printf("       -v          be a little bit more verbose\n");
  printf("       -p port	   alternate port on remote machine\n");
  printf("       -h          print this help\n");
  printf("       -u          set the userpw\n");
  printf("       -a          set the adminpw\n");
  printf("       -r          set the rootpw\n");
  printf("       -q          silent (quit) (stupid with -v)\n");
  printf("       -i          interactic mode (ask for passwords)\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%rsi
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf78(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf9d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfb6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfd9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xfff(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1015(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x102a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1040(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x1055(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x107a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xeb5(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf02(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf4f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf73(%rip),%rdi
call   1040 <puts@plt>
lea    0xf99(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb3(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd7(%rip),%rdi
call   1040 <puts@plt>
lea    0xffe(%rip),%rdi
call   1040 <puts@plt>
lea    0x1015(%rip),%rdi
call   1040 <puts@plt>
lea    0x102b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1042(%rip),%rdi
call   1040 <puts@plt>
lea    0x1058(%rip),%rdi
call   1040 <puts@plt>
lea    0x107e(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [104 x i8] c"Usage: %s [-v] [-h] [-p port] [-u <userpw>] [-a <adminpw>] -r <rootpw> <localfile> <host>:<remotefile>\0A\00"
@.str.1 = [104 x i8] c" %s [-v] [-h] [-p port] [-u <userpw>] [-a <adminpw>] -r <rootpw> <host>:<remotefile> <localfile>\0A\00"
@.str.2 = [49 x i8] c" host remote machine to connect to\0A\00"
@.str.3 = [51 x i8] c" remotefile path to file on remote machine\0A\00"
@.str.4 = [39 x i8] c" localfile path to local file\0A\00"
@.str.5 = [49 x i8] c" -v be a little bit more verbose\0A\00"
@.str.6 = [52 x i8] c" -p port\09 alternate port on remote machine\0A\00"
@.str.7 = [36 x i8] c" -h print this help\0A\00"
@.str.8 = [35 x i8] c" -u set the userpw\0A\00"
@.str.9 = [36 x i8] c" -a set the adminpw\0A\00"
@.str.10 = [35 x i8] c" -r set the rootpw\0A\00"
@.str.11 = [51 x i8] c" -q silent (quit) (stupid with -v)\0A\00"
@.str.12 = [56 x i8] c" -i interactic mode (ask for passwords)\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 @putchar(i8 signext 10)
%6 = load i8*, i8** %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = call i32 @putchar(i8 signext 10)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.11, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.12, i64 0, i64 0))
%20 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [104 x i8] c"Usage: %s [-v] [-h] [-p port] [-u <userpw>] [-a <adminpw>] -r <rootpw> <localfile> <host>:<remotefile>\0A\00"
@.str.1 = [104 x i8] c" %s [-v] [-h] [-p port] [-u <userpw>] [-a <adminpw>] -r <rootpw> <host>:<remotefile> <localfile>\0A\00"
@str = [48 x i8] c" host remote machine to connect to\00"
@str.13 = [50 x i8] c" remotefile path to file on remote machine\00"
@str.14 = [38 x i8] c" localfile path to local file\00"
@str.15 = [48 x i8] c" -v be a little bit more verbose\00"
@str.16 = [51 x i8] c" -p port\09 alternate port on remote machine\00"
@str.17 = [35 x i8] c" -h print this help\00"
@str.18 = [34 x i8] c" -u set the userpw\00"
@str.19 = [35 x i8] c" -a set the adminpw\00"
@str.20 = [34 x i8] c" -r set the rootpw\00"
@str.21 = [50 x i8] c" -q silent (quit) (stupid with -v)\00"
@str.22 = [55 x i8] c" -i interactic mode (ask for passwords)\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @putchar(i8 signext 10)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%5 = tail call i32 @putchar(i8 signext 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.14, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.15, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.16, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.17, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.18, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.19, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.20, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.21, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.22, i64 0, i64 0))
%17 = tail call i32 @exit(i32 1)
unreachable
}