#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*/ fprintf(int /*<<< orphan*/, char const *, ...);
int /*<<< orphan*/ stderr;
void usage(char *program) {
  const char *help_text[] = {
      "%s, keyspace utility for hashcat",
      "",
      "Usage: %s [options] mask",
      "",
      "=======",
      "Options",
      "=======",
      "",
      "  -m,  --hash-type=NUM           Hash-type",
      "       --hex-charset             Assume charset is given in hex",
      "       --markov-hcstat=FILE      Specify hcstat file to use, default is "
      "hashcat.hcstat",
      "  -t,  --markov-threshold=NUM    Threshold for markov-chains",
      "  -1,  --custom-charset1=CS      User-defined charsets",
      "  -2,  --custom-charset2=CS      Examples:",
      "  -3,  --custom-charset3=CS      --custom-charset3=?dabcdef : sets "
      "charset ?3 to 0123456789abcdef",
      "  -4,  --custom-charset4=CS      --custom-charset4=?l?u : sets charset "
      "?4 to all lower and upper case letters",
      "  -h,  --help                    Print help",
      NULL};
  int i;
  for (i = 0; help_text[i] != NULL; i++) {
    fprintf(stderr, help_text[i], program, program);
    fprintf(stderr, "\n");
  }
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0x2c43(%rip),%rsi
mov    $0x90,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0xa4(%rbp)
movslq -0xa4(%rbp),%rax
cmpq   $0x0,-0xa0(%rbp,%rax,8)
je     11b9 <usage+0x99>
mov    0x2e6a(%rip),%rax
mov    (%rax),%edi
movslq -0xa4(%rbp),%rax
mov    -0xa0(%rbp,%rax,8),%rsi
ff
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e43(%rip),%rax
mov    (%rax),%edi
lea    0x1109(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    1151 <usage+0x31>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdi,%r13
lea    0x2c5d(%rip),%r15
mov    0x2eae(%rip),%r12
lea    0x1176(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%rbx,%r15,1),%rsi
mov    (%r12),%edi
mov    %r13,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r12),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x8,%rbx
cmp    $0x88,%rbx
jne    1140 <usage+0x30>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [33 x i8] c"%s, keyspace utility for hashcat\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [25 x i8] c"Usage: %s [options] mask\00"
@.str.3 = [8 x i8] c"=======\00"
@.str.4 = [8 x i8] c"Options\00"
@.str.5 = [43 x i8] c" -m, --hash-type=NUM Hash-type\00"
@.str.6 = [64 x i8] c" --hex-charset Assume charset is given in hex\00"
@.str.7 = [87 x i8] c" --markov-hcstat=FILE Specify hcstat file to use, default is hashcat.hcstat\00"
@.str.8 = [61 x i8] c" -t, --markov-threshold=NUM Threshold for markov-chains\00"
@.str.9 = [55 x i8] c" -1, --custom-charset1=CS User-defined charsets\00"
@.str.10 = [43 x i8] c" -2, --custom-charset2=CS Examples:\00"
@.str.11 = [98 x i8] c" -3, --custom-charset3=CS --custom-charset3=?dabcdef : sets charset ?3 to 0123456789abcdef\00"
@.str.12 = [110 x i8] c" -4, --custom-charset4=CS --custom-charset4=?l?u : sets charset ?4 to all lower and upper case letters\00"
@.str.13 = [44 x i8] c" -h, --help Print help\00"
@__const.usage.help_text = [18 x i8*] [i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i32 0, i32 0), i8* null]
@stderr = global i32 0
@.str.14 = [2 x i8] c"\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
%3 = alloca [18 x i8*]
%4 = alloca i32
store i8* %0, i8** %2
%5 = bitcast [18 x i8*]* %3 to i8*
store i32 0, i32* %4
br label %6
6: ; preds = %23, %1
%7 = load i32, i32* %4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [18 x i8*], [18 x i8*]* %3, i64 0, i64 %8
%10 = load i8*, i8** %9
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %26
12: ; preds = %6
%13 = load i32, i32* @stderr
%14 = load i32, i32* %4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [18 x i8*], [18 x i8*]* %3, i64 0, i64 %15
%17 = load i8*, i8** %16
%18 = load i8*, i8** %2
%19 = load i8*, i8** %2
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* %17, i8* %18, i8* %19)
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
br label %23
23: ; preds = %12
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
br label %6
26: ; preds = %6
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"%s, keyspace utility for hashcat\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [25 x i8] c"Usage: %s [options] mask\00"
@.str.3 = [8 x i8] c"=======\00"
@.str.4 = [8 x i8] c"Options\00"
@.str.5 = [43 x i8] c" -m, --hash-type=NUM Hash-type\00"
@.str.6 = [64 x i8] c" --hex-charset Assume charset is given in hex\00"
@.str.7 = [87 x i8] c" --markov-hcstat=FILE Specify hcstat file to use, default is hashcat.hcstat\00"
@.str.8 = [61 x i8] c" -t, --markov-threshold=NUM Threshold for markov-chains\00"
@.str.9 = [55 x i8] c" -1, --custom-charset1=CS User-defined charsets\00"
@.str.10 = [43 x i8] c" -2, --custom-charset2=CS Examples:\00"
@.str.11 = [98 x i8] c" -3, --custom-charset3=CS --custom-charset3=?dabcdef : sets charset ?3 to 0123456789abcdef\00"
@.str.12 = [110 x i8] c" -4, --custom-charset4=CS --custom-charset4=?l?u : sets charset ?4 to all lower and upper case letters\00"
@.str.13 = [44 x i8] c" -h, --help Print help\00"
@__const.usage.help_text = [18 x i8*] [i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i32 0, i32 0), i8* null]
@stderr = global i32 0
@.str.14 = [2 x i8] c"\0A\00"
define void @usage(i8* %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i64 [ 0, %1 ], [ %10, %2 ]
%4 = getelementptr inbounds [18 x i8*], [18 x i8*]* @__const.usage.help_text, i64 0, i64 %3
%5 = load i8*, i8** %4
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* %5, i8* %0, i8* %0)
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%10 = add nuw nsw i64 %3, 1
%11 = icmp eq i64 %10, 17
br i1 %11, label %12, label %2
12: ; preds = %2
ret void
}