#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void show_example_usage(const char *prog, const char *arg1, const char *arg2) {
  (void)fprintf(
      stderr,
      "\nRNCryptor-C v%s\n"
      "\nAn example program of RNCryptor-C. RNCryptor-C is a C implementation\n"
      "of RNCryptor's data format spec v%d\n\n",
      "1.06", 0x03);
  (void)fprintf(stderr, "  RNCryptor:%s\n",
                "https://github.com/RNCryptor/RNCryptor");
  (void)fprintf(stderr, "RNCryptor-C:%s\n\n",
                "https://github.com/RNCryptor/RNCryptor-C");
  (void)fprintf(stderr, "Usage: %s <%s> <%s>\n\n", prog, arg1, arg2);
  (void)fprintf(stderr, "Set the password with env variable RNCPASS\n");
  (void)fprintf(stderr, "Exmaple:\n"
                        "In Linux/Unix:\n"
                        "  RNCPASS=\"secret\";export RNCPASS\n"
                        "In Windows:\n"
                        "  SET RNCPASS=secret\n");
}


x86 assembly (clang, -O0):
<show_example_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
lea    0xf42(%rip),%rdx
mov    $0x3,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e92(%rip),%rax
mov    (%rax),%edi
lea    0xf2b(%rip),%rsi
lea    0xf34(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
lea    0xf44(%rip),%rsi
lea    0xf4e(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
lea    0xf54(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e33(%rip),%rax
mov    (%rax),%edi
lea    0xf53(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e1c(%rip),%rax
mov    (%rax),%edi
lea    0xf68(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_example_usage>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%r12
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
lea    0xf45(%rip),%rdx
mov    $0x3,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf35(%rip),%rsi
lea    0xf3e(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf55(%rip),%rsi
lea    0xf5f(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf78(%rip),%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf75(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf91(%rip),%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [125 x i8] c"\0ARNCryptor-C v%s\0A\0AAn example program of RNCryptor-C. RNCryptor-C is a C implementation\0Aof RNCryptor's data format spec v%d\0A\0A\00"
@.str.1 = [5 x i8] c"1.06\00"
@.str.2 = [16 x i8] c" RNCryptor:%s\0A\00"
@.str.3 = [39 x i8] c"https://github.com/RNCryptor/RNCryptor\00"
@.str.4 = [17 x i8] c"RNCryptor-C:%s\0A\0A\00"
@.str.5 = [41 x i8] c"https://github.com/RNCryptor/RNCryptor-C\00"
@.str.6 = [22 x i8] c"Usage: %s <%s> <%s>\0A\0A\00"
@.str.7 = [44 x i8] c"Set the password with env variable RNCPASS\0A\00"
@.str.8 = [92 x i8] c"Exmaple:\0AIn Linux/Unix:\0A RNCPASS=\22secret\22;export RNCPASS\0AIn Windows:\0A SET RNCPASS=secret\0A\00"
define void @show_example_usage(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i32, i32* @stderr
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([125 x i8], [125 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 3)
%9 = load i32, i32* @stderr
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = load i8*, i8** %4
%15 = load i8*, i8** %5
%16 = load i8*, i8** %6
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %14, i8* %15, i8* %16)
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [125 x i8] c"\0ARNCryptor-C v%s\0A\0AAn example program of RNCryptor-C. RNCryptor-C is a C implementation\0Aof RNCryptor's data format spec v%d\0A\0A\00"
@.str.1 = [5 x i8] c"1.06\00"
@.str.2 = [16 x i8] c" RNCryptor:%s\0A\00"
@.str.3 = [39 x i8] c"https://github.com/RNCryptor/RNCryptor\00"
@.str.4 = [17 x i8] c"RNCryptor-C:%s\0A\0A\00"
@.str.5 = [41 x i8] c"https://github.com/RNCryptor/RNCryptor-C\00"
@.str.6 = [22 x i8] c"Usage: %s <%s> <%s>\0A\0A\00"
@.str.7 = [44 x i8] c"Set the password with env variable RNCPASS\0A\00"
@.str.8 = [92 x i8] c"Exmaple:\0AIn Linux/Unix:\0A RNCPASS=\22secret\22;export RNCPASS\0AIn Windows:\0A SET RNCPASS=secret\0A\00"
define void @show_example_usage(i8* %0, i8* %1, i8* %2) {
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([125 x i8], [125 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 3)
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %0, i8* %1, i8* %2)
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.8, i64 0, i64 0))
ret void
}