LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::xpath_query::evaluate_node(pugi::xpath_node const&) const
PUGI__FN xpath_node xpath_query::evaluate_node(const xpath_node& n) const
	{
		impl::xpath_ast_node* root = impl::evaluate_node_set_prepare(static_cast<impl::xpath_query_impl*>(_impl));
		if (!root) return xpath_node();

		impl::xpath_context c(n, 1, 1);
		impl::xpath_stack_data sd;

		impl::xpath_node_set_raw r = root->eval_node_set(c, sd.stack, impl::nodeset_eval_first);

		if (sd.oom)
		{
		#ifdef PUGIXML_NO_EXCEPTIONS
			return xpath_node();
		#else
			throw std::bad_alloc();
		#endif
		}

		return r.first();
	}

// Assembly:
pushq %r14
pushq %rbx
subq $0x20a8, %rsp           # imm = 0x20A8
movq %rsi, %rbx
movq (%rdi), %rdi
callq 0x27978
testq %rax, %rax
je 0x27f1b
movups (%rbx), %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, (%rdx)
movl $0x1, %ecx
movq %rcx, 0x10(%rdx)
movq %rcx, 0x18(%rdx)
leaq 0x2060(%rsp), %rsi
leaq 0x20a0(%rsp), %rcx
leaq 0x40(%rsp), %rdi
movq %rdi, -0x40(%rcx)
xorl %r8d, %r8d
movq %r8, -0x38(%rcx)
movq %rcx, -0x30(%rcx)
leaq 0x2078(%rsp), %r9
leaq 0x1050(%rsp), %r10
movq %r10, (%r9)
movq %r8, 0x8(%r9)
movq %rcx, 0x10(%r9)
movb $0x0, 0x28(%r9)
movq %r8, (%r10)
movq %r8, (%rdi)
movl $0x1000, %ecx           # imm = 0x1000
movq %rcx, 0x8(%r10)
movq %rcx, 0x8(%rdi)
leaq 0x2090(%rsp), %rcx
movq %rsi, (%rcx)
movq %r9, 0x8(%rcx)
movq %rsp, %rdi
movq %rax, %rsi
movl $0x2, %r8d
callq 0x279d6
cmpb $0x1, 0x20a0(%rsp)
je 0x27f31
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl (%rsp), %edx
callq 0x24167
movq %rax, %rbx
movq %rdx, %r14
leaq 0x40(%rsp), %rdi
callq 0x25e86
jmp 0x27f20
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %rbx, %rax
movq %r14, %rdx
addq $0x20a8, %rsp           # imm = 0x20A8
popq %rbx
popq %r14
retq
movl $0x8, %edi
callq 0x6260
movq 0x1e036(%rip), %rcx     # 0x45f78
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x1e038(%rip), %rsi     # 0x45f88
movq 0x1e001(%rip), %rdx     # 0x45f58
movq %rax, %rdi
callq 0x6420
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x25e86
movq %rbx, %rdi
callq 0x6430
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: void pugi::impl::(anonymous namespace)::node_copy_string<char*, unsigned long>(char*&, unsigned long&, unsigned long, char*, unsigned long&, pugi::impl::(anonymous namespace)::xml_allocator*)
PUGI__FN void node_copy_string(String& dest, Header& header, uintptr_t header_mask, char_t* source, Header& source_header, xml_allocator* alloc)
	{
		assert(!dest && (header & header_mask) == 0);

		if (source)
		{
			if (alloc && (source_header & header_mask) == 0)
			{
				dest = source;

				// since strcpy_insitu can reuse document buffer memory we need to mark both source and dest as shared
				header |= xml_memory_page_contents_shared_mask;
				source_header |= xml_memory_page_contents_shared_mask;
			}
			else
				strcpy_insitu(dest, header, header_mask, source, strlength(source));
		}
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, (%rdi)
jne 0x28440
movq %rdx, %r15
movq %rsi, %r14
movq (%rsi), %rax
testq %rdx, %rax
jne 0x28440
movq %rcx, %rbx
testq %rcx, %rcx
je 0x28434
movq %rdi, %r12
testq %r9, %r9
je 0x283fe
testq %r15, (%r8)
je 0x28425
movq %rbx, %rdi
callq 0x6270
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movq %rax, %r8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1d136
movq %rbx, (%r12)
orq $0x40, %rax
movq %rax, (%r14)
orb $0x40, (%r8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0xa65c(%rip), %rdi      # 0x32aa3
leaq 0x9ad7(%rip), %rsi      # 0x31f25
leaq 0xa673(%rip), %rcx      # 0x32ac8
movl $0x111c, %edx           # imm = 0x111C
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::node_copy_contents(pugi::xml_node_struct*, pugi::xml_node_struct*, pugi::impl::(anonymous namespace)::xml_allocator*)
PUGI__FN void node_copy_contents(xml_node_struct* dn, xml_node_struct* sn, xml_allocator* shared_alloc)
	{
		node_copy_string(dn->name, dn->header, xml_memory_page_name_allocated_mask, sn->name, sn->header, shared_alloc);
		node_copy_string(dn->value, dn->header, xml_memory_page_value_allocated_mask, sn->value, sn->header, shared_alloc);

		for (xml_attribute_struct* sa = sn->first_attribute; sa; sa = sa->next_attribute)
		{
			xml_attribute_struct* da = append_new_attribute(dn, get_allocator(dn));

			if (da)
			{
				node_copy_string(da->name, da->header, xml_memory_page_name_allocated_mask, sa->name, sa->header, shared_alloc);
				node_copy_string(da->value, da->header, xml_memory_page_value_allocated_mask, sa->value, sa->header, shared_alloc);
			}
		}
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
addq $0x8, %rdi
movq 0x8(%rsi), %rcx
movl $0x20, %edx
movq %r14, %rsi
movq %r15, %r8
movq %rbx, %r9
callq 0x283cd
leaq 0x10(%r14), %rdi
movq 0x10(%r15), %rcx
movl $0x10, %edx
movq %r14, %rsi
movq %r15, %r8
movq %rbx, %r9
callq 0x283cd
movq 0x38(%r15), %r15
testq %r15, %r15
je 0x2850c
movq (%r14), %rax
shrq $0x8, %rax
negq %rax
movq (%r14,%rax), %rsi
movq %r14, %rdi
callq 0x285bb
testq %rax, %rax
je 0x28506
movq %rax, %r12
leaq 0x8(%rax), %rdi
movq 0x8(%r15), %rcx
movl $0x20, %edx
movq %rax, %rsi
movq %r15, %r8
movq %rbx, %r9
callq 0x283cd
movq %r12, %rdi
addq $0x10, %rdi
movq 0x10(%r15), %rcx
movl $0x10, %edx
movq %r12, %rsi
movq %r15, %r8
movq %rbx, %r9
callq 0x283cd
movq 0x20(%r15), %r15
jmp 0x284aa
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::append_new_node(pugi::xml_node_struct*, pugi::impl::(anonymous namespace)::xml_allocator&, pugi::xml_node_type)
PUGI__FN_NO_INLINE xml_node_struct* append_new_node(xml_node_struct* node, xml_allocator& alloc, xml_node_type type = node_element)
	{
		if (!alloc.reserve()) return 0;

		xml_node_struct* child = allocate_node(alloc, type);
		if (!child) return 0;

		append_node(child, node);

		return child;
	}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x8(%rsi), %rax
leaq 0x40(%rax), %rsi
cmpq $0x7fd8, %rsi           # imm = 0x7FD8
ja 0x2859c
movq (%rcx), %rdx
addq %rdx, %rax
addq $0x28, %rax
movq %rsi, 0x8(%rcx)
movq %rax, %rcx
subq %rdx, %rcx
shlq $0x8, %rcx
movl %ebp, %edx
orq %rcx, %rdx
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x8(%rax)
movq $0x0, 0x38(%rax)
movq %rdx, (%rax)
movq %rbx, 0x18(%rax)
movq 0x20(%rbx), %rcx
testq %rcx, %rcx
je 0x2858a
movq 0x28(%rcx), %rdx
addq $0x28, %rcx
movq %rax, 0x30(%rdx)
movq %rdx, 0x28(%rax)
jmp 0x28592
movq %rax, 0x20(%rbx)
leaq 0x28(%rax), %rcx
movq %rax, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq %rsp, %rdx
movl $0x40, %esi
movq %rcx, %rdi
callq 0x28796
testq %rax, %rax
je 0x285b7
movq (%rsp), %rdx
jmp 0x28542
xorl %eax, %eax
jmp 0x28595
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::append_new_attribute(pugi::xml_node_struct*, pugi::impl::(anonymous namespace)::xml_allocator&)
PUGI__FN_NO_INLINE xml_attribute_struct* append_new_attribute(xml_node_struct* node, xml_allocator& alloc)
	{
		if (!alloc.reserve()) return 0;

		xml_attribute_struct* attr = allocate_attribute(alloc);
		if (!attr) return 0;

		append_attribute(attr, node);

		return attr;
	}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x8(%rsi), %rax
leaq 0x28(%rax), %rsi
cmpq $0x7fd8, %rsi           # imm = 0x7FD8
ja 0x28629
movq (%rcx), %rdx
addq %rdx, %rax
addq $0x28, %rax
movq %rsi, 0x8(%rcx)
movq %rax, %rcx
subq %rdx, %rcx
shlq $0x8, %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x8(%rax)
movq %rcx, (%rax)
movq 0x38(%rbx), %rcx
testq %rcx, %rcx
je 0x28618
movq 0x18(%rcx), %rdx
addq $0x18, %rcx
movq %rax, 0x20(%rdx)
movq %rdx, 0x18(%rax)
jmp 0x28620
movq %rax, 0x38(%rbx)
leaq 0x18(%rax), %rcx
movq %rax, (%rcx)
addq $0x10, %rsp
popq %rbx
retq
leaq 0x8(%rsp), %rdx
movl $0x28, %esi
movq %rcx, %rdi
callq 0x28796
testq %rax, %rax
je 0x28647
movq 0x8(%rsp), %rdx
jmp 0x285e5
xorl %eax, %eax
jmp 0x28623
nop
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xml_allocator::deallocate_memory(void*, unsigned long, pugi::impl::(anonymous namespace)::xml_memory_page*)
void deallocate_memory(void* ptr, size_t size, xml_memory_page* page)
		{
			if (page == _root) page->busy_size = _busy_size;

			assert(ptr >= reinterpret_cast<char*>(page) + sizeof(xml_memory_page) && ptr < reinterpret_cast<char*>(page) + sizeof(xml_memory_page) + page->busy_size);
			(void)!ptr;

			page->freed_size += size;
			assert(page->freed_size <= page->busy_size);

			if (page->freed_size == page->busy_size)
			{
				if (page->next == 0)
				{
					assert(_root == page);

					// top page freed, just reset sizes
					page->busy_size = 0;
					page->freed_size = 0;

				#ifdef PUGIXML_COMPACT
					// reset compact state to maximize efficiency
					page->compact_string_base = 0;
					page->compact_shared_parent = 0;
					page->compact_page_marker = 0;
				#endif

					_busy_size = 0;
				}
				else
				{
					assert(_root != page);
					assert(page->prev);

					// remove from the list
					page->prev->next = page->next;
					page->next->prev = page->prev;

					// deallocate
					deallocate_page(page);
				}
			}
		}

// Assembly:
pushq %rax
movq (%rdi), %rax
cmpq %rcx, %rax
jne 0x28689
movq 0x8(%rdi), %r8
movq %r8, 0x18(%rcx)
leaq 0x28(%rcx), %r9
cmpq %rsi, %r9
ja 0x286fb
movq 0x18(%rcx), %r8
addq %r8, %r9
cmpq %rsi, %r9
jbe 0x286fb
leaq 0x18(%rcx), %rsi
addq 0x20(%rcx), %rdx
movq %rdx, 0x20(%rcx)
cmpq %r8, %rdx
ja 0x2871a
jne 0x286f9
movq 0x10(%rcx), %rdx
testq %rdx, %rdx
je 0x286e2
cmpq %rcx, %rax
je 0x28739
movq 0x8(%rcx), %rax
testq %rax, %rax
je 0x28758
movq %rdx, 0x10(%rax)
movq 0x10(%rcx), %rdx
movq %rax, 0x8(%rdx)
movq %rcx, %rdi
popq %rax
jmpq *0x1e16e(%rip)          # 0x46850
cmpq %rcx, %rax
jne 0x28777
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
movq $0x0, 0x8(%rdi)
popq %rax
retq
leaq 0xa46d(%rip), %rdi      # 0x32b6f
leaq 0x981c(%rip), %rsi      # 0x31f25
leaq 0xa4f1(%rip), %rcx      # 0x32c01
movl $0x255, %edx            # imm = 0x255
callq 0x6120
leaq 0xa54c(%rip), %rdi      # 0x32c6d
leaq 0x97fd(%rip), %rsi      # 0x31f25
leaq 0xa4d2(%rip), %rcx      # 0x32c01
movl $0x259, %edx            # imm = 0x259
callq 0x6120
leaq 0xa55f(%rip), %rdi      # 0x32c9f
leaq 0x97de(%rip), %rsi      # 0x31f25
leaq 0xa4b3(%rip), %rcx      # 0x32c01
movl $0x270, %edx            # imm = 0x270
callq 0x6120
leaq 0x9f3a(%rip), %rdi      # 0x32699
leaq 0x97bf(%rip), %rsi      # 0x31f25
leaq 0xa494(%rip), %rcx      # 0x32c01
movl $0x271, %edx            # imm = 0x271
callq 0x6120
leaq 0xa513(%rip), %rdi      # 0x32c91
leaq 0x97a0(%rip), %rsi      # 0x31f25
leaq 0xa475(%rip), %rcx      # 0x32c01
movl $0x25f, %edx            # imm = 0x25F
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xml_allocator::allocate_memory_oob(unsigned long, pugi::impl::(anonymous namespace)::xml_memory_page*&)
PUGI__FN_NO_INLINE void* xml_allocator::allocate_memory_oob(size_t size, xml_memory_page*& out_page)
	{
		const size_t large_allocation_threshold = xml_memory_page_size / 4;

		xml_memory_page* page = allocate_page(size <= large_allocation_threshold ? xml_memory_page_size : size);
		out_page = page;

		if (!page) return 0;

		if (size <= large_allocation_threshold)
		{
			_root->busy_size = _busy_size;

			// insert page at the end of linked list
			page->prev = _root;
			_root->next = page;
			_root = page;

			_busy_size = size;
		}
		else
		{
			// insert page before the end of linked list, so that it is deleted as soon as possible
			// the last page is not deleted even if it's empty (see deallocate_memory)
			assert(_root->prev);

			page->prev = _root->prev;
			page->next = _root;

			_root->prev->next = page;
			_root->prev = page;

			page->busy_size = size;
		}

		return reinterpret_cast<char*>(page) + sizeof(xml_memory_page);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x28(%rsi), %rax
cmpq $0x1ff7, %rsi           # imm = 0x1FF7
movl $0x8000, %edi           # imm = 0x8000
cmovaeq %rax, %rdi
callq *0x1e09a(%rip)          # 0x46858
testq %rax, %rax
je 0x28806
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq $0x0, 0x20(%rax)
movq (%r14), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
movq %rax, (%r15)
cmpq $0x1ff6, %rbx           # imm = 0x1FF6
ja 0x28811
leaq 0x8(%r14), %rcx
movq (%r14), %rdx
movq 0x8(%r14), %rsi
movq %rsi, 0x18(%rdx)
movq %rdx, 0x8(%rax)
movq %rax, 0x10(%rdx)
movq %rax, (%r14)
jmp 0x28835
movq $0x0, (%r15)
xorl %eax, %eax
jmp 0x2883c
movq (%r14), %rcx
movq 0x8(%rcx), %rdx
testq %rdx, %rdx
je 0x28842
movq %rdx, 0x8(%rax)
movq %rcx, 0x10(%rax)
movq 0x8(%rcx), %rdx
movq %rax, 0x10(%rdx)
movq %rax, 0x8(%rcx)
leaq 0x18(%rax), %rcx
movq %rbx, (%rcx)
addq $0x28, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0xa464(%rip), %rdi      # 0x32cad
leaq 0x96d5(%rip), %rsi      # 0x31f25
leaq 0xa462(%rip), %rcx      # 0x32cb9
movl $0x2db, %edx            # imm = 0x2DB
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::get_mutable_buffer(char*&, unsigned long&, void const*, unsigned long, bool)
PUGI__FN bool get_mutable_buffer(char_t*& out_buffer, size_t& out_length, const void* contents, size_t size, bool is_mutable)
	{
		size_t length = size / sizeof(char_t);

		if (is_mutable)
		{
			out_buffer = static_cast<char_t*>(const_cast<void*>(contents));
			out_length = length;
		}
		else
		{
			char_t* buffer = static_cast<char_t*>(xml_memory::allocate((length + 1) * sizeof(char_t)));
			if (!buffer) return false;

			if (contents)
				memcpy(buffer, contents, length * sizeof(char_t));
			else
				assert(length == 0);

			buffer[length] = 0;

			out_buffer = buffer;
			out_length = length + 1;
		}

		return true;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r14
testl %r8d, %r8d
je 0x28c9f
movq %rbp, %r13
movq %r15, %r12
jmp 0x28cd8
leaq 0x1(%r15), %r12
movq %r12, %rdi
callq *0x1dbac(%rip)          # 0x46858
testq %rax, %rax
je 0x28cc9
movq %rax, %r13
testq %rbp, %rbp
je 0x28ccd
movq %r13, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x6090
jmp 0x28cd2
xorl %eax, %eax
jmp 0x28ce0
testq %r15, %r15
jne 0x28cef
movb $0x0, (%r13,%r15)
movq %r13, (%r14)
movq %r12, (%rbx)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa0bd(%rip), %rdi      # 0x32db3
leaq 0x9228(%rip), %rsi      # 0x31f25
leaq 0xa0bb(%rip), %rcx      # 0x32dbf
movl $0x809, %edx            # imm = 0x809
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::utf8_writer::low(unsigned char*, unsigned int)
static value_type low(value_type result, uint32_t ch)
		{
			// U+0000..U+007F
			if (ch < 0x80)
			{
				*result = static_cast<uint8_t>(ch);
				return result + 1;
			}
			// U+0080..U+07FF
			else if (ch < 0x800)
			{
				result[0] = static_cast<uint8_t>(0xC0 | (ch >> 6));
				result[1] = static_cast<uint8_t>(0x80 | (ch & 0x3F));
				return result + 2;
			}
			// U+0800..U+FFFF
			else
			{
				result[0] = static_cast<uint8_t>(0xE0 | (ch >> 12));
				result[1] = static_cast<uint8_t>(0x80 | ((ch >> 6) & 0x3F));
				result[2] = static_cast<uint8_t>(0x80 | (ch & 0x3F));
				return result + 3;
			}
		}

// Assembly:
movq %rdi, %rax
cmpl $0x7f, %esi
ja 0x28d20
movb %sil, (%rax)
movl $0x1, %ecx
jmp 0x28d6c
movl %esi, %ecx
cmpl $0x7ff, %esi            # imm = 0x7FF
ja 0x28d45
shrl $0x6, %ecx
orb $-0x40, %cl
movb %cl, (%rax)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%rax)
movl $0x2, %ecx
jmp 0x28d6c
shrl $0xc, %ecx
orb $-0x20, %cl
movb %cl, (%rax)
movl %esi, %ecx
shrl $0x6, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rax)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x2(%rax)
movl $0x3, %ecx
addq %rcx, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::gap::flush(char*)
char_t* flush(char_t* s)
		{
			if (end)
			{
				// Move [old_gap_end, current_pos) to [old_gap_start, ...)
				assert(s >= end);
				memmove(end - size, end, reinterpret_cast<char*>(s) - reinterpret_cast<char*>(end));

				return s - size;
			}
			else return s;
		}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x28d9d
cmpq %rbx, %rsi
ja 0x28da8
movq %rdi, %r14
movq %rsi, %rdi
subq 0x8(%r14), %rdi
movq %rbx, %rdx
subq %rsi, %rdx
callq 0x6100
subq 0x8(%r14), %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xa5cc(%rip), %rdi      # 0x3337b
leaq 0x916f(%rip), %rsi      # 0x31f25
leaq 0xa5c7(%rip), %rcx      # 0x33384
movl $0x985, %edx            # imm = 0x985
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::gap::push(char*&, unsigned long)
void push(char_t*& s, size_t count)
		{
			if (end) // there was a gap already; collapse it
			{
				// Move [old_gap_end, new_gap_start) to [old_gap_start, ...)
				assert(s >= end);
				memmove(end - size, end, reinterpret_cast<char*>(s) - reinterpret_cast<char*>(end));
			}

			s += count; // end of current gap

			// "merge" two gaps
			end = s;
			size += count;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x2900e
movq (%r15), %rdx
subq %rsi, %rdx
jb 0x29024
movq %rsi, %rdi
subq 0x8(%r14), %rdi
callq 0x6100
movq (%r15), %rax
addq %rbx, %rax
movq %rax, (%r15)
movq %rax, (%r14)
addq %rbx, 0x8(%r14)
popq %rbx
popq %r14
popq %r15
retq
leaq 0xa350(%rip), %rdi      # 0x3337b
leaq 0x8ef3(%rip), %rsi      # 0x31f25
leaq 0xa38b(%rip), %rcx      # 0x333c4
movl $0x974, %edx            # imm = 0x974
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::text_output_indent(pugi::impl::(anonymous namespace)::xml_buffered_writer&, char const*, unsigned long, unsigned int)
PUGI__FN void text_output_indent(xml_buffered_writer& writer, const char_t* indent, size_t indent_length, unsigned int depth)
	{
		switch (indent_length)
		{
		case 1:
		{
			for (unsigned int i = 0; i < depth; ++i)
				writer.write(indent[0]);
			break;
		}

		case 2:
		{
			for (unsigned int i = 0; i < depth; ++i)
				writer.write(indent[0], indent[1]);
			break;
		}

		case 3:
		{
			for (unsigned int i = 0; i < depth; ++i)
				writer.write(indent[0], indent[1], indent[2]);
			break;
		}

		case 4:
		{
			for (unsigned int i = 0; i < depth; ++i)
				writer.write(indent[0], indent[1], indent[2], indent[3]);
			break;
		}

		default:
		{
			for (unsigned int i = 0; i < depth; ++i)
				writer.write_buffer(indent, indent_length);
		}
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq -0x1(%rdx), %rax
cmpq $0x3, %rax
ja 0x296dd
leaq 0x8497(%rip), %rcx      # 0x31a68
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
testl %ebx, %ebx
je 0x29721
movq 0x2808(%r15), %rdx
movb (%r14), %bpl
cmpq $0x800, %rdx            # imm = 0x800
jb 0x29602
movq %r15, %rdi
movq %r15, %rsi
callq 0x29c16
xorl %edx, %edx
movb %bpl, (%r15,%rdx)
incq %rdx
movq %rdx, 0x2808(%r15)
decl %ebx
jne 0x295e9
jmp 0x29721
testl %ebx, %ebx
je 0x29721
movq 0x2808(%r15), %rdx
movb (%r14), %bpl
movb 0x1(%r14), %r12b
movb 0x2(%r14), %r13b
cmpq $0x7fe, %rdx            # imm = 0x7FE
jb 0x29649
movq %r15, %rdi
movq %r15, %rsi
callq 0x29c16
xorl %edx, %edx
movb %bpl, (%r15,%rdx)
movb %r12b, 0x1(%r15,%rdx)
movb %r13b, 0x2(%r15,%rdx)
addq $0x3, %rdx
movq %rdx, 0x2808(%r15)
decl %ebx
jne 0x29628
jmp 0x29721
testl %ebx, %ebx
je 0x29721
movsbl (%r14), %esi
movsbl 0x1(%r14), %edx
movsbl 0x2(%r14), %ecx
movsbl 0x3(%r14), %r8d
movq %r15, %rdi
callq 0x29acc
decl %ebx
jne 0x29673
jmp 0x29721
testl %ebx, %ebx
je 0x29721
movq 0x2808(%r15), %rdx
movb (%r14), %bpl
movb 0x1(%r14), %r12b
cmpq $0x7ff, %rdx            # imm = 0x7FF
jb 0x296c3
movq %r15, %rdi
movq %r15, %rsi
callq 0x29c16
xorl %edx, %edx
movb %bpl, (%r15,%rdx)
movb %r12b, 0x1(%r15,%rdx)
addq $0x2, %rdx
movq %rdx, 0x2808(%r15)
decl %ebx
jne 0x296a6
jmp 0x29721
testl %ebx, %ebx
je 0x29721
movq %rdx, %r12
movq 0x2808(%r15), %rdi
leaq (%rdi,%r12), %r13
cmpq $0x800, %r13            # imm = 0x800
ja 0x2970f
addq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x6090
movq %r13, 0x2808(%r15)
jmp 0x2971d
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x29b26
decl %ebx
jne 0x296e4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::text_output(pugi::impl::(anonymous namespace)::xml_buffered_writer&, char const*, pugi::impl::(anonymous namespace)::chartypex_t, unsigned int)
PUGI__FN void text_output(xml_buffered_writer& writer, const char_t* s, chartypex_t type, unsigned int flags)
	{
		if (flags & format_no_escapes)
			writer.write_string(s);
		else
			text_output_escaped(writer, s, type);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
testb $0x10, %cl
jne 0x298dd
cmpb $0x0, (%rsi)
je 0x298d3
movl %edx, %ebx
leaq 0x8659(%rip), %r15      # 0x31db0
leaq 0x1(%rsi), %r12
movzbl -0x1(%r12), %eax
movzbl (%rax,%r15), %eax
testl %ebx, %eax
jne 0x297a0
movzbl (%r12), %eax
movzbl (%rax,%r15), %eax
testl %ebx, %eax
jne 0x297a8
movzbl 0x1(%r12), %eax
movzbl (%rax,%r15), %eax
testl %ebx, %eax
jne 0x297a5
movzbl 0x2(%r12), %eax
movzbl (%rax,%r15), %eax
addq $0x4, %r12
testl %ebx, %eax
je 0x2975b
addq $-0x2, %r12
jmp 0x297a8
decq %r12
jmp 0x297a8
incq %r12
movq %r12, %rdx
subq %rsi, %rdx
movq 0x2808(%r14), %rdi
leaq (%rdx,%rdi), %r13
cmpq $0x800, %r13            # imm = 0x800
ja 0x297d3
addq %r14, %rdi
callq 0x6090
movq %r13, 0x2808(%r14)
jmp 0x297db
movq %r14, %rdi
callq 0x29b26
movb (%r12), %al
movzbl %al, %ecx
cmpl $0x3b, %ecx
jg 0x29812
cmpl $0x22, %ecx
je 0x2982b
cmpl $0x26, %ecx
jne 0x29884
movq %r14, %rdi
movl $0x26, %esi
movl $0x61, %edx
movl $0x6d, %ecx
movl $0x70, %r8d
jmp 0x298b7
cmpl $0x3c, %ecx
je 0x29865
cmpl $0x3e, %ecx
jne 0x29888
movq %r14, %rdi
movl $0x26, %esi
movl $0x67, %edx
jmp 0x29872
movq 0x2808(%r14), %rdx
cmpq $0x7fb, %rdx            # imm = 0x7FB
jb 0x29848
movq %r14, %rdi
movq %r14, %rsi
callq 0x29c16
xorl %edx, %edx
movl $0x6f757126, (%r14,%rdx) # imm = 0x6F757126
movw $0x3b74, 0x4(%r14,%rdx) # imm = 0x3B74
addq $0x6, %rdx
movq %rdx, 0x2808(%r14)
jmp 0x298c2
movq %r14, %rdi
movl $0x26, %esi
movl $0x6c, %edx
movl $0x74, %ecx
movl $0x3b, %r8d
callq 0x29acc
jmp 0x298c2
testl %ecx, %ecx
je 0x298d3
cmpb $0x20, %al
jae 0x298ee
imull $0xcd, %ecx, %ecx
shrl $0xb, %ecx
movl %ecx, %edx
orb $0x30, %dl
addl %ecx, %ecx
leal (%rcx,%rcx,4), %ecx
subb %cl, %al
orb $0x30, %al
movzbl %al, %r8d
movzbl %dl, %ecx
movq %r14, %rdi
movl $0x26, %esi
movl $0x23, %edx
movl $0x3b, %r9d
callq 0x29a60
leaq 0x1(%r12), %rsi
cmpb $0x0, 0x1(%r12)
jne 0x29757
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r14, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x23680
leaq 0x9ca8(%rip), %rdi      # 0x3359d
leaq 0x8629(%rip), %rsi      # 0x31f25
leaq 0x9ca2(%rip), %rcx      # 0x335a5
movl $0xf63, %edx            # imm = 0xF63
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::node_output_attributes(pugi::impl::(anonymous namespace)::xml_buffered_writer&, pugi::xml_node_struct*, char const*, unsigned long, unsigned int, unsigned int)
PUGI__FN void node_output_attributes(xml_buffered_writer& writer, xml_node_struct* node, const char_t* indent, size_t indent_length, unsigned int flags, unsigned int depth)
	{
		const char_t* default_name = PUGIXML_TEXT(":anonymous");

		for (xml_attribute_struct* a = node->first_attribute; a; a = a->next_attribute)
		{
			if ((flags & (format_indent_attributes | format_raw)) == format_indent_attributes)
			{
				writer.write('\n');

				text_output_indent(writer, indent, indent_length, depth + 1);
			}
			else
			{
				writer.write(' ');
			}

			writer.write_string(a->name ? a->name + 0 : default_name);
			writer.write('=', '"');

			if (a->value)
				text_output(writer, a->value, ctx_special_attr, flags);

			writer.write('"');
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq 0x38(%rsi), %r13
testq %r13, %r13
je 0x29a51
movl %r9d, %ebx
movl %r8d, %r14d
movq %rdi, %r12
movl %r8d, %ebp
andl $0x44, %ebp
incl %ebx
leaq 0x9bd5(%rip), %r15      # 0x3351f
movq 0x2808(%r12), %rdx
cmpl $0x40, %ebp
jne 0x29993
cmpq $0x800, %rdx            # imm = 0x800
jb 0x2996d
movq %r12, %rdi
movq %r12, %rsi
callq 0x29c16
xorl %edx, %edx
movb $0xa, (%r12,%rdx)
incq %rdx
movq %rdx, 0x2808(%r12)
movq %r12, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movl %ebx, %ecx
callq 0x295a9
jmp 0x299b9
cmpq $0x800, %rdx            # imm = 0x800
jb 0x299a9
movq %r12, %rdi
movq %r12, %rsi
callq 0x29c16
xorl %edx, %edx
movb $0x20, (%r12,%rdx)
incq %rdx
movq %rdx, 0x2808(%r12)
movq 0x8(%r13), %rsi
testq %rsi, %rsi
cmoveq %r15, %rsi
movq %r12, %rdi
callq 0x23680
movq 0x2808(%r12), %rdx
cmpq $0x7ff, %rdx            # imm = 0x7FF
jb 0x299ea
movq %r12, %rdi
movq %r12, %rsi
callq 0x29c16
xorl %edx, %edx
movw $0x223d, (%r12,%rdx)    # imm = 0x223D
addq $0x2, %rdx
movq %rdx, 0x2808(%r12)
movq 0x10(%r13), %rsi
testq %rsi, %rsi
je 0x29a1e
movq %r12, %rdi
movl $0x2, %edx
movl %r14d, %ecx
callq 0x29730
movq 0x2808(%r12), %rdx
cmpq $0x800, %rdx            # imm = 0x800
jb 0x29a34
movq %r12, %rdi
movq %r12, %rsi
callq 0x29c16
xorl %edx, %edx
movb $0x22, (%r12,%rdx)
incq %rdx
movq %rdx, 0x2808(%r12)
movq 0x20(%r13), %r13
testq %r13, %r13
jne 0x2994a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xml_buffered_writer::write(char, char, char, char, char)
void write(char_t d0, char_t d1, char_t d2, char_t d3, char_t d4)
		{
			size_t offset = bufsize;
			if (offset > bufcapacity - 5) offset = flush();

			buffer[offset + 0] = d0;
			buffer[offset + 1] = d1;
			buffer[offset + 2] = d2;
			buffer[offset + 3] = d3;
			buffer[offset + 4] = d4;
			bufsize = offset + 5;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movl %r8d, %ebp
movl %ecx, %r15d
movl %edx, %r12d
movl %esi, %r13d
movq %rdi, %r14
movq 0x2808(%rdi), %rdx
cmpq $0x7fc, %rdx            # imm = 0x7FC
jb 0x29a9a
movq %r14, %rdi
movq %r14, %rsi
callq 0x29c16
xorl %edx, %edx
movb %r13b, (%r14,%rdx)
movb %r12b, 0x1(%r14,%rdx)
movb %r15b, 0x2(%r14,%rdx)
movb %bpl, 0x3(%r14,%rdx)
movb %bl, 0x4(%r14,%rdx)
addq $0x5, %rdx
movq %rdx, 0x2808(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xml_buffered_writer::write(char, char, char, char)
void write(char_t d0, char_t d1, char_t d2, char_t d3)
		{
			size_t offset = bufsize;
			if (offset > bufcapacity - 4) offset = flush();

			buffer[offset + 0] = d0;
			buffer[offset + 1] = d1;
			buffer[offset + 2] = d2;
			buffer[offset + 3] = d3;
			bufsize = offset + 4;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, %r14
movq 0x2808(%rdi), %rdx
cmpq $0x7fd, %rdx            # imm = 0x7FD
jb 0x29aff
movq %r14, %rdi
movq %r14, %rsi
callq 0x29c16
xorl %edx, %edx
movb %r12b, (%r14,%rdx)
movb %r15b, 0x1(%r14,%rdx)
movb %bpl, 0x2(%r14,%rdx)
movb %bl, 0x3(%r14,%rdx)
addq $0x4, %rdx
movq %rdx, 0x2808(%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xml_buffered_writer::write_direct(char const*, unsigned long)
void write_direct(const char_t* data, size_t length)
		{
			// flush the remaining buffer contents
			flush();

			// handle large chunks
			if (length > bufcapacity)
			{
				if (encoding == get_write_native_encoding())
				{
					// fast path, can just write data chunk
					writer.write(data, length * sizeof(char_t));
					return;
				}

				// need to convert in suitable chunks
				while (length > bufcapacity)
				{
					// get chunk size by selecting such number of characters that are guaranteed to fit into scratch buffer
					// and form a complete codepoint sequence (i.e. discard start of last codepoint if necessary)
					size_t chunk_size = get_valid_length(data, bufcapacity);
					assert(chunk_size);

					// convert chunk and write
					flush(data, chunk_size);

					// iterate
					data += chunk_size;
					length -= chunk_size;
				}

				// small tail is copied below
				bufsize = 0;
			}

			memcpy(buffer + bufsize, data, length * sizeof(char_t));
			bufsize += length;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x2808(%rdi), %rdx
movq %rdi, %rsi
callq 0x29c16
movq $0x0, 0x2808(%r15)
cmpq $0x801, %rbx            # imm = 0x801
jb 0x29bd6
cmpl $0x1, 0x2810(%r15)
jne 0x29b85
movq 0x2800(%r15), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rax
movl $0x7ff, %r12d           # imm = 0x7FF
movb (%r14,%r12), %al
andb $-0x40, %al
negb %al
jno 0x29ba9
decq %r12
cmpq $0x7fb, %r12            # imm = 0x7FB
jne 0x29b8b
movl $0x800, %r12d           # imm = 0x800
jmp 0x29bae
testq %r12, %r12
je 0x29bf7
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x29c16
addq %r12, %r14
subq %r12, %rbx
cmpq $0x800, %rbx            # imm = 0x800
ja 0x29b85
movq $0x0, 0x2808(%r15)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x6090
addq %rbx, 0x2808(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x9a17(%rip), %rdi      # 0x33615
leaq 0x8320(%rip), %rsi      # 0x31f25
leaq 0x9a14(%rip), %rcx      # 0x33620
movl $0xea5, %edx            # imm = 0xEA5
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::as_utf8_end(char*, unsigned long, wchar_t const*, unsigned long)
PUGI__FN void as_utf8_end(char* buffer, size_t size, const wchar_t* str, size_t length)
	{
		// convert to utf8
		uint8_t* begin = reinterpret_cast<uint8_t*>(buffer);
		uint8_t* end = wchar_decoder::process(str, length, begin, utf8_writer());

		assert(begin + size == end);
		(void)!end;
		(void)!size;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq %rdi, %rax
testq %rcx, %rcx
je 0x2a2e4
movq %rcx, %r15
movq %rdx, %r12
xorl %r13d, %r13d
movq %r14, %rax
movl (%r12,%r13,4), %esi
cmpl $0xffff, %esi           # imm = 0xFFFF
ja 0x2a2a6
movq %rax, %rdi
callq 0x28d0e
jmp 0x2a2dc
movl %esi, %ecx
shrl $0x12, %ecx
orb $-0x10, %cl
movb %cl, (%rax)
movl %esi, %ecx
shrl $0xc, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rax)
movl %esi, %ecx
shrl $0x6, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x2(%rax)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x3(%rax)
addq $0x4, %rax
incq %r13
cmpq %r13, %r15
jne 0x2a290
addq %rbx, %r14
cmpq %rax, %r14
jne 0x2a2f6
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x95c5(%rip), %rdi      # 0x338c2
leaq 0x7c21(%rip), %rsi      # 0x31f25
leaq 0x95cb(%rip), %rcx      # 0x338d6
movl $0x8f4, %edx            # imm = 0x8F4
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::document_order_comparator::operator()(pugi::xpath_node const&, pugi::xpath_node const&) const
bool operator()(const xpath_node& lhs, const xpath_node& rhs) const
		{
			// optimized document order based check
			const void* lo = document_buffer_order(lhs);
			const void* ro = document_buffer_order(rhs);

			if (lo && ro) return lo < ro;

			// slow comparison
			xml_node ln = lhs.node(), rn = rhs.node();

			// compare attributes
			if (lhs.attribute() && rhs.attribute())
			{
				// shared parent
				if (lhs.parent() == rhs.parent())
				{
					// determine sibling order
					for (xml_attribute a = lhs.attribute(); a; a = a.next_attribute())
						if (a == rhs.attribute())
							return true;

					return false;
				}

				// compare attribute parents
				ln = lhs.parent();
				rn = rhs.parent();
			}
			else if (lhs.attribute())
			{
				// attributes go after the parent element
				if (lhs.parent() == rhs.node()) return false;

				ln = lhs.parent();
			}
			else if (rhs.attribute())
			{
				// attributes go after the parent element
				if (rhs.parent() == lhs.node()) return true;

				rn = rhs.parent();
			}

			if (ln == rn) return false;

			if (!ln || !rn) return ln < rn;

			return node_is_before(ln.internal_object(), rn.internal_object());
		}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r12
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2a657
movq %rax, %r13
movq (%r12), %r14
movq 0x8(%r12), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x2a657
testq %r13, %r13
sete %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x2a57b
cmpq %rax, %r13
setb %al
jmp 0x2a5c2
testq %r15, %r15
je 0x2a5a9
testq %r12, %r12
je 0x2a5bb
cmpq %r14, %rbx
jne 0x2a5bb
cmpq %r12, %r15
je 0x2a650
movq 0x20(%r15), %r15
testq %r15, %r15
je 0x2a5a1
cmpq %r12, %r15
jne 0x2a593
testq %r15, %r15
setne %al
jmp 0x2a5c2
testq %r12, %r12
setne %cl
cmpq %rbx, %r14
sete %dl
movb $0x1, %al
testb %dl, %cl
jne 0x2a5c2
cmpq %r14, %rbx
jne 0x2a5cc
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
testq %rbx, %rbx
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
je 0x2a5e1
cmpq %r14, %rbx
jmp 0x2a576
movq %rbx, %rax
movq %r14, %rcx
movq %rcx, %rsi
movq %rax, %rdi
testq %rax, %rax
je 0x2a606
testq %rsi, %rsi
je 0x2a606
movq 0x18(%rdi), %rax
movq 0x18(%rsi), %rcx
cmpq %rcx, %rax
jne 0x2a5e7
jmp 0x2a642
testq %rdi, %rdi
sete %al
je 0x2a625
movq 0x18(%rdi), %rdi
movq 0x18(%rbx), %rbx
testq %rdi, %rdi
jne 0x2a60e
jmp 0x2a625
movq 0x18(%rsi), %rsi
movq 0x18(%r14), %r14
testq %rsi, %rsi
jne 0x2a61d
cmpq %r14, %rbx
je 0x2a5c2
movq %r14, %rsi
movq %rbx, %rdi
movq 0x18(%rbx), %rbx
movq 0x18(%r14), %r14
cmpq %r14, %rbx
jne 0x2a62f
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2a6da
movb $0x1, %al
jmp 0x2a5c2
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::node_is_before_sibling(pugi::xml_node_struct*, pugi::xml_node_struct*)
PUGI__FN bool node_is_before_sibling(xml_node_struct* ln, xml_node_struct* rn)
	{
		assert(ln->parent == rn->parent);

		// there is no common ancestor (the shared parent is null), nodes are from different documents
		if (!ln->parent) return ln < rn;

		// determine sibling order
		xml_node_struct* ls = ln;
		xml_node_struct* rs = rn;

		while (ls && rs)
		{
			if (ls == rn) return true;
			if (rs == ln) return false;

			ls = ls->next_sibling;
			rs = rs->next_sibling;
		}

		// if rn sibling chain ended ln must be before rn
		return !rs;
	}

// Assembly:
pushq %rax
movq 0x18(%rdi), %rax
cmpq 0x18(%rsi), %rax
jne 0x2a71f
testq %rax, %rax
je 0x2a717
movq %rsi, %rcx
movq %rdi, %rdx
cmpq %rsi, %rdx
sete %al
je 0x2a71d
cmpq %rdi, %rcx
je 0x2a71d
movq 0x30(%rdx), %rdx
movq 0x30(%rcx), %rcx
testq %rdx, %rdx
je 0x2a70f
testq %rcx, %rcx
jne 0x2a6f0
testq %rcx, %rcx
sete %al
jmp 0x2a71d
cmpq %rsi, %rdi
setb %al
popq %rcx
retq
leaq 0x9284(%rip), %rdi      # 0x339aa
leaq 0x77f8(%rip), %rsi      # 0x31f25
leaq 0x928f(%rip), %rcx      # 0x339c3
movl $0x1eda, %edx           # imm = 0x1EDA
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_allocator::release()
void release()
		{
			xpath_memory_block* cur = _root;
			assert(cur);

			while (cur->next)
			{
				xpath_memory_block* next = cur->next;

				xml_memory::deallocate(cur);

				cur = next;
			}
		}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x2a75f
movq (%rdi), %rax
testq %rax, %rax
je 0x2a75d
movq %rax, %rbx
callq *0x1c0fb(%rip)          # 0x46850
movq (%rbx), %rax
movq %rbx, %rdi
jmp 0x2a747
popq %rbx
retq
leaq 0x9425(%rip), %rdi      # 0x33b8b
leaq 0x77b8(%rip), %rsi      # 0x31f25
leaq 0x941b(%rip), %rcx      # 0x33b8f
movl $0x1db8, %edx           # imm = 0x1DB8
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/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();
				if (!rhs) return 0;

				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);
					if (!rhs) return 0;

					nextop = binary_op_t::parse(_lexer);
				}

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

				lhs = alloc_node(op.asttype, op.rettype, lhs, rhs);
				if (!lhs) return 0;

				op = binary_op_t::parse(_lexer);
			}

			return lhs;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r12d
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x2c7fa
movq %rax, %r15
testl %r15d, %r15d
setne %al
movl %r12d, 0xc(%rsp)
cmpl %r12d, %edx
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2bd2b
movl %edx, %ebp
movq %r13, 0x10(%rsp)
movq %r14, %rdi
callq 0x2a77e
movq %rbx, %rdi
callq 0x2aabc
testq %rax, %rax
je 0x2bd4a
movq %rax, %r13
movq %r14, %rdi
callq 0x2c7fa
testl %eax, %eax
setne %al
cmpl %ebp, %edx
setg %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2bc8b
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2bbe6
testq %rax, %rax
je 0x2bd4a
movq %rax, %r13
movq %r14, %rdi
callq 0x2c7fa
testl %eax, %eax
je 0x2bc8b
cmpl %ebp, %edx
jg 0x2bc64
cmpl $0xf, %r15d
jne 0x2bcc9
movq 0x10(%rsp), %rax
cmpb $0x1, 0x1(%rax)
jne 0x2bd30
cmpb $0x1, 0x1(%r13)
jne 0x2bd30
movq (%rbx), %rdi
movl $0x28, %esi
callq 0x2bfc0
testq %rax, %rax
je 0x2bd4a
movq %rax, %r12
movb $0xf, (%rax)
jmp 0x2bce1
movq (%rbx), %rdi
movl $0x28, %esi
callq 0x2bfc0
testq %rax, %rax
je 0x2bd4a
movq %rax, %r12
movb %r15b, (%rax)
shrq $0x20, %r15
movb %r15b, 0x1(%r12)
movw $0x0, 0x2(%r12)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%r12)
movq %r13, 0x10(%r12)
movq $0x0, 0x18(%r12)
movq %r14, %rdi
callq 0x2c7fa
movq %rax, %r15
testl %r15d, %r15d
je 0x2bd4d
movl %edx, %ebp
movq %r12, %r13
cmpl 0xc(%rsp), %edx
jge 0x2bc2a
jmp 0x2bd4d
movq %r13, %r12
jmp 0x2bd4d
movq 0x40(%rbx), %rax
leaq 0x8337(%rip), %rcx      # 0x34072
movq %rcx, (%rax)
movq 0x10(%rbx), %rcx
subq 0x30(%rbx), %rcx
movq %rcx, 0x8(%rax)
xorl %r12d, %r12d
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_parser::parse_location_path()
xpath_ast_node* parse_location_path()
		{
			if (_lexer.current() == lex_slash)
			{
				_lexer.next();

				xpath_ast_node* n = alloc_node(ast_step_root, xpath_type_node_set);
				if (!n) return 0;

				// relative location path can start from axis_attribute, dot, double_dot, multiply and string lexemes; any other lexeme means standalone root path
				lexeme_t l = _lexer.current();

				if (l == lex_string || l == lex_axis_attribute || l == lex_dot || l == lex_double_dot || l == lex_multiply)
					return parse_relative_location_path(n);
				else
					return n;
			}
			else if (_lexer.current() == lex_double_slash)
			{
				_lexer.next();

				xpath_ast_node* n = alloc_node(ast_step_root, xpath_type_node_set);
				if (!n) return 0;

				n = alloc_node(ast_step, n, axis_descendant_or_self, nodetest_type_node, 0);
				if (!n) return 0;

				return parse_relative_location_path(n);
			}

			// else clause moved outside of if because of bogus warning 'control may reach end of non-void function being inlined' in gcc 4.0.1
			return parse_relative_location_path(0);
		}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x8, %rdi
movl 0x28(%rbx), %eax
cmpl $0x11, %eax
je 0x2bdc4
cmpl $0x10, %eax
jne 0x2be26
callq 0x2a77e
movq (%rbx), %rdi
movl $0x28, %esi
callq 0x2bfc0
testq %rax, %rax
je 0x2be37
movl $0x139, (%rax)          # imm = 0x139
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
movl 0x28(%rbx), %ecx
cmpl $0x18, %ecx
ja 0x2be39
movl $0x1d00200, %edx        # imm = 0x1D00200
btl %ecx, %edx
jb 0x2be1e
jmp 0x2be39
callq 0x2a77e
movq (%rbx), %rdi
movl $0x28, %esi
callq 0x2bfc0
testq %rax, %rax
je 0x2be37
movq %rax, %r14
movl $0x139, (%rax)          # imm = 0x139
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
movq (%rbx), %rdi
movl $0x28, %esi
callq 0x2bfc0
testq %rax, %rax
je 0x2be37
movl $0x2050138, (%rax)      # imm = 0x2050138
movq %r14, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq %rbx, %rdi
movq %rax, %rsi
jmp 0x2be2b
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2bf3a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_parser::parse_node_test_type(pugi::impl::(anonymous namespace)::xpath_lexer_string const&)
nodetest_t parse_node_test_type(const xpath_lexer_string& name)
		{
			switch (name.begin[0])
			{
			case 'c':
				if (name == PUGIXML_TEXT("comment"))
					return nodetest_type_comment;

				break;

			case 'n':
				if (name == PUGIXML_TEXT("node"))
					return nodetest_type_node;

				break;

			case 'p':
				if (name == PUGIXML_TEXT("processing-instruction"))
					return nodetest_type_pi;

				break;

			case 't':
				if (name == PUGIXML_TEXT("text"))
					return nodetest_type_text;

				break;

			default:
				break;
			}

			return nodetest_none;
		}

// Assembly:
movzbl (%rdi), %eax
cmpl $0x6f, %eax
jg 0x2be95
cmpl $0x63, %eax
je 0x2bed4
cmpl $0x6e, %eax
jne 0x2bf30
subq %rdi, %rsi
je 0x2be7e
xorl %eax, %eax
leaq 0x7626(%rip), %rcx      # 0x33490
movb (%rax,%rcx), %dl
cmpb (%rdi,%rax), %dl
jne 0x2bf30
incq %rax
cmpq %rax, %rsi
jne 0x2be6a
leaq 0x760b(%rip), %rax      # 0x33490
cmpb $0x0, (%rsi,%rax)
jne 0x2bf30
movl $0x2, %eax
retq
cmpl $0x70, %eax
je 0x2bf05
cmpl $0x74, %eax
jne 0x2bf30
subq %rdi, %rsi
je 0x2bec1
xorl %eax, %eax
leaq 0x7d6b(%rip), %rcx      # 0x33c1c
movb (%rax,%rcx), %dl
cmpb (%rdi,%rax), %dl
jne 0x2bf30
incq %rax
cmpq %rax, %rsi
jne 0x2beb1
leaq 0x7d54(%rip), %rax      # 0x33c1c
cmpb $0x0, (%rsi,%rax)
jne 0x2bf30
movl $0x5, %eax
retq
subq %rdi, %rsi
je 0x2bef2
xorl %eax, %eax
leaq 0x6526(%rip), %rcx      # 0x32408
movb (%rax,%rcx), %dl
cmpb (%rdi,%rax), %dl
jne 0x2bf30
incq %rax
cmpq %rax, %rsi
jne 0x2bee2
leaq 0x650f(%rip), %rax      # 0x32408
cmpb $0x0, (%rsi,%rax)
jne 0x2bf30
movl $0x3, %eax
retq
subq %rdi, %rsi
je 0x2bf23
xorl %eax, %eax
leaq 0x7cf2(%rip), %rcx      # 0x33c05
movb (%rax,%rcx), %dl
cmpb (%rdi,%rax), %dl
jne 0x2bf30
incq %rax
cmpq %rax, %rsi
jne 0x2bf13
leaq 0x7cdb(%rip), %rax      # 0x33c05
cmpb $0x0, (%rsi,%rax)
je 0x2bf33
xorl %eax, %eax
retq
movl $0x4, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_parser::parse_relative_location_path(pugi::impl::(anonymous namespace)::xpath_ast_node*)
xpath_ast_node* parse_relative_location_path(xpath_ast_node* set)
		{
			xpath_ast_node* n = parse_step(set);
			if (!n) return 0;

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

				if (l == lex_double_slash)
				{
					n = alloc_node(ast_step, n, axis_descendant_or_self, nodetest_type_node, 0);
					if (!n) return 0;
				}

				n = parse_step(n);
				if (!n) return 0;
			}

			return n;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x2c0d8
testq %rax, %rax
je 0x2bfb3
movq %rax, %r14
leaq 0x8(%rbx), %r15
movl 0x28(%rbx), %eax
cmpl $0x11, %eax
je 0x2bf6a
cmpl $0x10, %eax
jne 0x2bfb6
movq %r15, %rdi
callq 0x2a77e
jmp 0x2bfa0
movq %r15, %rdi
callq 0x2a77e
movq (%rbx), %rdi
movl $0x28, %esi
callq 0x2bfc0
testq %rax, %rax
je 0x2bfb3
movl $0x2050138, (%rax)      # imm = 0x2050138
movq %r14, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq %rax, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2c0d8
movq %rax, %r14
testq %rax, %rax
jne 0x2bf53
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_allocator::allocate(unsigned long)
void* allocate(size_t size)
		{
			// round size up to block alignment boundary
			size = (size + xpath_memory_block_alignment - 1) & ~(xpath_memory_block_alignment - 1);

			if (_root_size + size <= _root->capacity)
			{
				void* buf = &_root->data[0] + _root_size;
				_root_size += size;
				return buf;
			}
			else
			{
				// make sure we have at least 1/4th of the page free after allocation to satisfy subsequent allocation requests
				size_t block_capacity_base = sizeof(_root->data);
				size_t block_capacity_req = size + block_capacity_base / 4;
				size_t block_capacity = (block_capacity_base > block_capacity_req) ? block_capacity_base : block_capacity_req;

				size_t block_size = block_capacity + offsetof(xpath_memory_block, data);

				xpath_memory_block* block = static_cast<xpath_memory_block*>(xml_memory::allocate(block_size));
				if (!block)
				{
					if (_error) *_error = true;
					return 0;
				}

				block->next = _root;
				block->capacity = block_capacity;

				_root = block;
				_root_size = size;

				return block->data;
			}
		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
addq $0x7, %r14
andq $-0x8, %r14
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
leaq (%rcx,%r14), %rdx
cmpq 0x8(%rax), %rdx
jbe 0x2c021
leaq 0x400(%r14), %rax
cmpq $0x1001, %rax           # imm = 0x1001
movl $0x1000, %r15d          # imm = 0x1000
cmovaeq %rax, %r15
leaq 0x10(%r15), %rdi
callq *0x1a853(%rip)          # 0x46858
testq %rax, %rax
je 0x2c02e
movq (%rbx), %rcx
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq %rax, (%rbx)
movq %r14, 0x8(%rbx)
addq $0x10, %rax
jmp 0x2c03c
addq %rcx, %rax
addq $0x10, %rax
movq %rdx, 0x8(%rbx)
jmp 0x2c03c
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x2c03a
movb $0x1, (%rax)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq