#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stdout;
void print_help(char *name) {
  fprintf(stdout,
          "                   __     __         __                 \n"
          "          ___  ___/ /_ __/ /_    ___/ /__________  __ _ \n"
          "         / _ `/ _  / // / __/   / _  / __/ __/ _ \\/  ' \\\n"
          "         \\_, /\\_,_/\\_,_/\\__/    \\_,_/_/  \\__/\\___/_/_/_/\n"
          "        /___/   ");
  fprintf(stdout, "A third-party drcom client for gdut. version %s\n", "0.0.0");
  fprintf(stdout, "usage:\n");
  fprintf(stdout, "  %s\n", name);
  fprintf(stdout, "    --remote-ip <ip addr>               The server ip.\n");
  fprintf(stdout, "\n");
  fprintf(stdout, "    [--remote-port <port>]              The server port, "
                  "default as 61440.\n");
  fprintf(stdout,
          "    [--keep-alive1-flag <flag>]         The keep alive 1 packet's "
          "flag.\n"
          "                                            default as 00.\n");
  fprintf(stdout, "    [--enable-crypt]                    Enable crypt of "
                  "keep alive1 packet2\n");
  fprintf(stdout,
          "    [-c, --config-file <file>]          The path to config file.\n");
  fprintf(stdout, "    [-l, --log-file <file>]             The path to log "
                  "file, default as stdout.\n");
  fprintf(stdout,
          "    [-h, --help]                        Print this message.\n");
  fprintf(
      stdout,
      "    [-v, --version]                     Print version infomatuon..\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
lea    0xfb2(%rip),%rsi
lea    0xfdc(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e88(%rip),%rax
mov    (%rax),%edi
lea    0xfcb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xfb8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%edi
lea    0xfa7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e3f(%rip),%rax
mov    (%rax),%edi
lea    0x11f8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e28(%rip),%rax
mov    (%rax),%edi
lea    0xfb1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e11(%rip),%rax
mov    (%rax),%edi
lea    0xfe6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dfa(%rip),%rax
mov    (%rax),%edi
lea    0x1053(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%edi
lea    0x1089(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dcc(%rip),%rax
mov    (%rax),%edi
lea    0x10b4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2db5(%rip),%rax
mov    (%rax),%edi
lea    0x10ef(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d9e(%rip),%rax
mov    (%rax),%edi
lea    0x1115(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    0x2ec2(%rip),%rbx
mov    (%rbx),%edi
lea    0xed9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfbe(%rip),%rsi
lea    0xfe8(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfde(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd6(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfc9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1221(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfe1(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x101d(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1091(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10ce(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1100(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1142(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x116f(%rip),%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [245 x i8] c" __ __ __ \0A ___ ___/ /_ __/ /_ ___/ /__________ __ _ \0A / _ `/ _ / // / __/ / _ / __/ __/ _ \\/ ' \\\0A \\_, /\\_,_/\\_,_/\\__/ \\_,_/_/ \\__/\\___/_/_/_/\0A /___/ \00"
@.str.1 = [49 x i8] c"A third-party drcom client for gdut. version %s\0A\00"
@.str.2 = [6 x i8] c"0.0.0\00"
@.str.3 = [8 x i8] c"usage:\0A\00"
@.str.4 = [6 x i8] c" %s\0A\00"
@.str.5 = [56 x i8] c" --remote-ip <ip addr> The server ip.\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [76 x i8] c" [--remote-port <port>] The server port, default as 61440.\0A\00"
@.str.8 = [132 x i8] c" [--keep-alive1-flag <flag>] The keep alive 1 packet's flag.\0A default as 00.\0A\00"
@.str.9 = [77 x i8] c" [--enable-crypt] Enable crypt of keep alive1 packet2\0A\00"
@.str.10 = [66 x i8] c" [-c, --config-file <file>] The path to config file.\0A\00"
@.str.11 = [82 x i8] c" [-l, --log-file <file>] The path to log file, default as stdout.\0A\00"
@.str.12 = [61 x i8] c" [-h, --help] Print this message.\0A\00"
@.str.13 = [68 x i8] c" [-v, --version] Print version infomatuon..\0A\00"
define void @print_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stdout
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([245 x i8], [245 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = load i8*, i8** %2
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %10)
%12 = load i32, i32* @stdout
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0))
%18 = load i32, i32* @stdout
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([132 x i8], [132 x i8]* @.str.8, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.9, i64 0, i64 0))
%22 = load i32, i32* @stdout
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0))
%24 = load i32, i32* @stdout
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.11, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.12, i64 0, i64 0))
%28 = load i32, i32* @stdout
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [245 x i8] c" __ __ __ \0A ___ ___/ /_ __/ /_ ___/ /__________ __ _ \0A / _ `/ _ / // / __/ / _ / __/ __/ _ \\/ ' \\\0A \\_, /\\_,_/\\_,_/\\__/ \\_,_/_/ \\__/\\___/_/_/_/\0A /___/ \00"
@.str.1 = [49 x i8] c"A third-party drcom client for gdut. version %s\0A\00"
@.str.2 = [6 x i8] c"0.0.0\00"
@.str.3 = [8 x i8] c"usage:\0A\00"
@.str.4 = [6 x i8] c" %s\0A\00"
@.str.5 = [56 x i8] c" --remote-ip <ip addr> The server ip.\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [76 x i8] c" [--remote-port <port>] The server port, default as 61440.\0A\00"
@.str.8 = [132 x i8] c" [--keep-alive1-flag <flag>] The keep alive 1 packet's flag.\0A default as 00.\0A\00"
@.str.9 = [77 x i8] c" [--enable-crypt] Enable crypt of keep alive1 packet2\0A\00"
@.str.10 = [66 x i8] c" [-c, --config-file <file>] The path to config file.\0A\00"
@.str.11 = [82 x i8] c" [-l, --log-file <file>] The path to log file, default as stdout.\0A\00"
@.str.12 = [61 x i8] c" [-h, --help] Print this message.\0A\00"
@.str.13 = [68 x i8] c" [-v, --version] Print version infomatuon..\0A\00"
define void @print_help(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([245 x i8], [245 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stdout
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%6 = load i32, i32* @stdout
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%8 = load i32, i32* @stdout
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%10 = load i32, i32* @stdout
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
%12 = load i32, i32* @stdout
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([132 x i8], [132 x i8]* @.str.8, i64 0, i64 0))
%18 = load i32, i32* @stdout
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.9, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0))
%22 = load i32, i32* @stdout
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.11, i64 0, i64 0))
%24 = load i32, i32* @stdout
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.12, i64 0, i64 0))
%26 = load i32, i32* @stdout
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.13, i64 0, i64 0))
ret void
}