// File: adamiaonr[P]rid-analytics/src/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_parser::parse_expression_rec(pugi::impl::(anonymous namespace)::xpath_ast_node*, int)
xpath_ast_node* parse_expression_rec(xpath_ast_node* lhs, int limit)
		{
			binary_op_t op = binary_op_t::parse(_lexer);

			while (op.asttype != ast_unknown && op.precedence >= limit)
			{
				_lexer.next();

				xpath_ast_node* rhs = parse_path_or_unary_expression();

				binary_op_t nextop = binary_op_t::parse(_lexer);

				while (nextop.asttype != ast_unknown && nextop.precedence > op.precedence)
				{
					rhs = parse_expression_rec(rhs, nextop.precedence);

					nextop = binary_op_t::parse(_lexer);
				}

				if (op.asttype == ast_op_union && (lhs->rettype() != xpath_type_node_set || rhs->rettype() != xpath_type_node_set))
					throw_error("Union operator has to be applied to node sets");

				lhs = new (alloc_node()) xpath_ast_node(op.asttype, op.rettype, lhs, rhs);

				op = binary_op_t::parse(_lexer);
			}

			return lhs;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
addq $0x8, %rdi
callq 0x1f3f0
movl %edx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x20(%rbp)
movb %al, -0xa1(%rbp)
je 0x1efec
movl -0x18(%rbp), %eax
cmpl -0x14(%rbp), %eax
setge %al
movb %al, -0xa1(%rbp)
movb -0xa1(%rbp), %al
testb $0x1, %al
jne 0x1effb
jmp 0x1f16b
movq -0xa0(%rbp), %rdi
addq $0x8, %rdi
movq %rdi, -0xb0(%rbp)
callq 0x1e7c0
movq -0xa0(%rbp), %rdi
callq 0x1f180
movq -0xb0(%rbp), %rdi
movq %rax, -0x38(%rbp)
callq 0x1f3f0
movl %edx, -0x50(%rbp)
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x44(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x3c(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x44(%rbp)
movb %al, -0xb1(%rbp)
je 0x1f060
movl -0x3c(%rbp), %eax
cmpl -0x18(%rbp), %eax
setg %al
movb %al, -0xb1(%rbp)
movb -0xb1(%rbp), %al
testb $0x1, %al
jne 0x1f06c
jmp 0x1f0b8
movq -0xa0(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl -0x3c(%rbp), %edx
callq 0x1ef90
movq -0xa0(%rbp), %rdi
movq %rax, -0x38(%rbp)
addq $0x8, %rdi
callq 0x1f3f0
movl %edx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x64(%rbp)
movl -0x70(%rbp), %eax
movl %eax, -0x5c(%rbp)
movq -0x64(%rbp), %rax
movq %rax, -0x44(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x3c(%rbp)
jmp 0x1f043
cmpl $0xf, -0x20(%rbp)
jne 0x1f0ed
movq -0x10(%rbp), %rdi
callq 0x10790
cmpl $0x1, %eax
jne 0x1f0da
movq -0x38(%rbp), %rdi
callq 0x10790
cmpl $0x1, %eax
je 0x1f0ed
movq -0xa0(%rbp), %rdi
leaq 0x41abb(%rip), %rsi     # 0x60ba3
callq 0x1eef0
movq -0xa0(%rbp), %rdi
callq 0x1f650
movq %rax, %rdi
movq %rdi, -0xc0(%rbp)
movl -0x20(%rbp), %esi
movl -0x1c(%rbp), %edx
movq -0x10(%rbp), %rcx
movq -0x38(%rbp), %r8
callq 0x1f690
movq -0xc0(%rbp), %rax
movq -0xa0(%rbp), %rdi
movq %rax, -0x10(%rbp)
addq $0x8, %rdi
callq 0x1f3f0
movl %edx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x84(%rbp)
movl -0x90(%rbp), %eax
movl %eax, -0x7c(%rbp)
movq -0x84(%rbp), %rax
movq %rax, -0x20(%rbp)
movl -0x7c(%rbp), %eax
movl %eax, -0x18(%rbp)
jmp 0x1efcf
movq -0x10(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax,%rax)