#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_FAILURE;
int /*<<< orphan*/ LOG_AUTH;
int /*<<< orphan*/ LOG_ERR;
int /*<<< orphan*/ PR_SET_DUMPABLE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ openlog(char *, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ prctl(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/,
                 int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *);
void initialize(void) {
  openlog("provisor_authorized_keys", 0, LOG_AUTH);
  if (prctl(PR_SET_DUMPABLE, 0, 0, 0, 0) < 0) {
    syslog(LOG_ERR, "Cannot turn off binary dumpability");
    exit(EXIT_FAILURE);
  }
}


x86 assembly (clang, -O0):
<initialize>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e9d(%rip),%rax
mov    (%rax),%edx
lea    0xeac(%rip),%rdi
xor    %esi,%esi
call   1050 <openlog@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
xor    %r8d,%r8d
mov    %r8d,%esi
mov    %r8d,%edx
mov    %r8d,%ecx
call   1030 <prctl@plt>
cmp    $0x0,%rax
jge    11a2 <initialize+0x62>
mov    0x2e3a(%rip),%rax
mov    (%rax),%edi
lea    0xe8a(%rip),%rsi
call   1040 <syslog@plt>
mov    0x2e35(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialize>:
push   %rax
mov    0x2ea0(%rip),%rax
mov    (%rax),%edx
lea    0xeaf(%rip),%rdi
xor    %esi,%esi
call   1050 <openlog@plt>
mov    0x2e79(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1030 <prctl@plt>
test   %rax,%rax
js     1176 <initialize+0x36>
pop    %rax
ret
mov    0x2e43(%rip),%rax
mov    (%rax),%edi
lea    0xe93(%rip),%rsi
call   1040 <syslog@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"provisor_authorized_keys\00"
@LOG_AUTH = global i32 0
@PR_SET_DUMPABLE = global i32 0
@LOG_ERR = global i32 0
@.str.1 = [35 x i8] c"Cannot turn off binary dumpability\00"
@EXIT_FAILURE = global i32 0
define void @initialize() {
%1 = load i32, i32* @LOG_AUTH
%2 = call i32 @openlog(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 0, i32 %1)
%3 = load i32, i32* @PR_SET_DUMPABLE
%4 = call i64 @prctl(i32 %3, i32 0, i32 0, i32 0, i32 0)
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %0
%7 = load i32, i32* @LOG_ERR
%8 = call i32 @syslog(i32 %7, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* @EXIT_FAILURE
%10 = call i32 @exit(i32 %9)
unreachable
11: ; preds = %0
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"provisor_authorized_keys\00"
@LOG_AUTH = global i32 0
@PR_SET_DUMPABLE = global i32 0
@LOG_ERR = global i32 0
@.str.1 = [35 x i8] c"Cannot turn off binary dumpability\00"
@EXIT_FAILURE = global i32 0
define void @initialize() {
%1 = load i32, i32* @LOG_AUTH
%2 = tail call i32 @openlog(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 0, i32 %1)
%3 = load i32, i32* @PR_SET_DUMPABLE
%4 = tail call i64 @prctl(i32 %3, i32 0, i32 0, i32 0, i32 0)
%5 = icmp slt i64 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %0
%7 = load i32, i32* @LOG_ERR
%8 = tail call i32 @syslog(i32 %7, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* @EXIT_FAILURE
%10 = tail call i32 @exit(i32 %9)
unreachable
11: ; preds = %0
ret void
}