#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 wcc_dgemm_(char *TRANSA, char *TRANSB, int *M, int *N, int *K, char *ALPHA,
                char *A, int *LDA, char *B, int *LDB, char *BETA, char *C,
                int *LDC) {
  dgemm_(TRANSA, TRANSB, M, N, K, (double *)ALPHA, (double *)A, LDA,
         (double *)B, LDB, (double *)BETA, (double *)C, LDC);
}


x86 assembly (clang, -O0):
<wcc_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):
<wcc_dgemm_>:
jmp    1030 <dgemm_@plt>

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

LLVM IR (-O2):
define void @wcc_dgemm_(i8* %0, i8* %1, i32* %2, i32* %3, i32* %4, i8* %5, i8* %6, i32* %7, i8* %8, i32* %9, i8* %10, i8* %11, i32* %12) {
%14 = bitcast i8* %5 to double*
%15 = bitcast i8* %6 to double*
%16 = bitcast i8* %8 to double*
%17 = bitcast i8* %10 to double*
%18 = bitcast i8* %11 to double*
%19 = tail call i32 @dgemm_(i8* %0, i8* %1, i32* %2, i32* %3, i32* %4, double* %14, double* %15, i32* %7, double* %16, i32* %9, double* %17, double* %18, i32* %12)
ret void
}