#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*/ printf(char *, char *);
void help(int argc, char **argv) {
  printf("%s (v0.1.0) usage:\n", argv[0]);
  printf(
      "    %s -e <username> <realm> <password> : generate (encode) md5 ha1\n",
      argv[0]);
  printf("    %s -d <username> <realm> <ha1> : discover (decode) password in "
         "md5 ha1\n",
         argv[0]);
  printf("    %s -h : help message\n\n", argv[0]);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xf06(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xf3f(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rbx
mov    %rsi,%rbx
mov    (%rsi),%rsi
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%rsi
lea    0xee7(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%rsi
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%rsi
lea    0xf5a(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"%s (v0.1.0) usage:\0A\00"
@.str.1 = [69 x i8] c" %s -e <username> <realm> <password> : generate (encode) md5 ha1\0A\00"
@.str.2 = [76 x i8] c" %s -d <username> <realm> <ha1> : discover (decode) password in md5 ha1\0A\00"
@.str.3 = [27 x i8] c" %s -h : help message\0A\0A\00"
define void @help(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i8**, i8*** %4
%6 = getelementptr inbounds i8*, i8** %5, i64 0
%7 = load i8*, i8** %6
%8 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i8**, i8*** %4
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%13 = load i8**, i8*** %4
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%17 = load i8**, i8*** %4
%18 = getelementptr inbounds i8*, i8** %17, i64 0
%19 = load i8*, i8** %18
%20 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %19)
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"%s (v0.1.0) usage:\0A\00"
@.str.1 = [69 x i8] c" %s -e <username> <realm> <password> : generate (encode) md5 ha1\0A\00"
@.str.2 = [76 x i8] c" %s -d <username> <realm> <ha1> : discover (decode) password in md5 ha1\0A\00"
@.str.3 = [27 x i8] c" %s -h : help message\0A\0A\00"
define void @help(i32 %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = load i8*, i8** %1
%8 = tail call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %1
%10 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %9)
ret void
}