// File: /workspace/github_cpp_makefile_star2_O1/canzarlab[P]Trajan/./Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
// Function: Eigen::internal::general_matrix_matrix_triangular_product<long, double, 0, false, double, 1, false, 0, 1, 0>::run(long, long, double const*, long, double const*, long, double*, long, double const&, Eigen::internal::level3_blocking<double, double>&)
static EIGEN_STRONG_INLINE void run(Index size, Index depth,const LhsScalar* _lhs, Index lhsStride,
                                      const RhsScalar* _rhs, Index rhsStride, ResScalar* _res, Index resStride,
                                      const ResScalar& alpha, level3_blocking<LhsScalar,RhsScalar>& blocking)
  {
    typedef gebp_traits<LhsScalar,RhsScalar> Traits;

    typedef const_blas_data_mapper<LhsScalar, Index, LhsStorageOrder> LhsMapper;
    typedef const_blas_data_mapper<RhsScalar, Index, RhsStorageOrder> RhsMapper;
    typedef blas_data_mapper<typename Traits::ResScalar, Index, ColMajor> ResMapper;
    LhsMapper lhs(_lhs,lhsStride);
    RhsMapper rhs(_rhs,rhsStride);
    ResMapper res(_res, resStride);

    Index kc = blocking.kc();
    Index mc = (std::min)(size,blocking.mc());

    // !!! mc must be a multiple of nr:
    if(mc > Traits::nr)
      mc = (mc/Traits::nr)*Traits::nr;

    std::size_t sizeA = kc*mc;
    std::size_t sizeB = kc*size;

    ei_declare_aligned_stack_constructed_variable(LhsScalar, blockA, sizeA, blocking.blockA());
    ei_declare_aligned_stack_constructed_variable(RhsScalar, blockB, sizeB, blocking.blockB());

    gemm_pack_lhs<LhsScalar, Index, LhsMapper, Traits::mr, Traits::LhsProgress, LhsStorageOrder> pack_lhs;
    gemm_pack_rhs<RhsScalar, Index, RhsMapper, Traits::nr, RhsStorageOrder> pack_rhs;
    gebp_kernel<LhsScalar, RhsScalar, Index, ResMapper, Traits::mr, Traits::nr, ConjugateLhs, ConjugateRhs> gebp;
    tribb_kernel<LhsScalar, RhsScalar, Index, Traits::mr, Traits::nr, ConjugateLhs, ConjugateRhs, UpLo> sybb;

    for(Index k2=0; k2<depth; k2+=kc)
    {
      const Index actual_kc = (std::min)(k2+kc,depth)-k2;

      // note that the actual rhs is the transpose/adjoint of mat
      pack_rhs(blockB, rhs.getSubMapper(k2,0), actual_kc, size);

      for(Index i2=0; i2<size; i2+=mc)
      {
        const Index actual_mc = (std::min)(i2+mc,size)-i2;

        pack_lhs(blockA, lhs.getSubMapper(i2, k2), actual_kc, actual_mc);

        // the selected actual_mc * size panel of res is split into three different part:
        //  1 - before the diagonal => processed with gebp or skipped
        //  2 - the actual_mc x actual_mc symmetric block => processed with a special kernel
        //  3 - after the diagonal => processed with gebp or skipped
        if (UpLo==Lower)
          gebp(res.getSubMapper(i2, 0), blockA, blockB, actual_mc, actual_kc,
               (std::min)(size,i2), alpha, -1, -1, 0, 0);


        sybb(_res+resStride*i2 + i2, resStride, blockA, blockB + actual_kc*i2, actual_mc, actual_kc, alpha);

        if (UpLo==Upper)
        {
          Index j2 = i2+actual_mc;
          gebp(res.getSubMapper(i2, j2), blockA, blockB+actual_kc*j2, actual_mc,
               actual_kc, (std::max)(Index(0), size-j2), alpha, -1, -1, 0, 0);
        }
      }
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r9, -0xe0(%rbp)
movq %r8, -0xd8(%rbp)
movq %rcx, -0x88(%rbp)
movq 0x28(%rbp), %rbx
movq 0x10(%rbx), %rax
movq 0x20(%rbx), %r9
cmpq %rdi, %rax
movq %rdi, -0x68(%rbp)
cmovgeq %rdi, %rax
movabsq $0x7ffffffffffffffc, %r14 # imm = 0x7FFFFFFFFFFFFFFC
andq %rax, %r14
cmpq $0x5, %rax
cmovlq %rax, %r14
movq %r14, -0x60(%rbp)
imulq %r9, %r14
movq %r14, %rax
shrq $0x3d, %rax
jne 0x288e2
movq %rdx, %r15
movq %rsi, %r12
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x2850c
xorl %eax, %eax
jmp 0x28552
leaq (,%r14,8), %rdi
cmpq $0x4000, %r14           # imm = 0x4000
ja 0x28533
movq %rsp, %rax
addq $0x1e, %rdi
andq $-0x10, %rdi
subq %rdi, %rax
movq %rax, %rsp
movq %rax, %rsi
jmp 0x28552
movq %r9, %r13
callq 0x9440
testb $0xf, %al
jne 0x28941
movq %rax, %rsi
testq %rax, %rax
movq %r13, %r9
je 0x28943
movabsq $0x1fffffffffffffff, %rcx # imm = 0x1FFFFFFFFFFFFFFF
movq %r9, %rdx
imulq -0x68(%rbp), %rdx
cmpq %rcx, %rdx
ja 0x28910
movq %rsi, -0x78(%rbp)
movq %r14, -0x58(%rbp)
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
movq %rax, -0x40(%rbp)
movq %rdx, -0x80(%rbp)
je 0x28590
movq $0x0, -0x38(%rbp)
jmp 0x285db
leaq (,%rdx,8), %rdi
cmpq $0x4000, %rdx           # imm = 0x4000
ja 0x285b8
movq %rsp, %rbx
addq $0x1e, %rdi
andq $-0x10, %rdi
subq %rdi, %rbx
movq %rbx, %rsp
movq %rbx, -0x38(%rbp)
jmp 0x285db
movq %r9, %r14
callq 0x9440
testb $0xf, %al
jne 0x28945
movq %rax, %rbx
movq %rax, -0x38(%rbp)
testq %rax, %rax
movq %r14, %r9
je 0x28964
testq %r12, %r12
jle 0x288ad
movq 0x18(%rbp), %rcx
movq %r9, %rax
imulq -0x88(%rbp), %rax
shlq $0x3, %rax
movq %rax, -0xc0(%rbp)
movq -0x60(%rbp), %rax
leaq (,%rax,8), %rdx
movq %rdx, -0x98(%rbp)
leaq 0x8(,%rcx,8), %rcx
imulq %rax, %rcx
movq %rcx, -0x100(%rbp)
xorl %r14d, %r14d
leaq -0x50(%rbp), %r8
movq %r9, %r13
xorl %edx, %edx
movq %r12, -0xd0(%rbp)
movq %r9, -0xc8(%rbp)
movq %rbx, -0x90(%rbp)
movq %rdx, %rax
cmpq %r13, %r12
movq %r13, -0xf8(%rbp)
cmovlq %r12, %r13
leaq (%rdx,%r9), %rcx
cmpq %r12, %rcx
movq %rcx, -0xa0(%rbp)
cmovlq %rcx, %r12
subq %rdx, %r12
movq -0xe0(%rbp), %rcx
imulq %rcx, %rax
movq -0xd8(%rbp), %rdx
leaq (%rdx,%rax,8), %rax
movq %rax, -0x50(%rbp)
movq %rcx, -0x48(%rbp)
subq $0x8, %rsp
leaq -0x2b(%rbp), %rdi
movq %rbx, %rsi
movq %r8, %rdx
movq %r12, -0x110(%rbp)
movq %r12, %rcx
movq -0x68(%rbp), %r8
xorl %r9d, %r9d
pushq $0x0
callq 0x1eb1c
addq $0x10, %rsp
movq %r14, -0xe8(%rbp)
addq %r14, %r13
imulq -0x98(%rbp), %r13
movq %rbx, %rcx
movq 0x10(%rbp), %rax
movq %rax, %rsi
movq %rax, -0xa8(%rbp)
movq %r15, -0xf0(%rbp)
movq %r15, -0xb8(%rbp)
movq $0x0, -0xb0(%rbp)
movq -0x60(%rbp), %r12
xorl %ebx, %ebx
leaq -0x50(%rbp), %r8
movq -0xa0(%rbp), %rdx
movq %r13, -0x108(%rbp)
movq -0x68(%rbp), %rax
cmpq %r12, %rax
movq %r12, %r15
cmovlq %rax, %r15
cmpq %rax, %rbx
jge 0x2886d
movq %rsi, -0x120(%rbp)
movq %rcx, -0x128(%rbp)
addq -0xb0(%rbp), %r15
movq -0xb8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x48(%rbp)
subq $0x8, %rsp
leaq -0x2c(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq %r8, %rdx
movq -0x110(%rbp), %r14
movq %r14, %rcx
movq %r8, %r13
movq %r15, %r8
xorl %r9d, %r9d
pushq $0x0
callq 0x1caf2
addq $0x10, %rsp
movq %r12, -0x70(%rbp)
movq -0xa8(%rbp), %r12
movq %r12, -0x50(%rbp)
movq 0x18(%rbp), %rax
movq %rax, -0x48(%rbp)
movq 0x20(%rbp), %rax
movsd (%rax), %xmm0
subq $0x30, %rsp
xorps %xmm1, %xmm1
movups %xmm1, 0x18(%rsp)
movq $-0x1, %rax
movq %rax, 0x10(%rsp)
movq %rax, 0x8(%rsp)
movq %rbx, (%rsp)
leaq -0x2a(%rbp), %rdi
movq %r13, %rsi
movq -0x78(%rbp), %rdx
movq -0x90(%rbp), %rcx
movq %r15, %r8
movq %r14, %r9
callq 0x1cd66
addq $0x30, %rsp
movq -0x60(%rbp), %rax
addq %rax, %rbx
movq -0x70(%rbp), %r13
addq %rax, %r13
subq %rax, -0xb0(%rbp)
movq -0x98(%rbp), %rax
addq %rax, -0xb8(%rbp)
addq %rax, %r12
movq %r12, -0xa8(%rbp)
movq %r13, %r12
movq -0x100(%rbp), %rax
movq -0x120(%rbp), %rsi
addq %rsi, %rax
movq %rax, -0x70(%rbp)
movq -0x108(%rbp), %r13
movq -0x128(%rbp), %r8
leaq (%r8,%r13), %rax
movq %rax, -0x118(%rbp)
leaq -0x29(%rbp), %rdi
movq 0x18(%rbp), %rdx
movq -0x78(%rbp), %rcx
movq %r15, %r9
pushq 0x20(%rbp)
pushq %r14
callq 0x289de
addq $0x10, %rsp
movq -0x118(%rbp), %rcx
movq -0x70(%rbp), %rsi
leaq -0x50(%rbp), %r8
movq -0xa0(%rbp), %rdx
jmp 0x28707
movq -0xf0(%rbp), %r15
addq -0xc0(%rbp), %r15
movq -0xc8(%rbp), %r9
movq -0xf8(%rbp), %r13
addq %r9, %r13
movq -0xe8(%rbp), %r14
subq %r9, %r14
movq -0xd0(%rbp), %r12
cmpq %r12, %rdx
movq -0x90(%rbp), %rbx
jl 0x28645
cmpq $0x4001, -0x80(%rbp)    # imm = 0x4001
jb 0x288c0
movq -0x38(%rbp), %rdi
callq 0x93c0
cmpq $0x4001, -0x58(%rbp)    # imm = 0x4001
jb 0x288d3
movq -0x40(%rbp), %rdi
callq 0x93c0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x9180
movq 0x5f6bd(%rip), %rcx     # 0x87fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x5f6c7(%rip), %rsi     # 0x87fc8
movq 0x5f688(%rip), %rdx     # 0x87f90
movq %rax, %rdi
callq 0x9630
movq %rax, %r15
movl $0x8, %edi
callq 0x9180
movq 0x5f68c(%rip), %rcx     # 0x87fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x5f696(%rip), %rsi     # 0x87fc8
movq 0x5f657(%rip), %rdx     # 0x87f90
movq %rax, %rdi
callq 0x9630
jmp 0x28945
jmp 0x288e2
leaq 0x34400(%rip), %rdi     # 0x5cd4c
leaq 0x344b3(%rip), %rsi     # 0x5ce06
leaq 0x344cb(%rip), %rcx     # 0x5ce25
movl $0xa1, %edx
callq 0x9200
movl $0x8, %edi
callq 0x9180
movq 0x5f63b(%rip), %rcx     # 0x87fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x5f645(%rip), %rsi     # 0x87fc8
movq 0x5f606(%rip), %rdx     # 0x87f90
movq %rax, %rdi
callq 0x9630
movq %rax, %rbx
movq -0x58(%rbp), %r14
jmp 0x289c3
movq %rax, %rbx
movq %r15, %rdi
jmp 0x289c7
jmp 0x289a9
jmp 0x289a9
jmp 0x289a9
movq %rax, %rbx
cmpq $0x4001, -0x80(%rbp)    # imm = 0x4001
movq -0x58(%rbp), %r14
jb 0x289c3
movq -0x38(%rbp), %rdi
callq 0x93c0
movq -0x40(%rbp), %rdi
cmpq $0x4001, %r14           # imm = 0x4001
jb 0x289d5
callq 0x93c0
movq %rbx, %rdi
callq 0x9670
nop