#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 *, ...);
void printhelp(char *progname) {
  printf("%s -? - Version 1.0a\n", progname);
  printf("OS/2 C-Kermit Telnet Stub - allows calls to IBM Telnet or IBM "
         "TelnetPM\n");
  printf("                            to be redirected to OS/2 C-Kermit.\n");
  printf("Copyright (C) 1996, Trustees of Columbia University\n\n");
  printf("Usage: telnet [-c codepage] [-d filename] [-e envlist]\n");
  printf("              [-f config]   [-h height]   [-k keyboard]\n");
  printf("              [-l filename] [-n]          [-o printer] [-p port]\n");
  printf("              [-t termtype] [-u color]    [-w width]   [hostname]\n");
  printf("Option:\n");
  printf("  -?            display this help message\n");
  printf("  -c codepage   specify code page translation table\n");
  printf("  -d filename   specify debugging filename\n");
  printf("  -e envlist    specify environment variables\n");
  printf("  -f config     specify configuration filename in <ETC> directory\n");
  printf("  -h height     specify screen height\n");
  printf("  -k keyboard   specify keyboard type\n");
  printf("  -l filename   specify logging filename\n");
  printf("  -n            ignore 8th bit\n");
  printf("  -o printer    specify local printer port name\n");
  printf("  -p port       specify remote port number\n");
  printf("  -t termtype   specify terminal emulator type\n");
  printf("  -u color      specify color for underline\n");
  printf("  -w width      specify screen width\n");
}


x86 assembly (clang, -O0):
<printhelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1033(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x104b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1072(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1090(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10b1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1118(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1134(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1146(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1169(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1187(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11a9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11c8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printhelp>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xf18(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1030 <puts@plt>
lea    0x1000(%rip),%rdi
call   1030 <puts@plt>
lea    0x1036(%rip),%rdi
call   1030 <puts@plt>
lea    0x1032(%rip),%rdi
call   1030 <puts@plt>
lea    0x1050(%rip),%rdi
call   1030 <puts@plt>
lea    0x1078(%rip),%rdi
call   1030 <puts@plt>
lea    0x1097(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ef(%rip),%rdi
call   1030 <puts@plt>
lea    0x1109(%rip),%rdi
call   1030 <puts@plt>
lea    0x1123(%rip),%rdi
call   1030 <puts@plt>
lea    0x1140(%rip),%rdi
call   1030 <puts@plt>
lea    0x1153(%rip),%rdi
call   1030 <puts@plt>
lea    0x1177(%rip),%rdi
call   1030 <puts@plt>
lea    0x1196(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b9(%rip),%rdi
call   1030 <puts@plt>
lea    0x11d9(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"%s -? - Version 1.0a\0A\00"
@.str.1 = [72 x i8] c"OS/2 C-Kermit Telnet Stub - allows calls to IBM Telnet or IBM TelnetPM\0A\00"
@.str.2 = [64 x i8] c" to be redirected to OS/2 C-Kermit.\0A\00"
@.str.3 = [54 x i8] c"Copyright (C) 1996, Trustees of Columbia University\0A\0A\00"
@.str.4 = [56 x i8] c"Usage: telnet [-c codepage] [-d filename] [-e envlist]\0A\00"
@.str.5 = [57 x i8] c" [-f config] [-h height] [-k keyboard]\0A\00"
@.str.6 = [66 x i8] c" [-l filename] [-n] [-o printer] [-p port]\0A\00"
@.str.7 = [67 x i8] c" [-t termtype] [-u color] [-w width] [hostname]\0A\00"
@.str.8 = [9 x i8] c"Option:\0A\00"
@.str.9 = [43 x i8] c" -? display this help message\0A\00"
@.str.10 = [53 x i8] c" -c codepage specify code page translation table\0A\00"
@.str.11 = [44 x i8] c" -d filename specify debugging filename\0A\00"
@.str.12 = [47 x i8] c" -e envlist specify environment variables\0A\00"
@.str.13 = [67 x i8] c" -f config specify configuration filename in <ETC> directory\0A\00"
@.str.14 = [39 x i8] c" -h height specify screen height\0A\00"
@.str.15 = [39 x i8] c" -k keyboard specify keyboard type\0A\00"
@.str.16 = [42 x i8] c" -l filename specify logging filename\0A\00"
@.str.17 = [32 x i8] c" -n ignore 8th bit\0A\00"
@.str.18 = [49 x i8] c" -o printer specify local printer port name\0A\00"
@.str.19 = [44 x i8] c" -p port specify remote port number\0A\00"
@.str.20 = [48 x i8] c" -t termtype specify terminal emulator type\0A\00"
@.str.21 = [45 x i8] c" -u color specify color for underline\0A\00"
@.str.22 = [38 x i8] c" -w width specify screen width\0A\00"
define void @printhelp(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.18, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.19, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.20, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.21, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.22, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"%s -? - Version 1.0a\0A\00"
@str = [71 x i8] c"OS/2 C-Kermit Telnet Stub - allows calls to IBM Telnet or IBM TelnetPM\00"
@str.23 = [63 x i8] c" to be redirected to OS/2 C-Kermit.\00"
@str.24 = [53 x i8] c"Copyright (C) 1996, Trustees of Columbia University\0A\00"
@str.25 = [55 x i8] c"Usage: telnet [-c codepage] [-d filename] [-e envlist]\00"
@str.26 = [56 x i8] c" [-f config] [-h height] [-k keyboard]\00"
@str.27 = [65 x i8] c" [-l filename] [-n] [-o printer] [-p port]\00"
@str.28 = [66 x i8] c" [-t termtype] [-u color] [-w width] [hostname]\00"
@str.29 = [8 x i8] c"Option:\00"
@str.30 = [42 x i8] c" -? display this help message\00"
@str.31 = [52 x i8] c" -c codepage specify code page translation table\00"
@str.32 = [43 x i8] c" -d filename specify debugging filename\00"
@str.33 = [46 x i8] c" -e envlist specify environment variables\00"
@str.34 = [66 x i8] c" -f config specify configuration filename in <ETC> directory\00"
@str.35 = [38 x i8] c" -h height specify screen height\00"
@str.36 = [38 x i8] c" -k keyboard specify keyboard type\00"
@str.37 = [41 x i8] c" -l filename specify logging filename\00"
@str.38 = [31 x i8] c" -n ignore 8th bit\00"
@str.39 = [48 x i8] c" -o printer specify local printer port name\00"
@str.40 = [43 x i8] c" -p port specify remote port number\00"
@str.41 = [47 x i8] c" -t termtype specify terminal emulator type\00"
@str.42 = [44 x i8] c" -u color specify color for underline\00"
@str.43 = [37 x i8] c" -w width specify screen width\00"
define void @printhelp(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.29, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.30, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.31, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.32, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.33, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.34, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.35, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.36, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.37, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.38, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.39, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.40, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.41, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.42, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.43, i64 0, i64 0))
ret void
}