int dormqr(char SIDE, char TRANS, int M, int N, int K, double *A, int LDA,
           double *TAU, double *C, int LDC, double *WORK, int LWORK,
           int *INFO) {
  extern int dormqr_(char *SIDE, char *TRANS, int *M, int *N, int *K, double *A,
                     int *LDA, double *TAU, double *C, int *LDC, double *WORK,
                     int *LWORK, int *INFO);
  return dormqr_(&SIDE, &TRANS, &M, &N, &K, A, &LDA, TAU, C, &LDC, WORK, &LWORK,
                 INFO);
}


x86 assembly (clang, -O0):
<dormqr>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x50,%rsp
mov    %sil,%al
mov    %dil,%sil
mov    0x40(%rbp),%rdi
mov    0x38(%rbp),%edi
mov    0x30(%rbp),%rdi
mov    0x28(%rbp),%edi
mov    0x20(%rbp),%rdi
mov    0x18(%rbp),%rdi
mov    0x10(%rbp),%edi
mov    %sil,-0x21(%rbp)
mov    %al,-0x22(%rbp)
mov    %edx,-0x28(%rbp)
mov    %ecx,-0x2c(%rbp)
mov    %r8d,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x38(%rbp),%r9
mov    0x18(%rbp),%r15
mov    0x20(%rbp),%r14
mov    0x30(%rbp),%r11
mov    0x40(%rbp),%rax
lea    -0x21(%rbp),%rdi
lea    -0x22(%rbp),%rsi
lea    -0x28(%rbp),%rdx
lea    -0x2c(%rbp),%rcx
lea    -0x30(%rbp),%r8
lea    0x10(%rbp),%r12
lea    0x28(%rbp),%rbx
lea    0x38(%rbp),%r10
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 <dormqr_@plt>
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<dormqr>:
sub    $0x48,%rsp
movups 0x58(%rsp),%xmm0
mov    0x70(%rsp),%r10
mov    0x80(%rsp),%rax
mov    %dil,0x3b(%rsp)
mov    %sil,0x3a(%rsp)
mov    %edx,0x44(%rsp)
mov    %ecx,0x40(%rsp)
mov    %r8d,0x3c(%rsp)
mov    %rax,0x30(%rsp)
lea    0x78(%rsp),%rax
mov    %rax,0x28(%rsp)
mov    %r10,0x20(%rsp)
lea    0x68(%rsp),%rax
mov    %rax,0x18(%rsp)
movups %xmm0,0x8(%rsp)
lea    0x50(%rsp),%rax
mov    %rax,(%rsp)
lea    0x3b(%rsp),%rdi
lea    0x3a(%rsp),%rsi
lea    0x44(%rsp),%rdx
lea    0x40(%rsp),%rcx
lea    0x3c(%rsp),%r8
call   1030 <dormqr_@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
define i32 @dormqr(i8 signext %0, i8 signext %1, i32 %2, i32 %3, i32 %4, double* %5, i32 %6, double* %7, double* %8, i32 %9, double* %10, i32 %11, i32* %12) {
%14 = alloca i8
%15 = alloca i8
%16 = alloca i32
%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 i32*
store i8 %0, i8* %14
store i8 %1, i8* %15
store i32 %2, i32* %16
store i32 %3, i32* %17
store i32 %4, i32* %18
store double* %5, double** %19
store i32 %6, i32* %20
store double* %7, double** %21
store double* %8, double** %22
store i32 %9, i32* %23
store double* %10, double** %24
store i32 %11, i32* %25
store i32* %12, i32** %26
%27 = load double*, double** %19
%28 = load double*, double** %21
%29 = load double*, double** %22
%30 = load double*, double** %24
%31 = load i32*, i32** %26
%32 = call i32 @dormqr_(i8* %14, i8* %15, i32* %16, i32* %17, i32* %18, double* %27, i32* %20, double* %28, double* %29, i32* %23, double* %30, i32* %25, i32* %31)
ret i32 %32
}

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