// File: /workspace/github_cpp_makefile_star2_O3/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 0x27ece
movq %rdx, %r15
movq %rsi, %r12
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x27af8
xorl %eax, %eax
jmp 0x27b3e
leaq (,%r14,8), %rdi
cmpq $0x4000, %r14           # imm = 0x4000
ja 0x27b1f
movq %rsp, %rax
addq $0x1e, %rdi
andq $-0x10, %rdi
subq %rdi, %rax
movq %rax, %rsp
movq %rax, %rsi
jmp 0x27b3e
movq %r9, %r13
callq 0x9450
testb $0xf, %al
jne 0x27f2d
movq %rax, %rsi
testq %rax, %rax
movq %r13, %r9
je 0x27f2f
movabsq $0x1fffffffffffffff, %rcx # imm = 0x1FFFFFFFFFFFFFFF
movq %r9, %rdx
imulq -0x68(%rbp), %rdx
cmpq %rcx, %rdx
ja 0x27efc
movq %rsi, -0x78(%rbp)
movq %r14, -0x58(%rbp)
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
movq %rax, -0x40(%rbp)
movq %rdx, -0x80(%rbp)
je 0x27b7c
movq $0x0, -0x38(%rbp)
jmp 0x27bc7
leaq (,%rdx,8), %rdi
cmpq $0x4000, %rdx           # imm = 0x4000
ja 0x27ba4
movq %rsp, %rbx
addq $0x1e, %rdi
andq $-0x10, %rdi
subq %rdi, %rbx
movq %rbx, %rsp
movq %rbx, -0x38(%rbp)
jmp 0x27bc7
movq %r9, %r14
callq 0x9450
testb $0xf, %al
jne 0x27f31
movq %rax, %rbx
movq %rax, -0x38(%rbp)
testq %rax, %rax
movq %r14, %r9
je 0x27f50
testq %r12, %r12
jle 0x27e99
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 0x1e226
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 0x27e59
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 0x1c28e
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 0x1c502
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 0x27fca
addq $0x10, %rsp
movq -0x118(%rbp), %rcx
movq -0x70(%rbp), %rsi
leaq -0x50(%rbp), %r8
movq -0xa0(%rbp), %rdx
jmp 0x27cf3
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 0x27c31
cmpq $0x4001, -0x80(%rbp)    # imm = 0x4001
jb 0x27eac
movq -0x38(%rbp), %rdi
callq 0x93d0
cmpq $0x4001, -0x58(%rbp)    # imm = 0x4001
jb 0x27ebf
movq -0x40(%rbp), %rdi
callq 0x93d0
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x9180
movq 0x5e0d1(%rip), %rcx     # 0x85fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x5e0db(%rip), %rsi     # 0x85fc8
movq 0x5e09c(%rip), %rdx     # 0x85f90
movq %rax, %rdi
callq 0x9640
movq %rax, %r15
movl $0x8, %edi
callq 0x9180
movq 0x5e0a0(%rip), %rcx     # 0x85fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x5e0aa(%rip), %rsi     # 0x85fc8
movq 0x5e06b(%rip), %rdx     # 0x85f90
movq %rax, %rdi
callq 0x9640
jmp 0x27f31
jmp 0x27ece
leaq 0x34e34(%rip), %rdi     # 0x5cd6c
leaq 0x34ee7(%rip), %rsi     # 0x5ce26
leaq 0x34eff(%rip), %rcx     # 0x5ce45
movl $0xa1, %edx
callq 0x9200
movl $0x8, %edi
callq 0x9180
movq 0x5e04f(%rip), %rcx     # 0x85fb0
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x5e059(%rip), %rsi     # 0x85fc8
movq 0x5e01a(%rip), %rdx     # 0x85f90
movq %rax, %rdi
callq 0x9640
movq %rax, %rbx
movq -0x58(%rbp), %r14
jmp 0x27faf
movq %rax, %rbx
movq %r15, %rdi
jmp 0x27fb3
jmp 0x27f95
jmp 0x27f95
jmp 0x27f95
movq %rax, %rbx
cmpq $0x4001, -0x80(%rbp)    # imm = 0x4001
movq -0x58(%rbp), %r14
jb 0x27faf
movq -0x38(%rbp), %rdi
callq 0x93d0
movq -0x40(%rbp), %rdi
cmpq $0x4001, %r14           # imm = 0x4001
jb 0x27fc1
callq 0x93d0
movq %rbx, %rdi
callq 0x9680
nop