#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 replex(double *, double *, int, double (*)(), int, int, double, double,
           double *);
void FREPLX(double *pr, double *shift, int *na, double (*func)(), int *itmax,
            int *maxits, double *ftol, double *atol, double *fret, int *iflag) {
  *iflag = replex(pr, shift, *na, func, *itmax, *maxits, *ftol, *atol, fret);
}


x86 assembly (clang, -O0):
<FREPLX>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rax
mov    (%rax),%edx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    (%rax),%r8d
mov    -0x30(%rbp),%rax
mov    (%rax),%r9d
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    0x20(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <replex@plt>
mov    %eax,%ecx
mov    0x28(%rbp),%rax
mov    %ecx,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FREPLX>:
push   %r14
push   %rbx
push   %rax
mov    0x38(%rsp),%r14
mov    0x30(%rsp),%r10
mov    0x28(%rsp),%rbx
mov    0x20(%rsp),%rax
mov    (%rdx),%edx
mov    (%r8),%r8d
mov    (%r9),%r9d
movsd  (%rax),%xmm0
movsd  (%rbx),%xmm1
mov    %r10,(%rsp)
call   1030 <replex@plt>
mov    %eax,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

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