#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 *);
int /*<<< orphan*/ usage();
void help(void) {
  printf("\n");
  printf("hawk - Generating curl commandline invocations from request data and "
         "Hawk parameters\n\n");
  printf(" \n");
  usage();
  printf("Options:\n");
  printf("    -h               Show this screen\n");
  printf(
      "    -v               Verbose mode to print some diagnostic messages\n");
  printf("    -p <password>    Password to use for sealing/unsealing\n");
  printf("    -i <id>          Id to put in 'id' header parameter\n");
  printf("    -H <host>        Host to use for request\n");
  printf("    -P <path>        URI path to use for request\n");
  printf("    -M <method>      HTTP method to use; defaults to 'GET'\n");
  printf("    -O <port>        Port to use for request; defaults to '80'\n");
  printf("    -a <algorithm>   Algorithm to use for HMAC generation; defaults "
         "to sha1\n");
  printf("    -e <ext>         Arbitrary string to put into 'ext' header "
         "parameter\n");
  printf("    -o <offset>      Number of seconds to use for clock offset\n");
  printf("    -m <mode>        Output mode. Can be 'plain' (default), "
         "'curl','blitz','header' or 'qheader'\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xf2a(%rip),%rdi
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <usage@plt>
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
call   1030 <printf@plt>
lea    0xf86(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
call   1030 <printf@plt>
lea    0xffb(%rip),%rdi
call   1030 <printf@plt>
lea    0x102b(%rip),%rdi
call   1030 <printf@plt>
lea    0x105f(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a0(%rip),%rdi
call   1030 <printf@plt>
lea    0x10de(%rip),%rdi
call   1030 <printf@plt>
lea    0x1112(%rip),%rdi
call   1030 <printf@plt>
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xebe(%rip),%rdi
call   1040 <puts@plt>
lea    0xf08(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1050 <usage@plt>
lea    0xef7(%rip),%rdi
call   1040 <puts@plt>
lea    0xef4(%rip),%rdi
call   1040 <puts@plt>
lea    0xf0e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf46(%rip),%rdi
call   1040 <puts@plt>
lea    0xf75(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa1(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc2(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe7(%rip),%rdi
call   1040 <puts@plt>
lea    0x1016(%rip),%rdi
call   1040 <puts@plt>
lea    0x1049(%rip),%rdi
call   1040 <puts@plt>
lea    0x1089(%rip),%rdi
call   1040 <puts@plt>
lea    0x10c6(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [87 x i8] c"hawk - Generating curl commandline invocations from request data and Hawk parameters\0A\0A\00"
@.str.2 = [3 x i8] c" \0A\00"
@.str.3 = [10 x i8] c"Options:\0A\00"
@.str.4 = [39 x i8] c" -h Show this screen\0A\00"
@.str.5 = [69 x i8] c" -v Verbose mode to print some diagnostic messages\0A\00"
@.str.6 = [60 x i8] c" -p <password> Password to use for sealing/unsealing\0A\00"
@.str.7 = [57 x i8] c" -i <id> Id to put in 'id' header parameter\0A\00"
@.str.8 = [46 x i8] c" -H <host> Host to use for request\0A\00"
@.str.9 = [50 x i8] c" -P <path> URI path to use for request\0A\00"
@.str.10 = [60 x i8] c" -M <method> HTTP method to use; defaults to 'GET'\0A\00"
@.str.11 = [64 x i8] c" -O <port> Port to use for request; defaults to '80'\0A\00"
@.str.12 = [77 x i8] c" -a <algorithm> Algorithm to use for HMAC generation; defaults to sha1\0A\00"
@.str.13 = [74 x i8] c" -e <ext> Arbitrary string to put into 'ext' header parameter\0A\00"
@.str.14 = [64 x i8] c" -o <offset> Number of seconds to use for clock offset\0A\00"
@.str.15 = [98 x i8] c" -m <mode> Output mode. Can be 'plain' (default), 'curl','blitz','header' or 'qheader'\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (...) @usage()
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.14, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.15, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [86 x i8] c"hawk - Generating curl commandline invocations from request data and Hawk parameters\0A\00"
@str.16 = [2 x i8] c" \00"
@str.17 = [9 x i8] c"Options:\00"
@str.18 = [38 x i8] c" -h Show this screen\00"
@str.19 = [68 x i8] c" -v Verbose mode to print some diagnostic messages\00"
@str.20 = [59 x i8] c" -p <password> Password to use for sealing/unsealing\00"
@str.21 = [56 x i8] c" -i <id> Id to put in 'id' header parameter\00"
@str.22 = [45 x i8] c" -H <host> Host to use for request\00"
@str.23 = [49 x i8] c" -P <path> URI path to use for request\00"
@str.24 = [59 x i8] c" -M <method> HTTP method to use; defaults to 'GET'\00"
@str.25 = [63 x i8] c" -O <port> Port to use for request; defaults to '80'\00"
@str.26 = [76 x i8] c" -a <algorithm> Algorithm to use for HMAC generation; defaults to sha1\00"
@str.27 = [73 x i8] c" -e <ext> Arbitrary string to put into 'ext' header parameter\00"
@str.28 = [63 x i8] c" -o <offset> Number of seconds to use for clock offset\00"
@str.29 = [97 x i8] c" -m <mode> Output mode. Can be 'plain' (default), 'curl','blitz','header' or 'qheader'\00"
define void @help() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 (...) @usage()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.27, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.28, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str.29, i64 0, i64 0))
%18 = tail call i32 @putchar(i32 10)
ret void
}