// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/eigen/Eigen/src/Core/products/TriangularSolverVector.h
// Function: Eigen::internal::triangular_solve_vector<double, double, long, 1, 2, false, 1>::run(long, double const*, long, double*)
static void run(Index size, const LhsScalar* _lhs, Index lhsStride, RhsScalar* rhs)
  {
    typedef Map<const Matrix<LhsScalar,Dynamic,Dynamic,RowMajor>, 0, OuterStride<> > LhsMap;
    const LhsMap lhs(_lhs,size,size,OuterStride<>(lhsStride));

    typedef const_blas_data_mapper<LhsScalar,Index,RowMajor> LhsMapper;
    typedef const_blas_data_mapper<RhsScalar,Index,ColMajor> RhsMapper;

    typename internal::conditional<
                          Conjugate,
                          const CwiseUnaryOp<typename internal::scalar_conjugate_op<LhsScalar>,LhsMap>,
                          const LhsMap&>
                        ::type cjLhs(lhs);
    static const Index PanelWidth = EIGEN_TUNE_TRIANGULAR_PANEL_WIDTH;
    for(Index pi=IsLower ? 0 : size;
        IsLower ? pi<size : pi>0;
        IsLower ? pi+=PanelWidth : pi-=PanelWidth)
    {
      Index actualPanelWidth = (std::min)(IsLower ? size - pi : pi, PanelWidth);

      Index r = IsLower ? pi : size - pi; // remaining size
      if (r > 0)
      {
        // let's directly call the low level product function because:
        // 1 - it is faster to compile
        // 2 - it is slightly faster at runtime
        Index startRow = IsLower ? pi : pi-actualPanelWidth;
        Index startCol = IsLower ? 0 : pi;

        general_matrix_vector_product<Index,LhsScalar,LhsMapper,RowMajor,Conjugate,RhsScalar,RhsMapper,false>::run(
          actualPanelWidth, r,
          LhsMapper(&lhs.coeffRef(startRow,startCol), lhsStride),
          RhsMapper(rhs + startCol, 1),
          rhs + startRow, 1,
          RhsScalar(-1));
      }

      for(Index k=0; k<actualPanelWidth; ++k)
      {
        Index i = IsLower ? pi+k : pi-k-1;
        Index s = IsLower ? pi   : i+1;
        if (k>0)
          rhs[i] -= (cjLhs.row(i).segment(s,k).transpose().cwiseProduct(Map<const Matrix<RhsScalar,Dynamic,1> >(rhs+s,k))).sum();

        if((!(Mode & UnitDiag)) && numext::not_equal_strict(rhs[i],RhsScalar(0)))
          rhs[i] /= cjLhs(i,i);
      }
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rcx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x188(%rsp), %r12
movq %r12, %rdi
movq %rdx, 0x10(%rsp)
movq %rdx, %rsi
callq 0x1c9e6
leaq 0x38(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r15, %rcx
callq 0x1e036
movq (%r12), %rax
movq %rax, 0x18(%r13)
movq %r14, 0x18(%rsp)
leaq (%r14,%r15,8), %rbx
movq %r15, 0x20(%rsp)
cmpq $0x8, %r15
pushq $0x8
popq %r12
cmovbq %r15, %r12
testq %r15, %r15
jle 0x1d8f7
movq 0x20(%rsp), %rsi
subq %r15, %rsi
jle 0x1d76f
movq %r15, %rax
subq %r12, %rax
movq 0x18(%rsp), %rdx
leaq (%rdx,%rax,8), %r8
imulq 0x50(%rsp), %rax
leaq (,%r15,8), %rcx
addq 0x38(%rsp), %rcx
leaq (%rcx,%rax,8), %rax
movq %rax, 0x188(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x190(%rsp)
leaq (%rdx,%r15,8), %rax
movq %rax, 0x60(%rsp)
movq $0x1, 0x68(%rsp)
movq %r12, %rdi
leaq 0x188(%rsp), %rdx
leaq 0x60(%rsp), %rcx
pushq $0x1
popq %r9
movsd 0x1ef5e(%rip), %xmm0    # 0x3c6c8
callq 0x1d90a
negq %r12
movq $0x0, 0x8(%rsp)
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %r15, 0x28(%rsp)
movq %r12, 0x30(%rsp)
cmpq %r14, %r12
je 0x1d8ea
leaq (%r15,%r14), %r12
decq %r12
movq %r14, %r13
subq $0x1, %r13
jae 0x1d7ae
movsd (%rbx,%r13,8), %xmm1
jmp 0x1d8a8
addq %r15, %r14
movq %rbx, %r15
leaq 0x230(%rsp), %rbx
movq %rbx, %rdi
leaq 0x38(%rsp), %rsi
movq %r12, %rdx
callq 0x1e072
leaq 0xe8(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rbx
movq %r14, %rdx
movq %rbp, %rcx
callq 0x1e16c
movq 0xe8(%rsp), %rax
movq %rax, 0x60(%rsp)
movups 0xf8(%rsp), %xmm0
movups %xmm0, 0x70(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x88(%rsp)
leaq 0x118(%rsp), %rdx
movq 0x10(%rdx), %rax
leaq 0x90(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups (%rdx), %xmm0
movups %xmm0, (%rcx)
movq 0x130(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x38(%rdx), %rax
movq %rax, 0x38(%rcx)
movups 0x28(%rdx), %xmm0
movups %xmm0, 0x28(%rcx)
movupd 0x48(%rdx), %xmm0
movupd %xmm0, 0x48(%rcx)
movq 0x8(%rsp), %rax
leaq (%r15,%rax), %rsi
leaq 0x170(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rdx
callq 0x1e3a4
leaq 0x188(%rsp), %r14
movq %r14, %rdi
leaq 0x60(%rsp), %rsi
movq %r15, %rdx
movq 0x28(%rsp), %r15
callq 0x1dfb6
movq %r14, %rdi
callq 0x1dfd2
movsd (%rbx,%r13,8), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%rbx,%r13,8)
ucomisd 0x1ee50(%rip), %xmm1    # 0x3c700
jne 0x1d8b4
jnp 0x1d8d4
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x1dff0
movsd (%rbx,%r13,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rbx,%r13,8)
incq %rbp
addq $-0x8, 0x8(%rsp)
movq %r13, %r14
movq 0x30(%rsp), %r12
jmp 0x1d78a
addq $-0x8, %r15
addq $-0x40, %rbx
jmp 0x1d6e2
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop