#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);
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *, char *,
                          char *, char *, char *, char *, char *, char *,
                          char *);
void show_help(void) {
  printf(
      "service - control and manage system services\n",
      "LSMD v0.1 (C) 2014 Michal Kulling\n", "Usage:\n",
      "  service [start|stop|restart|status|reload] [service|instance] "
      "{-soihHFD}\n\n",
      "\t-e, --exec\t - path to service executable file\n",
      "\t-h, --help\t - show this help\n",
      "\t-i, --instance\t - specify instance name\n",
      "\t-n, --name\t - specify the name of service\n",
      "\t-p, --pidfile\t - specify path to pidfile\n",
      "\t-P, --params\t - specify parameters for service which was include\n",
      "\t-s, --start\t - start service\n", "\t-S, --stop\t - stop service\n",
      "\t-v, --version\t - show version of lsmd\n");
  exit(1);
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x40,%rsp
lea    0xeca(%rip),%rdi
lea    0xef1(%rip),%rsi
lea    0xf0d(%rip),%rdx
lea    0xf0e(%rip),%rcx
lea    0xf54(%rip),%r8
lea    0xf7d(%rip),%r9
lea    0xf95(%rip),%r12
lea    0xfb8(%rip),%r15
lea    0xfdd(%rip),%r14
lea    0x1001(%rip),%rbx
lea    0x103d(%rip),%r11
lea    0x1055(%rip),%r10
lea    0x106b(%rip),%rax
mov    %r12,(%rsp)
mov    %r15,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<show_help>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
sub    $0x8,%rsp
lea    0x10c2(%rip),%rax
lea    0x109e(%rip),%r10
lea    0x1078(%rip),%r11
lea    0x102e(%rip),%rbx
lea    0xffc(%rip),%r14
lea    0xfc9(%rip),%r15
lea    0xf98(%rip),%r12
lea    0xe9c(%rip),%rdi
lea    0xec3(%rip),%rsi
lea    0xedf(%rip),%rdx
lea    0xee0(%rip),%rcx
lea    0xf26(%rip),%r8
lea    0xf4f(%rip),%r9
push   %rax
push   %r10
push   %r11
push   %rbx
push   %r14
push   %r15
push   %r12
call   1030 <printf@plt>
add    $0x40,%rsp
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [46 x i8] c"service - control and manage system services\0A\00"
@.str.1 = [35 x i8] c"LSMD v0.1 (C) 2014 Michal Kulling\0A\00"
@.str.2 = [8 x i8] c"Usage:\0A\00"
@.str.3 = [77 x i8] c" service [start|stop|restart|status|reload] [service|instance] {-soihHFD}\0A\0A\00"
@.str.4 = [48 x i8] c"\09-e, --exec\09 - path to service executable file\0A\00"
@.str.5 = [31 x i8] c"\09-h, --help\09 - show this help\0A\00"
@.str.6 = [42 x i8] c"\09-i, --instance\09 - specify instance name\0A\00"
@.str.7 = [44 x i8] c"\09-n, --name\09 - specify the name of service\0A\00"
@.str.8 = [43 x i8] c"\09-p, --pidfile\09 - specify path to pidfile\0A\00"
@.str.9 = [67 x i8] c"\09-P, --params\09 - specify parameters for service which was include\0A\00"
@.str.10 = [31 x i8] c"\09-s, --start\09 - start service\0A\00"
@.str.11 = [29 x i8] c"\09-S, --stop\09 - stop service\0A\00"
@.str.12 = [40 x i8] c"\09-v, --version\09 - show version of lsmd\0A\00"
define void @show_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [46 x i8] c"service - control and manage system services\0A\00"
@.str.1 = [35 x i8] c"LSMD v0.1 (C) 2014 Michal Kulling\0A\00"
@.str.2 = [8 x i8] c"Usage:\0A\00"
@.str.3 = [77 x i8] c" service [start|stop|restart|status|reload] [service|instance] {-soihHFD}\0A\0A\00"
@.str.4 = [48 x i8] c"\09-e, --exec\09 - path to service executable file\0A\00"
@.str.5 = [31 x i8] c"\09-h, --help\09 - show this help\0A\00"
@.str.6 = [42 x i8] c"\09-i, --instance\09 - specify instance name\0A\00"
@.str.7 = [44 x i8] c"\09-n, --name\09 - specify the name of service\0A\00"
@.str.8 = [43 x i8] c"\09-p, --pidfile\09 - specify path to pidfile\0A\00"
@.str.9 = [67 x i8] c"\09-P, --params\09 - specify parameters for service which was include\0A\00"
@.str.10 = [31 x i8] c"\09-s, --start\09 - start service\0A\00"
@.str.11 = [29 x i8] c"\09-S, --stop\09 - stop service\0A\00"
@.str.12 = [40 x i8] c"\09-v, --version\09 - show version of lsmd\0A\00"
define void @show_help() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}