#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*/ col_stride_mmul_1x2_2x1(double const *, int, double const *,
                                           int, double *, int);
void col_stride_mmul_2x2_2x1(const double *a, int a_col_stride, const double *b,
                             int b_col_stride, double *c, int c_col_stride) {
  col_stride_mmul_1x2_2x1(&a[(0) + (0) * a_col_stride], a_col_stride,
                          &b[(0) + (0) * b_col_stride], b_col_stride,
                          &c[(0) + (0) * c_col_stride], c_col_stride);
  col_stride_mmul_1x2_2x1(&a[(1) + (0) * a_col_stride], a_col_stride,
                          &b[(0) + (0) * b_col_stride], b_col_stride,
                          &c[(1) + (0) * c_col_stride], c_col_stride);
}


x86 assembly (clang, -O0):
<col_stride_mmul_2x2_2x1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x8(%rbp),%rdi
imul   $0x0,-0xc(%rbp),%eax
add    $0x0,%eax
cltq
shl    $0x3,%rax
add    %rax,%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
imul   $0x0,-0x1c(%rbp),%eax
add    $0x0,%eax
cltq
shl    $0x3,%rax
add    %rax,%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x28(%rbp),%r8
imul   $0x0,-0x2c(%rbp),%eax
add    $0x0,%eax
cltq
shl    $0x3,%rax
add    %rax,%r8
mov    -0x2c(%rbp),%r9d
call   1030 <col_stride_mmul_1x2_2x1@plt>
mov    -0x8(%rbp),%rdi
imul   $0x0,-0xc(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
add    %rax,%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
imul   $0x0,-0x1c(%rbp),%eax
add    $0x0,%eax
cltq
shl    $0x3,%rax
add    %rax,%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x28(%rbp),%r8
imul   $0x0,-0x2c(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x3,%rax
add    %rax,%r8
mov    -0x2c(%rbp),%r9d
call   1030 <col_stride_mmul_1x2_2x1@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<col_stride_mmul_2x2_2x1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r14d
mov    %r8,%rbx
mov    %ecx,%r15d
mov    %rdx,%r12
mov    %esi,%r13d
mov    %rdi,%rbp
call   1030 <col_stride_mmul_1x2_2x1@plt>
add    $0x8,%rbp
add    $0x8,%rbx
mov    %rbp,%rdi
mov    %r13d,%esi
mov    %r12,%rdx
mov    %r15d,%ecx
mov    %rbx,%r8
mov    %r14d,%r9d
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <col_stride_mmul_1x2_2x1@plt>

LLVM IR (-O0):
define void @col_stride_mmul_2x2_2x1(double* %0, i32 %1, double* %2, i32 %3, double* %4, i32 %5) {
%7 = alloca double*
%8 = alloca i32
%9 = alloca double*
%10 = alloca i32
%11 = alloca double*
%12 = alloca i32
store double* %0, double** %7
store i32 %1, i32* %8
store double* %2, double** %9
store i32 %3, i32* %10
store double* %4, double** %11
store i32 %5, i32* %12
%13 = load double*, double** %7
%14 = load i32, i32* %8
%15 = mul nsw i32 0, %14
%16 = add nsw i32 0, %15
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds double, double* %13, i64 %17
%19 = load i32, i32* %8
%20 = load double*, double** %9
%21 = load i32, i32* %10
%22 = mul nsw i32 0, %21
%23 = add nsw i32 0, %22
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds double, double* %20, i64 %24
%26 = load i32, i32* %10
%27 = load double*, double** %11
%28 = load i32, i32* %12
%29 = mul nsw i32 0, %28
%30 = add nsw i32 0, %29
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, double* %27, i64 %31
%33 = load i32, i32* %12
%34 = call i32 @col_stride_mmul_1x2_2x1(double* %18, i32 %19, double* %25, i32 %26, double* %32, i32 %33)
%35 = load double*, double** %7
%36 = load i32, i32* %8
%37 = mul nsw i32 0, %36
%38 = add nsw i32 1, %37
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, double* %35, i64 %39
%41 = load i32, i32* %8
%42 = load double*, double** %9
%43 = load i32, i32* %10
%44 = mul nsw i32 0, %43
%45 = add nsw i32 0, %44
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, double* %42, i64 %46
%48 = load i32, i32* %10
%49 = load double*, double** %11
%50 = load i32, i32* %12
%51 = mul nsw i32 0, %50
%52 = add nsw i32 1, %51
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %49, i64 %53
%55 = load i32, i32* %12
%56 = call i32 @col_stride_mmul_1x2_2x1(double* %40, i32 %41, double* %47, i32 %48, double* %54, i32 %55)
ret void
}

LLVM IR (-O2):
define void @col_stride_mmul_2x2_2x1(double* %0, i32 %1, double* %2, i32 %3, double* %4, i32 %5) {
%7 = tail call i32 @col_stride_mmul_1x2_2x1(double* %0, i32 %1, double* %2, i32 %3, double* %4, i32 %5)
%8 = getelementptr inbounds double, double* %0, i64 1
%9 = getelementptr inbounds double, double* %4, i64 1
%10 = tail call i32 @col_stride_mmul_1x2_2x1(double* %8, i32 %1, double* %2, i32 %3, double* %9, i32 %5)
ret void
}