#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 dlevmar_trans_mat_mat_mult(double *a, double *b, int n, int m) {
  double alpha = (1.0), beta = (0.0);
  dgemm_("N", "T", &m, &m, &n, &alpha, a, &m, a, &m, &beta, b, &m);
}


x86 assembly (clang, -O0):
<dlevmar_trans_mat_mat_mult>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %edx,-0x24(%rbp)
mov    %ecx,-0x28(%rbp)
movsd  0xecf(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%r14
mov    -0x18(%rbp),%rbx
mov    -0x20(%rbp),%r10
lea    0xeb7(%rip),%rdi
lea    0xeb2(%rip),%rsi
lea    -0x28(%rbp),%rax
lea    -0x24(%rbp),%r8
lea    -0x30(%rbp),%r9
lea    -0x38(%rbp),%r11
mov    %rax,%rdx
mov    %rax,%rcx
mov    %r14,(%rsp)
mov    %rax,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1030 <dgemm_@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<dlevmar_trans_mat_mat_mult>:
sub    $0x18,%rsp
mov    %rsi,%r10
mov    %rdi,%rax
mov    %edx,0x4(%rsp)
mov    %ecx,(%rsp)
movabs $0x3ff0000000000000,%rcx
mov    %rcx,0x10(%rsp)
movq   $0x0,0x8(%rsp)
sub    $0x8,%rsp
lea    0x8(%rsp),%rcx
lea    0x10(%rsp),%r11
lea    0xeb2(%rip),%rdi
lea    0xead(%rip),%rsi
lea    0xc(%rsp),%r8
lea    0x18(%rsp),%r9
mov    %rcx,%rdx
push   %rcx
push   %r10
push   %r11
push   %rcx
push   %rax
push   %rcx
push   %rax
call   1030 <dgemm_@plt>
add    $0x58,%rsp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"N\00"
@.str.1 = [2 x i8] c"T\00"
define void @dlevmar_trans_mat_mat_mult(double* %0, double* %1, i32 %2, i32 %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
%8 = alloca i32
%9 = alloca double
%10 = alloca double
store double* %0, double** %5
store double* %1, double** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
store double 1.000000e+00, double* %9
store double 0.000000e+00, double* %10
%11 = load double*, double** %5
%12 = load double*, double** %5
%13 = load double*, double** %6
%14 = call i32 @dgemm_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %8, i32* %8, i32* %7, double* %9, double* %11, i32* %8, double* %12, i32* %8, double* %10, double* %13, i32* %8)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"N\00"
@.str.1 = [2 x i8] c"T\00"
define void @dlevmar_trans_mat_mat_mult(double* %0, double* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = alloca double
store i32 %2, i32* %5
store i32 %3, i32* %6
%9 = bitcast double* %7 to i8*
store double 1.000000e+00, double* %7
%10 = bitcast double* %8 to i8*
store double 0.000000e+00, double* %8
%11 = call i32 @dgemm_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %6, i32* %6, i32* %5, double* %7, double* %0, i32* %6, double* %0, i32* %6, double* %8, double* %1, i32* %6)
ret void
}