#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*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void print_help(int exval) {
  printf("\nDrcom-generic implementation in C.\n");
  printf("Version: %s\n\n", "1.6.2");
  printf("Usage:\n");
  printf("\tdogcom -m <dhcp/pppoe> -c <FILEPATH> [options <argument>]...\n\n");
  printf("Options:\n");
  printf("\t--mode <dhcp/pppoe>, -m <dhcp/pppoe>  set your dogcom mode \n");
  printf("\t--conf <FILEPATH>, -c <FILEPATH>      import configuration file\n");
  printf("\t--bindip <IPADDR>, -b <IPADDR>        bind your ip address(default "
         "is 0.0.0.0)\n");
  printf("\t--log <LOGPATH>, -l <LOGPATH>         specify log file\n");
  printf("\t--daemon, -d                          set daemon flag\n");
  printf("\t--802.1x, -x                          enable 802.1x\n");
  printf("\t--eternal, -e                         set eternal flag\n");
  printf("\t--verbose, -v                         set verbose flag\n");
  printf("\t--help, -h                            display this help\n\n");
  exit(exval);
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
lea    0xeec(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfde(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1008(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1030(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1086(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_help>:
push   %rbx
mov    %edi,%ebx
lea    0xeda(%rip),%rdi
call   1030 <puts@plt>
lea    0xeba(%rip),%rdi
lea    0xec1(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf08(%rip),%rdi
call   1030 <puts@plt>
lea    0xf39(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfde(%rip),%rdi
call   1030 <puts@plt>
lea    0x1009(%rip),%rdi
call   1030 <puts@plt>
lea    0x1032(%rip),%rdi
call   1030 <puts@plt>
lea    0x105e(%rip),%rdi
call   1030 <puts@plt>
lea    0x108a(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"\0ADrcom-generic implementation in C.\0A\00"
@.str.1 = [14 x i8] c"Version: %s\0A\0A\00"
@.str.2 = [6 x i8] c"1.6.2\00"
@.str.3 = [8 x i8] c"Usage:\0A\00"
@.str.4 = [64 x i8] c"\09dogcom -m <dhcp/pppoe> -c <FILEPATH> [options <argument>]...\0A\0A\00"
@.str.5 = [10 x i8] c"Options:\0A\00"
@.str.6 = [62 x i8] c"\09--mode <dhcp/pppoe>, -m <dhcp/pppoe> set your dogcom mode \0A\00"
@.str.7 = [66 x i8] c"\09--conf <FILEPATH>, -c <FILEPATH> import configuration file\0A\00"
@.str.8 = [81 x i8] c"\09--bindip <IPADDR>, -b <IPADDR> bind your ip address(default is 0.0.0.0)\0A\00"
@.str.9 = [57 x i8] c"\09--log <LOGPATH>, -l <LOGPATH> specify log file\0A\00"
@.str.10 = [56 x i8] c"\09--daemon, -d set daemon flag\0A\00"
@.str.11 = [54 x i8] c"\09--802.1x, -x enable 802.1x\0A\00"
@.str.12 = [57 x i8] c"\09--eternal, -e set eternal flag\0A\00"
@.str.13 = [57 x i8] c"\09--verbose, -v set verbose flag\0A\00"
@.str.14 = [59 x i8] c"\09--help, -h display this help\0A\0A\00"
define void @print_help(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.14, i64 0, i64 0))
%17 = load i32, i32* %2
%18 = call i32 @exit(i32 %17)
unreachable
}

LLVM IR (-O2):
@.str.1 = [14 x i8] c"Version: %s\0A\0A\00"
@.str.2 = [6 x i8] c"1.6.2\00"
@str = [36 x i8] c"\0ADrcom-generic implementation in C.\00"
@str.15 = [7 x i8] c"Usage:\00"
@str.16 = [63 x i8] c"\09dogcom -m <dhcp/pppoe> -c <FILEPATH> [options <argument>]...\0A\00"
@str.17 = [9 x i8] c"Options:\00"
@str.18 = [61 x i8] c"\09--mode <dhcp/pppoe>, -m <dhcp/pppoe> set your dogcom mode \00"
@str.19 = [65 x i8] c"\09--conf <FILEPATH>, -c <FILEPATH> import configuration file\00"
@str.20 = [80 x i8] c"\09--bindip <IPADDR>, -b <IPADDR> bind your ip address(default is 0.0.0.0)\00"
@str.21 = [56 x i8] c"\09--log <LOGPATH>, -l <LOGPATH> specify log file\00"
@str.22 = [55 x i8] c"\09--daemon, -d set daemon flag\00"
@str.23 = [53 x i8] c"\09--802.1x, -x enable 802.1x\00"
@str.24 = [56 x i8] c"\09--eternal, -e set eternal flag\00"
@str.25 = [56 x i8] c"\09--verbose, -v set verbose flag\00"
@str.26 = [58 x i8] c"\09--help, -h display this help\0A\00"
define void @print_help(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.15, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.16, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.17, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.18, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.19, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.21, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.22, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.23, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.24, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.25, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.26, i64 0, i64 0))
%16 = tail call i32 @exit(i32 %0)
unreachable
}