#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_gibbs(int, int, double *, double *, double *, int, int,
                            int /*<<< orphan*/ *, double *);
void __R_mvvm_sampler_safe_gibbs(int *n, int *p, double *mu, double *kappa,
                                 double *lambda, int *initk, int *k,
                                 uint64_t *seeds, double *ret, int *errno) {
  *errno = mvvm_sampler_safe_gibbs(*n, *p, mu, kappa, lambda, *initk, *k, seeds,
                                   ret);
}


x86 assembly (clang, -O0):
<__R_mvvm_sampler_safe_gibbs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%rax
mov    (%rax),%r9d
mov    0x10(%rbp),%rax
mov    (%rax),%r11d
mov    0x18(%rbp),%r10
mov    0x20(%rbp),%rax
mov    %r11d,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <mvvm_sampler_safe_gibbs@plt>
mov    %eax,%ecx
mov    0x28(%rbp),%rax
mov    %ecx,(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__R_mvvm_sampler_safe_gibbs>:
push   %rbx
sub    $0x20,%rsp
mov    0x48(%rsp),%rbx
movups 0x38(%rsp),%xmm0
mov    0x30(%rsp),%rax
mov    (%rdi),%edi
mov    (%rsi),%esi
mov    (%r9),%r9d
mov    (%rax),%eax
movups %xmm0,0x8(%rsp)
mov    %eax,(%rsp)
call   1030 <mvvm_sampler_safe_gibbs@plt>
mov    %eax,(%rbx)
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @__R_mvvm_sampler_safe_gibbs(i32* %0, i32* %1, double* %2, double* %3, double* %4, i32* %5, i32* %6, i32* %7, double* %8, i32* %9) {
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca double*
%20 = 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 i32* %5, i32** %16
store i32* %6, i32** %17
store i32* %7, i32** %18
store double* %8, double** %19
store i32* %9, i32** %20
%21 = load i32*, i32** %11
%22 = load i32, i32* %21
%23 = load i32*, i32** %12
%24 = load i32, i32* %23
%25 = load double*, double** %13
%26 = load double*, double** %14
%27 = load double*, double** %15
%28 = load i32*, i32** %16
%29 = load i32, i32* %28
%30 = load i32*, i32** %17
%31 = load i32, i32* %30
%32 = load i32*, i32** %18
%33 = load double*, double** %19
%34 = call i32 @mvvm_sampler_safe_gibbs(i32 %22, i32 %24, double* %25, double* %26, double* %27, i32 %29, i32 %31, i32* %32, double* %33)
%35 = load i32*, i32** %20
store i32 %34, i32* %35
ret void
}

LLVM IR (-O2):
define void @__R_mvvm_sampler_safe_gibbs(i32* nocapture %0, i32* nocapture %1, double* %2, double* %3, double* %4, i32* nocapture %5, i32* nocapture %6, i32* %7, double* %8, i32* nocapture writeonly %9) {
%11 = load i32, i32* %0
%12 = load i32, i32* %1
%13 = load i32, i32* %5
%14 = load i32, i32* %6
%15 = tail call i32 @mvvm_sampler_safe_gibbs(i32 %11, i32 %12, double* %2, double* %3, double* %4, i32 %13, i32 %14, i32* %7, double* %8)
store i32 %15, i32* %9
ret void
}