#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*/ __gaa_helpsingle(char, char *, char *, char *);
int /*<<< orphan*/ printf(char *);
void gaa_help(void) {
  printf("PSKtool help\nUsage : psktool [options]\n");
  __gaa_helpsingle('u', "username", "username ", "specify username.");
  __gaa_helpsingle('p', "passwd", "FILE ", "specify a password file.");
  __gaa_helpsingle('s', "keysize", "SIZE ", "specify the key size in bytes.");
  __gaa_helpsingle('v', "version", "", "prints the program's version number");
  __gaa_helpsingle('h', "help", "", "shows this help text");
}


x86 assembly (clang, -O0):
<gaa_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
mov    $0x75,%edi
lea    0xeec(%rip),%rsi
lea    0xeee(%rip),%rdx
lea    0xef1(%rip),%rcx
call   1030 <__gaa_helpsingle@plt>
mov    $0x70,%edi
lea    0xef2(%rip),%rsi
lea    0xef2(%rip),%rdx
lea    0xef1(%rip),%rcx
call   1030 <__gaa_helpsingle@plt>
mov    $0x73,%edi
lea    0xef9(%rip),%rsi
lea    0xefa(%rip),%rdx
lea    0xef9(%rip),%rcx
call   1030 <__gaa_helpsingle@plt>
mov    $0x76,%edi
lea    0xf07(%rip),%rsi
lea    0xe87(%rip),%rdx
lea    0xf01(%rip),%rcx
call   1030 <__gaa_helpsingle@plt>
mov    $0x68,%edi
lea    0xf14(%rip),%rsi
lea    0xe68(%rip),%rdx
lea    0xf0b(%rip),%rcx
call   1030 <__gaa_helpsingle@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<gaa_help>:
push   %rbx
lea    0xf96(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rsi
lea    0xece(%rip),%rdx
lea    0xed1(%rip),%rcx
mov    $0x75,%edi
call   1040 <__gaa_helpsingle@plt>
lea    0xed2(%rip),%rsi
lea    0xed2(%rip),%rdx
lea    0xed1(%rip),%rcx
mov    $0x70,%edi
call   1040 <__gaa_helpsingle@plt>
lea    0xed9(%rip),%rsi
lea    0xeda(%rip),%rdx
lea    0xed9(%rip),%rcx
mov    $0x73,%edi
call   1040 <__gaa_helpsingle@plt>
lea    0xee7(%rip),%rsi
lea    0xe99(%rip),%rbx
lea    0xee1(%rip),%rcx
mov    $0x76,%edi
mov    %rbx,%rdx
call   1040 <__gaa_helpsingle@plt>
lea    0xef1(%rip),%rsi
lea    0xeef(%rip),%rcx
mov    $0x68,%edi
mov    %rbx,%rdx
pop    %rbx
jmp    1040 <__gaa_helpsingle@plt>

LLVM IR (-O0):
@.str = [40 x i8] c"PSKtool help\0AUsage : psktool [options]\0A\00"
@.str.1 = [9 x i8] c"username\00"
@.str.2 = [10 x i8] c"username \00"
@.str.3 = [18 x i8] c"specify username.\00"
@.str.4 = [7 x i8] c"passwd\00"
@.str.5 = [6 x i8] c"FILE \00"
@.str.6 = [25 x i8] c"specify a password file.\00"
@.str.7 = [8 x i8] c"keysize\00"
@.str.8 = [6 x i8] c"SIZE \00"
@.str.9 = [31 x i8] c"specify the key size in bytes.\00"
@.str.10 = [8 x i8] c"version\00"
@.str.11 = [1 x i8] zeroinitializer
@.str.12 = [36 x i8] c"prints the program's version number\00"
@.str.13 = [5 x i8] c"help\00"
@.str.14 = [21 x i8] c"shows this help text\00"
define void @gaa_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @__gaa_helpsingle(i8 signext 117, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @__gaa_helpsingle(i8 signext 112, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%4 = call i32 @__gaa_helpsingle(i8 signext 115, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%5 = call i32 @__gaa_helpsingle(i8 signext 118, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%6 = call i32 @__gaa_helpsingle(i8 signext 104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [9 x i8] c"username\00"
@.str.2 = [10 x i8] c"username \00"
@.str.3 = [18 x i8] c"specify username.\00"
@.str.4 = [7 x i8] c"passwd\00"
@.str.5 = [6 x i8] c"FILE \00"
@.str.6 = [25 x i8] c"specify a password file.\00"
@.str.7 = [8 x i8] c"keysize\00"
@.str.8 = [6 x i8] c"SIZE \00"
@.str.9 = [31 x i8] c"specify the key size in bytes.\00"
@.str.10 = [8 x i8] c"version\00"
@.str.11 = [1 x i8] zeroinitializer
@.str.12 = [36 x i8] c"prints the program's version number\00"
@.str.13 = [5 x i8] c"help\00"
@.str.14 = [21 x i8] c"shows this help text\00"
@str = [39 x i8] c"PSKtool help\0AUsage : psktool [options]\00"
define void @gaa_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @__gaa_helpsingle(i8 signext 117, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @__gaa_helpsingle(i8 signext 112, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%4 = tail call i32 @__gaa_helpsingle(i8 signext 115, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%5 = tail call i32 @__gaa_helpsingle(i8 signext 118, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%6 = tail call i32 @__gaa_helpsingle(i8 signext 104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
ret void
}