#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*/ kernel_dgemm_nn_2x2_vs_lib4(int, int, int, double *,
                                               double *, int, double *,
                                               double *, int, int, int);
void kernel_dgemm_nn_2x2_lib4(int kmax, double *A, double *B, int sdb,
                              double *C, double *D, int alg, int tc, int td) {
  kernel_dgemm_nn_2x2_vs_lib4(2, 2, kmax, A, B, sdb, C, D, alg, tc, td);
}


x86 assembly (clang, -O0):
<kernel_dgemm_nn_2x2_lib4>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x14(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %ecx,-0x2c(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x2c(%rbp),%r9d
mov    -0x38(%rbp),%r14
mov    -0x40(%rbp),%rbx
mov    0x10(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    $0x2,%esi
mov    %esi,%edi
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1030 <kernel_dgemm_nn_2x2_vs_lib4@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dgemm_nn_2x2_lib4>:
push   %r14
push   %rbx
push   %rax
mov    %r9,%rax
mov    %r8,%r10
mov    %ecx,%r9d
mov    %rdx,%r8
mov    %rsi,%rcx
mov    %edi,%edx
mov    0x20(%rsp),%r11d
mov    0x28(%rsp),%r14d
mov    0x30(%rsp),%ebx
sub    $0x8,%rsp
mov    $0x2,%edi
mov    $0x2,%esi
push   %rbx
push   %r14
push   %r11
push   %rax
push   %r10
call   1030 <kernel_dgemm_nn_2x2_vs_lib4@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @kernel_dgemm_nn_2x2_lib4(i32 %0, double* %1, double* %2, i32 %3, double* %4, double* %5, i32 %6, i32 %7, i32 %8) {
%10 = alloca i32
%11 = alloca double*
%12 = alloca double*
%13 = alloca i32
%14 = alloca double*
%15 = alloca double*
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
store i32 %0, i32* %10
store double* %1, double** %11
store double* %2, double** %12
store i32 %3, i32* %13
store double* %4, double** %14
store double* %5, double** %15
store i32 %6, i32* %16
store i32 %7, i32* %17
store i32 %8, i32* %18
%19 = load i32, i32* %10
%20 = load double*, double** %11
%21 = load double*, double** %12
%22 = load i32, i32* %13
%23 = load double*, double** %14
%24 = load double*, double** %15
%25 = load i32, i32* %16
%26 = load i32, i32* %17
%27 = load i32, i32* %18
%28 = call i32 @kernel_dgemm_nn_2x2_vs_lib4(i32 2, i32 2, i32 %19, double* %20, double* %21, i32 %22, double* %23, double* %24, i32 %25, i32 %26, i32 %27)
ret void
}

LLVM IR (-O2):
define void @kernel_dgemm_nn_2x2_lib4(i32 %0, double* %1, double* %2, i32 %3, double* %4, double* %5, i32 %6, i32 %7, i32 %8) {
%10 = tail call i32 @kernel_dgemm_nn_2x2_vs_lib4(i32 2, i32 2, i32 %0, double* %1, double* %2, i32 %3, double* %4, double* %5, i32 %6, i32 %7, i32 %8)
ret void
}