#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 */
typedef int /*<<< orphan*/ version;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
unsigned int jent_version();
int /*<<< orphan*/ jentrng_versionstring(char *, int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ stderr;
void usage(void) {
  unsigned int ver = jent_version();
  char version[30];
  memset(version, 0, 30);
  jentrng_versionstring(version, sizeof(version));
  fprintf(stderr,
          "\njitterentropy rngd feeding entropy to input_pool of Linux RNG\n");
  fprintf(stderr, "Version %s\n\n", version);
  fprintf(stderr, "Reported numeric version number of jent library %u\n\n",
          ver);
  fprintf(stderr, "Usage:\n");
  fprintf(stderr, "\t-h --help\tThis help information\n");
  fprintf(stderr, "\t   --version\tPrint version\n");
  fprintf(
      stderr,
      "\t-v --verbose\tVerbose logging, multiple options increase verbosity\n");
  fprintf(stderr, "\t\t\tVerbose logging implies running in foreground\n");
  fprintf(stderr, "\t-p --pid\tWrite daemon PID to file\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    $0x0,%al
call   1040 <jent_version@plt>
mov    %eax,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1030 <memset@plt>
lea    -0x30(%rbp),%rdi
mov    $0x1e,%esi
call   1070 <jentrng_versionstring@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
lea    0xe70(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2e42(%rip),%rax
mov    (%rax),%edi
lea    -0x30(%rbp),%rdx
lea    0xe95(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2e27(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xe88(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0xea6(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2df6(%rip),%rax
mov    (%rax),%edi
lea    0xe97(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2ddf(%rip),%rax
mov    (%rax),%edi
lea    0xea2(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2dc8(%rip),%rax
mov    (%rax),%edi
lea    0xea8(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2db1(%rip),%rax
mov    (%rax),%edi
lea    0xed5(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2d9a(%rip),%rax
mov    (%rax),%edi
lea    0xef0(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
xor    %eax,%eax
call   1040 <jent_version@plt>
mov    %eax,%r14d
mov    %rsp,%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1e,%edx
call   1030 <memset@plt>
mov    %rbx,%rdi
mov    $0x1e,%esi
call   1070 <jentrng_versionstring@plt>
mov    0x2e58(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xe6e(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xe9d(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xe96(%rip),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xeb7(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xeae(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xebf(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xecb(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xefe(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xf1f(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [64 x i8] c"\0Ajitterentropy rngd feeding entropy to input_pool of Linux RNG\0A\00"
@.str.1 = [13 x i8] c"Version %s\0A\0A\00"
@.str.2 = [53 x i8] c"Reported numeric version number of jent library %u\0A\0A\00"
@.str.3 = [8 x i8] c"Usage:\0A\00"
@.str.4 = [34 x i8] c"\09-h --help\09This help information\0A\00"
@.str.5 = [29 x i8] c"\09 --version\09Print version\0A\00"
@.str.6 = [68 x i8] c"\09-v --verbose\09Verbose logging, multiple options increase verbosity\0A\00"
@.str.7 = [50 x i8] c"\09\09\09Verbose logging implies running in foreground\0A\00"
@.str.8 = [36 x i8] c"\09-p --pid\09Write daemon PID to file\0A\00"
define void @usage() {
%1 = alloca i32
%2 = alloca [30 x i8]
%3 = call i32 (...) @jent_version()
store i32 %3, i32* %1
%4 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%5 = call i32 @memset(i8* %4, i32 0, i32 30)
%6 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%7 = call i32 @jentrng_versionstring(i8* %6, i32 30)
%8 = load i32, i32* @stderr
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%13 = load i32, i32* @stderr
%14 = load i32, i32* %1
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%28 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [64 x i8] c"\0Ajitterentropy rngd feeding entropy to input_pool of Linux RNG\0A\00"
@.str.1 = [13 x i8] c"Version %s\0A\0A\00"
@.str.2 = [53 x i8] c"Reported numeric version number of jent library %u\0A\0A\00"
@.str.3 = [8 x i8] c"Usage:\0A\00"
@.str.4 = [34 x i8] c"\09-h --help\09This help information\0A\00"
@.str.5 = [29 x i8] c"\09 --version\09Print version\0A\00"
@.str.6 = [68 x i8] c"\09-v --verbose\09Verbose logging, multiple options increase verbosity\0A\00"
@.str.7 = [50 x i8] c"\09\09\09Verbose logging implies running in foreground\0A\00"
@.str.8 = [36 x i8] c"\09-p --pid\09Write daemon PID to file\0A\00"
define void @usage() {
%1 = alloca [30 x i8]
%2 = tail call i32 (...) @jent_version()
%3 = getelementptr inbounds [30 x i8], [30 x i8]* %1, i64 0, i64 0
%4 = call i32 @memset(i8* %3, i32 0, i32 30)
%5 = call i32 @jentrng_versionstring(i8* %3, i32 30)
%6 = load i32, i32* @stderr
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%10 = load i32, i32* @stderr
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i32 %2)
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%24 = call i32 @exit(i32 1)
unreachable
}