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


x86 assembly (clang, -O0):
<mkl_sgemm_>:
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 <sgemm@plt>
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkl_sgemm_>:
jmp    1030 <sgemm@plt>

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

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