#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 *, ...);
void usage(char *program) {
  printf("Usage: %s [-v] [-s] [-t type] [-d domain] [-u username] [-p "
         "password|-P hash] <host> [port]\n",
         program);
  printf("\n");
  printf("-s requires the server to sign its packets (note enabled by default "
         "on Windows).\n");
  printf("-P sends either a single hash or a pair of colon separated "
         "lanman:ntlm hashes.\n");
  printf("   See below for which is required for each logon type.\n");
  printf("\n");
  printf("Valid logon types are:\n");
  printf(" 'default'	 Sends LM and NTLM	  (hash: both)\n");
  printf(" 'lm'		  Sends LM only		  (hash: LM)\n");
  printf(" 'ntlm'		Sends NTLM only		(hash: NTLM)\n");
  printf(" 'v2'		  Sends LMv2 and NTLMv2  (hash: NTLM)\n");
  printf(" 'lmv2'		Sends LMv2 only		(hash: NTLM)\n");
  printf(" 'anonymous'   Uses a NULL session	(hash: n/a)\n");
  printf("(NTLMv2 can't be sent alone, due to protocol quirks; however, 'v2' "
         "and 'lmv2' both use the NTLM hash,\n");
  printf(" so it isn't strictly necessary.)\n");
  printf("\n");
  printf("\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    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1195(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x115d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1009(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1029(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1043(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1065(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10be(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10d1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rsi
lea    0xeb5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xefa(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf82(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfa4(%rip),%rdi
call   1040 <puts@plt>
lea    0xfaf(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd0(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe9(%rip),%rdi
call   1040 <puts@plt>
lea    0x1004(%rip),%rdi
call   1040 <puts@plt>
lea    0x1025(%rip),%rdi
call   1040 <puts@plt>
lea    0x1040(%rip),%rdi
call   1040 <puts@plt>
lea    0x1063(%rip),%rdi
call   1040 <puts@plt>
lea    0x10bd(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [93 x i8] c"Usage: %s [-v] [-s] [-t type] [-d domain] [-u username] [-p password|-P hash] <host> [port]\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [82 x i8] c"-s requires the server to sign its packets (note enabled by default on Windows).\0A\00"
@.str.3 = [80 x i8] c"-P sends either a single hash or a pair of colon separated lanman:ntlm hashes.\0A\00"
@.str.4 = [57 x i8] c" See below for which is required for each logon type.\0A\00"
@.str.5 = [24 x i8] c"Valid logon types are:\0A\00"
@.str.6 = [46 x i8] c" 'default'\09 Sends LM and NTLM\09 (hash: both)\0A\00"
@.str.7 = [38 x i8] c" 'lm'\09\09 Sends LM only\09\09 (hash: LM)\0A\00"
@.str.8 = [40 x i8] c" 'ntlm'\09\09Sends NTLM only\09\09(hash: NTLM)\0A\00"
@.str.9 = [46 x i8] c" 'v2'\09\09 Sends LMv2 and NTLMv2 (hash: NTLM)\0A\00"
@.str.10 = [40 x i8] c" 'lmv2'\09\09Sends LMv2 only\09\09(hash: NTLM)\0A\00"
@.str.11 = [48 x i8] c" 'anonymous' Uses a NULL session\09(hash: n/a)\0A\00"
@.str.12 = [103 x i8] c"(NTLMv2 can't be sent alone, due to protocol quirks; however, 'v2' and 'lmv2' both use the NTLM hash,\0A\00"
@.str.13 = [35 x i8] c" so it isn't strictly necessary.)\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 ([93 x i8], [93 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.12, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [93 x i8] c"Usage: %s [-v] [-s] [-t type] [-d domain] [-u username] [-p password|-P hash] <host> [port]\0A\00"
@str = [81 x i8] c"-s requires the server to sign its packets (note enabled by default on Windows).\00"
@str.14 = [79 x i8] c"-P sends either a single hash or a pair of colon separated lanman:ntlm hashes.\00"
@str.15 = [56 x i8] c" See below for which is required for each logon type.\00"
@str.16 = [23 x i8] c"Valid logon types are:\00"
@str.17 = [45 x i8] c" 'default'\09 Sends LM and NTLM\09 (hash: both)\00"
@str.18 = [37 x i8] c" 'lm'\09\09 Sends LM only\09\09 (hash: LM)\00"
@str.19 = [39 x i8] c" 'ntlm'\09\09Sends NTLM only\09\09(hash: NTLM)\00"
@str.20 = [45 x i8] c" 'v2'\09\09 Sends LMv2 and NTLMv2 (hash: NTLM)\00"
@str.21 = [39 x i8] c" 'lmv2'\09\09Sends LMv2 only\09\09(hash: NTLM)\00"
@str.22 = [47 x i8] c" 'anonymous' Uses a NULL session\09(hash: n/a)\00"
@str.23 = [102 x i8] c"(NTLMv2 can't be sent alone, due to protocol quirks; however, 'v2' and 'lmv2' both use the NTLM hash,\00"
@str.24 = [34 x i8] c" so it isn't strictly necessary.)\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.21, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.22, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str.23, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.24, i64 0, i64 0))
%17 = tail call i32 @putchar(i32 10)
%18 = tail call i32 @putchar(i32 10)
%19 = tail call i32 @exit(i32 1)
unreachable
}