#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 /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void dohelp() {
  printf("mrtg-pnsclient [-C] -H host [ -p port ] [ -P password ] [ -t timeout "
         "]\n");
  printf("    -c <module> [ -a <option> ] [ -o <offset> ]\n");
  printf("  [ -c <module> ] [ -a <option> ] [ -o <offset> ]\n");
  printf("\n-d : Debug mode\n");
  printf("-C : Old NSclient compatibility mode\n");
  printf("-P : NSclient password (usually leave as default)\n");
  printf("-t : Timeout (default %d)\n", 5);
  printf("-o : Offset - 0 or 1 (some commands return 2 values)\n");
  printf("-c : Command - CPU (needs average time, eg '5'), MEM, \n     DISK "
         "(needs disk letter, eg 'C'), COUNT (needs counter name, \n     eg "
         "'\\Memory\\Used Bytes' or '\\Group(instance)\\Object' )\n");
  printf("\nIf a second command is not specified then it defaults to the same "
         "as the\nfirst command.\n");
  exit(0);
}


x86 assembly (clang, -O0):
<dohelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf98(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1071(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<dohelp>:
push   %rax
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf42(%rip),%rdi
call   1030 <puts@plt>
lea    0xf68(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf86(%rip),%rdi
call   1030 <puts@plt>
lea    0xe80(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf99(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc2(%rip),%rdi
call   1030 <puts@plt>
lea    0x106c(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [72 x i8] c"mrtg-pnsclient [-C] -H host [ -p port ] [ -P password ] [ -t timeout ]\0A\00"
@.str.1 = [49 x i8] c" -c <module> [ -a <option> ] [ -o <offset> ]\0A\00"
@.str.2 = [51 x i8] c" [ -c <module> ] [ -a <option> ] [ -o <offset> ]\0A\00"
@.str.3 = [18 x i8] c"\0A-d : Debug mode\0A\00"
@.str.4 = [38 x i8] c"-C : Old NSclient compatibility mode\0A\00"
@.str.5 = [51 x i8] c"-P : NSclient password (usually leave as default)\0A\00"
@.str.6 = [27 x i8] c"-t : Timeout (default %d)\0A\00"
@.str.7 = [54 x i8] c"-o : Offset - 0 or 1 (some commands return 2 values)\0A\00"
@.str.8 = [183 x i8] c"-c : Command - CPU (needs average time, eg '5'), MEM, \0A DISK (needs disk letter, eg 'C'), COUNT (needs counter name, \0A eg '\\Memory\\Used Bytes' or '\\Group(instance)\\Object' )\0A\00"
@.str.9 = [90 x i8] c"\0AIf a second command is not specified then it defaults to the same as the\0Afirst command.\0A\00"
define void @dohelp() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i32 5)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([183 x i8], [183 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str.6 = [27 x i8] c"-t : Timeout (default %d)\0A\00"
@str = [71 x i8] c"mrtg-pnsclient [-C] -H host [ -p port ] [ -P password ] [ -t timeout ]\00"
@str.10 = [48 x i8] c" -c <module> [ -a <option> ] [ -o <offset> ]\00"
@str.11 = [50 x i8] c" [ -c <module> ] [ -a <option> ] [ -o <offset> ]\00"
@str.12 = [17 x i8] c"\0A-d : Debug mode\00"
@str.13 = [37 x i8] c"-C : Old NSclient compatibility mode\00"
@str.14 = [50 x i8] c"-P : NSclient password (usually leave as default)\00"
@str.15 = [53 x i8] c"-o : Offset - 0 or 1 (some commands return 2 values)\00"
@str.16 = [182 x i8] c"-c : Command - CPU (needs average time, eg '5'), MEM, \0A DISK (needs disk letter, eg 'C'), COUNT (needs counter name, \0A eg '\\Memory\\Used Bytes' or '\\Group(instance)\\Object' )\00"
@str.17 = [89 x i8] c"\0AIf a second command is not specified then it defaults to the same as the\0Afirst command.\00"
define void @dohelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.10, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.11, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.12, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i32 5)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.15, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([182 x i8], [182 x i8]* @str.16, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str.17, i64 0, i64 0))
%11 = tail call i32 @exit(i32 0)
unreachable
}