LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 0x29477
cmpq %rbx, %rsi
ja 0x29482
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 0xaea5(%rip), %rdi      # 0x3432e
leaq 0x9a65(%rip), %rsi      # 0x32ef5
leaq 0xaea0(%rip), %rcx      # 0x34337
movl $0x985, %edx            # imm = 0x985
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O1/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 0x296f8
movq (%r15), %rdx
subq %rsi, %rdx
jb 0x2970e
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 0xac19(%rip), %rdi      # 0x3432e
leaq 0x97d9(%rip), %rsi      # 0x32ef5
leaq 0xac54(%rip), %rcx      # 0x34377
movl $0x974, %edx            # imm = 0x974
callq 0x6120
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x29fe6
leaq 0x8b79(%rip), %rcx      # 0x32a68
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
testl %ebx, %ebx
je 0x2a02a
movb (%r14), %bpl
movq 0x2808(%r15), %rdx
cmpq $0x800, %rdx            # imm = 0x800
jb 0x29f2b
movq %r15, %rdi
movq %r15, %rsi
callq 0x2a3c8
movq $0x0, 0x2808(%r15)
xorl %edx, %edx
movb %bpl, (%r15,%rdx)
incq %rdx
movq %rdx, 0x2808(%r15)
decl %ebx
jne 0x29f00
jmp 0x2a02a
testl %ebx, %ebx
je 0x2a02a
movsbl (%r14), %esi
movsbl 0x1(%r14), %edx
movsbl 0x2(%r14), %ecx
movq %r15, %rdi
callq 0x23a72
decl %ebx
jne 0x29f4a
jmp 0x2a02a
testl %ebx, %ebx
je 0x2a02a
movsbl (%r14), %esi
movsbl 0x1(%r14), %edx
movsbl 0x2(%r14), %ecx
movsbl 0x3(%r14), %r8d
movq %r15, %rdi
callq 0x2a262
decl %ebx
jne 0x29f71
jmp 0x2a02a
testl %ebx, %ebx
je 0x2a02a
movb (%r14), %bpl
movb 0x1(%r14), %r12b
movq 0x2808(%r15), %rdx
cmpq $0x7ff, %rdx            # imm = 0x7FF
jb 0x29fcc
movq %r15, %rdi
movq %r15, %rsi
callq 0x2a3c8
movq $0x0, 0x2808(%r15)
xorl %edx, %edx
movb %bpl, (%r15,%rdx)
movb %r12b, 0x1(%r15,%rdx)
addq $0x2, %rdx
movq %rdx, 0x2808(%r15)
decl %ebx
jne 0x29f9d
jmp 0x2a02a
testl %ebx, %ebx
je 0x2a02a
movq %rdx, %r12
movq 0x2808(%r15), %rdi
leaq (%rdi,%r12), %r13
cmpq $0x800, %r13            # imm = 0x800
ja 0x2a018
addq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x6090
movq %r13, 0x2808(%r15)
jmp 0x2a026
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2a2c8
decl %ebx
jne 0x29fed
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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:
movq %rsi, %rax
testb $0x10, %cl
jne 0x2a047
cmpb $0x0, (%rax)
jne 0x2a04f
retq
movq %rax, %rsi
jmp 0x23ad0
pushq %rax
movl %edx, %esi
movq %rax, %rdx
callq 0x790e
addq $0x8, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2a1db
movl %r9d, %ebx
movl %r8d, %r14d
movq %rdi, %r12
movl %r8d, %ebp
andl $0x44, %ebp
incl %ebx
leaq 0xa559(%rip), %r15      # 0x345f5
cmpl $0x40, %ebp
jne 0x2a0f1
movq 0x2808(%r12), %rdx
cmpq $0x800, %rdx            # imm = 0x800
jb 0x2a0cb
movq %r12, %rdi
movq %r12, %rsi
callq 0x2a3c8
movq $0x0, 0x2808(%r12)
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 0x29ec7
jmp 0x2a12b
movq 0x2808(%r12), %rdx
cmpq $0x800, %rdx            # imm = 0x800
jb 0x2a11b
movq %r12, %rdi
movq %r12, %rsi
callq 0x2a3c8
movq $0x0, 0x2808(%r12)
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 0x23ad0
movq 0x2808(%r12), %rdx
cmpq $0x7ff, %rdx            # imm = 0x7FF
jb 0x2a168
movq %r12, %rdi
movq %r12, %rsi
callq 0x2a3c8
movq $0x0, 0x2808(%r12)
xorl %edx, %edx
movw $0x223d, (%r12,%rdx)    # imm = 0x223D
addq $0x2, %rdx
movq %rdx, 0x2808(%r12)
movq 0x10(%r13), %rsi
testq %rsi, %rsi
je 0x2a194
movq %r12, %rdi
movl $0x2, %edx
movl %r14d, %ecx
callq 0x2a039
movq 0x2808(%r12), %rdx
cmpq $0x800, %rdx            # imm = 0x800
jb 0x2a1be
movq %r12, %rdi
movq %r12, %rsi
callq 0x2a3c8
movq $0x0, 0x2808(%r12)
xorl %edx, %edx
movb $0x22, (%r12,%rdx)
incq %rdx
movq %rdx, 0x2808(%r12)
movq 0x20(%r13), %r13
testq %r13, %r13
jne 0x2a09c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2a22f
movq %r14, %rdi
movq %r14, %rsi
callq 0x2a3c8
movq $0x0, 0x2808(%r14)
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
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2a2a0
movq %r14, %rdi
movq %r14, %rsi
callq 0x2a3c8
movq $0x0, 0x2808(%r14)
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
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2a3c8
movq $0x0, 0x2808(%r15)
cmpq $0x801, %rbx            # imm = 0x801
jb 0x2a380
cmpl $0x1, 0x2810(%r15)
jne 0x2a32b
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, %eax            # imm = 0x7FF
movb (%r14,%rax), %cl
andb $-0x40, %cl
cmpb $-0x80, %cl
cmovneq %rax, %r12
negb %cl
jno 0x2a353
decq %rax
cmpq $0x7fb, %rax            # imm = 0x7FB
jne 0x2a330
movl $0x800, %r12d           # imm = 0x800
testq %r12, %r12
je 0x2a3a8
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2a3c8
addq %r12, %r14
subq %r12, %rbx
cmpq $0x800, %rbx            # imm = 0x800
ja 0x2a32b
movq $0x0, 0x2808(%r15)
movq 0x2808(%r15), %rdi
addq %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 0xa33c(%rip), %rdi      # 0x346eb
leaq 0x8b3f(%rip), %rsi      # 0x32ef5
leaq 0xa339(%rip), %rcx      # 0x346f6
movl $0xea5, %edx            # imm = 0xEA5
callq 0x6120
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2aa96
movq %rcx, %r15
movq %rdx, %r12
xorl %r13d, %r13d
movq %r14, %rax
movl (%r12,%r13,4), %esi
cmpl $0xffff, %esi           # imm = 0xFFFF
ja 0x2aa58
movq %rax, %rdi
callq 0x29088
jmp 0x2aa8e
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 0x2aa42
addq %rbx, %r14
cmpq %rax, %r14
jne 0x2aaa8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x9ee9(%rip), %rdi      # 0x34998
leaq 0x843f(%rip), %rsi      # 0x32ef5
leaq 0x9eef(%rip), %rcx      # 0x349ac
movl $0x8f4, %edx            # imm = 0x8F4
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x2ae02
movq %rax, %r15
movq %rbx, %rdi
callq 0x2ae02
testq %r15, %r15
sete %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x2ad06
cmpq %rax, %r15
setb %al
jmp 0x2adfc
movq (%r14), %rdi
movq 0x8(%r14), %rsi
movq 0x8(%rbx), %rax
xorl %ecx, %ecx
movl $0x0, %edx
testq %rax, %rax
jne 0x2ad20
movq (%rbx), %rdx
testq %rsi, %rsi
cmoveq %rdi, %rcx
je 0x2ad4a
testq %rax, %rax
je 0x2ad3b
movq (%r14), %rcx
cmpq (%rbx), %rcx
je 0x2ad97
movq (%r14), %rcx
jmp 0x2ad54
testq %rsi, %rsi
je 0x2ad4a
cmpq %rdx, (%r14)
je 0x2ad8b
movq (%r14), %rcx
jmp 0x2ad57
testq %rax, %rax
je 0x2ad57
cmpq %rdi, (%rbx)
je 0x2adb2
movq (%rbx), %rdx
cmpq %rdx, %rcx
je 0x2ad8b
testq %rdx, %rdx
je 0x2ad8f
testq %rcx, %rcx
je 0x2ad8f
movq %rcx, %rax
movq %rdx, %r8
movq %r8, %rsi
movq %rax, %rdi
testq %rax, %rax
je 0x2adb6
testq %rsi, %rsi
je 0x2adb6
movq 0x18(%rdi), %rax
movq 0x18(%rsi), %r8
cmpq %r8, %rax
jne 0x2ad6c
jmp 0x2adf2
xorl %eax, %eax
jmp 0x2adfc
cmpq %rdx, %rcx
jmp 0x2acfe
cmpq %rax, %rsi
je 0x2adb2
movq 0x20(%rsi), %rsi
testq %rsi, %rsi
je 0x2adaa
cmpq %rax, %rsi
jne 0x2ad9c
testq %rsi, %rsi
setne %al
jmp 0x2adfc
movb $0x1, %al
jmp 0x2adfc
testq %rdi, %rdi
sete %al
je 0x2add5
movq 0x18(%rdi), %rdi
movq 0x18(%rcx), %rcx
testq %rdi, %rdi
jne 0x2adbe
jmp 0x2add5
movq 0x18(%rsi), %rsi
movq 0x18(%rdx), %rdx
testq %rsi, %rsi
jne 0x2adcd
cmpq %rdx, %rcx
je 0x2adfc
movq %rdx, %rsi
movq %rcx, %rdi
movq 0x18(%rcx), %rcx
movq 0x18(%rdx), %rdx
cmpq %rdx, %rcx
jne 0x2addf
popq %rbx
popq %r14
popq %r15
jmp 0x2ae91
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2aeeb
testq %rax, %rax
je 0x2aee3
testq %rdi, %rdi
sete %cl
testq %rsi, %rsi
setne %al
sete %dl
orb %cl, %dl
jne 0x2aedf
movq %rsi, %rcx
movq %rdi, %rdx
cmpq %rsi, %rdx
sete %al
je 0x2aee9
cmpq %rdi, %rcx
je 0x2aee9
movq 0x30(%rdx), %rdx
movq 0x30(%rcx), %rcx
testq %rcx, %rcx
setne %al
testq %rdx, %rdx
je 0x2aedf
testq %rcx, %rcx
jne 0x2aeba
xorb $0x1, %al
jmp 0x2aee9
cmpq %rsi, %rdi
setb %al
popq %rcx
retq
leaq 0x9b8e(%rip), %rdi      # 0x34a80
leaq 0x7ffc(%rip), %rsi      # 0x32ef5
leaq 0x9b99(%rip), %rcx      # 0x34a99
movl $0x1eda, %edx           # imm = 0x1EDA
callq 0x6120
// File: /workspace/github_cpp_makefile_star2_O1/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
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x2af2e
movq (%rdi), %rax
testq %rax, %rax
je 0x2af2c
movq %rax, %rbx
callq *0x1c92c(%rip)          # 0x47850
movq (%rbx), %rax
movq %rbx, %rdi
jmp 0x2af16
popq %rbx
retq
leaq 0x9d2c(%rip), %rdi      # 0x34c61
leaq 0x7fb9(%rip), %rsi      # 0x32ef5
leaq 0x9d22(%rip), %rcx      # 0x34c65
movl $0x1db8, %edx           # imm = 0x1DB8
callq 0x6120
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %rax
movl %edx, 0x4(%rsp)
movq %rsi, %r12
movq %rdi, %r14
leaq 0x8(%rdi), %r15
movq %r15, %rdi
callq 0x2cc32
movq %rax, %r13
movl %edx, %ebp
testl %r13d, %r13d
je 0x2c2bb
cmpl 0x4(%rsp), %ebp
jl 0x2c2bb
movq %r15, %rdi
callq 0x2af4e
movq %r14, %rdi
callq 0x2b296
testq %rax, %rax
je 0x2c28e
movq %rax, %rbx
movq %r15, %rdi
callq 0x2cc32
testl %eax, %eax
je 0x2c226
cmpl %ebp, %edx
jle 0x2c226
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2c1b4
jmp 0x2c1fd
cmpl $0xf, %r13d
jne 0x2c23a
cmpb $0x1, 0x1(%r12)
jne 0x2c274
cmpb $0x1, 0x1(%rbx)
jne 0x2c274
movq (%r14), %rdi
movl $0x28, %esi
callq 0x2c52c
testq %rax, %rax
je 0x2c292
movq %r13, %rcx
shrq $0x20, %rcx
movb %r13b, (%rax)
movb %cl, 0x1(%rax)
movw $0x0, 0x2(%rax)
movq %r12, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq $0x0, 0x18(%rax)
movq %rax, %r12
jmp 0x2c295
movq 0x40(%r14), %rax
leaq 0x8f9d(%rip), %rcx      # 0x3521c
movq %rcx, (%rax)
movq 0x10(%r14), %rcx
subq 0x30(%r14), %rcx
movq %rcx, 0x8(%rax)
xorl %eax, %eax
jmp 0x2c2b0
xorl %r12d, %r12d
testq %r12, %r12
je 0x2c2ab
movq %r15, %rdi
callq 0x2cc32
movq %rax, %r13
movl %edx, %ebp
movb $0x1, %al
jmp 0x2c2b0
xorl %eax, %eax
xorl %r12d, %r12d
testb %al, %al
jne 0x2c1da
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2c314
cmpl $0x10, %eax
jne 0x2c345
callq 0x2af4e
movq (%rbx), %rdi
movl $0x28, %esi
callq 0x2c52c
testq %rax, %rax
je 0x2c34c
movl $0x139, (%rax)          # imm = 0x139
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
jmp 0x2c34e
callq 0x2af4e
movq (%rbx), %rdi
movl $0x28, %esi
callq 0x2c52c
testq %rax, %rax
je 0x2c367
movq %rax, %r14
movl $0x139, (%rax)          # imm = 0x139
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movq $0x0, 0x18(%rax)
jmp 0x2c36a
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x2c3a9
xorl %eax, %eax
testq %rax, %rax
je 0x2c3b5
movl 0x28(%rbx), %ecx
cmpl $0x18, %ecx
ja 0x2c3b7
movl $0x1d00200, %edx        # imm = 0x1D00200
btl %ecx, %edx
jb 0x2c3a3
jmp 0x2c3b7
xorl %r14d, %r14d
testq %r14, %r14
je 0x2c3b5
movq (%rbx), %rdi
movl $0x28, %esi
callq 0x2c52c
testq %rax, %rax
je 0x2c39c
movl $0x2050138, (%rax)      # imm = 0x2050138
movq %r14, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
jmp 0x2c39e
xorl %eax, %eax
testq %rax, %rax
je 0x2c3b5
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2c43a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rax
movq (%rdi), %rax
movzbl (%rax), %eax
cmpl $0x6f, %eax
jg 0x2c3eb
cmpl $0x63, %eax
je 0x2c40a
cmpl $0x6e, %eax
jne 0x2c436
leaq 0x8189(%rip), %rsi      # 0x34566
callq 0x2c4da
movl %eax, %ecx
movl $0x2, %eax
jmp 0x2c432
cmpl $0x70, %eax
je 0x2c41f
cmpl $0x74, %eax
jne 0x2c436
leaq 0x88f6(%rip), %rsi      # 0x34cf2
callq 0x2c4da
movl %eax, %ecx
movl $0x5, %eax
jmp 0x2c432
leaq 0x6fc7(%rip), %rsi      # 0x333d8
callq 0x2c4da
movl %eax, %ecx
movl $0x3, %eax
jmp 0x2c432
leaq 0x88b5(%rip), %rsi      # 0x34cdb
callq 0x2c4da
movl %eax, %ecx
movl $0x4, %eax
testb %cl, %cl
jne 0x2c438
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x2c644
testq %rax, %rax
je 0x2c4c8
movq %rax, %r14
leaq 0x8(%rbx), %r15
movl 0x28(%rbx), %ebp
movl %ebp, %eax
andl $-0x2, %eax
cmpl $0x10, %eax
jne 0x2c4cb
movq %r15, %rdi
callq 0x2af4e
cmpl $0x11, %ebp
jne 0x2c4a7
movq (%rbx), %rdi
movl $0x28, %esi
callq 0x2c52c
testq %rax, %rax
je 0x2c49f
movl $0x2050138, (%rax)      # imm = 0x2050138
movq %r14, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq %rax, %r14
jmp 0x2c4a2
xorl %r14d, %r14d
testq %r14, %r14
je 0x2c4c1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2c644
movq %rax, %r14
testq %rax, %rax
setne %al
testb %al, %al
jne 0x2c455
jmp 0x2c4c8
xorl %r14d, %r14d
xorl %eax, %eax
jmp 0x2c4bb
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2c58d
leaq 0x400(%r14), %rax
cmpq $0x1001, %rax           # imm = 0x1001
movl $0x1000, %r15d          # imm = 0x1000
cmovaeq %rax, %r15
leaq 0x10(%r15), %rdi
callq *0x1b2e7(%rip)          # 0x47858
testq %rax, %rax
je 0x2c59a
movq (%rbx), %rcx
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq %rax, (%rbx)
movq %r14, 0x8(%rbx)
addq $0x10, %rax
jmp 0x2c5a8
addq %rcx, %rax
addq $0x10, %rax
movq %rdx, 0x8(%rbx)
jmp 0x2c5a8
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x2c5a6
movb $0x1, (%rax)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::convert_string_to_number(char const*)
PUGI__FN bool check_string_to_number_format(const char_t* string)
	{
		// parse leading whitespace
		while (PUGI__IS_CHARTYPE(*string, ct_space)) ++string;

		// parse sign
		if (*string == '-') ++string;

		if (!*string) return false;

		// if there is no integer part, there should be a decimal part with at least one digit
		if (!PUGI__IS_CHARTYPEX(string[0], ctx_digit) && (string[0] != '.' || !PUGI__IS_CHARTYPEX(string[1], ctx_digit))) return false;

		// parse integer part
		while (PUGI__IS_CHARTYPEX(*string, ctx_digit)) ++string;

		// parse decimal part
		if (*string == '.')
		{
			++string;

			while (PUGI__IS_CHARTYPEX(*string, ctx_digit)) ++string;
		}

		// parse trailing whitespace
		while (PUGI__IS_CHARTYPE(*string, ct_space)) ++string;

		return *string == 0;
	}

// Assembly:
leaq -0x2(%rdi), %rax
leaq 0x66c7(%rip), %rcx      # 0x32c80
movzbl 0x2(%rax), %esi
incq %rax
testb $0x8, (%rsi,%rcx)
jne 0x2c5b9
xorl %edx, %edx
cmpb $0x2d, %sil
sete %dl
movzbl 0x1(%rax,%rdx), %esi
testq %rsi, %rsi
je 0x2c634
leaq -0x3a(%rsi), %r8
cmpq $-0xb, %r8
ja 0x2c5f7
cmpl $0x2e, %esi
jne 0x2c634
movzbl 0x2(%rax,%rdx), %esi
addq $-0x3a, %rsi
cmpq $-0xa, %rsi
jb 0x2c634
movzbl 0x1(%rax,%rdx), %esi
leaq -0x3a(%rsi), %r8
incq %rax
cmpq $-0xb, %r8
ja 0x2c5f7
cmpb $0x2e, %sil
jne 0x2c621
movzbl 0x1(%rax,%rdx), %esi
addq $-0x3a, %rsi
incq %rax
cmpq $-0xb, %rsi
ja 0x2c60f
addq %rdx, %rax
movzbl (%rax), %edx
incq %rax
testb $0x8, (%rdx,%rcx)
jne 0x2c624
testb %dl, %dl
je 0x2c63d
movsd 0x6144(%rip), %xmm0     # 0x32780
retq
xorl %esi, %esi
jmp 0x6840
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_ast_node::is_posinv_expr() const
bool is_posinv_expr() const
		{
			switch (_type)
			{
			case ast_func_position:
			case ast_func_last:
				return false;

			case ast_string_constant:
			case ast_number_constant:
			case ast_variable:
				return true;

			case ast_step:
			case ast_step_root:
				return true;

			case ast_predicate:
			case ast_filter:
				return true;

			default:
				if (_left && !_left->is_posinv_expr()) return false;

				for (xpath_ast_node* n = _right; n; n = n->_next)
					if (!n->is_posinv_expr()) return false;

				return true;
			}
		}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb (%rdi), %cl
addb $-0x10, %cl
cmpb $0x2a, %cl
jae 0x2ce17
movzbl %cl, %eax
movabsq $0x3000000007f, %rdx    # imm = 0x3000000007F
btq %rax, %rdx
jae 0x2ce17
movabsq $0x3000000001f, %rbx    # imm = 0x3000000001F
shrq %cl, %rbx
jmp 0x2ce49
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x2ce29
callq 0x2cde4
testb %al, %al
je 0x2ce47
movq 0x10(%rbx), %r14
testq %r14, %r14
sete %bl
je 0x2ce49
movq %r14, %rdi
callq 0x2cde4
testb %al, %al
je 0x2ce49
movq 0x18(%r14), %r14
jmp 0x2ce2d
xorl %ebx, %ebx
andb $0x1, %bl
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_ast_node::is_posinv_step() const
bool is_posinv_step() const
		{
			assert(_type == ast_step);

			for (xpath_ast_node* n = _right; n; n = n->_next)
			{
				assert(n->_type == ast_predicate);

				if (n->_test != predicate_posinv)
					return false;
			}

			return true;
		}

// Assembly:
pushq %rax
cmpb $0x38, (%rdi)
jne 0x2ce9c
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
sete %al
je 0x2ce79
cmpb $0x10, (%rcx)
jne 0x2ce7d
cmpb $0x1, 0x3(%rcx)
jne 0x2ce79
movq 0x18(%rcx), %rcx
jmp 0x2ce60
andb $0x1, %al
popq %rcx
retq
leaq 0x84a3(%rip), %rdi      # 0x35327
leaq 0x606a(%rip), %rsi      # 0x32ef5
leaq 0x8446(%rip), %rcx      # 0x352d8
movl $0x2ad5, %edx           # imm = 0x2AD5
callq 0x6120
leaq 0x8423(%rip), %rdi      # 0x352c6
leaq 0x604b(%rip), %rsi      # 0x32ef5
leaq 0x8427(%rip), %rcx      # 0x352d8
movl $0x2ad1, %edx           # imm = 0x2AD1
callq 0x6120
nop
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_string::append(pugi::impl::(anonymous namespace)::xpath_string const&, pugi::impl::(anonymous namespace)::xpath_allocator*)
void append(const xpath_string& o, xpath_allocator* alloc)
		{
			// skip empty sources
			if (!*o._buffer) return;

			// fast append for constant empty target and constant source
			if (!*_buffer && !_uses_heap && !o._uses_heap)
			{
				_buffer = o._buffer;
			}
			else
			{
				// need to make heap copy
				size_t target_length = length();
				size_t source_length = o.length();
				size_t result_length = target_length + source_length;

				// allocate new buffer
				char_t* result = static_cast<char_t*>(alloc->reallocate(_uses_heap ? const_cast<char_t*>(_buffer) : 0, (target_length + 1) * sizeof(char_t), (result_length + 1) * sizeof(char_t)));
				if (!result) return;

				// append first string to the new buffer in case there was no reallocation
				if (!_uses_heap) memcpy(result, _buffer, target_length * sizeof(char_t));

				// append second string to the new buffer
				memcpy(result + target_length, o._buffer, source_length * sizeof(char_t));
				result[result_length] = 0;

				// finalize
				_buffer = result;
				_uses_heap = true;
				_length_heap = result_length;
			}
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %rax
cmpb $0x0, (%rax)
je 0x2d9c7
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rdi
cmpb $0x0, (%rdi)
jne 0x2d939
cmpb $0x0, 0x8(%rbx)
jne 0x2d939
cmpb $0x0, 0x8(%r14)
je 0x2d9d6
cmpb $0x1, 0x8(%rbx)
jne 0x2d945
movq 0x10(%rbx), %r12
jmp 0x2d94d
callq 0x1d2a2
movq %rax, %r12
cmpb $0x1, 0x8(%r14)
jne 0x2d95a
movq 0x10(%r14), %r13
jmp 0x2d965
movq (%r14), %rdi
callq 0x1d2a2
movq %rax, %r13
cmpb $0x0, 0x8(%rbx)
je 0x2d970
movq (%rbx), %rsi
jmp 0x2d972
xorl %esi, %esi
leaq 0x1(%r12), %rdx
leaq (%r12,%r13), %rcx
incq %rcx
movq %r15, %rdi
callq 0x2d9dc
testq %rax, %rax
je 0x2d9c7
movq %rax, %r15
leaq (%r12,%r13), %rbp
cmpb $0x0, 0x8(%rbx)
jne 0x2d9a6
movq (%rbx), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x6090
movq %r15, %rdi
addq %r12, %rdi
movq (%r14), %rsi
movq %r13, %rdx
callq 0x6090
movb $0x0, (%r15,%rbp)
movq %r15, (%rbx)
movb $0x1, 0x8(%rbx)
movq %rbp, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, (%rbx)
jmp 0x2d9c7
nop
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_string::from_heap(char const*, char const*, pugi::impl::(anonymous namespace)::xpath_allocator*)
static xpath_string from_heap(const char_t* begin, const char_t* end, xpath_allocator* alloc)
		{
			assert(begin <= end);

			if (begin == end)
				return xpath_string();

			size_t length = static_cast<size_t>(end - begin);
			const char_t* data = duplicate_string(begin, length, alloc);

			return data ? xpath_string(data, true, length) : xpath_string();
		}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpq %rdx, %rsi
ja 0x2dd3c
movq %rdi, %rbx
je 0x2dd17
movq %rdx, %r14
movq %rsi, %r15
subq %rsi, %r14
leaq 0x1(%r14), %rsi
movq %rcx, %rdi
callq 0x2c52c
testq %rax, %rax
je 0x2dd02
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x6090
movb $0x0, (%r12,%r14)
jmp 0x2dd05
xorl %r12d, %r12d
testq %r12, %r12
je 0x2dd17
movq %r12, (%rbx)
movb $0x1, 0x8(%rbx)
movq %r14, 0x10(%rbx)
jmp 0x2dd2d
leaq 0x33eb(%rip), %rax      # 0x31109
movq %rax, (%rbx)
movb $0x0, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x7d71(%rip), %rdi      # 0x35ab4
leaq 0x51ab(%rip), %rsi      # 0x32ef5
leaq 0x7d70(%rip), %rcx      # 0x35ac1
movl $0x1e19, %edx           # imm = 0x1E19
callq 0x6120
nop
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_string::data(pugi::impl::(anonymous namespace)::xpath_allocator*)
char_t* data(xpath_allocator* alloc)
		{
			// make private heap copy
			if (!_uses_heap)
			{
				size_t length_ = strlength(_buffer);
				const char_t* data_ = duplicate_string(_buffer, length_, alloc);

				if (!data_) return 0;

				_buffer = data_;
				_uses_heap = true;
				_length_heap = length_;
			}

			return const_cast<char_t*>(_buffer);
		}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0x8(%rdi)
jne 0x2ddba
movq %rsi, %r15
movq (%rbx), %rdi
callq 0x1d2a2
movq %rax, %r14
movq (%rbx), %r12
leaq 0x1(%rax), %rsi
movq %r15, %rdi
callq 0x2c52c
testq %rax, %rax
je 0x2dda7
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x6090
movb $0x0, (%r15,%r14)
jmp 0x2ddaa
xorl %r15d, %r15d
testq %r15, %r15
je 0x2ddc9
movq %r15, (%rbx)
movb $0x1, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movq (%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %eax, %eax
jmp 0x2ddbd
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::normalize_space(char*)
PUGI__FN char_t* normalize_space(char_t* buffer)
	{
		char_t* write = buffer;

		for (char_t* it = buffer; *it; )
		{
			char_t ch = *it++;

			if (PUGI__IS_CHARTYPE(ch, ct_space))
			{
				// replace whitespace sequence with single space
				while (PUGI__IS_CHARTYPE(*it, ct_space)) it++;

				// avoid leading spaces
				if (write != buffer) *write++ = ' ';
			}
			else *write++ = ch;
		}

		// remove trailing space
		if (write != buffer && PUGI__IS_CHARTYPE(write[-1], ct_space)) write--;

		// zero-terminate
		*write = 0;

		return write;
	}

// Assembly:
movb (%rdi), %sil
movq %rdi, %rax
testb %sil, %sil
je 0x2de18
leaq 0x4ea1(%rip), %rcx      # 0x32c80
movq %rdi, %rax
movq %rdi, %rdx
movzbl %sil, %r8d
testb $0x8, (%r8,%rcx)
jne 0x2ddf5
incq %rdx
jmp 0x2de0a
movzbl 0x1(%rdx), %esi
incq %rdx
testb $0x8, (%rsi,%rcx)
jne 0x2ddf5
movb $0x20, %sil
cmpq %rdi, %rax
je 0x2de10
movb %sil, (%rax)
incq %rax
movb (%rdx), %sil
testb %sil, %sil
jne 0x2dde5
cmpq %rdi, %rax
je 0x2de34
leaq -0x1(%rax), %rcx
movzbl -0x1(%rax), %edx
leaq 0x4e54(%rip), %rsi      # 0x32c80
testb $0x8, (%rdx,%rsi)
cmovneq %rcx, %rax
movb $0x0, (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.hpp
// Function: pugi::xml_attribute pugi::xml_node::find_attribute<pugi::impl::(anonymous namespace)::namespace_uri_predicate>(pugi::impl::(anonymous namespace)::namespace_uri_predicate) const
xml_attribute find_attribute(Predicate pred) const
		{
			if (!_root) return xml_attribute();

			for (xml_attribute attrib = first_attribute(); attrib; attrib = attrib.next_attribute())
				if (pred(attrib))
					return attrib;

			return xml_attribute();
		}

// Assembly:
movq (%rdi), %rax
testq %rax, %rax
je 0x2df2e
pushq %rbp
pushq %rbx
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x2df29
leaq -0x1(%rdx), %rcx
leaq 0x326f(%rip), %rdi      # 0x31109
leaq 0x79e3(%rip), %r8       # 0x35884
movq 0x8(%rax), %r9
testq %r9, %r9
cmoveq %rdi, %r9
cmpb $0x78, (%r9)
jne 0x2df1c
xorl %r10d, %r10d
movb 0x1(%r10,%r8), %r11b
cmpq $0x4, %r10
je 0x2dece
leaq 0x1(%r10), %rbx
cmpb %r11b, 0x1(%r9,%r10)
movq %rbx, %r10
je 0x2deb5
testb %r11b, %r11b
jne 0x2df1c
leaq 0x5(%r9), %r10
testq %rsi, %rsi
je 0x2df16
cmpb $0x3a, (%r10)
jne 0x2df1c
leaq 0x6(%r9), %r10
testq %rdx, %rdx
je 0x2df13
movb (%r10), %r11b
cmpb (%rsi), %r11b
jne 0x2df1c
xorl %r11d, %r11d
cmpq %r11, %rcx
je 0x2df13
movb 0x7(%r9,%r11), %bpl
leaq 0x1(%r11), %rbx
cmpb 0x1(%rsi,%r11), %bpl
movq %rbx, %r11
je 0x2def6
cmpq %rdx, %rbx
jb 0x2df1c
addq %rdx, %r10
cmpb $0x0, (%r10)
je 0x2df2b
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x2dea1
xorl %eax, %eax
popq %rbx
popq %rbp
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_node_set_raw::append(pugi::xpath_node const*, pugi::xpath_node const*, pugi::impl::(anonymous namespace)::xpath_allocator*)
void append(const xpath_node* begin_, const xpath_node* end_, xpath_allocator* alloc)
		{
			if (begin_ == end_) return;

			size_t size_ = static_cast<size_t>(_end - _begin);
			size_t capacity = static_cast<size_t>(_eos - _begin);
			size_t count = static_cast<size_t>(end_ - begin_);

			if (size_ + count > capacity)
			{
				// reallocate the old array or allocate a new one
				xpath_node* data = static_cast<xpath_node*>(alloc->reallocate(_begin, capacity * sizeof(xpath_node), (size_ + count) * sizeof(xpath_node)));
				if (!data) return;

				// finalize
				_begin = data;
				_end = data + size_;
				_eos = data + size_ + count;
			}

			memcpy(_end, begin_, count * sizeof(xpath_node));
			_end += count;
		}

// Assembly:
cmpq %rdx, %rsi
je 0x2dfc2
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %r12
subq %rsi, %r12
movq %r12, %rdi
sarq $0x4, %rdi
movq 0x18(%r14), %rdx
subq %rsi, %rdx
movq %rdx, %r8
sarq $0x4, %r8
subq %r15, %rbx
movq %rbx, %rax
sarq $0x4, %rax
addq %rdi, %rax
cmpq %r8, %rax
jbe 0x2dfa4
shlq $0x4, %rax
movq %rcx, %rdi
movq %rax, %rcx
callq 0x2d9dc
testq %rax, %rax
je 0x2dfb7
movq %rax, 0x8(%r14)
addq %rax, %r12
movq %r12, 0x10(%r14)
addq %rbx, %r12
movq %r12, 0x18(%r14)
movq 0x10(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x6090
addq %rbx, 0x10(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: void pugi::impl::(anonymous namespace)::xpath_ast_node::step_fill<pugi::impl::(anonymous namespace)::axis_to_type<(pugi::impl::(anonymous namespace)::axis_t)6>>(pugi::impl::(anonymous namespace)::xpath_node_set_raw&, pugi::xpath_node const&, pugi::impl::(anonymous namespace)::xpath_allocator*, bool, pugi::impl::(anonymous namespace)::axis_to_type<(pugi::impl::(anonymous namespace)::axis_t)6>)
void step_fill(xpath_node_set_raw& ns, const xpath_node& xn, xpath_allocator* alloc, bool once, T v)
		{
			const axis_t axis = T::axis;
			const bool axis_has_attributes = (axis == axis_ancestor || axis == axis_ancestor_or_self || axis == axis_descendant_or_self || axis == axis_following || axis == axis_parent || axis == axis_preceding || axis == axis_self);

			if (xn.node())
				step_fill(ns, xn.node().internal_object(), alloc, once, v);
			else if (axis_has_attributes && xn.attribute() && xn.parent())
				step_fill(ns, xn.attribute().internal_object(), xn.parent().internal_object(), alloc, once, v);
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq (%rdx), %rax
movq 0x8(%rdx), %rcx
testq %rcx, %rcx
sete %sil
testq %rax, %rax
setne %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0x2fb31
movq 0x30(%rax), %r13
testq %r13, %r13
jne 0x2fb8a
movq 0x18(%rax), %rax
testq %rax, %rax
jne 0x2fb1d
jmp 0x2fb7b
testq %rcx, %rcx
je 0x2fb7b
cmpq $0x0, (%rdx)
je 0x2fb7b
movq (%rdx), %rcx
testq %rcx, %rcx
je 0x2fb7b
movq 0x20(%rcx), %r13
testq %r13, %r13
jne 0x2fb61
jmp 0x2fb58
movq 0x18(%rcx), %rcx
testq %rcx, %rcx
je 0x2fb7b
movq 0x30(%rcx), %r13
testq %r13, %r13
je 0x2fb4f
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x2f4f8
andb %bl, %al
movq %r13, %rcx
cmpb $0x1, %al
jne 0x2fb3f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x2f4f8
testb %bl, %al
jne 0x2fb7b
movq 0x20(%r13), %rbp
testq %rbp, %rbp
jne 0x2fbbc
jmp 0x2fbb3
movq 0x18(%r13), %r13
testq %r13, %r13
je 0x2fb7b
movq 0x30(%r13), %rbp
testq %rbp, %rbp
je 0x2fbaa
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %r14, %rcx
callq 0x2f4f8
movq %rbp, %r13
jmp 0x2fb9b
// File: /workspace/github_cpp_makefile_star2_O1/jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xpath_node_set_raw::push_back_grow(pugi::xpath_node const&, pugi::impl::(anonymous namespace)::xpath_allocator*)
PUGI__FN_NO_INLINE void xpath_node_set_raw::push_back_grow(const xpath_node& node, xpath_allocator* alloc)
	{
		size_t capacity = static_cast<size_t>(_eos - _begin);

		// get new capacity (1.5x rule)
		size_t new_capacity = capacity + capacity / 2 + 1;

		// reallocate the old array or allocate a new one
		xpath_node* data = static_cast<xpath_node*>(alloc->reallocate(_begin, capacity * sizeof(xpath_node), new_capacity * sizeof(xpath_node)));
		if (!data) return;

		// finalize
		_begin = data;
		_end = data + capacity;
		_eos = data + new_capacity;

		// push
		*_end++ = node;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq 0x8(%rdi), %rsi
movq 0x18(%rdi), %r14
subq %rsi, %r14
movq %r14, %rax
sarq $0x4, %rax
movq %rax, %rcx
shrq %rcx
leaq (%rax,%rcx), %r12
incq %r12
shlq $0x4, %r12
movq %rdx, %rdi
movq %r14, %rdx
movq %r12, %rcx
callq 0x2d9dc
testq %rax, %rax
je 0x2fe47
movq %rax, 0x8(%r15)
addq %rax, %r12
movq %r12, 0x18(%r15)
leaq (%rax,%r14), %rcx
addq $0x10, %rcx
movq %rcx, 0x10(%r15)
movups (%rbx), %xmm0
movups %xmm0, (%rax,%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq