// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_node_set_raw pugi::impl::(anonymous namespace)::xpath_ast_node::step_do<pugi::impl::(anonymous namespace)::axis_to_type<(pugi::impl::(anonymous namespace)::axis_t)4>>(pugi::impl::(anonymous namespace)::xpath_context const&, pugi::impl::(anonymous namespace)::xpath_stack const&, pugi::impl::(anonymous namespace)::nodeset_eval_t, pugi::impl::(anonymous namespace)::axis_to_type<(pugi::impl::(anonymous namespace)::axis_t)4>)
xpath_node_set_raw step_do(const xpath_context& c, const xpath_stack& stack, nodeset_eval_t eval, T v)
		{
			const axis_t axis = T::axis;
			const bool axis_reverse = (axis == axis_ancestor || axis == axis_ancestor_or_self || axis == axis_preceding || axis == axis_preceding_sibling);
			const xpath_node_set::type_t axis_type = axis_reverse ? xpath_node_set::type_sorted_reverse : xpath_node_set::type_sorted;

			bool once =
				(axis == axis_attribute && _test == nodetest_name) ||
				(!_right && eval_once(axis_type, eval)) ||
				(_right && !_right->_next && _right->_test == predicate_constant_one);

			xpath_node_set_raw ns;
			ns.set_type(axis_type);

			if (_left)
			{
				xpath_node_set_raw s = _left->eval_node_set(c, stack, nodeset_eval_all);

				// self axis preserves the original order
				if (axis == axis_self) ns.set_type(s.type());

				for (const xpath_node* it = s.begin(); it != s.end(); ++it)
				{
					size_t size = ns.size();

					// in general, all axes generate elements in a particular order, but there is no order guarantee if axis is applied to two nodes
					if (axis != axis_self && size != 0) ns.set_type(xpath_node_set::type_unsorted);

					step_fill(ns, *it, stack.result, once, v);
					if (_right) apply_predicates(ns, size, stack, eval);
				}
			}
			else
			{
				step_fill(ns, c.n, stack.result, once, v);
				if (_right) apply_predicates(ns, 0, stack, eval);
			}

			// child, attribute and self axes always generate unique set of nodes
			// for other axis, if the set stayed sorted, it stayed unique because the traversal algorithms do not visit the same node twice
			if (axis != axis_child && axis != axis_attribute && axis != axis_self && ns.type() == xpath_node_set::type_unsorted)
				ns.remove_duplicates();

			return ns;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %ebp
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x2e2c1
cmpq $0x0, 0x18(%rax)
je 0x2e2c9
xorl %r13d, %r13d
jmp 0x2e2d1
testl %ebp, %ebp
setne %r13b
jmp 0x2e2d1
cmpb $0x3, 0x3(%rax)
sete %r13b
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
movl $0x1, (%rbx)
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0x2e378
movl %ebp, 0x4(%rsp)
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x279d6
movq 0x8(%r12), %rbp
cmpq 0x10(%r12), %rbp
je 0x2e3ae
movzbl %r13b, %r12d
movq 0x10(%rbx), %r13
movq 0x8(%rbx), %rax
subq %rax, %r13
je 0x2e331
movl $0x0, (%rbx)
movq (%r14), %r8
movq (%rbp), %rdx
movq 0x8(%rbp), %rcx
movq %r15, %rdi
movq %rbx, %rsi
movl %r12d, %r9d
callq 0x2f334
cmpq $0x0, 0x10(%r15)
je 0x2e36b
sarq $0x4, %r13
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r14, %rcx
movl 0x4(%rsp), %r8d
callq 0x2eea2
addq $0x10, %rbp
cmpq 0x18(%rsp), %rbp
jne 0x2e31e
jmp 0x2e3ae
movq (%r14), %r8
movq (%rdx), %rax
movq 0x8(%rdx), %rcx
movzbl %r13b, %r9d
movq %r15, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x2f334
cmpq $0x0, 0x10(%r15)
je 0x2e3ae
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %r14, %rcx
movl %ebp, %r8d
callq 0x2eea2
cmpl $0x0, (%rbx)
jne 0x2e3bb
movq %rbx, %rdi
callq 0x2d9e8
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq