#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(
      "GNU TLS debug client\nUsage: gnutls-cli-debug [options] hostname\n\n\n");
  __gaa_helpsingle('p', "port", "integer ", "The port to connect to.");
  __gaa_helpsingle('d', "debug", "integer ", "Enable debugging");
  __gaa_helpsingle('V', "verbose", "", "More verbose output");
  __gaa_helpsingle('v', "version", "", "prints the program's version number");
  __gaa_helpsingle('h', "help", "", "prints this help");
}


x86 assembly (clang, -O0):
<gaa_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
mov    $0x70,%edi
lea    0xf07(%rip),%rsi
lea    0xf05(%rip),%rdx
lea    0xf07(%rip),%rcx
call   1030 <__gaa_helpsingle@plt>
mov    $0x64,%edi
lea    0xf0e(%rip),%rsi
lea    0xee6(%rip),%rdx
lea    0xf06(%rip),%rcx
call   1030 <__gaa_helpsingle@plt>
mov    $0x56,%edi
lea    0xf06(%rip),%rsi
lea    0xec1(%rip),%rdx
lea    0xf00(%rip),%rcx
call   1030 <__gaa_helpsingle@plt>
mov    $0x76,%edi
lea    0xf03(%rip),%rsi
lea    0xea2(%rip),%rdx
lea    0xefd(%rip),%rcx
call   1030 <__gaa_helpsingle@plt>
mov    $0x68,%edi
lea    0xf1c(%rip),%rsi
lea    0xe83(%rip),%rdx
lea    0xf02(%rip),%rcx
call   1030 <__gaa_helpsingle@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<gaa_help>:
push   %rbx
lea    0xf6e(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rsi
lea    0xeca(%rip),%rbx
lea    0xecc(%rip),%rcx
mov    $0x70,%edi
mov    %rbx,%rdx
call   1040 <__gaa_helpsingle@plt>
lea    0xed0(%rip),%rsi
lea    0xecf(%rip),%rcx
mov    $0x64,%edi
mov    %rbx,%rdx
call   1040 <__gaa_helpsingle@plt>
lea    0xecc(%rip),%rsi
lea    0xf5f(%rip),%rbx
lea    0xec6(%rip),%rcx
mov    $0x56,%edi
mov    %rbx,%rdx
call   1040 <__gaa_helpsingle@plt>
lea    0xec6(%rip),%rsi
lea    0xec7(%rip),%rcx
mov    $0x76,%edi
mov    %rbx,%rdx
call   1040 <__gaa_helpsingle@plt>
lea    0xee3(%rip),%rsi
lea    0xed0(%rip),%rcx
mov    $0x68,%edi
mov    %rbx,%rdx
pop    %rbx
jmp    1040 <__gaa_helpsingle@plt>

LLVM IR (-O0):
@.str = [67 x i8] c"GNU TLS debug client\0AUsage: gnutls-cli-debug [options] hostname\0A\0A\0A\00"
@.str.1 = [5 x i8] c"port\00"
@.str.2 = [9 x i8] c"integer \00"
@.str.3 = [24 x i8] c"The port to connect to.\00"
@.str.4 = [6 x i8] c"debug\00"
@.str.5 = [17 x i8] c"Enable debugging\00"
@.str.6 = [8 x i8] c"verbose\00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [20 x i8] c"More verbose output\00"
@.str.9 = [8 x i8] c"version\00"
@.str.10 = [36 x i8] c"prints the program's version number\00"
@.str.11 = [5 x i8] c"help\00"
@.str.12 = [17 x i8] c"prints this help\00"
define void @gaa_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @__gaa_helpsingle(i8 signext 112, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @__gaa_helpsingle(i8 signext 100, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 @__gaa_helpsingle(i8 signext 86, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%5 = call i32 @__gaa_helpsingle(i8 signext 118, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0))
%6 = call i32 @__gaa_helpsingle(i8 signext 104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"port\00"
@.str.2 = [9 x i8] c"integer \00"
@.str.3 = [24 x i8] c"The port to connect to.\00"
@.str.4 = [6 x i8] c"debug\00"
@.str.5 = [17 x i8] c"Enable debugging\00"
@.str.6 = [8 x i8] c"verbose\00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [20 x i8] c"More verbose output\00"
@.str.9 = [8 x i8] c"version\00"
@.str.10 = [36 x i8] c"prints the program's version number\00"
@.str.11 = [5 x i8] c"help\00"
@.str.12 = [17 x i8] c"prints this help\00"
@str = [66 x i8] c"GNU TLS debug client\0AUsage: gnutls-cli-debug [options] hostname\0A\0A\00"
define void @gaa_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @__gaa_helpsingle(i8 signext 112, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @__gaa_helpsingle(i8 signext 100, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 @__gaa_helpsingle(i8 signext 86, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%5 = tail call i32 @__gaa_helpsingle(i8 signext 118, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0))
%6 = tail call i32 @__gaa_helpsingle(i8 signext 104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
ret void
}