// File: Krymancer[P]Matrix-cpp/src/Matrix.cpp
// Function: Matrix::operator*=(Matrix&)
Matrix Matrix::operator*=(Matrix &B) {
    Matrix multip(this->rows, B.getCols(), 0.0);
    if (this->cols == B.getRows()) {
        unsigned i, j, k;
        double temp = 0.0;
        for (i = 0; i < this->rows; i++) {
            for (j = 0; j < B.getCols(); j++) {
                temp = 0.0;
                for (k = 0; k < this->cols; k++) {
                    temp += data[i][k] * B(k, j);
                }
                multip(i, j) = temp;
            }
        }
        *this = multip;
        return *this;
    } else {
        return "Error";
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x88(%rbp)
movq %rdi, %rax
movq %rax, -0x80(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
movl (%rax), %eax
movl %eax, -0x74(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2bb0
movl -0x74(%rbp), %esi
movl %eax, %edx
leaq -0x38(%rbp), %rdi
xorps %xmm0, %xmm0
callq 0x2550
movq -0x70(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x64(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2bd0
movl %eax, -0x60(%rbp)
jmp 0x3614
movl -0x64(%rbp), %eax
movl -0x60(%rbp), %ecx
cmpl %ecx, %eax
jne 0x37a8
xorps %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
movl $0x0, -0x48(%rbp)
movq -0x70(%rbp), %rcx
movl -0x48(%rbp), %eax
cmpl (%rcx), %eax
jae 0x377e
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movl %eax, -0x90(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2bb0
movl %eax, -0x8c(%rbp)
jmp 0x3661
movl -0x90(%rbp), %eax
movl -0x8c(%rbp), %ecx
cmpl %ecx, %eax
jae 0x376e
xorps %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
movl $0x0, -0x50(%rbp)
movq -0x70(%rbp), %rcx
movl -0x50(%rbp), %eax
cmpl 0x4(%rcx), %eax
jae 0x3726
movq -0x70(%rbp), %rdi
addq $0x8, %rdi
movl -0x48(%rbp), %eax
movl %eax, %esi
callq 0x4f70
movq %rax, %rdi
movl -0x50(%rbp), %eax
movl %eax, %esi
callq 0x5190
movsd (%rax), %xmm0
movsd %xmm0, -0xa0(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x50(%rbp), %rsi
leaq -0x4c(%rbp), %rdx
callq 0x2ef0
movq %rax, -0x98(%rbp)
jmp 0x36d9
movsd -0xa0(%rbp), %xmm0
movq -0x98(%rbp), %rax
movsd (%rax), %xmm2
movsd -0x58(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x3684
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x5420
jmp 0x37da
movsd -0x58(%rbp), %xmm0
movsd %xmm0, -0xb0(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x48(%rbp), %rsi
leaq -0x4c(%rbp), %rdx
callq 0x2ef0
movq %rax, -0xa8(%rbp)
jmp 0x374d
movq -0xa8(%rbp), %rax
movsd -0xb0(%rbp), %xmm0
movsd %xmm0, (%rax)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x3647
jmp 0x3770
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x3631
movq -0x70(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x5440
jmp 0x378d
movq -0x70(%rbp), %rsi
movq -0x88(%rbp), %rdi
callq 0x2b20
jmp 0x379f
movl $0x1, -0x5c(%rbp)
jmp 0x37c4
movq -0x88(%rbp), %rdi
leaq 0x98b2(%rip), %rsi      # 0xd068
callq 0x2650
jmp 0x37bd
movl $0x1, -0x5c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x5420
movq -0x80(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x2350
nopw %cs:(%rax,%rax)