#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 usage(char *progname) {
  printf("Remserial version 1.3.  Usage:\n");
  printf("remserial [-r machinename] [-p netport] [-s \"stty params\"] [-m "
         "maxconnect] device\n\n");
  printf("-r machinename		The remote machine name to connect to. "
         " If not\n");
  printf("			specified, then this is the server side.\n");
  printf("-p netport		Specifiy IP port# (default 23000)\n");
  printf("-s \"stty params\"	If serial port, specify stty parameters, see "
         "man stty\n");
  printf("-m max-connections	Maximum number of simultaneous client "
         "connections to allow\n");
  printf("-d			Run as a daemon program\n");
  printf("-x debuglevel		Set debug level, 0 is default, 1,2 give more "
         "info\n");
  printf("-l linkname		If the device name is a pseudo-tty, create a "
         "link to the slave\n");
  printf("-w          		Only write to the device, no reading\n");
  printf("device			I/O device, either serial port or "
         "pseudo-tty master\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
lea    0xf39(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfed(%rip),%rdi
call   1030 <printf@plt>
lea    0x1030(%rip),%rdi
call   1030 <printf@plt>
lea    0x1042(%rip),%rdi
call   1030 <printf@plt>
lea    0x1078(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b9(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e1(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xefb(%rip),%rdi
call   1030 <puts@plt>
lea    0xf42(%rip),%rdi
call   1030 <puts@plt>
lea    0xf75(%rip),%rdi
call   1030 <puts@plt>
lea    0xf95(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb7(%rip),%rdi
call   1030 <puts@plt>
lea    0xff2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1034(%rip),%rdi
call   1030 <puts@plt>
lea    0x1045(%rip),%rdi
call   1030 <puts@plt>
lea    0x107a(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ba(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e1(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"Remserial version 1.3. Usage:\0A\00"
@.str.1 = [84 x i8] c"remserial [-r machinename] [-p netport] [-s \22stty params\22] [-m maxconnect] device\0A\0A\00"
@.str.2 = [64 x i8] c"-r machinename\09\09The remote machine name to connect to. If not\0A\00"
@.str.3 = [45 x i8] c"\09\09\09specified, then this is the server side.\0A\00"
@.str.4 = [47 x i8] c"-p netport\09\09Specifiy IP port# (default 23000)\0A\00"
@.str.5 = [72 x i8] c"-s \22stty params\22\09If serial port, specify stty parameters, see man stty\0A\00"
@.str.6 = [79 x i8] c"-m max-connections\09Maximum number of simultaneous client connections to allow\0A\00"
@.str.7 = [30 x i8] c"-d\09\09\09Run as a daemon program\0A\00"
@.str.8 = [66 x i8] c"-x debuglevel\09\09Set debug level, 0 is default, 1,2 give more info\0A\00"
@.str.9 = [77 x i8] c"-l linkname\09\09If the device name is a pseudo-tty, create a link to the slave\0A\00"
@.str.10 = [52 x i8] c"-w \09\09Only write to the device, no reading\0A\00"
@.str.11 = [62 x i8] c"device\09\09\09I/O device, either serial port or pseudo-tty master\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [31 x i8] c"Remserial version 1.3. Usage:\00"
@str.12 = [83 x i8] c"remserial [-r machinename] [-p netport] [-s \22stty params\22] [-m maxconnect] device\0A\00"
@str.13 = [63 x i8] c"-r machinename\09\09The remote machine name to connect to. If not\00"
@str.14 = [44 x i8] c"\09\09\09specified, then this is the server side.\00"
@str.15 = [46 x i8] c"-p netport\09\09Specifiy IP port# (default 23000)\00"
@str.16 = [71 x i8] c"-s \22stty params\22\09If serial port, specify stty parameters, see man stty\00"
@str.17 = [78 x i8] c"-m max-connections\09Maximum number of simultaneous client connections to allow\00"
@str.18 = [29 x i8] c"-d\09\09\09Run as a daemon program\00"
@str.19 = [65 x i8] c"-x debuglevel\09\09Set debug level, 0 is default, 1,2 give more info\00"
@str.20 = [76 x i8] c"-l linkname\09\09If the device name is a pseudo-tty, create a link to the slave\00"
@str.21 = [51 x i8] c"-w \09\09Only write to the device, no reading\00"
@str.22 = [61 x i8] c"device\09\09\09I/O device, either serial port or pseudo-tty master\00"
define void @usage(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.22, i64 0, i64 0))
ret void
}