// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/eigen/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h
// Function: Eigen::internal::general_matrix_matrix_triangular_product<long, double, 0, false, double, 1, false, 0, 1, 1, 0>::run(long, long, double const*, long, double const*, long, double*, long, 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 resIncr, 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, Unaligned, ResInnerStride> ResMapper;
    LhsMapper lhs(_lhs,lhsStride);
    RhsMapper rhs(_rhs,rhsStride);
    ResMapper res(_res, resStride, resIncr);

    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, typename Traits::LhsPacket4Packing, 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, ResInnerStride, 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 + resIncr*i2, resIncr, 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 $0x118, %rsp            # imm = 0x118
movq %r9, -0xb8(%rbp)
movq %r8, -0xb0(%rbp)
movq %rcx, -0x70(%rbp)
cmpq $0x1, 0x18(%rbp)
jne 0x1b8d0
movq %rdx, %r13
movq %rsi, -0xc0(%rbp)
movq 0x30(%rbp), %r15
movq 0x10(%r15), %rax
movq 0x20(%r15), %rbx
cmpq %rdi, %rax
cmovgeq %rdi, %rax
movabsq $0x7ffffffffffffffc, %r14 # imm = 0x7FFFFFFFFFFFFFFC
andq %rax, %r14
cmpq $0x5, %rax
cmovlq %rax, %r14
movq %r14, -0x48(%rbp)
imulq %rbx, %r14
movq %r14, %rax
shrq $0x3d, %rax
movq %rdi, -0x50(%rbp)
je 0x1b50b
callq 0x14fa3
movq -0x50(%rbp), %rdi
movabsq $0x1fffffffffffffff, %r12 # imm = 0x1FFFFFFFFFFFFFFF
movq %rbx, -0x68(%rbp)
imulq %rdi, %rbx
movq (%r15), %rax
leaq (,%r14,8), %rdi
testq %rax, %rax
je 0x1b53f
movq %rax, -0x38(%rbp)
cmpq $0x20001, %rdi          # imm = 0x20001
setae %al
xorl %ecx, %ecx
jmp 0x1b576
cmpq $0x20000, %rdi          # imm = 0x20000
ja 0x1b561
movq %rsp, %rcx
addq $0x1e, %rdi
andq $-0x10, %rdi
subq %rdi, %rcx
movq %rcx, %rsp
xorl %eax, %eax
movq %rcx, -0x38(%rbp)
jmp 0x1b576
callq 0x14fd0
xorl %ecx, %ecx
cmpq $0x0, (%r15)
movq %rax, -0x38(%rbp)
cmoveq %rax, %rcx
movb $0x1, %al
movq %rcx, -0x140(%rbp)
movq %r14, -0x138(%rbp)
movb %al, -0x130(%rbp)
cmpq %r12, %rbx
jbe 0x1b594
callq 0x14fa3
movq 0x8(%r15), %r12
leaq (,%rbx,8), %r14
testq %r12, %r12
movq %r13, -0x40(%rbp)
je 0x1b5ad
xorl %eax, %eax
jmp 0x1b5e2
cmpq $0x20000, %r14          # imm = 0x20000
ja 0x1b5cc
movq %rsp, %rax
leaq 0x1e(%r14), %rcx
andq $-0x10, %rcx
subq %rcx, %rax
movq %rax, %rsp
movq %rax, %r12
jmp 0x1b5e2
movq %r14, %rdi
callq 0x14fd0
movq %rax, %r12
xorl %eax, %eax
cmpq $0x0, 0x8(%r15)
cmoveq %r12, %rax
movq 0x20(%rbp), %rcx
cmpq $0x20001, %r14          # imm = 0x20001
movq %rax, -0x128(%rbp)
movq %rbx, -0x120(%rbp)
setae -0x118(%rbp)
leaq 0x8(,%rcx,8), %rcx
movq -0x48(%rbp), %rax
imulq %rax, %rcx
movq %rcx, -0xe0(%rbp)
movq -0x68(%rbp), %rdx
movq %rdx, %rcx
imulq -0x70(%rbp), %rcx
shlq $0x3, %rcx
movq %rcx, -0xa8(%rbp)
leaq (,%rax,8), %rax
movq %rax, -0x80(%rbp)
xorl %r13d, %r13d
leaq -0x60(%rbp), %r15
movq %rdx, %rsi
xorl %eax, %eax
movq %r12, -0x78(%rbp)
movq -0xc0(%rbp), %rcx
cmpq %rsi, %rcx
movq %rsi, %rdi
cmovlq %rcx, %rdi
cmpq %rcx, %rax
jge 0x1b8a9
movq %rdi, %r14
movq %rsi, -0xd8(%rbp)
addq %rax, %rdx
cmpq %rcx, %rdx
movq %rdx, -0xd0(%rbp)
cmovlq %rdx, %rcx
subq %rax, %rcx
movq -0xb8(%rbp), %rsi
imulq %rsi, %rax
movq -0xb0(%rbp), %rdx
leaq (%rdx,%rax,8), %rax
movq %rax, -0x60(%rbp)
movq %rsi, -0x58(%rbp)
subq $0x8, %rsp
leaq -0x2b(%rbp), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rcx, %rbx
movq -0x50(%rbp), %r8
xorl %r9d, %r9d
pushq $0x0
callq 0x193e0
popq %rax
popq %rcx
movq %r13, -0xc8(%rbp)
addq %r13, %r14
imulq -0x80(%rbp), %r14
movq %r14, -0xf0(%rbp)
movq 0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, -0x98(%rbp)
movq $0x0, -0x90(%rbp)
movq -0x48(%rbp), %rcx
movq %rcx, -0xa0(%rbp)
movq %rax, %rsi
xorl %r13d, %r13d
movq %rbx, %rcx
movq %rbx, -0xe8(%rbp)
movq -0x50(%rbp), %rax
movq -0xa0(%rbp), %r14
cmpq %r14, %rax
cmovlq %rax, %r14
cmpq %rax, %r13
jge 0x1b872
movq %rsi, -0x108(%rbp)
movq %r12, -0x110(%rbp)
addq -0x90(%rbp), %r14
movq -0x98(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x58(%rbp)
subq $0x8, %rsp
leaq -0x2c(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %r15, %rdx
movq %rcx, %r12
movq %r14, %r8
xorl %r9d, %r9d
pushq $0x0
callq 0x1bc42
popq %rax
popq %rcx
movq %r13, %rbx
movq -0x88(%rbp), %r13
movq %r13, -0x60(%rbp)
movq %r15, %rsi
movq 0x20(%rbp), %r15
movq %r15, -0x58(%rbp)
movq %r12, %r9
movq 0x28(%rbp), %r12
movsd (%r12), %xmm0
subq $0x30, %rsp
xorps %xmm1, %xmm1
movups %xmm1, 0x18(%rsp)
orq $-0x1, 0x10(%rsp)
orq $-0x1, 0x8(%rsp)
movq %rbx, (%rsp)
leaq -0x2a(%rbp), %rdi
movq -0x38(%rbp), %rdx
movq -0x78(%rbp), %rcx
movq %r14, %r8
callq 0x1963e
addq $0x30, %rsp
movq -0x48(%rbp), %rax
addq %rax, %rbx
movq -0xe0(%rbp), %rcx
movq -0x108(%rbp), %rsi
addq %rsi, %rcx
movq %rcx, -0x100(%rbp)
addq %rax, -0xa0(%rbp)
subq %rax, -0x90(%rbp)
movq -0x80(%rbp), %rax
addq %rax, -0x98(%rbp)
addq %rax, %r13
movq %r13, -0x88(%rbp)
movq -0xf0(%rbp), %rax
movq -0x110(%rbp), %r9
addq %r9, %rax
movq %rax, -0xf8(%rbp)
subq $0x8, %rsp
leaq -0x29(%rbp), %rdi
pushq $0x1
popq %rdx
movq %r15, %rcx
movq -0x38(%rbp), %r8
pushq %r12
movq -0xe8(%rbp), %r13
pushq %r13
pushq %r14
callq 0x1bd6c
addq $0x20, %rsp
movq -0xf8(%rbp), %r12
movq -0x100(%rbp), %rsi
leaq -0x60(%rbp), %r15
movq %r13, %rcx
movq %rbx, %r13
jmp 0x1b715
movq -0x40(%rbp), %rax
addq -0xa8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x68(%rbp), %rdx
movq -0xd8(%rbp), %rsi
addq %rdx, %rsi
movq -0xc8(%rbp), %r13
subq %rdx, %r13
movq -0xd0(%rbp), %rax
movq -0x78(%rbp), %r12
jmp 0x1b64c
leaq -0x128(%rbp), %rdi
callq 0x1aab2
leaq -0x140(%rbp), %rdi
callq 0x1aab2
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x23dca(%rip), %rdi     # 0x3f6a1
leaq 0x23dcb(%rip), %rsi     # 0x3f6a9
leaq 0x253d6(%rip), %rcx     # 0x40cbb
movl $0xd1, %edx
callq 0x62b0
jmp 0x1b8f1
movq %rax, %rbx
jmp 0x1b90b
jmp 0x1b8fc
jmp 0x1b8fc
jmp 0x1b8fc
movq %rax, %rbx
leaq -0x128(%rbp), %rdi
callq 0x1aab2
leaq -0x140(%rbp), %rdi
callq 0x1aab2
movq %rbx, %rdi
callq 0x66e0
nop