// File: /workspace/github_cpp_makefile_star2_O3/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_parser::parse_step(pugi::impl::(anonymous namespace)::xpath_ast_node*)
xpath_ast_node* parse_step(xpath_ast_node* set)
		{
			if (set && set->rettype() != xpath_type_node_set)
				throw_error("Step has to be applied to node set");

			bool axis_specified = false;
			axis_t axis = axis_child; // implied child axis

			if (_lexer.current() == lex_axis_attribute)
			{
				axis = axis_attribute;
				axis_specified = true;

				_lexer.next();
			}
			else if (_lexer.current() == lex_dot)
			{
				_lexer.next();

				return new (alloc_node()) xpath_ast_node(ast_step, set, axis_self, nodetest_type_node, 0);
			}
			else if (_lexer.current() == lex_double_dot)
			{
				_lexer.next();

				return new (alloc_node()) xpath_ast_node(ast_step, set, axis_parent, nodetest_type_node, 0);
			}

			nodetest_t nt_type = nodetest_none;
			xpath_lexer_string nt_name;

			if (_lexer.current() == lex_string)
			{
				// node name test
				nt_name = _lexer.contents();
				_lexer.next();

				// was it an axis name?
				if (_lexer.current() == lex_double_colon)
				{
					// parse axis name
					if (axis_specified) throw_error("Two axis specifiers in one step");

					axis = parse_axis_name(nt_name, axis_specified);

					if (!axis_specified) throw_error("Unknown axis");

					// read actual node test
					_lexer.next();

					if (_lexer.current() == lex_multiply)
					{
						nt_type = nodetest_all;
						nt_name = xpath_lexer_string();
						_lexer.next();
					}
					else if (_lexer.current() == lex_string)
					{
						nt_name = _lexer.contents();
						_lexer.next();
					}
					else throw_error("Unrecognized node test");
				}

				if (nt_type == nodetest_none)
				{
					// node type test or processing-instruction
					if (_lexer.current() == lex_open_brace)
					{
						_lexer.next();

						if (_lexer.current() == lex_close_brace)
						{
							_lexer.next();

							nt_type = parse_node_test_type(nt_name);

							if (nt_type == nodetest_none) throw_error("Unrecognized node type");

							nt_name = xpath_lexer_string();
						}
						else if (nt_name == PUGIXML_TEXT("processing-instruction"))
						{
							if (_lexer.current() != lex_quoted_string)
								throw_error("Only literals are allowed as arguments to processing-instruction()");

							nt_type = nodetest_pi;
							nt_name = _lexer.contents();
							_lexer.next();

							if (_lexer.current() != lex_close_brace)
								throw_error("Unmatched brace near processing-instruction()");
							_lexer.next();
						}
						else
							throw_error("Unmatched brace near node type test");

					}
					// QName or NCName:*
					else
					{
						if (nt_name.end - nt_name.begin > 2 && nt_name.end[-2] == ':' && nt_name.end[-1] == '*') // NCName:*
						{
							nt_name.end--; // erase *

							nt_type = nodetest_all_in_namespace;
						}
						else nt_type = nodetest_name;
					}
				}
			}
			else if (_lexer.current() == lex_multiply)
			{
				nt_type = nodetest_all;
				_lexer.next();
			}
			else throw_error("Unrecognized node test");

			xpath_ast_node* n = new (alloc_node()) xpath_ast_node(ast_step, set, axis, nt_type, alloc_string(nt_name));

			xpath_ast_node* last = 0;

			while (_lexer.current() == lex_open_square_brace)
			{
				_lexer.next();

				xpath_ast_node* expr = parse_expression();

				xpath_ast_node* pred = new (alloc_node()) xpath_ast_node(ast_predicate, 0, expr, predicate_default);

				if (_lexer.current() != lex_close_square_brace)
					throw_error("Unmatched square brace");
				_lexer.next();

				if (last) last->set_next(pred);
				else n->set_right(pred);

				last = pred;
			}

			return n;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %rbx
testq %rsi, %rsi
je 0x143d8
cmpb $0x1, 0x1(%r15)
jne 0x14a07
leaq 0x8(%rbx), %rbp
movl 0x28(%rbx), %eax
cmpl $0x18, %eax
je 0x1441d
cmpl $0x17, %eax
je 0x14405
cmpl $0x16, %eax
movq %rbx, 0x8(%rsp)
jne 0x1444b
movq %rbp, %rdi
callq 0x12a56
movl 0x28(%rbx), %eax
movb $0x2, %r13b
movb $0x1, %bl
jmp 0x14450
movq %rbp, %rdi
callq 0x12a56
movq (%rbx), %rdi
callq 0x13f30
movl $0x20c0138, (%rax)      # imm = 0x20C0138
jmp 0x14433
movq %rbp, %rdi
callq 0x12a56
movq (%rbx), %rdi
callq 0x13f30
movl $0x2090138, (%rax)      # imm = 0x2090138
movq %r15, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
jmp 0x1492b
movb $0x3, %r13b
xorl %ebx, %ebx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
cmpl $0x9, %eax
je 0x1484b
cmpl $0x14, %eax
jne 0x14a16
movq 0x8(%rsp), %r14
leaq 0x18(%r14), %r12
movups 0x18(%r14), %xmm0
movaps %xmm0, 0x10(%rsp)
movq %rbp, %rdi
callq 0x12a56
movl 0x28(%r14), %eax
cmpl $0x19, %eax
jne 0x147c5
testb %bl, %bl
jne 0x14a1f
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movzbl (%rax), %edx
cmpl $0x6d, %edx
jg 0x14564
addl $-0x61, %edx
cmpl $0x5, %edx
ja 0x149f5
leaq 0x17f59(%rip), %rsi     # 0x2c41c
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movq %rcx, %rdx
subq %rax, %rdx
je 0x144ef
xorl %esi, %esi
leaq 0x1a267(%rip), %rdi     # 0x2e744
movb (%rsi,%rdi), %r8b
cmpb (%rax,%rsi), %r8b
jne 0x14500
incq %rsi
cmpq %rsi, %rdx
jne 0x144dd
leaq 0x1a24e(%rip), %rsi     # 0x2e744
cmpb $0x0, (%rdx,%rsi)
je 0x149be
cmpq %rax, %rcx
je 0x14520
xorl %esi, %esi
leaq 0x1a23f(%rip), %rdi     # 0x2e74d
movb (%rsi,%rdi), %r8b
cmpb (%rax,%rsi), %r8b
jne 0x14531
incq %rsi
cmpq %rsi, %rdx
jne 0x1450e
leaq 0x1a226(%rip), %rsi     # 0x2e74d
cmpb $0x0, (%rdx,%rsi)
je 0x149d6
cmpq %rax, %rcx
je 0x14555
xorl %ecx, %ecx
leaq 0x187e8(%rip), %rsi     # 0x2cd27
movb (%rcx,%rsi), %dil
cmpb (%rax,%rcx), %dil
jne 0x149f5
incq %rcx
cmpq %rcx, %rdx
jne 0x1453f
leaq 0x187cb(%rip), %rax     # 0x2cd27
movb $0x2, %r13b
jmp 0x14746
cmpl $0x6e, %edx
je 0x14751
cmpl $0x70, %edx
je 0x146b3
cmpl $0x73, %edx
jne 0x149f5
subq %rax, %rcx
je 0x145a3
xorl %edx, %edx
leaq 0x1a1cc(%rip), %rsi     # 0x2e759
movb (%rdx,%rsi), %dil
cmpb (%rax,%rdx), %dil
jne 0x149f5
incq %rdx
cmpq %rdx, %rcx
jne 0x1458d
leaq 0x1a1af(%rip), %rax     # 0x2e759
movb $0xc, %r13b
jmp 0x1477f
movq %rcx, %rdx
subq %rax, %rdx
je 0x145d5
xorl %esi, %esi
leaq 0x1a1bf(%rip), %rdi     # 0x2e782
movb (%rsi,%rdi), %r8b
cmpb (%rax,%rsi), %r8b
jne 0x145e6
incq %rsi
cmpq %rsi, %rdx
jne 0x145c3
leaq 0x1a1a6(%rip), %rsi     # 0x2e782
cmpb $0x0, (%rdx,%rsi)
je 0x149b6
cmpq %rax, %rcx
je 0x1460a
xorl %ecx, %ecx
leaq 0x1a198(%rip), %rsi     # 0x2e78c
movb (%rcx,%rsi), %dil
cmpb (%rax,%rcx), %dil
jne 0x149f5
incq %rcx
cmpq %rcx, %rdx
jne 0x145f4
leaq 0x1a17b(%rip), %rax     # 0x2e78c
movb $0x7, %r13b
jmp 0x14746
subq %rax, %rcx
je 0x1463d
xorl %edx, %edx
leaq 0x1a137(%rip), %rsi     # 0x2e75e
movb (%rdx,%rsi), %dil
cmpb (%rax,%rdx), %dil
jne 0x149f5
incq %rdx
cmpq %rdx, %rcx
jne 0x14627
leaq 0x1a11a(%rip), %rax     # 0x2e75e
movb $0x3, %r13b
jmp 0x1477f
movq %rcx, %rdx
subq %rax, %rdx
je 0x1466f
xorl %esi, %esi
leaq 0x1a107(%rip), %rdi     # 0x2e764
movb (%rsi,%rdi), %r8b
cmpb (%rax,%rsi), %r8b
jne 0x14680
incq %rsi
cmpq %rsi, %rdx
jne 0x1465d
leaq 0x1a0ee(%rip), %rsi     # 0x2e764
cmpb $0x0, (%rdx,%rsi)
je 0x149c6
cmpq %rax, %rcx
je 0x146a4
xorl %ecx, %ecx
leaq 0x1a0e1(%rip), %rsi     # 0x2e76f
movb (%rcx,%rsi), %dil
cmpb (%rax,%rcx), %dil
jne 0x149f5
incq %rcx
cmpq %rcx, %rdx
jne 0x1468e
leaq 0x1a0c4(%rip), %rax     # 0x2e76f
movb $0x5, %r13b
jmp 0x14746
movq %rcx, %rdx
subq %rax, %rdx
je 0x146d6
xorl %esi, %esi
leaq 0x19abd(%rip), %rdi     # 0x2e181
movb (%rsi,%rdi), %r8b
cmpb (%rax,%rsi), %r8b
jne 0x146e7
incq %rsi
cmpq %rsi, %rdx
jne 0x146c4
leaq 0x19aa4(%rip), %rsi     # 0x2e181
cmpb $0x0, (%rdx,%rsi)
je 0x149ce
cmpq %rax, %rcx
je 0x14707
xorl %esi, %esi
leaq 0x1a0b3(%rip), %rdi     # 0x2e7a8
movb (%rsi,%rdi), %r8b
cmpb (%rax,%rsi), %r8b
jne 0x14718
incq %rsi
cmpq %rsi, %rdx
jne 0x146f5
leaq 0x1a09a(%rip), %rsi     # 0x2e7a8
cmpb $0x0, (%rdx,%rsi)
je 0x149de
cmpq %rax, %rcx
je 0x1473c
xorl %ecx, %ecx
leaq 0x1a08c(%rip), %rsi     # 0x2e7b2
movb (%rcx,%rsi), %dil
cmpb (%rax,%rcx), %dil
jne 0x149f5
incq %rcx
cmpq %rcx, %rdx
jne 0x14726
leaq 0x1a06f(%rip), %rax     # 0x2e7b2
movb $0xb, %r13b
cmpb $0x0, (%rdx,%rax)
je 0x14789
jmp 0x149f5
subq %rax, %rcx
je 0x14775
xorl %edx, %edx
leaq 0x1a03f(%rip), %rsi     # 0x2e79e
movb (%rdx,%rsi), %dil
cmpb (%rax,%rdx), %dil
jne 0x149f5
incq %rdx
cmpq %rdx, %rcx
jne 0x1475f
leaq 0x1a022(%rip), %rax     # 0x2e79e
movb $0x8, %r13b
cmpb $0x0, (%rcx,%rax)
jne 0x149f5
movq %rbp, %rdi
callq 0x12a56
movq 0x8(%rsp), %rax
movl 0x28(%rax), %eax
cmpl $0x9, %eax
je 0x14843
cmpl $0x14, %eax
jne 0x14a16
movups (%r12), %xmm0
movaps %xmm0, 0x10(%rsp)
movq %rbp, %rdi
callq 0x12a56
movq 0x8(%rsp), %rax
movl 0x28(%rax), %eax
cmpl $0xc, %eax
jne 0x14811
movq %rbp, %rdi
callq 0x12a56
movq 0x8(%rsp), %rax
movl 0x28(%rax), %eax
cmpl $0xd, %eax
jne 0x1493a
movq %rbp, %r12
movq %rbp, %rdi
callq 0x12a56
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x14106
testl %eax, %eax
je 0x14a28
movl %eax, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
jmp 0x14859
movq %rbp, %r12
movq 0x18(%rsp), %rax
movq %rax, %rcx
subq 0x10(%rsp), %rcx
movb $0x1, %bpl
cmpq $0x3, %rcx
jl 0x14859
cmpb $0x3a, -0x2(%rax)
jne 0x14859
cmpb $0x2a, -0x1(%rax)
jne 0x14859
decq %rax
movq %rax, 0x18(%rsp)
movb $0x8, %bpl
jmp 0x14859
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq %rbp, %r12
movq %rbp, %rdi
callq 0x12a56
movb $0x7, %bpl
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
callq 0x13f30
movq %rax, %r14
movq (%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1426e
movw $0x138, (%r14)          # imm = 0x138
movb %r13b, 0x2(%r14)
movb %bpl, 0x3(%r14)
movq %r15, 0x8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movq %r14, 0x20(%rsp)
movq %rax, 0x20(%r14)
cmpl $0x12, 0x28(%rbx)
jne 0x14926
movq %rbx, %r13
movq 0x20(%rsp), %rax
leaq 0x10(%rax), %rbp
xorl %r14d, %r14d
xorl %ebx, %ebx
movq %r12, %rdi
callq 0x12a56
movq %r13, %rdi
callq 0x12eca
movq %r13, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x12dac
movq %rax, %r13
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x13f30
movl $0x110, (%rax)          # imm = 0x110
movq %r14, 0x8(%rax)
movq %r13, 0x10(%rax)
movq 0x8(%rsp), %r13
movq %r14, 0x18(%rax)
cmpl $0x13, 0x28(%r13)
jne 0x149e6
movq %rax, %r15
movq %r12, %rdi
callq 0x12a56
leaq 0x18(%rbx), %rax
testq %rbx, %rbx
cmoveq %rbp, %rax
movq %r15, (%rax)
cmpl $0x12, 0x28(%r13)
movq %r15, %rbx
je 0x148b4
movq 0x20(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
subq %rdx, %rcx
je 0x14968
xorl %esi, %esi
leaq 0x19ab2(%rip), %rdi     # 0x2e404
movb (%rsi,%rdi), %r8b
cmpb (%rdx,%rsi), %r8b
jne 0x149fe
incq %rsi
cmpq %rsi, %rcx
jne 0x14952
leaq 0x19a95(%rip), %rdx     # 0x2e404
cmpb $0x0, (%rcx,%rdx)
jne 0x149fe
cmpl $0xe, %eax
jne 0x14a31
movups (%r12), %xmm0
movaps %xmm0, 0x10(%rsp)
movq %rbp, %rdi
callq 0x12a56
movq 0x8(%rsp), %rax
cmpl $0xd, 0x28(%rax)
jne 0x14a3a
movq %rbp, %r12
movq %rbp, %rdi
callq 0x12a56
movb $0x6, %bpl
jmp 0x14859
movb $0x6, %r13b
jmp 0x14789
xorl %r13d, %r13d
jmp 0x14789
movb $0x4, %r13b
jmp 0x14789
movb $0x9, %r13b
jmp 0x14789
movb $0x1, %r13b
jmp 0x14789
movb $0xa, %r13b
jmp 0x14789
leaq 0x19a5b(%rip), %rsi     # 0x2e448
movq %r13, %rdi
callq 0x12d62
leaq 0x19c78(%rip), %rsi     # 0x2e674
jmp 0x14a41
leaq 0x19d1b(%rip), %rsi     # 0x2e720
jmp 0x14a41
leaq 0x199d3(%rip), %rsi     # 0x2e3e1
movq %rbx, %rdi
callq 0x12d62
leaq 0x19c64(%rip), %rsi     # 0x2e681
jmp 0x14a41
leaq 0x19c2e(%rip), %rsi     # 0x2e654
jmp 0x14a41
leaq 0x19c69(%rip), %rsi     # 0x2e698
jmp 0x14a41
leaq 0x19c77(%rip), %rsi     # 0x2e6af
jmp 0x14a41
leaq 0x19cb1(%rip), %rsi     # 0x2e6f2
movq 0x8(%rsp), %rdi
callq 0x12d62
nop