#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*/ dgesvd_(char *, char *, int *, int *, double *, int *,
                           double *, double *, int *, double *, int *, double *,
                           int *, int *);
void DGESVD(char JOBU, char JOBVT, int M, int N, double *A, int LDA, double *S,
            double *U, int LDU, double *VT, int LDVT, double *WORK, int LWORK,
            int INFO) {
  dgesvd_(&JOBU, &JOBVT, &M, &N, A, &LDA, S, U, &LDU, VT, &LDVT, WORK, &LWORK,
          &INFO);
}


x86 assembly (clang, -O0):
<DGESVD>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %sil,%al
mov    %dil,%sil
mov    0x48(%rbp),%edi
mov    0x40(%rbp),%edi
mov    0x38(%rbp),%rdi
mov    0x30(%rbp),%edi
mov    0x28(%rbp),%rdi
mov    0x20(%rbp),%edi
mov    0x18(%rbp),%rdi
mov    0x10(%rbp),%rdi
mov    %sil,-0x29(%rbp)
mov    %al,-0x2a(%rbp)
mov    %edx,-0x30(%rbp)
mov    %ecx,-0x34(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9d,-0x44(%rbp)
mov    -0x40(%rbp),%r8
mov    0x10(%rbp),%r13
mov    0x18(%rbp),%r12
mov    0x28(%rbp),%r14
mov    0x38(%rbp),%r11
lea    -0x29(%rbp),%rdi
lea    -0x2a(%rbp),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x34(%rbp),%rcx
lea    -0x44(%rbp),%r9
lea    0x20(%rbp),%r15
lea    0x30(%rbp),%rbx
lea    0x40(%rbp),%r10
lea    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 <dgesvd_@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<DGESVD>:
sub    $0x58,%rsp
movaps 0x60(%rsp),%xmm0
mov    0x78(%rsp),%r10
mov    0x88(%rsp),%rax
mov    %dil,0x4b(%rsp)
mov    %sil,0x4a(%rsp)
mov    %edx,0x54(%rsp)
mov    %ecx,0x50(%rsp)
mov    %r9d,0x4c(%rsp)
lea    0x98(%rsp),%rcx
mov    %rcx,0x38(%rsp)
lea    0x90(%rsp),%rcx
mov    %rcx,0x30(%rsp)
mov    %rax,0x28(%rsp)
lea    0x80(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    %r10,0x18(%rsp)
lea    0x70(%rsp),%rax
mov    %rax,0x10(%rsp)
movups %xmm0,(%rsp)
lea    0x4b(%rsp),%rdi
lea    0x4a(%rsp),%rsi
lea    0x54(%rsp),%rdx
lea    0x50(%rsp),%rcx
lea    0x4c(%rsp),%r9
call   1030 <dgesvd_@plt>
add    $0x58,%rsp
ret

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

LLVM IR (-O2):
define void @DGESVD(i8 signext %0, i8 signext %1, i32 %2, i32 %3, double* %4, i32 %5, double* %6, double* %7, i32 %8, double* %9, i32 %10, double* %11, i32 %12, i32 %13) {
%15 = alloca i8
%16 = alloca i8
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
store i8 %0, i8* %15
store i8 %1, i8* %16
store i32 %2, i32* %17
store i32 %3, i32* %18
store i32 %5, i32* %19
store i32 %8, i32* %20
store i32 %10, i32* %21
store i32 %12, i32* %22
store i32 %13, i32* %23
%24 = call i32 @dgesvd_(i8* %15, i8* %16, i32* %17, i32* %18, double* %4, i32* %19, double* %6, double* %7, i32* %20, double* %9, i32* %21, double* %11, i32* %22, i32* %23)
ret void
}