// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::generic_function_call(exprtk::igeneric_function<double>*, std::vector<exprtk::details::expression_node<double>*, std::allocator<exprtk::details::expression_node<double>*>>&, unsigned long const&)
inline expression_node_ptr generic_function_call(igeneric_function_t* gf,
                                                          std::vector<expression_node_ptr>& arg_list,
                                                          const std::size_t& param_seq_index = std::numeric_limits<std::size_t>::max())
         {
            if (!all_nodes_valid(arg_list))
            {
               details::free_all_nodes(*node_allocator_,arg_list);
               return error_node();
            }

            typedef details::generic_function_node     <Type,igeneric_function_t> alloc_type1;
            typedef details::multimode_genfunction_node<Type,igeneric_function_t> alloc_type2;

            const std::size_t no_psi = std::numeric_limits<std::size_t>::max();

            expression_node_ptr result = error_node();
            std::string node_name = "Unknown";

            if (no_psi == param_seq_index)
            {
               result = node_allocator_->allocate<alloc_type1>(arg_list,gf);
               node_name = "generic_function_node<igeneric_function_t>";
            }
            else
            {
               result = node_allocator_->allocate<alloc_type2>(gf, param_seq_index, arg_list);
               node_name = "multimode_genfunction_node<igeneric_function_t>";
            }

            alloc_type1* genfunc_node_ptr = static_cast<alloc_type1*>(result);

            assert(genfunc_node_ptr);

            if (
                 !arg_list.empty()                  &&
                 !gf->has_side_effects()            &&
                 parser_->state_.type_check_enabled &&
                 is_constant_foldable(arg_list)
               )
            {
               genfunc_node_ptr->init_branches();

               const Type v = result->value();

               details::free_node(*node_allocator_,result);

               return node_allocator_->allocate<literal_node_t>(v);
            }
            else if (genfunc_node_ptr->init_branches())
            {
               if (result && result->valid())
               {
                  parser_->state_.activate_side_effect("generic_function_call()");
                  return result;
               }

               parser_->set_error(parser_error::make_error(
                  parser_error::e_synthesis,
                  token_t(),
                  "ERR266 - Failed to synthesize node: " + node_name,
                  exprtk_error_location));

               details::free_node(*node_allocator_, result);
               return error_node();
            }
            else
            {
               details::free_node(*node_allocator_, result);
               details::free_all_nodes(*node_allocator_, arg_list);

               return error_node();
            }
         }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x170, %rsp            # imm = 0x170
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
movq %rsi, 0x10(%rsp)
movq %rdx, %rdi
callq 0x2082f4
testb %al, %al
je 0x2b5eb6
andq $0x0, 0x8(%rsp)
leaq 0x24a81(%rip), %rsi     # 0x2da902
leaq 0x18(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
callq 0x127016
cmpq $-0x1, (%r15)
movq 0x8(%rbx), %rdi
je 0x2b5ec9
leaq 0x10(%rsp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2b7212
leaq 0x27c04(%rip), %rsi     # 0x2ddab8
jmp 0x2b5edd
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x20831e
xorl %ebx, %ebx
jmp 0x2b60c3
leaq 0x10(%rsp), %rdx
movq %r14, %rsi
callq 0x2b71bc
leaq 0x27bb0(%rip), %rsi     # 0x2dda8d
movq %rax, 0x8(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x118600
movq 0x8(%rsp), %r15
movq (%r14), %rax
cmpq 0x8(%r14), %rax
je 0x2b5f65
movq 0x10(%rsp), %rax
cmpb $0x0, 0x9(%rax)
jne 0x2b5f65
movq 0x68(%rbx), %rax
cmpb $0x1, 0x3ad(%rax)
jne 0x2b5f65
movq %rbx, %rdi
movq %r14, %rsi
callq 0x208372
testb %al, %al
je 0x2b5f65
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movsd %xmm0, 0xc8(%rsp)
movq 0x8(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1ad9c8
movq 0x8(%rbx), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x1adef4
movq %rax, %rbx
jmp 0x2b60b9
movq (%r15), %rax
movq %r15, %rdi
callq *0x40(%rax)
testb %al, %al
je 0x2b5fcd
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2b5fec
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0x2b5fec
movq 0x68(%rbx), %rbx
leaq 0x27b57(%rip), %rsi     # 0x2ddae8
leaq 0xc8(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x127016
cmpb $0x0, 0x3ac(%rbx)
jne 0x2b5fb6
movb $0x1, 0x3ac(%rbx)
leaq 0xc8(%rsp), %rdi
callq 0x118648
movq 0x8(%rsp), %rbx
jmp 0x2b60b9
movq 0x8(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1ad9c8
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x20831e
jmp 0x2b60b7
movq 0x68(%rbx), %r14
leaq 0x98(%rsp), %rdi
callq 0x19e4ae
leaq 0x27afc(%rip), %rsi     # 0x2ddb00
leaq 0x78(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x1f8aab
leaq 0x38(%rsp), %rdi
movl $0x8449, %esi           # imm = 0x8449
callq 0x1f7a3c
leaq 0x23bd2(%rip), %rsi     # 0x2d9bfb
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x1b4349
leaq 0xc8(%rsp), %rdi
pushq $0x7
popq %rsi
leaq 0x98(%rsp), %rdx
leaq 0x78(%rsp), %rcx
leaq 0x58(%rsp), %r8
callq 0x1f7341
addq $0x308, %r14            # imm = 0x308
leaq 0xc8(%rsp), %rsi
movq %r14, %rdi
callq 0x1f76ce
leaq 0xc8(%rsp), %rdi
callq 0x1f5c4c
leaq 0x58(%rsp), %rdi
callq 0x118648
leaq 0x38(%rsp), %rdi
callq 0x118648
leaq 0x78(%rsp), %rdi
callq 0x118648
leaq 0xa0(%rsp), %rdi
callq 0x118648
movq 0x8(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1ad9c8
xorl %ebx, %ebx
leaq 0x18(%rsp), %rdi
callq 0x118648
movq %rbx, %rax
addq $0x170, %rsp            # imm = 0x170
popq %rbx
popq %r14
popq %r15
retq
jmp 0x2b612c
jmp 0x2b612c
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x1f5c4c
jmp 0x2b60ec
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x118648
jmp 0x2b60fb
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x118648
jmp 0x2b610a
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x118648
jmp 0x2b6119
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x118648
jmp 0x2b612f
jmp 0x2b612c
jmp 0x2b612c
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x118648
movq %rbx, %rdi
callq 0x118360
nop