#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stdout;
void print_help(void) {
  printf("Usage: %s ACTION [OPTION]...\n", "smbact");
  puts("");
  fputs("  -h, --help          display this help and exit\n  -v, --version     "
        "  display version information and exit\n",
        stdout);
  puts("");
  fputs("Create a new user:\n  - from file\n    create -f file\n    Will "
        "generate a file to store user account.\n",
        stdout);
  puts("");
  fputs("  - from stdin\n    create [-g group] user\n    Will generate a "
        "\'smb_act\' file to store user account.\n",
        stdout);
  puts("");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
lea    0xedc(%rip),%rsi
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%esi
lea    0xec2(%rip),%rdi
call   1050 <fputs@plt>
lea    0xeae(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e65(%rip),%rax
mov    (%rax),%esi
lea    0xf0e(%rip),%rdi
call   1050 <fputs@plt>
lea    0xe8d(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%esi
lea    0xf52(%rip),%rdi
call   1050 <fputs@plt>
lea    0xe6c(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rbx
lea    0xec8(%rip),%rdi
lea    0xedf(%rip),%rsi
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2e8b(%rip),%rbx
mov    (%rbx),%esi
lea    0xec7(%rip),%rdi
call   1050 <fputs@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rbx),%esi
lea    0xf1c(%rip),%rdi
call   1050 <fputs@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rbx),%esi
lea    0xf69(%rip),%rdi
call   1050 <fputs@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Usage: %s ACTION [OPTION]...\0A\00"
@.str.1 = [7 x i8] c"smbact\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [109 x i8] c" -h, --help display this help and exit\0A -v, --version display version information and exit\0A\00"
@stdout = global i32 0
@.str.4 = [101 x i8] c"Create a new user:\0A - from file\0A create -f file\0A Will generate a file to store user account.\0A\00"
@.str.5 = [101 x i8] c" - from stdin\0A create [-g group] user\0A Will generate a 'smb_act' file to store user account.\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = call i32 @fputs(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.3, i64 0, i64 0), i32 %3)
%5 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%6 = load i32, i32* @stdout
%7 = call i32 @fputs(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.4, i64 0, i64 0), i32 %6)
%8 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = call i32 @fputs(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.5, i64 0, i64 0), i32 %9)
%11 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"Usage: %s ACTION [OPTION]...\0A\00"
@.str.1 = [7 x i8] c"smbact\00"
@.str.3 = [109 x i8] c" -h, --help display this help and exit\0A -v, --version display version information and exit\0A\00"
@stdout = global i32 0
@.str.4 = [101 x i8] c"Create a new user:\0A - from file\0A create -f file\0A Will generate a file to store user account.\0A\00"
@.str.5 = [101 x i8] c" - from stdin\0A create [-g group] user\0A Will generate a 'smb_act' file to store user account.\0A\00"
define void @print_help() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.3, i64 0, i64 0), i32 %3)
%5 = tail call i32 @putchar(i32 10)
%6 = load i32, i32* @stdout
%7 = tail call i32 @fputs(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.4, i64 0, i64 0), i32 %6)
%8 = tail call i32 @putchar(i32 10)
%9 = load i32, i32* @stdout
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.5, i64 0, i64 0), i32 %9)
%11 = tail call i32 @putchar(i32 10)
ret void
}