// File: /workspace/github_cpp_makefile_star2_O1/ArashPartow[P]exprtk/./exprtk.hpp
// Function: exprtk::parser<double>::expression_generator<double>::synthesize_cob_expression::process(exprtk::parser<double>::expression_generator<double>&, exprtk::details::operator_type const&, exprtk::details::expression_node<double>* (&) [2])
static inline expression_node_ptr process(expression_generator<Type>& expr_gen,
                                                      const details::operator_type& operation,
                                                      expression_node_ptr (&branch)[2])
            {
               const Type c = static_cast<details::literal_node<Type>*>(branch[0])->value();

               details::free_node(*expr_gen.node_allocator_,branch[0]);

               if (std::equal_to<T>()(T(0),c) && (details::e_mul == operation))
               {
                  details::free_node(*expr_gen.node_allocator_,branch[1]);

                  return expr_gen(T(0));
               }
               else if (std::equal_to<T>()(T(0),c) && (details::e_div == operation))
               {
                  details::free_node(*expr_gen.node_allocator_, branch[1]);

                  return expr_gen(T(0));
               }
               else if (std::equal_to<T>()(T(0),c) && (details::e_add == operation))
                  return branch[1];
               else if (std::equal_to<T>()(T(1),c) && (details::e_mul == operation))
                  return branch[1];

               if (details::is_cob_node(branch[1]))
               {
                  // Simplify expressions of the form:
                  // 1. (1 * (2 * (3 * (4 * (5 * (6 * (7 * (8 * (9 + x))))))))) --> 40320 * (9 + x)
                  // 2. (1 + (2 + (3 + (4 + (5 + (6 + (7 + (8 + (9 + x))))))))) --> 45 + x
                  if (
                       (details::e_mul == operation) ||
                       (details::e_add == operation)
                     )
                  {
                     details::cob_base_node<Type>* cobnode = static_cast<details::cob_base_node<Type>*>(branch[1]);

                     if (operation == cobnode->operation())
                     {
                        switch (operation)
                        {
                           case details::e_add : cobnode->set_c(c + cobnode->c()); break;
                           case details::e_mul : cobnode->set_c(c * cobnode->c()); break;
                           default             : return error_node();
                        }

                        return cobnode;
                     }
                  }

                  if (operation == details::e_mul)
                  {
                     details::cob_base_node<Type>* cobnode = static_cast<details::cob_base_node<Type>*>(branch[1]);
                     details::operator_type cob_opr = cobnode->operation();

                     if (
                          (details::e_div == cob_opr) ||
                          (details::e_mul == cob_opr)
                        )
                     {
                        switch (cob_opr)
                        {
                           case details::e_div : cobnode->set_c(c * cobnode->c()); break;
                           case details::e_mul : cobnode->set_c(cobnode->c() / c); break;
                           default             : return error_node();
                        }

                        return cobnode;
                     }
                  }
                  else if (operation == details::e_div)
                  {
                     details::cob_base_node<Type>* cobnode = static_cast<details::cob_base_node<Type>*>(branch[1]);
                     details::operator_type cob_opr = cobnode->operation();

                     if (
                          (details::e_div == cob_opr) ||
                          (details::e_mul == cob_opr)
                        )
                     {
                        details::expression_node<Type>* new_cobnode = error_node();

                        switch (cob_opr)
                        {
                           case details::e_div : new_cobnode = expr_gen.node_allocator_->
                                                    template allocate_tt<typename details::cob_node<Type,details::mul_op<Type> > >
                                                       (c / cobnode->c(), cobnode->move_branch(0));
                                                 break;

                           case details::e_mul : new_cobnode = expr_gen.node_allocator_->
                                                    template allocate_tt<typename details::cob_node<Type,details::div_op<Type> > >
                                                       (c / cobnode->c(), cobnode->move_branch(0));
                                                 break;

                           default             : return error_node();
                        }

                        details::free_node(*expr_gen.node_allocator_,branch[1]);

                        return new_cobnode;
                     }
                  }
               }
               #ifndef exprtk_disable_enhanced_features
               else if (details::is_sf3ext_node(branch[1]))
               {
                  expression_node_ptr result = error_node();

                  const bool synthesis_result =
                     synthesize_sf4ext_expression::template compile_right<ctype>
                        (expr_gen, c, operation, branch[1], result);

                  if (synthesis_result)
                  {
                     details::free_node(*expr_gen.node_allocator_,branch[1]);

                     return result;
                  }
               }
               #endif

               switch (operation)
               {
                  #define case_stmt(op0, op1)                                                      \
                  case op0 : return expr_gen.node_allocator_->                                     \
                                template allocate_tt<typename details::cob_node<Type,op1<Type> > > \
                                   (c,  branch[1]);                                                \

                  basic_opr_switch_statements
                  extended_opr_switch_statements
                  #undef case_stmt
                  default : return error_node();
               }
            }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdx), %rdi
movsd 0x20(%rdi), %xmm0
movsd %xmm0, (%rsp)
testq %rdi, %rdi
je 0x2ba621
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2ba621
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2ba619
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2ba621
movq %rbx, %rdi
callq 0x1f1690
xorpd %xmm0, %xmm0
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x2ba6d6
jp 0x2ba6d6
cmpl $0x4, (%r15)
je 0x2ba656
ucomisd %xmm0, %xmm1
jne 0x2ba6d6
jp 0x2ba6d6
cmpl $0x5, (%r15)
jne 0x2ba6bf
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x2ba689
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2ba689
addq $0x8, %rbx
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2ba681
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2ba689
movq %rbx, %rdi
callq 0x1f1690
movl $0x28, %edi
callq 0x1200f0
movq %rax, %r12
movb $0x0, 0x10(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%rax)
leaq 0x256bde(%rip), %rax    # 0x511288
movq %rax, (%r12)
leaq 0x256c1b(%rip), %rax    # 0x5112d0
movq %rax, 0x8(%r12)
jmp 0x2baaac
ucomisd %xmm0, %xmm1
jne 0x2ba6d6
jp 0x2ba6d6
cmpl $0x2, (%r15)
jne 0x2ba6d6
movq 0x8(%rbx), %r12
jmp 0x2baaac
ucomisd 0xf7942(%rip), %xmm1    # 0x3b2020
movq 0x8(%rbx), %r12
jne 0x2ba6f0
jp 0x2ba6f0
cmpl $0x4, (%r15)
je 0x2baaac
addq $0x8, %rbx
testq %r12, %r12
je 0x2ba76c
leaq 0x254d30(%rip), %rsi    # 0x50f430
leaq 0x29eb79(%rip), %rdx    # 0x559280
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x1204f0
testq %rax, %rax
je 0x2ba76c
movl (%r15), %r13d
cmpl $0x4, %r13d
movsd (%rsp), %xmm0
je 0x2ba72e
cmpl $0x2, %r13d
jne 0x2ba819
movq (%r12), %rax
movq %r12, %rdi
callq *0x38(%rax)
movl %eax, %ebp
cmpl %eax, %r13d
jne 0x2ba80b
movl (%r15), %eax
cmpl $0x4, %eax
je 0x2ba7ed
cmpl $0x2, %eax
jne 0x2ba808
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
addsd (%rsp), %xmm0
jmp 0x2ba7fc
movq (%r12), %rax
movq %r12, %rdi
callq *0x28(%rax)
addl $-0x6a, %eax
cmpl $0x4, %eax
movsd (%rsp), %xmm0
ja 0x2ba975
leaq 0x10(%rsp), %rcx
movq $0x0, (%rcx)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x31c53c
movl %eax, %ebp
testb %al, %al
je 0x2ba7da
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2ba7d5
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x11, %eax
je 0x2ba7d5
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2ba7cd
movq (%rdi), %rax
callq *0x28(%rax)
cmpl $0x12, %eax
je 0x2ba7d5
movq %rbx, %rdi
callq 0x1f1690
movq 0x10(%rsp), %r12
testb %bpl, %bpl
movsd (%rsp), %xmm0
je 0x2ba975
jmp 0x2baaac
movq (%r12), %rax
movq %r12, %rdi
callq *0x40(%rax)
mulsd (%rsp), %xmm0
movq (%r12), %rax
movq %r12, %rdi
callq *0x48(%rax)
jmp 0x2ba80b
xorl %r12d, %r12d
cmpl %ebp, %r13d
movsd (%rsp), %xmm0
je 0x2baaac
movl (%r15), %eax
cmpl $0x5, %eax
je 0x2ba86b
cmpl $0x4, %eax
jne 0x2ba975
movq (%rbx), %r13
movq (%r13), %rax
movq %r13, %rdi
callq *0x38(%rax)
movl %eax, %ebp
andl $-0x2, %ebp
cmpl $0x4, %ebp
jne 0x2ba95a
cmpl $0x4, %eax
je 0x2ba8df
cmpl $0x5, %eax
jne 0x2ba957
movq (%r13), %rax
movq %r13, %rdi
callq *0x40(%rax)
mulsd (%rsp), %xmm0
jmp 0x2ba8ee
movq (%rbx), %r13
movq (%r13), %rax
movq %r13, %rdi
callq *0x38(%rax)
movsd (%rsp), %xmm0
movl %eax, %ebp
andl $-0x2, %ebp
cmpl $0x4, %ebp
jne 0x2ba96c
cmpl $0x4, %eax
je 0x2ba8fd
cmpl $0x5, %eax
jne 0x2ba969
movq 0x8(%r14), %r12
movq (%r13), %rax
movq %r13, %rdi
callq *0x40(%rax)
movsd (%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r13), %rax
movq %r13, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x317dd8
jmp 0x2ba941
movq (%r13), %rax
movq %r13, %rdi
callq *0x40(%rax)
divsd (%rsp), %xmm0
movq (%r13), %rax
movq %r13, %rdi
callq *0x48(%rax)
movq %r13, %r12
jmp 0x2ba95a
movq 0x8(%r14), %r12
movq (%r13), %rax
movq %r13, %rdi
callq *0x40(%rax)
movsd (%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r13), %rax
movq %r13, %rdi
callq *0x50(%rax)
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
movq %rax, %rsi
callq 0x317cca
movq %rax, %r12
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x20d702
movsd (%rsp), %xmm0
jmp 0x2ba96c
xorl %r12d, %r12d
cmpl $0x4, %ebp
movsd (%rsp), %xmm0
jne 0x2ba975
jmp 0x2baaac
xorl %r12d, %r12d
cmpl $0x4, %ebp
je 0x2baaac
movl (%r15), %eax
xorl %r12d, %r12d
addl $-0x2, %eax
cmpl $0x19, %eax
ja 0x2baaac
leaq 0xf9ec6(%rip), %rcx     # 0x3b4854
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x317d7e
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31cfa2
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31ce3a
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31cc78
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31cf48
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x317d24
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31ccd2
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31cde0
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x317cca
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x317dd8
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31cd2c
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31cd86
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31cffc
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31d056
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31ceee
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31ce94
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31d10a
jmp 0x2baaa9
movq 0x8(%r14), %rdi
movq (%rbx), %rsi
callq 0x31d0b0
movq %rax, %r12
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq