#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 dspeig(char *, char *, char *, int *, double *, double *, double *, int *,
           int *, int *, double *, double *, int *);
void dspeig_(char *jobz, char *range, char *uplo, int *np, double *AP,
             double *vlp, double *vup, int *ilp, int *iup, int *mp, double *W,
             double *Z, int *ldzp, int *info) {
  *info = dspeig(jobz, range, uplo, np, AP, vlp, vup, ilp, iup, mp, W, Z, ldzp);
}


x86 assembly (clang, -O0):
<dspeig_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
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,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x50(%rbp),%r9
mov    0x10(%rbp),%r12
mov    0x18(%rbp),%r15
mov    0x20(%rbp),%r14
mov    0x28(%rbp),%rbx
mov    0x30(%rbp),%r11
mov    0x38(%rbp),%r10
mov    0x40(%rbp),%rax
mov    %r12,(%rsp)
mov    %r15,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1030 <dspeig@plt>
mov    %eax,%ecx
mov    0x48(%rbp),%rax
mov    %ecx,(%rax)
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<dspeig_>:
push   %rbx
sub    $0x40,%rsp
mov    0x88(%rsp),%rbx
movaps 0x50(%rsp),%xmm0
movaps 0x60(%rsp),%xmm1
movaps 0x70(%rsp),%xmm2
mov    0x80(%rsp),%rax
mov    %rax,0x30(%rsp)
movups %xmm2,0x20(%rsp)
movups %xmm1,0x10(%rsp)
movups %xmm0,(%rsp)
call   1030 <dspeig@plt>
mov    %eax,(%rbx)
add    $0x40,%rsp
pop    %rbx
ret

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

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