// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_ast_node::eval_node_set(pugi::impl::(anonymous namespace)::xpath_context const&, pugi::impl::(anonymous namespace)::xpath_stack const&, pugi::impl::(anonymous namespace)::nodeset_eval_t)
xpath_node_set_raw eval_node_set(const xpath_context& c, const xpath_stack& stack, nodeset_eval_t eval)
		{
			switch (_type)
			{
			case ast_op_union:
			{
				xpath_allocator_capture cr(stack.temp);

				xpath_stack swapped_stack = {stack.temp, stack.result};

				xpath_node_set_raw ls = _left->eval_node_set(c, swapped_stack, eval);
				xpath_node_set_raw rs = _right->eval_node_set(c, stack, eval);

				// we can optimize merging two sorted sets, but this is a very rare operation, so don't bother
				rs.set_type(xpath_node_set::type_unsorted);

				rs.append(ls.begin(), ls.end(), stack.result);
				rs.remove_duplicates();

				return rs;
			}

			case ast_filter:
			{
				xpath_node_set_raw set = _left->eval_node_set(c, stack, _test == predicate_constant_one ? nodeset_eval_first : nodeset_eval_all);

				// either expression is a number or it contains position() call; sort by document order
				if (_test != predicate_posinv) set.sort_do();

				bool once = eval_once(set.type(), eval);

				apply_predicate(set, 0, stack, once);

				return set;
			}

			case ast_func_id:
				return xpath_node_set_raw();

			case ast_step:
			{
				switch (_axis)
				{
				case axis_ancestor:
					return step_do(c, stack, eval, axis_to_type<axis_ancestor>());

				case axis_ancestor_or_self:
					return step_do(c, stack, eval, axis_to_type<axis_ancestor_or_self>());

				case axis_attribute:
					return step_do(c, stack, eval, axis_to_type<axis_attribute>());

				case axis_child:
					return step_do(c, stack, eval, axis_to_type<axis_child>());

				case axis_descendant:
					return step_do(c, stack, eval, axis_to_type<axis_descendant>());

				case axis_descendant_or_self:
					return step_do(c, stack, eval, axis_to_type<axis_descendant_or_self>());

				case axis_following:
					return step_do(c, stack, eval, axis_to_type<axis_following>());

				case axis_following_sibling:
					return step_do(c, stack, eval, axis_to_type<axis_following_sibling>());

				case axis_namespace:
					// namespaced axis is not supported
					return xpath_node_set_raw();

				case axis_parent:
					return step_do(c, stack, eval, axis_to_type<axis_parent>());

				case axis_preceding:
					return step_do(c, stack, eval, axis_to_type<axis_preceding>());

				case axis_preceding_sibling:
					return step_do(c, stack, eval, axis_to_type<axis_preceding_sibling>());

				case axis_self:
					return step_do(c, stack, eval, axis_to_type<axis_self>());

				default:
					assert(false && "Unknown axis"); // unreachable
					return xpath_node_set_raw();
				}
			}

			case ast_step_root:
			{
				assert(!_right); // root step can't have any predicates

				xpath_node_set_raw ns;

				ns.set_type(xpath_node_set::type_sorted);

				if (c.n.node()) ns.push_back(c.n.node().root(), stack.result);
				else if (c.n.attribute()) ns.push_back(c.n.parent().root(), stack.result);

				return ns;
			}

			case ast_variable:
			{
				assert(_rettype == _data.variable->type());

				if (_rettype == xpath_type_node_set)
				{
					const xpath_node_set& s = _data.variable->get_node_set();

					xpath_node_set_raw ns;

					ns.set_type(s.type());
					ns.append(s.begin(), s.end(), stack.result);

					return ns;
				}
			}

			// fallthrough
			default:
				assert(false && "Wrong expression for return type node set"); // unreachable
				return xpath_node_set_raw();
			}
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movzbl (%rsi), %eax
leal -0xf(%rax), %ecx
cmpl $0x9, %ecx
ja 0x27daf
leaq 0xacab(%rip), %rax      # 0x329d0
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x8(%r14), %rax
movq %rax, (%rsp)
movups (%rax), %xmm0
movups %xmm0, 0x8(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x40(%rsp), %rcx
movq %rax, (%rcx)
movq (%r14), %rax
movq %rax, 0x8(%rcx)
movq 0x8(%r15), %rsi
leaq 0x20(%rsp), %rdi
movq %r12, %rdx
movl %ebp, %r8d
callq 0x27cf4
movq 0x10(%r15), %rsi
movq %rbx, %rdi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x27cf4
movl $0x0, (%rbx)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq (%r14), %rcx
movq %rbx, %rdi
callq 0x2df32
movq %rbx, %rdi
callq 0x2dfc4
movq %rsp, %rdi
callq 0x2d6a0
jmp 0x2808f
cmpl $0x38, %eax
je 0x27f24
cmpl $0x39, %eax
jne 0x2809f
cmpq $0x0, 0x10(%r15)
jne 0x280dd
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
movl $0x1, (%rbx)
movq (%r12), %rax
movq 0x8(%r12), %rcx
testq %rcx, %rcx
setne %dl
testq %rax, %rax
sete %sil
orb %dl, %sil
je 0x27e12
testq %rcx, %rcx
je 0x2808f
movq (%r12), %rax
testq %rax, %rax
je 0x27f89
movq (%rax), %rcx
shrq $0x8, %rcx
negq %rcx
movq (%rax,%rcx), %rax
addq $-0x40, %rax
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
movq 0x10(%rbx), %rax
cmpq 0x18(%rbx), %rax
je 0x27f76
leaq 0x10(%rax), %rcx
movq %rcx, 0x10(%rbx)
movq (%rsp), %rcx
movq %rcx, (%rax)
movq 0x8(%rsp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x2808f
movq 0x8(%r15), %rsi
xorl %r8d, %r8d
cmpb $0x3, 0x3(%r15)
sete %r8b
addl %r8d, %r8d
movq %rbx, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x27cf4
cmpb $0x1, 0x3(%r15)
je 0x27e97
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %rsi
movl (%rbx), %edx
xorl %ecx, %ecx
callq 0x244d1
movl %eax, (%rbx)
xorl %eax, %eax
testl %ebp, %ebp
setne %al
xorl %ecx, %ecx
cmpl $0x1, %ebp
sete %cl
cmpl $0x1, (%rbx)
cmovel %eax, %ecx
movzbl %cl, %r8d
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %r14, %rcx
callq 0x2e04c
jmp 0x2808f
movsbl 0x1(%r15), %edx
movq 0x20(%r15), %rax
movl (%rax), %ecx
cmpl %edx, %ecx
jne 0x280be
cmpb $0x1, %dl
jne 0x2809f
addq $0x10, %rax
cmpl $0x1, %ecx
leaq 0x1f9b9(%rip), %rcx     # 0x478a8
cmoveq %rax, %rcx
movl $0x0, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
movl (%rcx), %eax
movl %eax, (%rbx)
movq 0x18(%rcx), %rsi
movq 0x20(%rcx), %rdx
movq (%r14), %rcx
movq %rbx, %rdi
callq 0x2df32
jmp 0x2808f
movzbl 0x2(%r15), %eax
cmpq $0xc, %rax
ja 0x280fc
leaq 0xaabe(%rip), %rcx      # 0x329f8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2e3ba
jmp 0x2808f
movl $0x0, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
jmp 0x2808f
movq (%r14), %rdx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2fde4
jmp 0x2808f
xorl %eax, %eax
jmp 0x27e24
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2ef46
jmp 0x2808f
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2e86a
jmp 0x2808f
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2f076
jmp 0x2808f
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2ed2a
jmp 0x2808f
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2e61a
jmp 0x2808f
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2e748
jmp 0x2808f
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2ebfa
jmp 0x2808f
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2e4ea
jmp 0x2808f
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2e99a
jmp 0x2808f
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2eaca
jmp 0x2808f
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2ee16
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdd89(%rip), %rdi      # 0x35e2f
leaq 0xae48(%rip), %rsi      # 0x32ef5
leaq 0xdce3(%rip), %rcx      # 0x35d97
movl $0x2a61, %edx           # imm = 0x2A61
callq 0x6120
leaq 0xd285(%rip), %rdi      # 0x3534a
leaq 0xae29(%rip), %rsi      # 0x32ef5
leaq 0xdcc4(%rip), %rcx      # 0x35d97
movl $0x2a50, %edx           # imm = 0x2A50
callq 0x6120
leaq 0xdd43(%rip), %rdi      # 0x35e27
leaq 0xae0a(%rip), %rsi      # 0x32ef5
leaq 0xdca5(%rip), %rcx      # 0x35d97
movl $0x2a42, %edx           # imm = 0x2A42
callq 0x6120
leaq 0xdc7c(%rip), %rdi      # 0x35d7f
leaq 0xadeb(%rip), %rsi      # 0x32ef5
leaq 0xdc86(%rip), %rcx      # 0x35d97
movl $0x2a3b, %edx           # imm = 0x2A3B
callq 0x6120
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2d6a0
movq %rbx, %rdi
callq 0x6430