#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*/ dgemm(char *, char *, int *, int *, int *, double *,
                         double *, int *, double *, int *, double *, double *,
                         int *);
void mkl_dgemm_(char *transa, char *transb, int *m, int *n, int *k,
                double *alpha, double *a, int *lda, double *b, int *ldb,
                double *beta, double *c, int *ldc) {
  dgemm(transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc);
}


x86 assembly (clang, -O0):
<mkl_dgemm_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
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,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x50(%rbp),%r9
mov    0x10(%rbp),%r12
mov    0x18(%rbp),%r15
mov    0x20(%rbp),%r14
mov    0x28(%rbp),%rbx
mov    0x30(%rbp),%r11
mov    0x38(%rbp),%r10
mov    0x40(%rbp),%rax
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 <dgemm@plt>
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkl_dgemm_>:
jmp    1030 <dgemm@plt>

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

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