// File: /workspace/github_cpp_makefile_star2_O2/Kingsford-Group[P]ghost2/include/Eigen/src/Core/products/TriangularSolverVector.h
// Function: Eigen::internal::triangular_solve_vector<double, double, long, 1, 6, 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));
    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 slighlty faster at runtime
        Index startRow = IsLower ? pi : pi-actualPanelWidth;
        Index startCol = IsLower ? 0 : pi;

        general_matrix_vector_product<Index,LhsScalar,RowMajor,Conjugate,RhsScalar,false>::run(
          actualPanelWidth, r,
          &lhs.coeffRef(startRow,startCol), lhsStride,
          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))
          rhs[i] /= cjLhs(i,i);
      }
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rcx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0xe0(%rsp), %r12
movq %r12, %rdi
movq %rdx, 0x10(%rsp)
movq %rdx, %rsi
callq 0x264c6
leaq 0x38(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r15, %rcx
callq 0x27670
movq (%r12), %rax
movq %rax, 0x18(%r13)
movq %r14, 0x18(%rsp)
leaq (%r14,%r15,8), %rax
movq %rax, 0x8(%rsp)
movq %r15, 0x20(%rsp)
movq %r15, %r14
cmpq $0x8, %r14
pushq $0x8
popq %r13
cmovbq %r14, %r13
testq %r14, %r14
jle 0x26edf
movq 0x20(%rsp), %rsi
subq %r14, %rsi
jle 0x26dfe
movq %r14, %rax
subq %r13, %rax
movq 0x18(%rsp), %rdi
leaq (%rdi,%rax,8), %r10
imulq 0x50(%rsp), %rax
leaq (,%r14,8), %rcx
addq 0x38(%rsp), %rcx
leaq (%rcx,%rax,8), %rdx
leaq (%rdi,%r14,8), %r8
movq %r13, %rdi
movq 0x10(%rsp), %rcx
pushq $0x1
popq %r9
movsd 0x19285(%rip), %xmm0    # 0x40078
pushq $0x1
pushq %r10
callq 0x26ef2
popq %rax
popq %rcx
negq %r13
xorl %ebx, %ebx
xorl %eax, %eax
xorl %r12d, %r12d
movq %r14, 0x30(%rsp)
movq %r13, 0x28(%rsp)
cmpq %rax, %r13
je 0x26ed0
movq %rax, %r15
subq $0x1, %r15
jb 0x26ec1
leaq (%r14,%rax), %rbp
leaq (%r14,%rax), %rdx
decq %rdx
leaq 0x168(%rsp), %r14
movq %r14, %rdi
leaq 0x38(%rsp), %rsi
callq 0x276ac
leaq 0x1b0(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x2779a
leaq 0x78(%rsp), %rdi
movq %r13, %rsi
callq 0x27908
movq 0x8(%rsp), %r14
leaq (%r14,%rbx), %rsi
leaq 0x60(%rsp), %r13
movq %r13, %rdi
movq %r12, %rdx
callq 0x27988
leaq 0xe0(%rsp), %rbp
movq %rbp, %rdi
leaq 0x78(%rsp), %rsi
movq %r13, %rdx
movq 0x28(%rsp), %r13
callq 0x27638
movq %rbp, %rdi
callq 0x27654
movsd (%r14,%r15,8), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%r14,%r15,8)
movq 0x30(%rsp), %r14
incq %r12
addq $-0x8, %rbx
movq %r15, %rax
jmp 0x26e12
addq $-0x8, %r14
addq $-0x40, 0x8(%rsp)
jmp 0x26d96
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop