#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*/ sprintf(char *, char *);
void show_ip_local_reserved_ports_man(char *pt) {
  pt += sprintf(pt, "Display the list of TCP listening ports that should be "
                    "reserved for RozoFS.\n");
  pt += sprintf(pt, "1rst column : the base port number in use.\n");
  pt += sprintf(
      pt,
      "2nd  column : the number of ports used from the base port number.\n");
  pt += sprintf(pt, "3rd  column : the default base port number.\n");
  pt += sprintf(pt, "4th  column : the service name to use in /etc/services to "
                    "change the base port number.\n");
  pt += sprintf(pt, "5th  column : the listening port role.\n");
}


x86 assembly (clang, -O0):
<show_ip_local_reserved_ports_man>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <sprintf@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xf06(%rip),%rsi
call   1030 <sprintf@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xf12(%rip),%rsi
call   1030 <sprintf@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xf35(%rip),%rsi
call   1030 <sprintf@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xf42(%rip),%rsi
call   1030 <sprintf@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xf7a(%rip),%rsi
call   1030 <sprintf@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_ip_local_reserved_ports_man>:
movups 0xf35(%rip),%xmm0
movups %xmm0,0x3c(%rdi)
movups 0xf1e(%rip),%xmm0
movups %xmm0,0x30(%rdi)
movups 0xf03(%rip),%xmm0
movups %xmm0,0x20(%rdi)
movups 0xee8(%rip),%xmm0
movups %xmm0,0x10(%rdi)
movups 0xecd(%rip),%xmm0
movups %xmm0,(%rdi)
movups 0xf2b(%rip),%xmm0
movups %xmm0,0x67(%rdi)
movups 0xf15(%rip),%xmm0
movups %xmm0,0x5c(%rdi)
movups 0xefa(%rip),%xmm0
movups %xmm0,0x4c(%rdi)
movups 0xf1b(%rip),%xmm0
movups %xmm0,0x77(%rdi)
movups 0xf20(%rip),%xmm0
movups %xmm0,0x87(%rdi)
movups 0xf22(%rip),%xmm0
movups %xmm0,0x97(%rdi)
movups 0xf24(%rip),%xmm0
movups %xmm0,0xa7(%rdi)
movw   $0xa2e,0xb7(%rdi)
2e 0a
movups 0xf30(%rip),%xmm0
movups %xmm0,0xc9(%rdi)
movups 0xf2e(%rip),%xmm0
movups %xmm0,0xd5(%rdi)
movups 0xf04(%rip),%xmm0
movups %xmm0,0xb9(%rdi)
movabs $0xa2e7265626d756e,%rax
72 2e 0a
mov    %rax,0x134(%rdi)
movups 0xf12(%rip),%xmm0
movups %xmm0,0xe5(%rdi)
movups 0xf14(%rip),%xmm0
movups %xmm0,0xf5(%rdi)
movups 0xf16(%rip),%xmm0
movups %xmm0,0x105(%rdi)
movups 0xf18(%rip),%xmm0
movups %xmm0,0x115(%rdi)
movups 0xf1a(%rip),%xmm0
movups %xmm0,0x125(%rdi)
movabs $0xa2e656c6f7220,%rax
mov    %rax,0x15c(%rdi)
movups 0xf13(%rip),%xmm0
movups %xmm0,0x13c(%rdi)
movups 0xf15(%rip),%xmm0
movups %xmm0,0x14c(%rdi)
ret

LLVM IR (-O0):
@.str = [77 x i8] c"Display the list of TCP listening ports that should be reserved for RozoFS.\0A\00"
@.str.1 = [44 x i8] c"1rst column : the base port number in use.\0A\00"
@.str.2 = [67 x i8] c"2nd column : the number of ports used from the base port number.\0A\00"
@.str.3 = [45 x i8] c"3rd column : the default base port number.\0A\00"
@.str.4 = [88 x i8] c"4th column : the service name to use in /etc/services to change the base port number.\0A\00"
@.str.5 = [40 x i8] c"5th column : the listening port role.\0A\00"
define void @show_ip_local_reserved_ports_man(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @sprintf(i8* %3, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
%5 = load i8*, i8** %2
%6 = sext i32 %4 to i64
%7 = getelementptr inbounds i8, i8* %5, i64 %6
store i8* %7, i8** %2
%8 = load i8*, i8** %2
%9 = call i32 @sprintf(i8* %8, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%10 = load i8*, i8** %2
%11 = sext i32 %9 to i64
%12 = getelementptr inbounds i8, i8* %10, i64 %11
store i8* %12, i8** %2
%13 = load i8*, i8** %2
%14 = call i32 @sprintf(i8* %13, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i64 0, i64 0))
%15 = load i8*, i8** %2
%16 = sext i32 %14 to i64
%17 = getelementptr inbounds i8, i8* %15, i64 %16
store i8* %17, i8** %2
%18 = load i8*, i8** %2
%19 = call i32 @sprintf(i8* %18, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%20 = load i8*, i8** %2
%21 = sext i32 %19 to i64
%22 = getelementptr inbounds i8, i8* %20, i64 %21
store i8* %22, i8** %2
%23 = load i8*, i8** %2
%24 = call i32 @sprintf(i8* %23, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0))
%25 = load i8*, i8** %2
%26 = sext i32 %24 to i64
%27 = getelementptr inbounds i8, i8* %25, i64 %26
store i8* %27, i8** %2
%28 = load i8*, i8** %2
%29 = call i32 @sprintf(i8* %28, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
%30 = load i8*, i8** %2
%31 = sext i32 %29 to i64
%32 = getelementptr inbounds i8, i8* %30, i64 %31
store i8* %32, i8** %2
ret void
}

LLVM IR (-O2):
@.str = [77 x i8] c"Display the list of TCP listening ports that should be reserved for RozoFS.\0A\00"
@.str.1 = [44 x i8] c"1rst column : the base port number in use.\0A\00"
@.str.2 = [67 x i8] c"2nd column : the number of ports used from the base port number.\0A\00"
@.str.3 = [45 x i8] c"3rd column : the default base port number.\0A\00"
@.str.4 = [88 x i8] c"4th column : the service name to use in /etc/services to change the base port number.\0A\00"
@.str.5 = [40 x i8] c"5th column : the listening port role.\0A\00"
define void @show_ip_local_reserved_ports_man(i8* nocapture writeonly %0) {
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(77) %0, i8* align 1 dereferenceable(77) getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0), i64 76, i1 false)
%2 = getelementptr inbounds i8, i8* %0, i64 76
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(44) %2, i8* align 1 dereferenceable(44) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), i64 43, i1 false)
%3 = getelementptr inbounds i8, i8* %0, i64 119
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(67) %3, i8* align 1 dereferenceable(67) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i64 0, i64 0), i64 66, i1 false)
%4 = getelementptr inbounds i8, i8* %0, i64 185
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(45) %4, i8* align 1 dereferenceable(45) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0), i64 44, i1 false)
%5 = getelementptr inbounds i8, i8* %0, i64 229
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(88) %5, i8* align 1 dereferenceable(88) getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0), i64 87, i1 false)
%6 = getelementptr inbounds i8, i8* %0, i64 316
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(40) %6, i8* align 1 dereferenceable(40) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0), i64 40, i1 false)
ret void
}