// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq (%rdx), %rax
movq (%rax), %r15
movq (%rsi), %rcx
cmpq $0x1, %rcx
jne 0x37a955
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
xorpd %xmm1, %xmm1
cmpq $0x3, %rdx
jb 0x37abca
movq 0x18(%rax), %r12
movsd (%r12), %xmm0
ucomisd %xmm0, %xmm1
ja 0x37abca
movsd 0xe79e(%rip), %xmm1     # 0x389020
callq 0x11e460
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x37abca
jp 0x37abca
movq (%rbx), %rax
movq 0x30(%rax), %r13
movsd (%r13), %xmm0
ucomisd %xmm0, %xmm1
ja 0x37abca
movsd (%r12), %xmm1
movaps %xmm1, 0x30(%rsp)
movsd 0xe75b(%rip), %xmm1     # 0x389020
callq 0x11e460
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x37abca
jp 0x37abca
movapd 0x30(%rsp), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0xe988(%rip), %xmm0     # 0x389280
cvttsd2si %xmm0, %rdx
andq %rcx, %rdx
orq %rax, %rdx
movsd (%r13), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
subsd 0xe967(%rip), %xmm0     # 0x389280
cvttsd2si %xmm0, %r12
sarq $0x3f, %rcx
andq %rcx, %r12
orq %rax, %r12
cmpq %r12, %rdx
ja 0x37abca
movq %rdx, %r13
movq (%rbx), %rax
movq 0x8(%rax), %rcx
decq %rcx
cmpq %rdx, %rcx
jb 0x37abca
cmpq %r12, %rcx
jb 0x37abca
movq (%r14), %rcx
jmp 0x37a95f
movq 0x8(%rax), %r12
decq %r12
xorl %r13d, %r13d
cmpq $0x3, %rcx
jne 0x37aa7d
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
xorpd %xmm1, %xmm1
cmpq $0x4, %rdx
jb 0x37abca
movq 0x30(%rax), %r12
movsd (%r12), %xmm0
ucomisd %xmm0, %xmm1
ja 0x37abca
movsd 0xe674(%rip), %xmm1     # 0x389020
callq 0x11e460
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x37abca
jp 0x37abca
movq (%rbx), %rax
movq 0x48(%rax), %r13
movsd (%r13), %xmm0
ucomisd %xmm0, %xmm1
ja 0x37abca
movsd (%r12), %xmm1
movaps %xmm1, 0x30(%rsp)
movsd 0xe631(%rip), %xmm1     # 0x389020
callq 0x11e460
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x37abca
jp 0x37abca
movapd 0x30(%rsp), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0xe85e(%rip), %xmm0     # 0x389280
cvttsd2si %xmm0, %rdx
andq %rcx, %rdx
orq %rax, %rdx
movsd (%r13), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
subsd 0xe83d(%rip), %xmm0     # 0x389280
cvttsd2si %xmm0, %r12
sarq $0x3f, %rcx
andq %rcx, %r12
orq %rax, %r12
cmpq %r12, %rdx
ja 0x37abca
movq %rdx, %r13
movq (%rbx), %rax
movq 0x8(%rax), %rcx
decq %rcx
cmpq %rdx, %rcx
jb 0x37abca
cmpq %r12, %rcx
jb 0x37abca
movq (%r14), %rcx
andq $-0x2, %rcx
cmpq $0x2, %rcx
jne 0x37ab7c
movq %r12, 0x30(%rsp)
movq 0x18(%rax), %rsi
leaq 0x20(%rsp), %r14
movq 0x20(%rax), %rdx
addq %rsi, %rdx
movq %r14, -0x10(%r14)
leaq 0x10(%rsp), %rdi
callq 0x1e4740
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x33784(%rip), %rsi     # 0x3ae242
leaq 0x33786(%rip), %rdx     # 0x3ae24b
leaq 0x40(%rsp), %rdi
callq 0x1e4740
movq 0x18(%rsp), %r12
cmpq 0x48(%rsp), %r12
jne 0x37ab30
movq 0x40(%rsp), %r14
testq %r12, %r12
je 0x37ab39
movq %r13, 0x8(%rsp)
movq %r15, 0x60(%rsp)
movq 0x10(%rsp), %r15
decq %r12
xorl %r13d, %r13d
movsbl (%r15,%r13), %edi
callq 0x11e450
movl %eax, %ebp
movsbl (%r14,%r13), %edi
callq 0x11e450
cmpl %eax, %ebp
sete %bpl
jne 0x37ab24
leaq 0x1(%r13), %rax
cmpq %r13, %r12
movq %rax, %r13
jne 0x37aafa
movq 0x60(%rsp), %r15
movq 0x8(%rsp), %r13
jmp 0x37ab3c
movq 0x40(%rsp), %r14
xorl %ebp, %ebp
jmp 0x37ab3c
movb $0x1, %bpl
leaq 0x50(%rsp), %rax
cmpq %rax, %r14
movq 0x30(%rsp), %r12
je 0x37ab5b
movq 0x50(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x11e0c0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %r14
cmpq %r14, %rdi
je 0x37ab77
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x11e0c0
testb %bpl, %bpl
je 0x37abdd
leaq (%r15,%r13,8), %rbx
leaq (%r15,%r12,8), %r14
addq $0x8, %r14
movsd 0xe490(%rip), %xmm1     # 0x389020
cmpq %r14, %rbx
je 0x37abca
movq %r14, %rax
subq %rbx, %rax
sarq $0x3, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x37ad4f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x37ae46
movsd 0xe456(%rip), %xmm1     # 0x389020
movapd %xmm1, %xmm0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rax
movq 0x18(%rax), %rsi
movq 0x20(%rax), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
movq %r14, (%rdi)
callq 0x1e4740
leaq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
movq %rax, (%rdi)
leaq 0x33640(%rip), %rsi     # 0x3ae24c
leaq 0x33643(%rip), %rdx     # 0x3ae256
callq 0x1e4740
movq 0x18(%rsp), %r14
cmpq 0x48(%rsp), %r14
jne 0x37ac7b
movq 0x40(%rsp), %rbx
testq %r14, %r14
je 0x37ac84
movq %r13, 0x8(%rsp)
movq %r15, %r13
movq 0x10(%rsp), %r15
decq %r14
xorl %r12d, %r12d
movsbl (%r15,%r12), %edi
callq 0x11e450
movl %eax, %ebp
movsbl (%rbx,%r12), %edi
callq 0x11e450
cmpl %eax, %ebp
sete %bpl
jne 0x37ac6c
leaq 0x1(%r12), %rax
cmpq %r12, %r14
movq %rax, %r12
jne 0x37ac41
movq %r13, %r15
movq 0x8(%rsp), %r13
movq 0x30(%rsp), %r12
jmp 0x37ac87
movq 0x40(%rsp), %rbx
xorl %ebp, %ebp
jmp 0x37ac87
movb $0x1, %bpl
leaq 0x50(%rsp), %rax
cmpq %rax, %rbx
leaq 0x20(%rsp), %r14
je 0x37aca6
movq 0x50(%rsp), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x11e0c0
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x37acbd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x11e0c0
xorpd %xmm1, %xmm1
testb %bpl, %bpl
je 0x37abca
leaq (%r15,%r13,8), %rbx
leaq (%r15,%r12,8), %r14
addq $0x8, %r14
movsd 0xe342(%rip), %xmm1     # 0x389020
cmpq %r14, %rbx
je 0x37abca
movq %r14, %rax
subq %rbx, %rax
sarq $0x3, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x37b105
movq %rbx, %rdi
movq %r14, %rsi
callq 0x37b1fc
jmp 0x37abc2
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
jne 0x37ad3a
jmp 0x37ad47
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x37ad47
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x11e0c0
movq %rbx, %rdi
callq 0x11e330