// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: bool pugi::impl::(anonymous namespace)::xpath_ast_node::compare_eq<pugi::impl::(anonymous namespace)::equal_to>(pugi::impl::(anonymous namespace)::xpath_ast_node*, pugi::impl::(anonymous namespace)::xpath_ast_node*, pugi::impl::(anonymous namespace)::xpath_context const&, pugi::impl::(anonymous namespace)::xpath_stack const&, pugi::impl::(anonymous namespace)::equal_to const&)
static bool compare_eq(xpath_ast_node* lhs, xpath_ast_node* rhs, const xpath_context& c, const xpath_stack& stack, const Comp& comp)
		{
			xpath_value_type lt = lhs->rettype(), rt = rhs->rettype();

			if (lt != xpath_type_node_set && rt != xpath_type_node_set)
			{
				if (lt == xpath_type_boolean || rt == xpath_type_boolean)
					return comp(lhs->eval_boolean(c, stack), rhs->eval_boolean(c, stack));
				else if (lt == xpath_type_number || rt == xpath_type_number)
					return comp(lhs->eval_number(c, stack), rhs->eval_number(c, stack));
				else if (lt == xpath_type_string || rt == xpath_type_string)
				{
					xpath_allocator_capture cr(stack.result);

					xpath_string ls = lhs->eval_string(c, stack);
					xpath_string rs = rhs->eval_string(c, stack);

					return comp(ls, rs);
				}
			}
			else if (lt == xpath_type_node_set && rt == xpath_type_node_set)
			{
				xpath_allocator_capture cr(stack.result);

				xpath_node_set_raw ls = lhs->eval_node_set(c, stack, nodeset_eval_all);
				xpath_node_set_raw rs = rhs->eval_node_set(c, stack, nodeset_eval_all);

				for (const xpath_node* li = ls.begin(); li != ls.end(); ++li)
					for (const xpath_node* ri = rs.begin(); ri != rs.end(); ++ri)
					{
						xpath_allocator_capture cri(stack.result);

						if (comp(string_value(*li, stack.result), string_value(*ri, stack.result)))
							return true;
					}

				return false;
			}
			else
			{
				if (lt == xpath_type_node_set)
				{
					swap(lhs, rhs);
					swap(lt, rt);
				}

				if (lt == xpath_type_boolean)
					return comp(lhs->eval_boolean(c, stack), rhs->eval_boolean(c, stack));
				else if (lt == xpath_type_number)
				{
					xpath_allocator_capture cr(stack.result);

					double l = lhs->eval_number(c, stack);
					xpath_node_set_raw rs = rhs->eval_node_set(c, stack, nodeset_eval_all);

					for (const xpath_node* ri = rs.begin(); ri != rs.end(); ++ri)
					{
						xpath_allocator_capture cri(stack.result);

						if (comp(l, convert_string_to_number(string_value(*ri, stack.result).c_str())))
							return true;
					}

					return false;
				}
				else if (lt == xpath_type_string)
				{
					xpath_allocator_capture cr(stack.result);

					xpath_string l = lhs->eval_string(c, stack);
					xpath_node_set_raw rs = rhs->eval_node_set(c, stack, nodeset_eval_all);

					for (const xpath_node* ri = rs.begin(); ri != rs.end(); ++ri)
					{
						xpath_allocator_capture cri(stack.result);

						if (comp(l, string_value(*ri, stack.result)))
							return true;
					}

					return false;
				}
			}

			assert(false && "Wrong types"); // unreachable
			return false;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x370, %rsp            # imm = 0x370
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4b490
movl %eax, -0x34(%rbp)
movq -0x18(%rbp), %rdi
callq 0x4b490
movl %eax, -0x38(%rbp)
cmpl $0x1, -0x34(%rbp)
je 0x5e782
cmpl $0x1, -0x38(%rbp)
je 0x5e782
cmpl $0x4, -0x34(%rbp)
je 0x5e617
cmpl $0x4, -0x38(%rbp)
jne 0x5e66c
movq -0x30(%rbp), %rax
movq %rax, -0x2a8(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x4b6c0
andb $0x1, %al
movb %al, -0x39(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x4b6c0
movq -0x2a8(%rbp), %rdi
andb $0x1, %al
movb %al, -0x3a(%rbp)
leaq -0x39(%rbp), %rsi
leaq -0x3a(%rbp), %rdx
callq 0x60a00
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x5ee76
cmpl $0x2, -0x34(%rbp)
je 0x5e678
cmpl $0x2, -0x38(%rbp)
jne 0x5e6cd
movq -0x30(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x4c1a0
movsd %xmm0, -0x48(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x4c1a0
movq -0x2b0(%rbp), %rdi
movsd %xmm0, -0x50(%rbp)
leaq -0x48(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x60a30
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x5ee76
cmpl $0x3, -0x34(%rbp)
je 0x5e6dd
cmpl $0x3, -0x38(%rbp)
jne 0x5e779
movq -0x28(%rbp), %rax
movq (%rax), %rsi
leaq -0x70(%rbp), %rdi
callq 0x607e0
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
leaq -0x88(%rbp), %rdi
callq 0x4cd60
jmp 0x5e707
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
leaq -0xb0(%rbp), %rdi
callq 0x4cd60
jmp 0x5e721
movq -0x30(%rbp), %rdi
leaq -0x88(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
callq 0x60a60
movb %al, -0x2b1(%rbp)
jmp 0x5e740
movb -0x2b1(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x60890
jmp 0x5ee76
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x60890
jmp 0x5ee84
jmp 0x5e77b
jmp 0x5e77d
jmp 0x5ee57
cmpl $0x1, -0x34(%rbp)
jne 0x5e9ee
cmpl $0x1, -0x38(%rbp)
jne 0x5e9ee
movq -0x28(%rbp), %rax
movq (%rax), %rsi
leaq -0xd0(%rbp), %rdi
callq 0x607e0
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
leaq -0xf0(%rbp), %rdi
xorl %r8d, %r8d
callq 0x4e6d0
jmp 0x5e7c6
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
leaq -0x110(%rbp), %rdi
xorl %r8d, %r8d
callq 0x4e6d0
jmp 0x5e7e3
leaq -0xf0(%rbp), %rdi
callq 0x4ed40
movq %rax, -0x2c0(%rbp)
jmp 0x5e7f8
movq -0x2c0(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x2d0(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x4ed60
movq %rax, -0x2c8(%rbp)
jmp 0x5e829
movq -0x2d0(%rbp), %rax
movq -0x2c8(%rbp), %rcx
cmpq %rcx, %rax
je 0x5e9be
leaq -0x110(%rbp), %rdi
callq 0x4ed40
movq %rax, -0x2d8(%rbp)
jmp 0x5e855
movq -0x2d8(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x2e8(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x4ed60
movq %rax, -0x2e0(%rbp)
jmp 0x5e886
movq -0x2e8(%rbp), %rax
movq -0x2e0(%rbp), %rcx
cmpq %rcx, %rax
je 0x5e9a5
movq -0x28(%rbp), %rax
movq (%rax), %rsi
leaq -0x140(%rbp), %rdi
callq 0x607e0
jmp 0x5e8b2
movq -0x30(%rbp), %rax
movq %rax, -0x2f0(%rbp)
movq -0x118(%rbp), %rsi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq -0x158(%rbp), %rdi
callq 0x60a90
jmp 0x5e8d9
movq -0x120(%rbp), %rsi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq -0x170(%rbp), %rdi
callq 0x60a90
jmp 0x5e8f5
movq -0x2f0(%rbp), %rdi
leaq -0x158(%rbp), %rsi
leaq -0x170(%rbp), %rdx
callq 0x60a60
movb %al, -0x2f1(%rbp)
jmp 0x5e917
movb -0x2f1(%rbp), %al
testb $0x1, %al
jne 0x5e923
jmp 0x5e96a
movb $0x1, -0x1(%rbp)
movl $0x1, -0x174(%rbp)
jmp 0x5e974
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x5e9dd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x60890
jmp 0x5e9dd
movl $0x0, -0x174(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x60890
movl -0x174(%rbp), %eax
testl %eax, %eax
jne 0x5e9cc
jmp 0x5e98c
jmp 0x5e98e
movq -0x120(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x120(%rbp)
jmp 0x5e863
jmp 0x5e9a7
movq -0x118(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x118(%rbp)
jmp 0x5e806
movb $0x0, -0x1(%rbp)
movl $0x1, -0x174(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x60890
jmp 0x5ee76
leaq -0xd0(%rbp), %rdi
callq 0x60890
jmp 0x5ee84
cmpl $0x1, -0x34(%rbp)
jne 0x5ea0e
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x60d50
leaq -0x34(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x60d90
cmpl $0x4, -0x34(%rbp)
jne 0x5ea75
movq -0x30(%rbp), %rax
movq %rax, -0x300(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x4b6c0
andb $0x1, %al
movb %al, -0x175(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x4b6c0
movq -0x300(%rbp), %rdi
andb $0x1, %al
movb %al, -0x176(%rbp)
leaq -0x175(%rbp), %rsi
leaq -0x176(%rbp), %rdx
callq 0x60a00
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x5ee76
cmpl $0x2, -0x34(%rbp)
jne 0x5ec8b
movq -0x28(%rbp), %rax
movq (%rax), %rsi
leaq -0x198(%rbp), %rdi
callq 0x607e0
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x4c1a0
movsd %xmm0, -0x308(%rbp)
jmp 0x5eaad
movsd -0x308(%rbp), %xmm0
movsd %xmm0, -0x1a0(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
leaq -0x1c0(%rbp), %rdi
xorl %r8d, %r8d
callq 0x4e6d0
jmp 0x5eada
leaq -0x1c0(%rbp), %rdi
callq 0x4ed40
movq %rax, -0x310(%rbp)
jmp 0x5eaef
movq -0x310(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0x320(%rbp)
leaq -0x1c0(%rbp), %rdi
callq 0x4ed60
movq %rax, -0x318(%rbp)
jmp 0x5eb20
movq -0x320(%rbp), %rax
movq -0x318(%rbp), %rcx
cmpq %rcx, %rax
je 0x5ec5b
movq -0x28(%rbp), %rax
movq (%rax), %rsi
leaq -0x1e8(%rbp), %rdi
callq 0x607e0
jmp 0x5eb4c
movq -0x30(%rbp), %rax
movq %rax, -0x328(%rbp)
movq -0x1c8(%rbp), %rsi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq -0x208(%rbp), %rdi
callq 0x60a90
jmp 0x5eb73
leaq -0x208(%rbp), %rdi
callq 0x4e1e0
movq %rax, -0x330(%rbp)
jmp 0x5eb88
movq -0x330(%rbp), %rdi
callq 0x5cfa0
movsd %xmm0, -0x338(%rbp)
jmp 0x5eb9e
movq -0x328(%rbp), %rdi
movsd -0x338(%rbp), %xmm0
movsd %xmm0, -0x1f0(%rbp)
leaq -0x1a0(%rbp), %rsi
leaq -0x1f0(%rbp), %rdx
callq 0x60a30
movb %al, -0x339(%rbp)
jmp 0x5ebd0
movb -0x339(%rbp), %al
testb $0x1, %al
jne 0x5ebdc
jmp 0x5ec20
movb $0x1, -0x1(%rbp)
movl $0x1, -0x174(%rbp)
jmp 0x5ec2a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x5ec7a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0x60890
jmp 0x5ec7a
movl $0x0, -0x174(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0x60890
movl -0x174(%rbp), %eax
testl %eax, %eax
jne 0x5ec69
jmp 0x5ec42
jmp 0x5ec44
movq -0x1c8(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x1c8(%rbp)
jmp 0x5eafd
movb $0x0, -0x1(%rbp)
movl $0x1, -0x174(%rbp)
leaq -0x198(%rbp), %rdi
callq 0x60890
jmp 0x5ee76
leaq -0x198(%rbp), %rdi
callq 0x60890
jmp 0x5ee84
cmpl $0x3, -0x34(%rbp)
jne 0x5ee4f
movq -0x28(%rbp), %rax
movq (%rax), %rsi
leaq -0x228(%rbp), %rdi
callq 0x607e0
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
leaq -0x240(%rbp), %rdi
callq 0x4cd60
jmp 0x5ecc2
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
leaq -0x260(%rbp), %rdi
xorl %r8d, %r8d
callq 0x4e6d0
jmp 0x5ecdf
leaq -0x260(%rbp), %rdi
callq 0x4ed40
movq %rax, -0x348(%rbp)
jmp 0x5ecf4
movq -0x348(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x268(%rbp), %rax
movq %rax, -0x358(%rbp)
leaq -0x260(%rbp), %rdi
callq 0x4ed60
movq %rax, -0x350(%rbp)
jmp 0x5ed25
movq -0x358(%rbp), %rax
movq -0x350(%rbp), %rcx
cmpq %rcx, %rax
je 0x5ee25
movq -0x28(%rbp), %rax
movq (%rax), %rsi
leaq -0x288(%rbp), %rdi
callq 0x607e0
jmp 0x5ed51
movq -0x30(%rbp), %rax
movq %rax, -0x360(%rbp)
movq -0x268(%rbp), %rsi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq -0x2a0(%rbp), %rdi
callq 0x60a90
jmp 0x5ed78
movq -0x360(%rbp), %rdi
leaq -0x240(%rbp), %rsi
leaq -0x2a0(%rbp), %rdx
callq 0x60a60
movb %al, -0x361(%rbp)
jmp 0x5ed9a
movb -0x361(%rbp), %al
testb $0x1, %al
jne 0x5eda6
jmp 0x5edea
movb $0x1, -0x1(%rbp)
movl $0x1, -0x174(%rbp)
jmp 0x5edf4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
jmp 0x5ee41
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x90(%rbp)
movl %eax, -0x94(%rbp)
leaq -0x288(%rbp), %rdi
callq 0x60890
jmp 0x5ee41
movl $0x0, -0x174(%rbp)
leaq -0x288(%rbp), %rdi
callq 0x60890
movl -0x174(%rbp), %eax
testl %eax, %eax
jne 0x5ee33
jmp 0x5ee0c
jmp 0x5ee0e
movq -0x268(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x268(%rbp)
jmp 0x5ed02
movb $0x0, -0x1(%rbp)
movl $0x1, -0x174(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x60890
jmp 0x5ee76
leaq -0x228(%rbp), %rdi
callq 0x60890
jmp 0x5ee84
jmp 0x5ee51
jmp 0x5ee53
jmp 0x5ee55
jmp 0x5ee57
leaq 0xef78(%rip), %rdi      # 0x6ddd6
leaq 0xc4f0(%rip), %rsi      # 0x6b355
movl $0x2514, %edx           # imm = 0x2514
leaq 0xef7c(%rip), %rcx      # 0x6dded
callq 0x7180
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x370, %rsp            # imm = 0x370
popq %rbp
retq
movq -0x90(%rbp), %rdi
callq 0x7600