#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*/ fprintf(int /*<<< orphan*/, char *, char *, char *, char *,
                           char *);
int /*<<< orphan*/ stderr;
void usage(char *prog) {
  fprintf(stderr,
          "usage: %s [options] -s url\n"
          "       %s [options] -n [-S spn] [-g] url\n"
          "       %s [options] -f url\n"
          "       %s [options] -b user:pass url\n"
          "  where the authentication modes are\n"
          "       -s - simple (no authentication)\n"
          "       -n - Negotiate (SPNEGO)\n"
          "       -f - Fake NTLM\n"
          "       -b - Basic\n"
          "  The generic options are:\n"
          "       -e outfile    - where to write HTTP response code\n"
          "       -d            - enable debugging\n"
          "       -H outfile    - where to write the HTTP headers ('-' for "
          "stdout)\n"
          "       -B            - supress output of the response body\n"
          "       -t <secs>     - socket (connection) timeout\n"
          "  The negotiate-specific (-n) options are:\n"
          "       -u user       - use principal name override\n"
          "       -S spn        - service principal name override\n"
          "       -g            - use GSSAPI internally (not VAS)\n",
          prog, prog, prog, prog);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
mov    -0x8(%rbp),%r8
mov    -0x8(%rbp),%r9
lea    0xeb4(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rcx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [790 x i8] c"usage: %s [options] -s url\0A %s [options] -n [-S spn] [-g] url\0A %s [options] -f url\0A %s [options] -b user:pass url\0A where the authentication modes are\0A -s - simple (no authentication)\0A -n - Negotiate (SPNEGO)\0A -f - Fake NTLM\0A -b - Basic\0A The generic options are:\0A -e outfile - where to write HTTP response code\0A -d - enable debugging\0A -H outfile - where to write the HTTP headers ('-' for stdout)\0A -B - supress output of the response body\0A -t <secs> - socket (connection) timeout\0A The negotiate-specific (-n) options are:\0A -u user - use principal name override\0A -S spn - service principal name override\0A -g - use GSSAPI internally (not VAS)\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = load i8*, i8** %2
%7 = load i8*, i8** %2
%8 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([790 x i8], [790 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5, i8* %6, i8* %7)
%9 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [790 x i8] c"usage: %s [options] -s url\0A %s [options] -n [-S spn] [-g] url\0A %s [options] -f url\0A %s [options] -b user:pass url\0A where the authentication modes are\0A -s - simple (no authentication)\0A -n - Negotiate (SPNEGO)\0A -f - Fake NTLM\0A -b - Basic\0A The generic options are:\0A -e outfile - where to write HTTP response code\0A -d - enable debugging\0A -H outfile - where to write the HTTP headers ('-' for stdout)\0A -B - supress output of the response body\0A -t <secs> - socket (connection) timeout\0A The negotiate-specific (-n) options are:\0A -u user - use principal name override\0A -S spn - service principal name override\0A -g - use GSSAPI internally (not VAS)\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([790 x i8], [790 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0, i8* %0, i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}