// File: toxaart[P]hierarchical_block_sparse_lib/source/HierarchicalBlockSparseMatrix.h
// Function: hbsm::HierarchicalBlockSparseMatrix<double>::symm_rk(hbsm::HierarchicalBlockSparseMatrix<double> const&, bool, hbsm::HierarchicalBlockSparseMatrix<double>&)
void HierarchicalBlockSparseMatrix<Treal>::symm_rk(HierarchicalBlockSparseMatrix<Treal> const & A, bool transposed, HierarchicalBlockSparseMatrix<Treal> & C){

            if(!C.empty()) throw std::runtime_error("Error in HierarchicalBlockSparseMatrix::symm_rk(): non-empty matrix to write result!");

            C.set_params(A.get_params());
            if(!transposed){
                std::shared_ptr<HierarchicalBlockSparseMatrix<Treal> > product;
								product = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
                multiply(A, false, A, true, *product);
                product->get_upper_triangle(C);

            }
            else{
                std::shared_ptr<HierarchicalBlockSparseMatrix<Treal> > product;
								product = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
                multiply(A, true, A, false, *product);
                product->get_upper_triangle(C);
            }

        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x230a0
testb $0x1, %al
jne 0x2d0ab
movl $0x10, %edi
callq 0x20d0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x70(%rbp)
leaq 0xa8fc(%rip), %rsi      # 0x3796f
callq 0x20a0
jmp 0x2d07a
movq -0x70(%rbp), %rdi
movq 0x13f6b(%rip), %rsi     # 0x40ff0
movq 0x13f34(%rip), %rdx     # 0x40fc0
callq 0x2320
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x2150
jmp 0x2d245
movq -0x18(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rdi
callq 0x243e0
movq -0x78(%rbp), %rdi
movl %eax, -0x28(%rbp)
leaq -0x28(%rbp), %rsi
callq 0x8570
testb $0x1, -0x9(%rbp)
jne 0x2d189
leaq -0x38(%rbp), %rdi
callq 0x23030
leaq -0x48(%rbp), %rdi
callq 0x245c0
jmp 0x2d0ea
leaq -0x38(%rbp), %rdi
movq %rdi, -0x88(%rbp)
leaq -0x48(%rbp), %rsi
movq %rsi, -0x90(%rbp)
callq 0x235b0
movq -0x90(%rbp), %rdi
callq 0x235e0
movq -0x88(%rbp), %rdi
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
callq 0x24630
movq -0x80(%rbp), %rdx
movq %rax, %r8
movq %rsp, %rax
movq $0x0, (%rax)
xorl %esi, %esi
movl %esi, %r9d
movl $0x1, %ecx
movq %rdx, %rdi
callq 0x9580
jmp 0x2d14a
leaq -0x38(%rbp), %rdi
callq 0x23570
movq %rax, %rdi
movq -0x18(%rbp), %rsi
callq 0x2cce0
jmp 0x2d161
leaq -0x38(%rbp), %rdi
callq 0x235e0
jmp 0x2d23c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x235e0
jmp 0x2d245
leaq -0x58(%rbp), %rdi
callq 0x23030
leaq -0x68(%rbp), %rdi
callq 0x245c0
jmp 0x2d19d
leaq -0x58(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
leaq -0x68(%rbp), %rsi
movq %rsi, -0xa8(%rbp)
callq 0x235b0
movq -0xa8(%rbp), %rdi
callq 0x235e0
movq -0xa0(%rbp), %rdi
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
callq 0x24630
movq -0x98(%rbp), %rdx
movq %rax, %r8
movq %rsp, %rax
movq $0x0, (%rax)
xorl %ecx, %ecx
movl %ecx, %r9d
movl $0x1, %esi
movq %rdx, %rdi
callq 0x9580
jmp 0x2d203
leaq -0x58(%rbp), %rdi
callq 0x23570
movq %rax, %rdi
movq -0x18(%rbp), %rsi
callq 0x2cce0
jmp 0x2d21a
leaq -0x58(%rbp), %rdi
callq 0x235e0
jmp 0x2d23c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x235e0
jmp 0x2d245
addq $0xb0, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x2340
nop