// File: 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:
subq $0x248, %rsp            # imm = 0x248
movq %rdi, 0x238(%rsp)
movq %rsi, 0x230(%rsp)
movq %rdx, 0x228(%rsp)
movq %rcx, 0x220(%rsp)
movq 0x238(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x228(%rsp), %rdi
callq 0x39cd40
testb $0x1, %al
jne 0x54fe1d
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x228(%rsp), %rsi
callq 0x39cdc0
callq 0x2821f0
movq %rax, 0x240(%rsp)
jmp 0x5503a6
movq $-0x1, 0x218(%rsp)
callq 0x2821f0
movq %rax, 0x210(%rsp)
leaq 0x1ef(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x11b6f0
movq 0x50(%rsp), %rdx
leaq 0x57dc6(%rip), %rsi     # 0x5a7c1a
leaq 0x1f0(%rsp), %rdi
callq 0x134520
jmp 0x54fe63
leaq 0x1ef(%rsp), %rdi
callq 0x11b820
movq 0x220(%rsp), %rcx
movq $-0x1, %rax
cmpq (%rcx), %rax
jne 0x54ff14
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x228(%rsp), %rsi
leaq 0x230(%rsp), %rdx
callq 0x553db0
movq %rax, 0x48(%rsp)
jmp 0x54fead
movq 0x48(%rsp), %rax
movq %rax, 0x210(%rsp)
leaq 0x5af0b(%rip), %rsi     # 0x5aadcc
leaq 0x1f0(%rsp), %rdi
callq 0x11b340
jmp 0x54fed0
jmp 0x54ff66
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
leaq 0x1ef(%rsp), %rdi
callq 0x11b820
jmp 0x5503b6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
jmp 0x550397
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x220(%rsp), %rdx
movq 0x228(%rsp), %rcx
leaq 0x230(%rsp), %rsi
callq 0x553e40
movq %rax, 0x40(%rsp)
jmp 0x54ff41
movq 0x40(%rsp), %rax
movq %rax, 0x210(%rsp)
leaq 0x5aea2(%rip), %rsi     # 0x5aadf7
leaq 0x1f0(%rsp), %rdi
callq 0x11b340
jmp 0x54ff64
jmp 0x54ff66
movq 0x210(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x228(%rsp), %rdi
callq 0x37d750
testb $0x1, %al
jne 0x55006d
movq 0x230(%rsp), %rdi
addq $0x8, %rdi
callq 0x237b00
testb $0x1, (%rax)
jne 0x55006d
movq 0x58(%rsp), %rax
movq 0x68(%rax), %rax
testb $0x1, 0x3ad(%rax)
je 0x55006d
movq 0x58(%rsp), %rdi
movq 0x228(%rsp), %rsi
callq 0x39ce40
movb %al, 0x3f(%rsp)
jmp 0x54ffd3
movb 0x3f(%rsp), %al
testb $0x1, %al
jne 0x54ffe0
jmp 0x55006d
movq 0x1d0(%rsp), %rdi
movq (%rdi), %rax
movq 0x40(%rax), %rax
callq *%rax
jmp 0x54fff3
movq 0x210(%rsp), %rdi
movq (%rdi), %rax
movq 0x18(%rax), %rax
callq *%rax
movsd %xmm0, 0x30(%rsp)
jmp 0x55000c
movq 0x58(%rsp), %rax
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x1c8(%rsp)
movq 0x8(%rax), %rdi
leaq 0x210(%rsp), %rsi
callq 0x284bd0
jmp 0x550033
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0x285670
movq %rax, 0x28(%rsp)
jmp 0x550050
movq 0x28(%rsp), %rax
movq %rax, 0x240(%rsp)
movl $0x1, 0x1c4(%rsp)
jmp 0x550388
movq 0x1d0(%rsp), %rdi
movq (%rdi), %rax
movq 0x40(%rax), %rax
callq *%rax
movb %al, 0x27(%rsp)
jmp 0x550084
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0x550091
jmp 0x550340
cmpq $0x0, 0x210(%rsp)
je 0x550177
movq 0x210(%rsp), %rdi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
movb %al, 0x26(%rsp)
jmp 0x5500b7
movb 0x26(%rsp), %al
testb $0x1, %al
jne 0x5500c4
jmp 0x550177
movq 0x58(%rsp), %rax
movq 0x68(%rax), %rax
addq $0x3a8, %rax            # imm = 0x3A8
movq %rax, 0x10(%rsp)
leaq 0x19f(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x11b6f0
movq 0x18(%rsp), %rdx
leaq 0x5ad31(%rip), %rsi     # 0x5aae27
leaq 0x1a0(%rsp), %rdi
callq 0x134520
jmp 0x550105
movq 0x10(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0x3eb500
leaq 0x1a0(%rsp), %rdi
callq 0x11b838
leaq 0x19f(%rsp), %rdi
callq 0x11b820
movq 0x210(%rsp), %rax
movq %rax, 0x240(%rsp)
movl $0x1, 0x1c4(%rsp)
jmp 0x550388
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
leaq 0x19f(%rsp), %rdi
callq 0x11b820
jmp 0x550397
movq 0x58(%rsp), %rax
movq 0x68(%rax), %rax
movq %rax, 0x8(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x251250
jmp 0x550194
leaq 0x5aca4(%rip), %rsi     # 0x5aae3f
leaq 0xa0(%rsp), %rdi
leaq 0x1f0(%rsp), %rdx
callq 0x3784f0
jmp 0x5501b2
leaq 0x60(%rsp), %rdi
movl $0x8449, %esi           # imm = 0x8449
callq 0x371f20
jmp 0x5501c3
leaq 0x56d49(%rip), %rsi     # 0x5a6f13
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x29dd70
jmp 0x5501de
leaq 0xf0(%rsp), %rdi
movl $0x7, %esi
leaq 0xc0(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
leaq 0x80(%rsp), %r8
callq 0x3741e0
jmp 0x55020a
movq 0x8(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x371e40
jmp 0x55021e
leaq 0xf0(%rsp), %rdi
callq 0x371330
leaq 0x80(%rsp), %rdi
callq 0x11b838
leaq 0x60(%rsp), %rdi
callq 0x11b838
leaq 0xa0(%rsp), %rdi
callq 0x11b838
leaq 0xc0(%rsp), %rdi
callq 0x2512e0
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x210(%rsp), %rsi
callq 0x284bd0
jmp 0x550274
callq 0x2821f0
movq %rax, 0x240(%rsp)
movl $0x1, 0x1c4(%rsp)
jmp 0x550388
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
jmp 0x550331
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
jmp 0x550324
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
jmp 0x55031a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
jmp 0x55030d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1e0(%rsp)
movl %eax, 0x1dc(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x371330
leaq 0x80(%rsp), %rdi
callq 0x11b838
leaq 0x60(%rsp), %rdi
callq 0x11b838
leaq 0xa0(%rsp), %rdi
callq 0x11b838
leaq 0xc0(%rsp), %rdi
callq 0x2512e0
jmp 0x550397
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x210(%rsp), %rsi
callq 0x284bd0
jmp 0x550358
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x228(%rsp), %rsi
callq 0x39cdc0
jmp 0x550370
callq 0x2821f0
movq %rax, 0x240(%rsp)
movl $0x1, 0x1c4(%rsp)
leaq 0x1f0(%rsp), %rdi
callq 0x11b838
jmp 0x5503a6
leaq 0x1f0(%rsp), %rdi
callq 0x11b838
jmp 0x5503b6
movq 0x240(%rsp), %rax
addq $0x248, %rsp            # imm = 0x248
retq
movq 0x1e0(%rsp), %rdi
callq 0x11b4e0
nopw %cs:(%rax,%rax)
nopl (%rax)