#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*/ dmat_mul_brow(double **, double **, double **, double **,
                                 double **, double **, long, double **,
                                 double **);
void dmat_mul_2x2(double **a11, double **a12, double **a21, double **a22,
                  double **b11, double **b12, double **b21, double **b22,
                  long n, double **P11, double **P12, double **P21,
                  double **P22) {
  dmat_mul_brow(a11, a12, b11, b12, b21, b22, n, P11, P12);
  dmat_mul_brow(a21, a22, b11, b12, b21, b22, n, P21, P22);
}


x86 assembly (clang, -O0):
<dmat_mul_2x2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    0x10(%rbp),%r8
mov    0x18(%rbp),%r9
mov    0x20(%rbp),%r11
mov    0x28(%rbp),%r10
mov    0x30(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <dmat_mul_brow@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    0x10(%rbp),%r8
mov    0x18(%rbp),%r9
mov    0x20(%rbp),%r11
mov    0x38(%rbp),%r10
mov    0x40(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <dmat_mul_brow@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dmat_mul_2x2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,%r14
mov    %r8,%rbx
mov    %rcx,%r15
mov    %rdx,%r12
mov    0x50(%rsp),%r8
mov    0x58(%rsp),%rbp
mov    0x60(%rsp),%r13
movups 0x68(%rsp),%xmm0
movups %xmm0,0x8(%rsp)
mov    %r13,(%rsp)
mov    %rbx,%rdx
mov    %r9,%rcx
mov    %rbp,%r9
call   1030 <dmat_mul_brow@plt>
movups 0x78(%rsp),%xmm0
movups %xmm0,0x8(%rsp)
mov    %r13,(%rsp)
mov    %r12,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
mov    0x50(%rsp),%r8
mov    %rbp,%r9
call   1030 <dmat_mul_brow@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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