#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 dsyeig(char *, char *, char *, int *, double *, int *, double *, double *,
           int *, int *, int *, double *, double *, int *);
void dsyeig_(char *jobz, char *range, char *uplo, int *n, double *A, int *lda,
             double *vl, double *vu, int *il, int *iu, int *m, double *W,
             double *Z, int *ldz, int *info) {
  *info = dsyeig(jobz, range, uplo, n, A, lda, vl, vu, il, iu, m, W, Z, ldz);
}


x86 assembly (clang, -O0):
<dsyeig_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
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),%r13
mov    0x18(%rbp),%r12
mov    0x20(%rbp),%r15
mov    0x28(%rbp),%r14
mov    0x30(%rbp),%rbx
mov    0x38(%rbp),%r11
mov    0x40(%rbp),%r10
mov    0x48(%rbp),%rax
mov    %r13,(%rsp)
mov    %r12,0x8(%rsp)
mov    %r15,0x10(%rsp)
mov    %r14,0x18(%rsp)
mov    %rbx,0x20(%rsp)
mov    %r11,0x28(%rsp)
mov    %r10,0x30(%rsp)
mov    %rax,0x38(%rsp)
call   1030 <dsyeig@plt>
mov    %eax,%ecx
mov    0x50(%rbp),%rax
mov    %ecx,(%rax)
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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

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