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


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

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

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

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