#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*/ permute_wKS(int, int *, double *, int, double *, int, int,
                               double *, double *, int *);
void Rpermute_wKS(int *m, int *g, double *r, int *n_gene, double *w, int *nperm,
                  int *seed, double *resks, double *resperm, int *iwrk) {
  permute_wKS(*m, g, r, *n_gene, w, *nperm, *seed, resks, resperm, iwrk);
  return;
}


x86 assembly (clang, -O0):
<Rpermute_wKS>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
mov    0x28(%rbp),%rax
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),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rax
mov    (%rax),%ecx
mov    -0x30(%rbp),%r8
mov    -0x38(%rbp),%rax
mov    (%rax),%r9d
mov    0x10(%rbp),%rax
mov    (%rax),%ebx
mov    0x18(%rbp),%r11
mov    0x20(%rbp),%r10
mov    0x28(%rbp),%rax
mov    %ebx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1030 <permute_wKS@plt>
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<Rpermute_wKS>:
sub    $0x28,%rsp
movups 0x38(%rsp),%xmm0
mov    0x48(%rsp),%r10
mov    0x30(%rsp),%rax
mov    (%rdi),%edi
mov    (%rcx),%ecx
mov    (%r9),%r9d
mov    (%rax),%eax
mov    %r10,0x18(%rsp)
movups %xmm0,0x8(%rsp)
mov    %eax,(%rsp)
call   1030 <permute_wKS@plt>
add    $0x28,%rsp
ret

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

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