// File: /workspace/github_cpp_makefile_star2_O1/chiku[P]cmatrix/src/impl/matrix/numerical.cpp
// Function: cmatrix::Matrix<cmatrix::Matrix<double>> cmatrix::operator+<cmatrix::Matrix<double>>(cmatrix::Matrix<cmatrix::Matrix<double>>, cmatrix::Matrix<cmatrix::Matrix<double>>)
Matrix<Type> operator + (const Matrix<Type> firstMatrix, const Matrix<Type> secondMatrix)
{
    if (firstMatrix.size != secondMatrix.size) {
        throw Exception::IncompatibleAddition(ExceptionBody::IncompatibleAddition(firstMatrix.size, secondMatrix.size));
    }

    Matrix<Type> sum(firstMatrix.rows(), firstMatrix.columns());

    for (int i = 0; i < firstMatrix.rows(); i++) {
        for (int j = 0; j < firstMatrix.columns(); j++) {
            sum.access(i, j) = firstMatrix.access(i, j) + secondMatrix.access(i, j);
        }
    }

    return sum;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq (%rsi), %rsi
cmpq (%rdx), %rsi
jne 0x200c6
movq 0x8(%r15), %rdx
cmpq 0x8(%r14), %rdx
jne 0x200c6
movq %r14, 0x18(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq $0x0, 0x20(%rdi)
movq %rdi, 0x8(%rsp)
callq 0xd1c0
cmpq $0x0, (%r15)
jle 0x200af
xorl %r12d, %r12d
leaq 0x80(%rsp), %r14
xorl %eax, %eax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x8(%r15)
jle 0x2009a
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x10(%r15), %rax
movq 0x20(%r15), %rsi
imulq %r12, %rsi
addq (%rax), %rsi
addq %r13, %rsi
leaq 0x20(%rsp), %rdi
callq 0xcb2c
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x20(%rcx), %rsi
imulq %r12, %rsi
addq (%rax), %rsi
addq %r13, %rsi
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0xcb2c
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
movq %rbx, %rdx
callq 0x1f613
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x20(%rcx), %rdi
imulq %r12, %rdi
addq (%rax), %rdi
addq %r13, %rdi
movq %r14, %rsi
callq 0xc570
cmpq $0x0, 0x90(%rsp)
je 0x20043
leaq 0x90(%rsp), %rdi
callq 0xc216
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x20066
leaq 0x60(%rsp), %rdi
callq 0xc216
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x20089
leaq 0x30(%rsp), %rdi
callq 0xc216
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
incq %rbp
addq $0x28, %r13
cmpq %rbp, 0x8(%r15)
jg 0x1ffa5
movq 0x10(%rsp), %rax
incq %rax
addq $0x28, %r12
cmpq %rax, (%r15)
jg 0x1ff90
movq 0x8(%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x5170
movq %rax, %rbx
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq (%r14), %rcx
movq 0x8(%r14), %r8
leaq 0xa8(%rsp), %rdi
callq 0x1f89a
movb $0x1, %bpl
leaq 0xa8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5420
leaq 0x2d740(%rip), %rax     # 0x4d848
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x2d70c(%rip), %rsi     # 0x4d820
movq 0x2dea5(%rip), %rdx     # 0x4dfc0
movq %rbx, %rdi
callq 0x5590
movq %rax, %r14
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2014f
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x2014f
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x20219
movq %rbx, %rdi
callq 0x5270
jmp 0x20219
movq %rax, %r14
jmp 0x201ae
movq %rax, %r14
movq 0x8(%rsp), %rbx
jmp 0x201fb
movq %rax, %r14
movq 0x8(%rsp), %rbx
jmp 0x201d7
movq %rax, %r14
cmpq $0x0, 0x90(%rsp)
je 0x201ae
leaq 0x90(%rsp), %r15
movq %r15, %rdi
callq 0xc216
xorps %xmm0, %xmm0
movaps %xmm0, -0x10(%r15)
movq $0x0, (%r15)
movq 0x8(%rsp), %rbx
cmpq $0x0, 0x60(%rsp)
je 0x201d7
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0xc216
xorps %xmm0, %xmm0
movaps %xmm0, -0x10(%r15)
movq $0x0, (%r15)
cmpq $0x0, 0x30(%rsp)
je 0x201fb
leaq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0xc216
xorps %xmm0, %xmm0
movaps %xmm0, -0x10(%r15)
movq $0x0, (%r15)
cmpq $0x0, 0x10(%rbx)
je 0x20219
leaq 0x10(%rbx), %rdi
callq 0xd3a6
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %r14, %rdi
callq 0x55d0
nop