// File: /workspace/github_cpp_makefile_star2_O2/adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_parser::parse_path_or_unary_expression()
xpath_ast_node* parse_path_or_unary_expression()
		{
			// Clarification.
			// PathExpr begins with either LocationPath or FilterExpr.
			// FilterExpr begins with PrimaryExpr
			// PrimaryExpr begins with '$' in case of it being a variable reference,
			// '(' in case of it being an expression, string literal, number constant or
			// function call.

			if (_lexer.current() == lex_var_ref || _lexer.current() == lex_open_brace ||
				_lexer.current() == lex_quoted_string || _lexer.current() == lex_number ||
				_lexer.current() == lex_string)
			{
				if (_lexer.current() == lex_string)
				{
					// This is either a function call, or not - if not, we shall proceed with location path
					const char_t* state = _lexer.state();

					while (PUGI__IS_CHARTYPE(*state, ct_space)) ++state;

					if (*state != '(') return parse_location_path();

					// This looks like a function call; however this still can be a node-test. Check it.
					if (parse_node_test_type(_lexer.contents()) != nodetest_none) return parse_location_path();
				}

				xpath_ast_node* n = parse_filter_expression();

				if (_lexer.current() == lex_slash || _lexer.current() == lex_double_slash)
				{
					lexeme_t l = _lexer.current();
					_lexer.next();

					if (l == lex_double_slash)
					{
						if (n->rettype() != xpath_type_node_set) throw_error("Step has to be applied to node set");

						n = new (alloc_node()) xpath_ast_node(ast_step, n, axis_descendant_or_self, nodetest_type_node, 0);
					}

					// select from location path
					return parse_relative_location_path(n);
				}

				return n;
			}
			else if (_lexer.current() == lex_minus)
			{
				_lexer.next();

				// precedence 7+ - only parses union expressions
				xpath_ast_node* expr = parse_expression_rec(parse_path_or_unary_expression(), 7);

				return new (alloc_node()) xpath_ast_node(ast_op_negate, xpath_type_number, expr);
			}
			else
				return parse_location_path();
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl 0x28(%rdi), %eax
leal -0x8(%rax), %ecx
cmpl $0xc, %ecx
ja 0x11b05
leaq 0x8(%rbx), %r14
leaq 0x14957(%rip), %rdx     # 0x26324
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addl $-0xb, %eax
cmpl $0x9, %eax
ja 0x124b8
leaq 0x1496f(%rip), %rcx     # 0x26358
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0x1261c
movq 0x38(%rbx), %r15
testq %r15, %r15
je 0x1248f
movq (%rax), %rbp
movq 0x8(%rax), %r13
leaq 0x48(%rbx), %r12
subq %rbp, %r13
movq %r12, 0x20(%rsp)
cmpq $0x20, %r13
jb 0x11a36
leaq 0x1(%r13), %rdi
callq *0x299ce(%rip)          # 0x3b3f8
movq %rax, %r12
testq %rax, %rax
je 0x124aa
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x4340
movb $0x0, (%r12,%r13)
movq %r15, %rdi
movq %r12, %rsi
callq 0xb304
movq %rax, %r15
cmpq 0x20(%rsp), %r12
je 0x11a67
movq %r12, %rdi
callq *0x29989(%rip)          # 0x3b3f0
testq %r15, %r15
je 0x12498
movq %r14, %rdi
callq 0x1157c
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movb (%r15), %al
movb $0x14, (%r12)
movb %al, 0x1(%r12)
andw $0x0, 0x2(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r12)
andq $0x0, 0x18(%r12)
movq %r15, 0x20(%r12)
jmp 0x123ad
movq %r14, %rdi
callq 0x1157c
movq %rbx, %rdi
callq 0x11880
cmpl $0xd, 0x28(%rbx)
jne 0x12486
movq %rax, %r12
jmp 0x11c70
movq (%r14), %rax
leaq 0x14aa4(%rip), %rcx     # 0x26580
movzbl (%rax), %edx
incq %rax
testb $0x8, (%rdx,%rcx)
jne 0x11adc
cmpb $0x28, %dl
jne 0x11b05
movq %r14, %rdi
callq 0x1261c
movq %rax, %rdi
callq 0x127bc
testl %eax, %eax
je 0x11d3f
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x12710
movq %r14, %rdi
callq 0x1157c
movq %rbx, %rdi
callq 0x119a2
pushq $0x7
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x118dc
movq %rax, %r14
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x20e, (%rax)          # imm = 0x20E
movq %r14, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
jmp 0x12414
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq %r14, %rdi
callq 0x1261c
movups (%rax), %xmm0
movaps %xmm0, (%rsp)
movq %r14, %rdi
callq 0x1157c
cmpl $0xc, 0x28(%rbx)
jne 0x124af
movq %r14, %rdi
callq 0x1157c
cmpl $0xd, 0x28(%rbx)
jne 0x11c7d
xorl %r15d, %r15d
jmp 0x11c8e
movq %r14, %rdi
callq 0x1261c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1289c
movq %rax, %r15
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x312, (%rax)          # imm = 0x312
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
andq $0x0, 0x18(%rax)
movq %r15, 0x20(%rax)
jmp 0x11c70
leaq 0x48(%rbx), %rbp
movq %r14, %rdi
callq 0x1261c
movq (%rax), %r15
movq %r14, %rdi
callq 0x1261c
movq 0x8(%rax), %r13
subq %r15, %r13
movq %rbp, %r12
cmpq $0x20, %r13
jb 0x11c19
leaq 0x1(%r13), %rdi
callq *0x297eb(%rip)          # 0x3b3f8
movq %rax, %r12
testq %rax, %rax
je 0x124aa
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x4340
movb $0x0, (%r12,%r13)
movq %r12, %rdi
callq 0x128ed
movsd %xmm0, 0x20(%rsp)
cmpq %rbp, %r12
je 0x11c48
movq %r12, %rdi
callq *0x297a8(%rip)          # 0x3b3f0
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x213, (%rax)          # imm = 0x213
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
andq $0x0, 0x18(%rax)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x20(%rax)
movq %r14, %rdi
callq 0x1157c
jmp 0x123ad
movq %rbx, %rdi
callq 0x11880
movq %rax, 0x10(%rsp)
pushq $0x1
popq %r15
leaq (%rsp,%r15,8), %r12
addq $0x10, %r12
xorl %r13d, %r13d
movl 0x28(%rbx), %eax
cmpl $0x15, %eax
jne 0x11ccd
movq %r14, %rdi
callq 0x1157c
movq %rbx, %rdi
callq 0x11880
addq $0x18, %r13
cmpq $0x2, %r15
cmovbq %r12, %r13
movq %rax, (%r13)
incq %r15
addq $0x8, %r12
movq %rax, %r13
jmp 0x11c99
cmpl $0xd, %eax
jne 0x12477
movq %r14, %rdi
callq 0x1157c
movq (%rsp), %rax
movzbl (%rax), %eax
addl $-0x62, %eax
cmpl $0x12, %eax
ja 0x124c1
leaq 0x14688(%rip), %rcx     # 0x26380
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x16991(%rip), %rsi     # 0x28699
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
jne 0x124c1
testb %al, %al
je 0x124c1
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movq 0x10(%rsp), %rax
movl $0x42d, (%r12)          # imm = 0x42D
jmp 0x1227f
movl 0x28(%rbx), %eax
jmp 0x119d6
leaq 0x16a22(%rip), %rsi     # 0x28770
movq %rsp, %rdi
callq 0x12656
cmpq $0x3, %r15
jne 0x11f67
testb %al, %al
je 0x11f67
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x32c, (%rax)          # imm = 0x32C
jmp 0x1234b
leaq 0x16754(%rip), %rsi     # 0x284d9
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
ja 0x11fa0
testb %al, %al
je 0x11fa0
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movq 0x10(%rsp), %rax
cmpq $0x1, %r15
movb $0x20, %cl
sbbb $0x0, %cl
movb %cl, (%r12)
movw $0x3, 0x1(%r12)
movb $0x0, 0x3(%r12)
jmp 0x1227f
leaq 0x16910(%rip), %rsi     # 0x286e6
movq %rsp, %rdi
callq 0x12656
testq %r15, %r15
jne 0x11ff5
testb %al, %al
je 0x11ff5
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x215, (%rax)          # imm = 0x215
jmp 0x11f98
leaq 0x172b7(%rip), %rsi     # 0x290c3
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
jne 0x12033
testb %al, %al
je 0x12033
movq 0x10(%rsp), %r15
cmpb $0x1, 0x1(%r15)
jne 0x124ca
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x217, (%rax)          # imm = 0x217
movq %r15, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
jmp 0x123ad
leaq 0x167c4(%rip), %rsi     # 0x28622
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
ja 0x1206a
testb %al, %al
je 0x1206a
pushq $0x1d
popq %rsi
pushq $0x1e
jmp 0x12130
leaq 0x15c77(%rip), %rsi     # 0x27b00
movq %rsp, %rdi
callq 0x12656
testq %r15, %r15
jne 0x12095
testb %al, %al
je 0x12095
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x430, (%rax)          # imm = 0x430
jmp 0x11f98
leaq 0x16862(%rip), %rsi     # 0x28721
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
jne 0x124c1
testb %al, %al
je 0x124c1
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movq 0x10(%rsp), %rax
movl $0x237, (%r12)          # imm = 0x237
jmp 0x1227f
leaq 0x1938d(%rip), %rsi     # 0x2b28a
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
jne 0x124c1
testb %al, %al
je 0x124c1
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movq 0x10(%rsp), %rax
movl $0x118, (%r12)          # imm = 0x118
jmp 0x1227f
leaq 0x167dd(%rip), %rsi     # 0x28718
movq %rsp, %rdi
callq 0x12656
testq %r15, %r15
jne 0x124c1
testb %al, %al
je 0x124c1
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x216, (%rax)          # imm = 0x216
jmp 0x11f98
leaq 0x1680c(%rip), %rsi     # 0x2877a
movq %rsp, %rdi
callq 0x12656
testq %r15, %r15
jne 0x124c1
testb %al, %al
je 0x124c1
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x42f, (%rax)          # imm = 0x42F
xorps %xmm0, %xmm0
jmp 0x12350
leaq 0x16780(%rip), %rsi     # 0x28727
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
ja 0x120d3
testb %al, %al
je 0x120d3
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
testq %r15, %r15
sete %al
movq 0x10(%rsp), %rcx
xorb $0x29, %al
movb %al, (%r12)
movw $0x2, 0x1(%r12)
movb $0x0, 0x3(%r12)
movq %rcx, 0x8(%r12)
jmp 0x12284
leaq 0x16a03(%rip), %rsi     # 0x289ff
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
jne 0x1210a
testb %al, %al
je 0x1210a
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movq 0x10(%rsp), %rax
movl $0x431, (%r12)          # imm = 0x431
jmp 0x1227f
leaq 0x1668e(%rip), %rsi     # 0x286c8
movq %rsp, %rdi
callq 0x12656
cmpq $0x2, %r15
jne 0x12149
testb %al, %al
je 0x12149
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x423, (%rax)          # imm = 0x423
jmp 0x1234b
leaq 0x16685(%rip), %rsi     # 0x286f6
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
ja 0x12180
testb %al, %al
je 0x12180
pushq $0x1b
popq %rsi
pushq $0x1c
jmp 0x12130
leaq 0x16644(%rip), %rsi     # 0x286e0
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
jne 0x124c1
testb %al, %al
je 0x124c1
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movq 0x10(%rsp), %rax
movl $0x235, (%r12)          # imm = 0x235
jmp 0x1227f
leaq 0x1665b(%rip), %rsi     # 0x28735
movq %rsp, %rdi
callq 0x12656
cmpq $0x2, %r15
jne 0x121dc
testb %al, %al
je 0x121dc
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x422, (%rax)          # imm = 0x422
jmp 0x1234b
leaq 0x165da(%rip), %rsi     # 0x286eb
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
ja 0x124c1
testb %al, %al
je 0x124c1
pushq $0x19
popq %rsi
pushq $0x1a
popq %rdx
leaq 0x10(%rsp), %r8
movq %rbx, %rdi
movq %r15, %rcx
callq 0x12984
movq %rax, %r12
jmp 0x123ad
leaq 0x16581(%rip), %rsi     # 0x286d1
movq %rsp, %rdi
callq 0x12656
cmpq $0x2, %r15
jb 0x12213
testb %al, %al
je 0x12213
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x321, (%rax)          # imm = 0x321
jmp 0x1234b
leaq 0x1657d(%rip), %rsi     # 0x28704
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
ja 0x1224e
testb %al, %al
je 0x1224e
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
testq %r15, %r15
sete %al
xorb $0x2b, %al
movb %al, (%r12)
movw $0x3, 0x1(%r12)
movb $0x0, 0x3(%r12)
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x8(%r12)
andq $0x0, 0x18(%r12)
jmp 0x123ad
leaq 0x1655e(%rip), %rsi     # 0x28741
movq %rsp, %rdi
callq 0x12656
cmpq $0x2, %r15
jne 0x12292
testb %al, %al
je 0x12292
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x324, (%rax)          # imm = 0x324
jmp 0x1234b
leaq 0x164be(%rip), %rsi     # 0x286d8
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
jne 0x124c1
testb %al, %al
je 0x124c1
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movq 0x10(%rsp), %rax
movl $0x236, (%r12)          # imm = 0x236
jmp 0x1227f
leaq 0x164bf(%rip), %rsi     # 0x28714
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
jne 0x122c1
testb %al, %al
je 0x122c1
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movq 0x10(%rsp), %rax
movl $0x42e, (%r12)          # imm = 0x42E
movq %rax, 0x8(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r12)
jmp 0x123ad
leaq 0x164b9(%rip), %rsi     # 0x28752
movq %rsp, %rdi
callq 0x12656
cmpq $0x2, %r15
jne 0x122ff
testb %al, %al
je 0x122ff
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x325, (%rax)          # imm = 0x325
jmp 0x1234b
leaq 0x17441(%rip), %rsi     # 0x29709
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
ja 0x124c1
testb %al, %al
je 0x124c1
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
testq %r15, %r15
sete %al
movq 0x10(%rsp), %rcx
xorb $0x33, %al
jmp 0x11fd9
leaq 0x1645c(%rip), %rsi     # 0x28762
movq %rsp, %rdi
callq 0x12656
movq %r15, %rcx
andq $-0x2, %rcx
cmpq $0x2, %rcx
jne 0x12426
testb %al, %al
je 0x12426
cmpq $0x2, %r15
sete %bpl
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
xorb $0x27, %bpl
movb %bpl, (%rax)
movw $0x3, 0x1(%rax)
movb $0x0, 0x3(%rax)
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x8(%rax)
andq $0x0, 0x18(%rax)
jmp 0x123ad
movq %r14, %rdi
callq 0x1157c
movq %rbx, %rdi
callq 0x11880
cmpb $0x1, 0x1(%r12)
jne 0x12465
movq %rax, %r13
movq %rbx, %rdi
callq 0x12604
movl $0x111, (%rax)          # imm = 0x111
movq %r12, 0x8(%rax)
movq %r13, 0x10(%rax)
andq $0x0, 0x18(%rax)
cmpl $0x13, 0x28(%rbx)
jne 0x1246e
movq %rax, %r15
movq %r14, %rdi
callq 0x1157c
movq %r15, %r12
movl 0x28(%rbx), %r15d
cmpl $0x12, %r15d
je 0x1235b
leal -0x10(%r15), %eax
cmpl $0x2, %eax
jae 0x12414
movq %r14, %rdi
callq 0x1157c
cmpl $0x11, %r15d
jne 0x123fb
cmpb $0x1, 0x1(%r12)
jne 0x124a1
movq %rbx, %rdi
callq 0x12604
movl $0x2050138, (%rax)      # imm = 0x2050138
movq %r12, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
andq $0x0, 0x20(%rax)
movq %rax, %r12
movq %rbx, %rdi
movq %r12, %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1282c
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1633f(%rip), %rsi     # 0x2876c
movq %rsp, %rdi
callq 0x12656
cmpq $0x1, %r15
jne 0x124c1
testb %al, %al
je 0x124c1
movq 0x10(%rsp), %r15
cmpb $0x1, 0x1(%r15)
jne 0x124ca
movq %rbx, %rdi
callq 0x12604
movq %rax, %r12
movl $0x234, (%rax)          # imm = 0x234
jmp 0x11e47
leaq 0x1610e(%rip), %rsi     # 0x2857a
jmp 0x1247e
leaq 0x1612d(%rip), %rsi     # 0x285a2
jmp 0x1247e
leaq 0x161d5(%rip), %rsi     # 0x28653
movq %rbx, %rdi
callq 0x11894
leaq 0x1619a(%rip), %rsi     # 0x28627
jmp 0x1247e
leaq 0x16123(%rip), %rsi     # 0x285b9
jmp 0x1247e
leaq 0x16149(%rip), %rsi     # 0x285e8
jmp 0x1247e
leaq 0x16093(%rip), %rsi     # 0x2853b
jmp 0x1247e
callq 0x126e2
leaq 0x16182(%rip), %rsi     # 0x28638
jmp 0x1247e
leaq 0x161b8(%rip), %rsi     # 0x28677
jmp 0x1247e
leaq 0x162b7(%rip), %rsi     # 0x2877f
jmp 0x1247e
leaq 0x161d0(%rip), %rsi     # 0x286a1
jmp 0x1247e
nop