// File: /workspace/github_cpp_makefile_star2_O1/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::rtl::vecops::shift_right<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 n  = 0;
         std::size_t r0 = 0;
         std::size_t r1 = vec.size() - 1;

         if (!scalar_t(parameters[1]).to_uint(n))
            return T(0);

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

         const std::size_t dist = r1 - r0 + 1;

         if (n > dist)
            return T(0);

         const std::size_t shift = (dist - (n % dist)) % dist;

         std::rotate(
            vec.begin() + r0,
            vec.begin() + r0 + shift,
            vec.begin() + r1 + 1);

         for (std::size_t i = r0; i < r0 + n; ++i)
         {
            vec[i] = T(0);
         }

         return T(1);
      }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq (%rdx), %rax
movq (%rax), %r12
movq 0x8(%rax), %r13
movq 0x18(%rax), %rbx
movsd (%rbx), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x3a2e83
movsd 0xf1d5(%rip), %xmm1     # 0x3b2020
callq 0x120460
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x3a2e83
jp 0x3a2e83
movsd (%rbx), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
subsd 0xf418(%rip), %xmm0     # 0x3b2288
cvttsd2si %xmm0, %rbx
sarq $0x3f, %rcx
andq %rcx, %rbx
orq %rax, %rbx
movb $0x1, %al
jmp 0x3a2e87
xorl %ebx, %ebx
xorl %eax, %eax
testb %al, %al
je 0x3a2f42
decq %r13
cmpq $0x1, (%r15)
jne 0x3a2edc
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rdx
cmpq $0x4, %rdx
jb 0x3a2ed1
movq 0x30(%rax), %r15
movsd (%r15), %xmm0
xorpd %xmm2, %xmm2
ucomisd %xmm0, %xmm2
jbe 0x3a2f55
xorl %r15d, %r15d
xorl %eax, %eax
testb %al, %al
jne 0x3a2edf
jmp 0x3a2f42
xorl %r15d, %r15d
movq %r13, %rcx
subq %r15, %rcx
incq %rcx
cmpq %rcx, %rbx
ja 0x3a2f42
movq %rbx, %rax
xorl %edx, %edx
divq %rcx
movq %rcx, %rax
subq %rdx, %rax
xorl %edx, %edx
divq %rcx
leaq (%r12,%r15,8), %r14
leaq (%r14,%rdx,8), %rsi
leaq (%r12,%r13,8), %rdx
addq $0x8, %rdx
movq %r14, %rdi
callq 0x3a25f8
leaq (%r15,%rbx), %rax
movsd 0xf0fc(%rip), %xmm1     # 0x3b2020
cmpq %rax, %r15
jae 0x3a2f42
shlq $0x3, %rbx
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x120180
movsd 0xf0de(%rip), %xmm1     # 0x3b2020
movapd %xmm1, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsd 0xf0c3(%rip), %xmm1     # 0x3b2020
callq 0x120460
ucomisd 0xf28e(%rip), %xmm0     # 0x3b21f8
jne 0x3a3013
jp 0x3a3013
movsd (%r15), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0xf2f9(%rip), %xmm0     # 0x3b2288
cvttsd2si %xmm0, %r15
andq %rcx, %r15
orq %rax, %r15
movq (%r14), %rax
movq 0x48(%rax), %rbp
movsd (%rbp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x3a2ed4
movsd 0xf064(%rip), %xmm1     # 0x3b2020
callq 0x120460
ucomisd 0xf22f(%rip), %xmm0     # 0x3b21f8
jne 0x3a3016
jp 0x3a3016
movsd (%rbp), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0xf2a2(%rip), %xmm0     # 0x3b2288
cvttsd2si %xmm0, %r13
andq %rcx, %r13
orq %rax, %r13
movq (%r14), %rax
movq 0x8(%rax), %rax
decq %rax
cmpq %r15, %rax
setae %cl
cmpq %r13, %rax
setae %dl
andb %cl, %dl
cmpq %r13, %r15
setbe %al
andb %dl, %al
jmp 0x3a3018
xorl %r15d, %r15d
xorl %eax, %eax
xorpd %xmm1, %xmm1
jmp 0x3a2ed6
nop