#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*/ dorgqr_(int const *, int const *, int const *, double *,
                           int const *, double const *, double *, int const *,
                           int *);
int aa_cla_dorgqr(const int m, const int n, const int k, double *A,
                  const int lda, const double *tau, double *work,
                  const int lwork) {
  int info = 0;
  dorgqr_(&m, &n, &k, A, &lda, tau, work, &lwork, &info);
  return info;
}


x86 assembly (clang, -O0):
<aa_cla_dorgqr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x18(%rbp),%rcx
mov    -0x28(%rbp),%r9
mov    0x10(%rbp),%r11
lea    -0x4(%rbp),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x1c(%rbp),%r8
lea    0x18(%rbp),%r10
lea    -0x2c(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <dorgqr_@plt>
mov    -0x2c(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aa_cla_dorgqr>:
sub    $0x18,%rsp
mov    0x20(%rsp),%r10
mov    %edi,0x14(%rsp)
mov    %esi,0x10(%rsp)
mov    %edx,0xc(%rsp)
mov    %r8d,0x8(%rsp)
movl   $0x0,0x4(%rsp)
sub    $0x8,%rsp
lea    0xc(%rsp),%rax
lea    0x30(%rsp),%r11
lea    0x1c(%rsp),%rdi
lea    0x18(%rsp),%rsi
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%r8
push   %rax
push   %r11
push   %r10
call   1030 <dorgqr_@plt>
add    $0x20,%rsp
mov    0x4(%rsp),%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @aa_cla_dorgqr(i32 %0, i32 %1, i32 %2, double* %3, i32 %4, double* %5, double* %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca double*
%13 = alloca i32
%14 = alloca double*
%15 = alloca double*
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store double* %3, double** %12
store i32 %4, i32* %13
store double* %5, double** %14
store double* %6, double** %15
store i32 %7, i32* %16
store i32 0, i32* %17
%18 = load double*, double** %12
%19 = load double*, double** %14
%20 = load double*, double** %15
%21 = call i32 @dorgqr_(i32* %9, i32* %10, i32* %11, double* %18, i32* %13, double* %19, double* %20, i32* %16, i32* %17)
%22 = load i32, i32* %17
ret i32 %22
}

LLVM IR (-O2):
define i32 @aa_cla_dorgqr(i32 %0, i32 %1, i32 %2, double* %3, i32 %4, double* %5, double* %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 %0, i32* %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %4, i32* %12
store i32 %7, i32* %13
%15 = bitcast i32* %14 to i8*
store i32 0, i32* %14
%16 = call i32 @dorgqr_(i32* %9, i32* %10, i32* %11, double* %3, i32* %12, double* %5, double* %6, i32* %13, i32* %14)
%17 = load i32, i32* %14
ret i32 %17
}