// File: /workspace/github_cpp_makefile_star2_O3/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, %r13
movq %rdi, (%rsp)
movq (%rdx), %rsi
cmpq %rsi, (%r13)
jne 0x1f267
movq 0x8(%r14), %rdx
cmpq %rdx, 0x8(%r13)
jne 0x1f267
movq %r14, 0x48(%rsp)
xorps %xmm0, %xmm0
movq (%rsp), %rdi
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq $0x0, 0x20(%rdi)
callq 0xcea6
movq (%r13), %rax
testq %rax, %rax
jle 0x1f251
movq (%rsp), %rcx
addq $0x10, %rcx
movq %rcx, 0x8(%rsp)
movq 0x8(%r13), %rcx
xorl %r15d, %r15d
leaq 0x80(%rsp), %r12
xorl %edx, %edx
testq %rcx, %rcx
jle 0x1f241
movq %rdx, 0x40(%rsp)
xorl %ebp, %ebp
xorl %r14d, %r14d
movq 0x10(%r13), %rax
movq 0x20(%r13), %rsi
imulq %r15, %rsi
addq (%rax), %rsi
addq %rbp, %rsi
leaq 0x10(%rsp), %rdi
callq 0xc818
movq 0x48(%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x20(%rcx), %rsi
imulq %r15, %rsi
addq (%rax), %rsi
addq %rbp, %rsi
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0xc818
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
movq %rbx, %rdx
callq 0x1e7a5
movq (%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x20(%rcx), %rdi
imulq %r15, %rdi
addq (%rax), %rdi
addq %rbp, %rdi
movq %r12, %rsi
callq 0xc2ce
cmpq $0x0, 0x90(%rsp)
je 0x1f1de
leaq 0x90(%rsp), %rdi
callq 0xbf72
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x1f201
leaq 0x60(%rsp), %rdi
callq 0xbf72
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x1f224
leaq 0x20(%rsp), %rdi
callq 0xbf72
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
incq %r14
movq 0x8(%r13), %rcx
addq $0x28, %rbp
cmpq %r14, %rcx
jg 0x1f141
movq (%r13), %rax
movq 0x40(%rsp), %rdx
incq %rdx
addq $0x28, %r15
cmpq %rdx, %rax
jg 0x1f12e
movq (%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 (%r13), %rsi
movq 0x8(%r13), %rdx
movq (%r14), %rcx
movq 0x8(%r14), %r8
leaq 0xa8(%rsp), %rdi
callq 0x1ea26
movb $0x1, %bpl
leaq 0xa8(%rsp), %rsi
movq %rbx, %rdi
callq 0x5420
leaq 0x2c59e(%rip), %rax     # 0x4b848
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x2c56a(%rip), %rsi     # 0x4b820
movq 0x2cd03(%rip), %rdx     # 0x4bfc0
movq %rbx, %rdi
callq 0x5590
movq %rax, %r14
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f2e9
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5390
testb %bpl, %bpl
jne 0x1f2f6
jmp 0x1f3ac
movq %rax, %r14
movq %rbx, %rdi
callq 0x5270
jmp 0x1f3ac
movq %rax, %r14
jmp 0x1f344
movq %rax, %r14
jmp 0x1f38a
movq %rax, %r14
jmp 0x1f367
movq %rax, %r14
cmpq $0x0, 0x90(%rsp)
je 0x1f344
leaq 0x90(%rsp), %rdi
callq 0xbf72
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq $0x0, 0x90(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x1f367
leaq 0x60(%rsp), %rdi
callq 0xbf72
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x1f38a
leaq 0x20(%rsp), %rdi
callq 0xbf72
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x8(%rsp), %rdi
cmpq $0x0, (%rdi)
je 0x1f3ac
callq 0xd08a
xorps %xmm0, %xmm0
movq (%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %r14, %rdi
callq 0x55d0