#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*/ uint64_t;

/* Variables and functions */
int mvvm_sampler_safe_rejection(int, int, double *, double *, double *, double,
                                int /*<<< orphan*/ *, double *);
int __R_mvvm_sampler_safe_rejection(int *n, int *p, double *mu, double *kappa,
                                    double *lambda, double *lmin,
                                    uint64_t *seeds, double *ret, int *errno) {
  *errno =
      mvvm_sampler_safe_rejection(*n, *p, mu, kappa, lambda, *lmin, seeds, ret);
}


x86 assembly (clang, -O0):
<__R_mvvm_sampler_safe_rejection>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rbp),%r9
mov    0x18(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <mvvm_sampler_safe_rejection@plt>
mov    %eax,%ecx
mov    0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__R_mvvm_sampler_safe_rejection>:
push   %r14
push   %rbx
push   %rax
mov    0x30(%rsp),%r14
mov    0x20(%rsp),%rax
mov    0x28(%rsp),%rbx
mov    (%rdi),%edi
mov    (%rsi),%esi
movsd  (%r9),%xmm0
mov    %rbx,(%rsp)
mov    %rax,%r9
call   1030 <mvvm_sampler_safe_rejection@plt>
mov    %eax,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @__R_mvvm_sampler_safe_rejection(i32* %0, i32* %1, double* %2, double* %3, double* %4, double* %5, i32* %6, double* %7, i32* %8) {
%10 = alloca i32
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca i32*
%18 = alloca double*
%19 = alloca i32*
store i32* %0, i32** %11
store i32* %1, i32** %12
store double* %2, double** %13
store double* %3, double** %14
store double* %4, double** %15
store double* %5, double** %16
store i32* %6, i32** %17
store double* %7, double** %18
store i32* %8, i32** %19
%20 = load i32*, i32** %11
%21 = load i32, i32* %20
%22 = load i32*, i32** %12
%23 = load i32, i32* %22
%24 = load double*, double** %13
%25 = load double*, double** %14
%26 = load double*, double** %15
%27 = load double*, double** %16
%28 = load double, double* %27
%29 = load i32*, i32** %17
%30 = load double*, double** %18
%31 = call i32 @mvvm_sampler_safe_rejection(i32 %21, i32 %23, double* %24, double* %25, double* %26, double %28, i32* %29, double* %30)
%32 = load i32*, i32** %19
store i32 %31, i32* %32
%33 = load i32, i32* %10
ret i32 %33
}

LLVM IR (-O2):
define i32 @__R_mvvm_sampler_safe_rejection(i32* nocapture %0, i32* nocapture %1, double* %2, double* %3, double* %4, double* nocapture %5, i32* %6, double* %7, i32* nocapture writeonly %8) {
%10 = load i32, i32* %0
%11 = load i32, i32* %1
%12 = load double, double* %5
%13 = tail call i32 @mvvm_sampler_safe_rejection(i32 %10, i32 %11, double* %2, double* %3, double* %4, double %12, i32* %6, double* %7)
store i32 %13, i32* %8
ret i32 undef
}