// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::rtl::vecops::sort<double>::operator()(unsigned long const&, exprtk::type_store<double>::parameter_list)
inline T operator() (const std::size_t& ps_index, parameter_list_t parameters) exprtk_override
      {
         vector_t vec(parameters[0]);

         std::size_t r0 = 0;
         std::size_t r1 = vec.size() - 1;

         if ((1 == ps_index) && !helper::load_vector_range<T>::process(parameters, r0, r1, 1, 2, 0))
            return T(0);
         if ((3 == ps_index) && !helper::load_vector_range<T>::process(parameters, r0, r1, 2, 3, 0))
            return T(0);

         bool ascending = true;

         if ((2 == ps_index) || (3 == ps_index))
         {
            if (exprtk::details::imatch(to_str(string_t(parameters[1])),"ascending"))
               ascending = true;
            else if (exprtk::details::imatch(to_str(string_t(parameters[1])),"descending"))
               ascending = false;
            else
               return T(0);
         }

         if (ascending)
            std::sort(
               vec.begin() + r0,
               vec.begin() + r1 + 1,
               std::less<T>());
         else
            std::sort(
               vec.begin() + r0,
               vec.begin() + r1 + 1,
               std::greater<T>());

         return T(1);
      }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movq %rdx, 0x20(%rsp)
movq (%rdx), %rax
movq (%rax), %r15
andq $0x0, 0x18(%rsp)
movq 0x8(%rax), %rax
decq %rax
movq %rax, 0x10(%rsp)
movq (%rsi), %rax
cmpq $0x1, %rax
jne 0x2c241a
leaq 0x28(%rsp), %rcx
movq $0x1, (%rcx)
leaq 0x48(%rsp), %r8
movq $0x2, (%r8)
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
xorl %r9d, %r9d
callq 0x2c1678
xorps %xmm0, %xmm0
testb %al, %al
je 0x2c24f2
movq (%rbx), %rax
cmpq $0x3, %rax
jne 0x2c245d
leaq 0x28(%rsp), %rcx
movq $0x2, (%rcx)
leaq 0x48(%rsp), %r8
movq $0x3, (%r8)
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
xorl %r9d, %r9d
callq 0x2c1678
xorps %xmm0, %xmm0
testb %al, %al
je 0x2c24f2
movq (%rbx), %rax
andq $-0x2, %rax
cmpq $0x2, %rax
jne 0x2c24cf
movq 0x20(%rsp), %rax
movq (%rax), %rax
leaq 0x18(%rax), %rcx
leaq 0x68(%rsp), %rsi
movq %rcx, (%rsi)
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsi)
leaq 0x28(%rsp), %rdi
callq 0x2c259f
leaq 0x314b8(%rip), %rsi     # 0x2f394c
leaq 0x48(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x127016
leaq 0x28(%rsp), %rbx
leaq 0x48(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1fbcc5
movl %eax, %ebp
movq %r14, %rdi
callq 0x118648
movq %rbx, %rdi
callq 0x118648
testb %bpl, %bpl
je 0x2c24fd
movq 0x18(%rsp), %rax
leaq (%r15,%rax,8), %rdi
movq 0x10(%rsp), %rax
leaq (%r15,%rax,8), %rsi
addq $0x8, %rsi
callq 0x2c25c2
movsd 0xbcce(%rip), %xmm0     # 0x2ce1c0
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x20(%rsp), %rax
movq (%rax), %rax
leaq 0x18(%rax), %rcx
leaq 0x68(%rsp), %rsi
movq %rcx, (%rsi)
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsi)
leaq 0x28(%rsp), %rdi
callq 0x2c259f
leaq 0x3142c(%rip), %rsi     # 0x2f3956
leaq 0x48(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x127016
leaq 0x28(%rsp), %rbx
leaq 0x48(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1fbcc5
movl %eax, %ebp
movq %r14, %rdi
callq 0x118648
movq %rbx, %rdi
callq 0x118648
xorps %xmm0, %xmm0
testb %bpl, %bpl
je 0x2c24f2
movq 0x18(%rsp), %rax
leaq (%r15,%rax,8), %rdi
movq 0x10(%rsp), %rax
leaq (%r15,%rax,8), %rsi
addq $0x8, %rsi
callq 0x2c2a2e
jmp 0x2c24ea
jmp 0x2c258a
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x118648
movq %rbx, %rdi
callq 0x118360