#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_rsgibbs(int, int, double *, double *, double *, int,
                              int *, int, double *, int /*<<< orphan*/ *,
                              double *);
void __R_mvvm_sampler_safe_rsgibbs(int *n, int *p, double *mu, double *kappa,
                                   double *lambda, int *prec, int *alphaTable,
                                   int *thinning, double *theta,
                                   uint64_t *seeds, double *ret, int *errno) {
  *errno = mvvm_sampler_safe_rsgibbs(*n, *p, mu, kappa, lambda, *prec,
                                     alphaTable, *thinning, theta, seeds, ret);
}


x86 assembly (clang, -O0):
<__R_mvvm_sampler_safe_rsgibbs>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    (%rax),%esi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%rax
mov    (%rax),%r9d
mov    0x10(%rbp),%r14
mov    0x18(%rbp),%rax
mov    (%rax),%ebx
mov    0x20(%rbp),%r11
mov    0x28(%rbp),%r10
mov    0x30(%rbp),%rax
mov    %r14,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1030 <mvvm_sampler_safe_rsgibbs@plt>
mov    %eax,%ecx
mov    0x38(%rbp),%rax
mov    %ecx,(%rax)
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<__R_mvvm_sampler_safe_rsgibbs>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    0x68(%rsp),%r14
mov    0x40(%rsp),%r10
movaps 0x50(%rsp),%xmm0
mov    0x60(%rsp),%rbx
mov    0x48(%rsp),%rax
mov    (%rdi),%edi
mov    (%rsi),%esi
mov    (%r9),%r9d
mov    (%rax),%eax
mov    %rbx,0x20(%rsp)
movups %xmm0,0x10(%rsp)
mov    %eax,0x8(%rsp)
mov    %r10,(%rsp)
call   1030 <mvvm_sampler_safe_rsgibbs@plt>
mov    %eax,(%r14)
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @__R_mvvm_sampler_safe_rsgibbs(i32* %0, i32* %1, double* %2, double* %3, double* %4, i32* %5, i32* %6, i32* %7, double* %8, i32* %9, double* %10, i32* %11) {
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca i32*
%19 = alloca i32*
%20 = alloca i32*
%21 = alloca double*
%22 = alloca i32*
%23 = alloca double*
%24 = alloca i32*
store i32* %0, i32** %13
store i32* %1, i32** %14
store double* %2, double** %15
store double* %3, double** %16
store double* %4, double** %17
store i32* %5, i32** %18
store i32* %6, i32** %19
store i32* %7, i32** %20
store double* %8, double** %21
store i32* %9, i32** %22
store double* %10, double** %23
store i32* %11, i32** %24
%25 = load i32*, i32** %13
%26 = load i32, i32* %25
%27 = load i32*, i32** %14
%28 = load i32, i32* %27
%29 = load double*, double** %15
%30 = load double*, double** %16
%31 = load double*, double** %17
%32 = load i32*, i32** %18
%33 = load i32, i32* %32
%34 = load i32*, i32** %19
%35 = load i32*, i32** %20
%36 = load i32, i32* %35
%37 = load double*, double** %21
%38 = load i32*, i32** %22
%39 = load double*, double** %23
%40 = call i32 @mvvm_sampler_safe_rsgibbs(i32 %26, i32 %28, double* %29, double* %30, double* %31, i32 %33, i32* %34, i32 %36, double* %37, i32* %38, double* %39)
%41 = load i32*, i32** %24
store i32 %40, i32* %41
ret void
}

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