int dlansvd(char jobu, char jobv, int m, int n, int k, int kmax,
            int (*aprod)(char *, int *, int *, double *, double *, double *,
                         int *),
            double *U, int ldu, double *Sigma, double *bnd, double *V, int ldv,
            double tolin, double *work, int lwork, int *iwork, int liwork,
            double *doption, int *ioption, int *info, double *dparm,
            int *iparm) {
  extern int dlansvd_(
      char *jobu, char *jobv, int *m, int *n, int *k, int *kmax,
      int (*aprod)(char *, int *, int *, double *, double *, double *, int *),
      double *U, int *ldu, double *Sigma, double *bnd, double *V, int *ldv,
      double *tolin, double *work, int *lwork, int *iwork, int *liwork,
      double *doption, int *ioption, int *info, double *dparm, int *iparm);
  return dlansvd_(&jobu, &jobv, &m, &n, &k, &kmax, aprod, U, &ldu, Sigma, bnd,
                  V, &ldv, &tolin, work, &lwork, iwork, &liwork, doption,
                  ioption, info, dparm, iparm);
}


x86 assembly (clang, -O0):
<dlansvd>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %sil,%al
mov    %dil,%sil
mov    0x88(%rbp),%rdi
mov    0x80(%rbp),%rdi
mov    0x78(%rbp),%rdi
mov    0x70(%rbp),%rdi
mov    0x68(%rbp),%rdi
mov    0x60(%rbp),%edi
mov    0x58(%rbp),%rdi
mov    0x50(%rbp),%edi
mov    0x48(%rbp),%rdi
mov    0x40(%rbp),%edi
mov    0x38(%rbp),%rdi
mov    0x30(%rbp),%rdi
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    %r8d,-0x38(%rbp)
mov    %r9d,-0x3c(%rbp)
movsd  %xmm0,-0x48(%rbp)
mov    0x10(%rbp),%rax
mov    0x18(%rbp),%rcx
mov    %rcx,-0x90(%rbp)
mov    0x28(%rbp),%rcx
mov    %rcx,-0x80(%rbp)
mov    0x30(%rbp),%rcx
mov    %rcx,-0x78(%rbp)
mov    0x38(%rbp),%rcx
mov    %rcx,-0x70(%rbp)
mov    0x48(%rbp),%rcx
mov    %rcx,-0x58(%rbp)
mov    0x58(%rbp),%r12
mov    0x68(%rbp),%r14
mov    0x70(%rbp),%rbx
mov    0x78(%rbp),%r11
mov    0x80(%rbp),%r10
mov    0x88(%rbp),%rcx
mov    %rcx,-0x50(%rbp)
lea    -0x29(%rbp),%rdi
lea    -0x2a(%rbp),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x34(%rbp),%rcx
lea    -0x38(%rbp),%r8
lea    -0x3c(%rbp),%r9
lea    0x20(%rbp),%r15
mov    %r15,-0x88(%rbp)
lea    0x40(%rbp),%r15
mov    %r15,-0x68(%rbp)
lea    -0x48(%rbp),%r15
mov    %r15,-0x60(%rbp)
lea    0x50(%rbp),%r13
lea    0x60(%rbp),%r15
mov    %rax,(%rsp)
mov    -0x90(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x88(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x80(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0x78(%rbp),%rax
mov    %rax,0x20(%rsp)
mov    -0x70(%rbp),%rax
mov    %rax,0x28(%rsp)
mov    -0x68(%rbp),%rax
mov    %rax,0x30(%rsp)
mov    -0x60(%rbp),%rax
mov    %rax,0x38(%rsp)
mov    -0x58(%rbp),%rax
mov    %rax,0x40(%rsp)
mov    -0x50(%rbp),%rax
mov    %r13,0x48(%rsp)
mov    %r12,0x50(%rsp)
mov    %r15,0x58(%rsp)
mov    %r14,0x60(%rsp)
mov    %rbx,0x68(%rsp)
mov    %r11,0x70(%rsp)
mov    %r10,0x78(%rsp)
mov    %rax,0x80(%rsp)
call   1030 <dlansvd_@plt>
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<dlansvd>:
push   %rbx
sub    $0xb0,%rsp
movaps 0xc0(%rsp),%xmm1
movups 0xd8(%rsp),%xmm2
mov    0xe8(%rsp),%r10
mov    0xf8(%rsp),%r11
mov    0x108(%rsp),%rax
movups 0x118(%rsp),%xmm3
movups 0x128(%rsp),%xmm4
mov    0x138(%rsp),%rbx
mov    %dil,0x97(%rsp)
mov    %sil,0x96(%rsp)
mov    %edx,0xa4(%rsp)
mov    %ecx,0xa0(%rsp)
mov    %r8d,0x9c(%rsp)
mov    %r9d,0x98(%rsp)
movsd  %xmm0,0xa8(%rsp)
mov    %rbx,0x80(%rsp)
movups %xmm4,0x70(%rsp)
movups %xmm3,0x60(%rsp)
lea    0x110(%rsp),%rcx
mov    %rcx,0x58(%rsp)
mov    %rax,0x50(%rsp)
lea    0x100(%rsp),%rax
mov    %rax,0x48(%rsp)
mov    %r11,0x40(%rsp)
lea    0xa8(%rsp),%rax
mov    %rax,0x38(%rsp)
lea    0xf0(%rsp),%rax
mov    %rax,0x30(%rsp)
mov    %r10,0x28(%rsp)
movups %xmm2,0x18(%rsp)
lea    0xd0(%rsp),%rax
mov    %rax,0x10(%rsp)
movups %xmm1,(%rsp)
lea    0x97(%rsp),%rdi
lea    0x96(%rsp),%rsi
lea    0xa4(%rsp),%rdx
lea    0xa0(%rsp),%rcx
lea    0x9c(%rsp),%r8
lea    0x98(%rsp),%r9
call   1030 <dlansvd_@plt>
add    $0xb0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @dlansvd(i8 signext %0, i8 signext %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 (i8*, i32*, i32*, double*, double*, double*, i32*)* %6, double* %7, i32 %8, double* %9, double* %10, double* %11, i32 %12, double %13, double* %14, i32 %15, i32* %16, i32 %17, double* %18, i32* %19, i32* %20, double* %21, i32* %22) {
%24 = alloca i8
%25 = alloca i8
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32 (i8*, i32*, i32*, double*, double*, double*, i32*)*
%31 = alloca double*
%32 = alloca i32
%33 = alloca double*
%34 = alloca double*
%35 = alloca double*
%36 = alloca i32
%37 = alloca double
%38 = alloca double*
%39 = alloca i32
%40 = alloca i32*
%41 = alloca i32
%42 = alloca double*
%43 = alloca i32*
%44 = alloca i32*
%45 = alloca double*
%46 = alloca i32*
store i8 %0, i8* %24
store i8 %1, i8* %25
store i32 %2, i32* %26
store i32 %3, i32* %27
store i32 %4, i32* %28
store i32 %5, i32* %29
store i32 (i8*, i32*, i32*, double*, double*, double*, i32*)* %6, i32 (i8*, i32*, i32*, double*, double*, double*, i32*)** %30
store double* %7, double** %31
store i32 %8, i32* %32
store double* %9, double** %33
store double* %10, double** %34
store double* %11, double** %35
store i32 %12, i32* %36
store double %13, double* %37
store double* %14, double** %38
store i32 %15, i32* %39
store i32* %16, i32** %40
store i32 %17, i32* %41
store double* %18, double** %42
store i32* %19, i32** %43
store i32* %20, i32** %44
store double* %21, double** %45
store i32* %22, i32** %46
%47 = load i32 (i8*, i32*, i32*, double*, double*, double*, i32*)*, i32 (i8*, i32*, i32*, double*, double*, double*, i32*)** %30
%48 = load double*, double** %31
%49 = load double*, double** %33
%50 = load double*, double** %34
%51 = load double*, double** %35
%52 = load double*, double** %38
%53 = load i32*, i32** %40
%54 = load double*, double** %42
%55 = load i32*, i32** %43
%56 = load i32*, i32** %44
%57 = load double*, double** %45
%58 = load i32*, i32** %46
%59 = call i32 @dlansvd_(i8* %24, i8* %25, i32* %26, i32* %27, i32* %28, i32* %29, i32 (i8*, i32*, i32*, double*, double*, double*, i32*)* %47, double* %48, i32* %32, double* %49, double* %50, double* %51, i32* %36, double* %37, double* %52, i32* %39, i32* %53, i32* %41, double* %54, i32* %55, i32* %56, double* %57, i32* %58)
ret i32 %59
}

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