LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xml_parser::parse_doctype_ignore(char*)
char_t* parse_doctype_ignore(char_t* s)
		{
			size_t depth = 0;

			assert(s[0] == '<' && s[1] == '!' && s[2] == '[');
			s += 3;

			while (*s)
			{
				if (s[0] == '<' && s[1] == '!' && s[2] == '[')
				{
					// nested ignore section
					s += 3;
					depth++;
				}
				else if (s[0] == ']' && s[1] == ']' && s[2] == '>')
				{
					// ignore section end
					s += 3;

					if (depth == 0)
						return s;

					depth--;
				}
				else s++;
			}

			PUGI__THROW_ERROR(status_bad_doctype, s);
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x18(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x3c, %ecx
movb %al, -0x21(%rbp)
jne 0x56a34
movq -0x18(%rbp), %rax
movsbl 0x1(%rax), %ecx
xorl %eax, %eax
cmpl $0x21, %ecx
movb %al, -0x21(%rbp)
jne 0x56a34
movq -0x18(%rbp), %rax
movsbl 0x2(%rax), %eax
cmpl $0x5b, %eax
sete %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x56a3d
jmp 0x56a3f
jmp 0x56a5e
leaq 0x160e0(%rip), %rdi     # 0x6cb26
leaq 0x14908(%rip), %rsi     # 0x6b355
movl $0xb96, %edx            # imm = 0xB96
leaq 0x160f7(%rip), %rcx     # 0x6cb50
callq 0x7180
movq -0x18(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpb $0x0, (%rax)
je 0x56b1b
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3c, %eax
jne 0x56ab7
movq -0x18(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x21, %eax
jne 0x56ab7
movq -0x18(%rbp), %rax
movsbl 0x2(%rax), %eax
cmpl $0x5b, %eax
jne 0x56ab7
movq -0x18(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x56b16
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x5d, %eax
jne 0x56b08
movq -0x18(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x5d, %eax
jne 0x56b08
movq -0x18(%rbp), %rax
movsbl 0x2(%rax), %eax
cmpl $0x3e, %eax
jne 0x56b08
movq -0x18(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x56afa
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x56b36
movq -0x20(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x56b14
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x56b16
jmp 0x56a6a
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x9, 0x10(%rax)
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::get_write_encoding(pugi::xml_encoding)
PUGI__FN xml_encoding get_write_encoding(xml_encoding encoding)
	{
		// replace wchar encoding with utf implementation
		if (encoding == encoding_wchar) return get_wchar_encoding();

		// replace utf16 encoding with utf16 with specific endianness
		if (encoding == encoding_utf16) return is_little_endian() ? encoding_utf16_le : encoding_utf16_be;

		// replace utf32 encoding with utf32 with specific endianness
		if (encoding == encoding_utf32) return is_little_endian() ? encoding_utf32_le : encoding_utf32_be;

		// only do autodetection if no explicit encoding is requested
		if (encoding != encoding_auto) return encoding;

		// assume utf8 encoding
		return encoding_utf8;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x8(%rbp)
cmpl $0x8, -0x8(%rbp)
jne 0x56deb
callq 0x50590
movl %eax, -0x4(%rbp)
jmp 0x56e44
cmpl $0x4, -0x8(%rbp)
jne 0x56e0d
callq 0x505b0
movb %al, %dl
movl $0x3, %eax
movl $0x2, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x56e44
cmpl $0x7, -0x8(%rbp)
jne 0x56e2f
callq 0x505b0
movb %al, %dl
movl $0x6, %eax
movl $0x5, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x56e44
cmpl $0x0, -0x8(%rbp)
je 0x56e3d
movl -0x8(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x56e44
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: 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
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x18(%rbp), %rax
decq %rax
movq %rax, -0x38(%rbp)
subq $0x3, %rax
ja 0x57255
movq -0x38(%rbp), %rax
leaq 0x13ac1(%rip), %rcx     # 0x6ac18
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x5718a
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movsbl (%rax), %esi
callq 0x48cf0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x57167
jmp 0x57282
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x571c3
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movb (%rax), %cl
movq -0x10(%rbp), %rax
movsbl %cl, %esi
movsbl 0x1(%rax), %edx
callq 0x48c80
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x57196
jmp 0x57282
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x57206
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movb (%rax), %dl
movq -0x10(%rbp), %rax
movb 0x1(%rax), %cl
movq -0x10(%rbp), %rax
movsbl %dl, %esi
movsbl %cl, %edx
movsbl 0x2(%rax), %ecx
callq 0x48a80
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x571cf
jmp 0x57282
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x57253
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movb (%rax), %sil
movq -0x10(%rbp), %rax
movb 0x1(%rax), %dl
movq -0x10(%rbp), %rax
movb 0x2(%rax), %cl
movq -0x10(%rbp), %rax
movsbl %sil, %esi
movsbl %dl, %edx
movsbl %cl, %ecx
movsbl 0x3(%rax), %r8d
callq 0x57a60
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x5720f
jmp 0x57282
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jae 0x57280
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x57dc0
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x5725c
jmp 0x57282
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::node_output_end(pugi::impl::(anonymous namespace)::xml_buffered_writer&, pugi::xml_node_struct*)
PUGI__FN void node_output_end(xml_buffered_writer& writer, xml_node_struct* node)
	{
		const char_t* default_name = PUGIXML_TEXT(":anonymous");
		const char_t* name = node->name ? node->name + 0 : default_name;

		writer.write('<', '/');
		writer.write_string(name);
		writer.write('>');
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x157ce(%rip), %rax     # 0x6cc35
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x57484
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x5748c
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl $0x3c, %esi
movl $0x2f, %edx
callq 0x48c80
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x48b60
movq -0x8(%rbp), %rdi
movl $0x3e, %esi
callq 0x48cf0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::text_output_cdata(pugi::impl::(anonymous namespace)::xml_buffered_writer&, char const*)
PUGI__FN void text_output_cdata(xml_buffered_writer& writer, const char_t* s)
	{
		do
		{
			writer.write('<', '!', '[', 'C', 'D');
			writer.write('A', 'T', 'A', '[');

			const char_t* prev = s;

			// look for ]]> sequence - we can't output it as is since it terminates CDATA
			while (*s && !(s[0] == ']' && s[1] == ']' && s[2] == '>')) ++s;

			// skip ]] if we stopped at ]]>, > will go to the next CDATA section
			if (*s) s += 2;

			writer.write_buffer(prev, static_cast<size_t>(s - prev));

			writer.write(']', ']', '>');
		}
		while (*s);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movl $0x3c, %esi
movl $0x21, %edx
movl $0x5b, %ecx
movl $0x43, %r8d
movl $0x44, %r9d
callq 0x579a0
movq -0x8(%rbp), %rdi
movl $0x41, %ecx
movl $0x54, %edx
movl $0x5b, %r8d
movl %ecx, %esi
callq 0x57a60
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpb $0x0, (%rcx)
movb %al, -0x19(%rbp)
je 0x575c1
movq -0x10(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x5d, %ecx
movb %al, -0x1a(%rbp)
jne 0x575b9
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %ecx
xorl %eax, %eax
cmpl $0x5d, %ecx
movb %al, -0x1a(%rbp)
jne 0x575b9
movq -0x10(%rbp), %rax
movsbl 0x2(%rax), %eax
cmpl $0x3e, %eax
sete %al
movb %al, -0x1a(%rbp)
movb -0x1a(%rbp), %al
xorb $-0x1, %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x575ca
jmp 0x575d8
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x57577
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x575ed
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x18(%rbp), %rax
subq %rax, %rdx
callq 0x57dc0
movq -0x8(%rbp), %rdi
movl $0x5d, %edx
movl $0x3e, %ecx
movl %edx, %esi
callq 0x48a80
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
jne 0x57530
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::node_output_comment(pugi::impl::(anonymous namespace)::xml_buffered_writer&, char const*)
PUGI__FN void node_output_comment(xml_buffered_writer& writer, const char_t* s)
	{
		writer.write('<', '!', '-', '-');

		while (*s)
		{
			const char_t* prev = s;

			// look for -\0 or -- sequence - we can't output it since -- is illegal in comment body
			while (*s && !(s[0] == '-' && (s[1] == '-' || s[1] == 0))) ++s;

			writer.write_buffer(prev, static_cast<size_t>(s - prev));

			if (*s)
			{
				assert(*s == '-');

				writer.write('-', ' ');
				++s;
			}
		}

		writer.write('-', '-', '>');
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movl $0x3c, %esi
movl $0x21, %edx
movl $0x2d, %r8d
movl %r8d, %ecx
callq 0x57a60
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x5774a
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpb $0x0, (%rcx)
movb %al, -0x19(%rbp)
je 0x576c1
movq -0x10(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x2d, %ecx
movb %al, -0x1a(%rbp)
jne 0x576b9
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %ecx
movb $0x1, %al
cmpl $0x2d, %ecx
movb %al, -0x1b(%rbp)
je 0x576b3
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x0, %eax
sete %al
movb %al, -0x1b(%rbp)
movb -0x1b(%rbp), %al
movb %al, -0x1a(%rbp)
movb -0x1a(%rbp), %al
xorb $-0x1, %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x576ca
jmp 0x576d8
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x57671
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x18(%rbp), %rax
subq %rax, %rdx
callq 0x57dc0
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x57745
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x57707
jmp 0x57726
leaq 0x15792(%rip), %rdi     # 0x6cea0
leaq 0x13c40(%rip), %rsi     # 0x6b355
movl $0xfc0, %edx            # imm = 0xFC0
leaq 0x15789(%rip), %rcx     # 0x6ceaa
callq 0x7180
movq -0x8(%rbp), %rdi
movl $0x2d, %esi
movl $0x20, %edx
callq 0x48c80
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x5765c
movq -0x8(%rbp), %rdi
movl $0x2d, %edx
movl $0x3e, %ecx
movl %edx, %esi
callq 0x48a80
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::node_output_pi_value(pugi::impl::(anonymous namespace)::xml_buffered_writer&, char const*)
PUGI__FN void node_output_pi_value(xml_buffered_writer& writer, const char_t* s)
	{
		while (*s)
		{
			const char_t* prev = s;

			// look for ?> sequence - we can't output it since ?> terminates PI
			while (*s && !(s[0] == '?' && s[1] == '>')) ++s;

			writer.write_buffer(prev, static_cast<size_t>(s - prev));

			if (*s)
			{
				assert(s[0] == '?' && s[1] == '>');

				writer.write('?', ' ', '>');
				s += 2;
			}
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x5787a
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpb $0x0, (%rcx)
movb %al, -0x19(%rbp)
je 0x577cd
movq -0x10(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x3f, %ecx
movb %al, -0x1a(%rbp)
jne 0x577c5
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x3e, %eax
sete %al
movb %al, -0x1a(%rbp)
movb -0x1a(%rbp), %al
xorb $-0x1, %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x577d6
jmp 0x577e4
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x57795
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x18(%rbp), %rax
subq %rax, %rdx
callq 0x57dc0
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x57875
movq -0x10(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x3f, %ecx
movb %al, -0x1b(%rbp)
jne 0x57827
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x3e, %eax
sete %al
movb %al, -0x1b(%rbp)
movb -0x1b(%rbp), %al
testb $0x1, %al
jne 0x57830
jmp 0x57832
jmp 0x57851
leaq 0x156d4(%rip), %rdi     # 0x6cf0d
leaq 0x13b15(%rip), %rsi     # 0x6b355
movl $0xfd7, %edx            # imm = 0xFD7
leaq 0x156dc(%rip), %rcx     # 0x6cf28
callq 0x7180
movq -0x8(%rbp), %rdi
movl $0x3f, %esi
movl $0x20, %edx
movl $0x3e, %ecx
callq 0x48a80
movq -0x10(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x10(%rbp)
jmp 0x57780
addq $0x20, %rsp
popq %rbp
retq
// File: 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
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
leaq 0x1538e(%rip), %rax     # 0x6cc35
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x5798e
movl -0x24(%rbp), %eax
andl $0x44, %eax
cmpl $0x40, %eax
jne 0x578f4
movq -0x8(%rbp), %rdi
movl $0xa, %esi
callq 0x48cf0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movl -0x28(%rbp), %ecx
addl $0x1, %ecx
callq 0x57120
jmp 0x57902
movq -0x8(%rbp), %rdi
movl $0x20, %esi
callq 0x48cf0
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x57923
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x5792b
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x48b60
movq -0x8(%rbp), %rdi
movl $0x3d, %esi
movl $0x22, %edx
callq 0x48c80
movq -0x38(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x5796f
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x24(%rbp), %ecx
movl $0x2, %edx
callq 0x574d0
movq -0x8(%rbp), %rdi
movl $0x22, %esi
callq 0x48cf0
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x578b7
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: 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
movq %rsp, %rbp
subq $0x30, %rsp
movl %r8d, -0x30(%rbp)
movl %ecx, %eax
movl -0x30(%rbp), %ecx
movl %eax, -0x2c(%rbp)
movl %edx, %eax
movl -0x2c(%rbp), %edx
movl %eax, -0x28(%rbp)
movl %esi, %eax
movl -0x28(%rbp), %esi
movl %eax, -0x24(%rbp)
movq %rdi, %r8
movl -0x24(%rbp), %edi
movb %r9b, %al
movq %r8, -0x8(%rbp)
movb %dil, -0x9(%rbp)
movb %sil, -0xa(%rbp)
movb %dl, -0xb(%rbp)
movb %cl, -0xc(%rbp)
movb %al, -0xd(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x2808(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x7fb, -0x18(%rbp)     # imm = 0x7FB
jbe 0x57a0c
movq -0x20(%rbp), %rdi
callq 0x45d50
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movb -0x9(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, (%rax,%rcx)
movb -0xa(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x1(%rax,%rcx)
movb -0xb(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x2(%rax,%rcx)
movb -0xc(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x3(%rax,%rcx)
movb -0xd(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x4(%rax,%rcx)
movq -0x18(%rbp), %rcx
addq $0x5, %rcx
movq %rcx, 0x2808(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: 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
movq %rsp, %rbp
subq $0x20, %rsp
movb %r8b, %al
movq %rdi, -0x8(%rbp)
movb %sil, -0x9(%rbp)
movb %dl, -0xa(%rbp)
movb %cl, -0xb(%rbp)
movb %al, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x2808(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x7fc, -0x18(%rbp)     # imm = 0x7FC
jbe 0x57aa6
movq -0x20(%rbp), %rdi
callq 0x45d50
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movb -0x9(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, (%rax,%rcx)
movb -0xa(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x1(%rax,%rcx)
movb -0xb(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x2(%rax,%rcx)
movb -0xc(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x3(%rax,%rcx)
movq -0x18(%rbp), %rcx
addq $0x4, %rcx
movq %rcx, 0x2808(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xml_buffered_writer::write_buffer(char const*, unsigned long)
void write_buffer(const char_t* data, size_t length)
		{
			size_t offset = bufsize;

			if (offset + length <= bufcapacity)
			{
				memcpy(buffer + offset, data, length * sizeof(char_t));
				bufsize = offset + length;
			}
			else
			{
				write_direct(data, length);
			}
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq 0x2808(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq -0x18(%rbp), %rax
cmpq $0x800, %rax            # imm = 0x800
ja 0x57e25
movq -0x28(%rbp), %rdi
addq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
shlq $0x0, %rdx
callq 0x70b0
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
addq -0x18(%rbp), %rcx
movq %rcx, 0x2808(%rax)
jmp 0x57e36
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x57f10
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xml_buffered_writer::write(char, char, char, char, char, char)
void write(char_t d0, char_t d1, char_t d2, char_t d3, char_t d4, char_t d5)
		{
			size_t offset = bufsize;
			if (offset > bufcapacity - 6) offset = flush();

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %r8d, -0x30(%rbp)
movl %ecx, %eax
movl -0x30(%rbp), %ecx
movl %eax, -0x2c(%rbp)
movl %edx, %eax
movl -0x2c(%rbp), %edx
movl %eax, -0x28(%rbp)
movl %esi, %eax
movl -0x28(%rbp), %esi
movl %eax, -0x24(%rbp)
movq %rdi, %r8
movl -0x24(%rbp), %edi
movb %r9b, %al
movb 0x10(%rbp), %r9b
movq %r8, -0x8(%rbp)
movb %dil, -0x9(%rbp)
movb %sil, -0xa(%rbp)
movb %dl, -0xb(%rbp)
movb %cl, -0xc(%rbp)
movb %al, -0xd(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x2808(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x7fa, -0x18(%rbp)     # imm = 0x7FA
jbe 0x57eb0
movq -0x20(%rbp), %rdi
callq 0x45d50
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movb -0x9(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, (%rax,%rcx)
movb -0xa(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x1(%rax,%rcx)
movb -0xb(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x2(%rax,%rcx)
movb -0xc(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x3(%rax,%rcx)
movb -0xd(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x4(%rax,%rcx)
movb 0x10(%rbp), %dl
movq -0x18(%rbp), %rcx
movb %dl, 0x5(%rax,%rcx)
movq -0x18(%rbp), %rcx
addq $0x6, %rcx
movq %rcx, 0x2808(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
callq 0x45d50
cmpq $0x800, -0x18(%rbp)     # imm = 0x800
jbe 0x57fff
movq -0x28(%rbp), %rax
movl 0x2810(%rax), %eax
movl %eax, -0x2c(%rbp)
callq 0x58040
movl %eax, %ecx
movl -0x2c(%rbp), %eax
cmpl %ecx, %eax
jne 0x57f7c
movq -0x28(%rbp), %rax
movq 0x2800(%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
shlq $0x0, %rdx
movq (%rdi), %rax
callq *0x10(%rax)
jmp 0x58031
jmp 0x57f7e
cmpq $0x800, -0x18(%rbp)     # imm = 0x800
jbe 0x57ff0
movq -0x10(%rbp), %rdi
movl $0x800, %esi            # imm = 0x800
callq 0x58050
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x57fa3
jmp 0x57fc2
leaq 0x14d81(%rip), %rdi     # 0x6cd2b
leaq 0x133a4(%rip), %rsi     # 0x6b355
movl $0xea5, %edx            # imm = 0xEA5
leaq 0x14d79(%rip), %rcx     # 0x6cd36
callq 0x7180
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x580d0
movq -0x20(%rbp), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0x57f7e
movq -0x28(%rbp), %rax
movq $0x0, 0x2808(%rax)
movq -0x28(%rbp), %rdi
addq 0x2808(%rdi), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
shlq $0x0, %rdx
callq 0x70b0
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
addq 0x2808(%rax), %rcx
movq %rcx, 0x2808(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::get_valid_length(char const*, unsigned long)
PUGI__FN size_t get_valid_length(const char_t* data, size_t length)
	{
		if (length < 5) return 0;

		for (size_t i = 1; i <= 4; ++i)
		{
			uint8_t ch = static_cast<uint8_t>(data[length - i]);

			// either a standalone character or a leading one
			if ((ch & 0xc0) != 0x80) return length - i;
		}

		// there are four non-leading characters at the end, sequence tail is broken so might as well process the whole chunk
		return length;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x5, -0x18(%rbp)
jae 0x5806d
movq $0x0, -0x8(%rbp)
jmp 0x580c4
movq $0x1, -0x20(%rbp)
cmpq $0x4, -0x20(%rbp)
ja 0x580bc
movq -0x10(%rbp), %rax
movq -0x18(%rbp), %rcx
subq -0x20(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x21(%rbp)
movzbl -0x21(%rbp), %eax
andl $0xc0, %eax
cmpl $0x80, %eax
je 0x580ac
movq -0x18(%rbp), %rax
subq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x580c4
jmp 0x580ae
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x58075
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw (%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::xml_buffered_writer::flush(char const*, unsigned long)
void flush(const char_t* data, size_t size)
		{
			if (size == 0) return;

			// fast path, just write data
			if (encoding == get_write_native_encoding())
				writer.write(data, size * sizeof(char_t));
			else
			{
				// convert chunk
				size_t result = convert_buffer_output(scratch.data_char, scratch.data_u8, scratch.data_u16, scratch.data_u32, data, size, encoding);
				assert(result <= sizeof(scratch));

				// write data
				writer.write(scratch.data_u8, result);
			}
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x580f8
jmp 0x581c2
movq -0x28(%rbp), %rax
movl 0x2810(%rax), %eax
movl %eax, -0x2c(%rbp)
callq 0x58040
movl %eax, %ecx
movl -0x2c(%rbp), %eax
cmpl %ecx, %eax
jne 0x58135
movq -0x28(%rbp), %rax
movq 0x2800(%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
shlq $0x0, %rdx
movq (%rdi), %rax
callq *0x10(%rax)
jmp 0x581c2
movq -0x28(%rbp), %rax
movq %rax, %rdi
addq $0x800, %rdi            # imm = 0x800
movq %rax, %rsi
addq $0x800, %rsi            # imm = 0x800
movq %rax, %rdx
addq $0x800, %rdx            # imm = 0x800
movq %rax, %rcx
addq $0x800, %rcx            # imm = 0x800
movq -0x10(%rbp), %r8
movq -0x18(%rbp), %r9
movl 0x2810(%rax), %eax
movl %eax, (%rsp)
callq 0x581d0
movq %rax, -0x20(%rbp)
cmpq $0x2000, -0x20(%rbp)    # imm = 0x2000
ja 0x58187
jmp 0x581a6
leaq 0x14c0a(%rip), %rdi     # 0x6cd98
leaq 0x131c0(%rip), %rsi     # 0x6b355
movl $0xe89, %edx            # imm = 0xE89
leaq 0x14c11(%rip), %rcx     # 0x6cdb2
callq 0x7180
movq -0x28(%rbp), %rsi
movq 0x2800(%rsi), %rdi
addq $0x800, %rsi            # imm = 0x800
movq -0x20(%rbp), %rdx
movq (%rdi), %rax
callq *0x10(%rax)
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::convert_buffer_output(char*, unsigned char*, unsigned short*, unsigned int*, char const*, unsigned long, pugi::xml_encoding)
PUGI__FN size_t convert_buffer_output(char_t* /* r_char */, uint8_t* r_u8, uint16_t* r_u16, uint32_t* r_u32, const char_t* data, size_t length, xml_encoding encoding)
	{
		if (encoding == encoding_utf16_be || encoding == encoding_utf16_le)
		{
			xml_encoding native_encoding = is_little_endian() ? encoding_utf16_le : encoding_utf16_be;

			return convert_buffer_output_generic(r_u16, data, length, utf8_decoder(), utf16_writer(), native_encoding != encoding);
		}

		if (encoding == encoding_utf32_be || encoding == encoding_utf32_le)
		{
			xml_encoding native_encoding = is_little_endian() ? encoding_utf32_le : encoding_utf32_be;

			return convert_buffer_output_generic(r_u32, data, length, utf8_decoder(), utf32_writer(), native_encoding != encoding);
		}

		if (encoding == encoding_latin1)
			return convert_buffer_output_generic(r_u8, data, length, utf8_decoder(), latin1_writer());

		assert(false && "Invalid encoding"); // unreachable
		return 0;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
cmpl $0x3, 0x10(%rbp)
je 0x581ff
cmpl $0x2, 0x10(%rbp)
jne 0x58242
callq 0x505b0
movb %al, %dl
movl $0x3, %eax
movl $0x2, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x3c(%rbp)
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl -0x3c(%rbp), %eax
cmpl 0x10(%rbp), %eax
setne %al
movzbl %al, %ecx
andl $0x1, %ecx
callq 0x582e0
movq %rax, -0x8(%rbp)
jmp 0x582ca
cmpl $0x6, 0x10(%rbp)
je 0x5824e
cmpl $0x5, 0x10(%rbp)
jne 0x5828e
callq 0x505b0
movb %al, %dl
movl $0x6, %eax
movl $0x5, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x44(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl -0x44(%rbp), %eax
cmpl 0x10(%rbp), %eax
setne %al
movzbl %al, %ecx
andl $0x1, %ecx
callq 0x58370
movq %rax, -0x8(%rbp)
jmp 0x582ca
cmpl $0x9, 0x10(%rbp)
jne 0x582ab
movq -0x18(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x58400
movq %rax, -0x8(%rbp)
jmp 0x582ca
leaq 0x13fb2(%rip), %rdi     # 0x6c264
leaq 0x1309c(%rip), %rsi     # 0x6b355
movl $0xe67, %edx            # imm = 0xE67
leaq 0x14b48(%rip), %rcx     # 0x6ce0d
callq 0x7180
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: unsigned long pugi::impl::(anonymous namespace)::convert_buffer_output_generic<pugi::impl::(anonymous namespace)::utf8_decoder, pugi::impl::(anonymous namespace)::utf16_writer>(pugi::impl::(anonymous namespace)::utf16_writer::value_type, char const*, unsigned long, pugi::impl::(anonymous namespace)::utf8_decoder, pugi::impl::(anonymous namespace)::utf16_writer, bool)
PUGI__FN size_t convert_buffer_output_generic(typename T::value_type dest, const char_t* data, size_t length, D, T, bool opt_swap)
	{
		PUGI__STATIC_ASSERT(sizeof(char_t) == sizeof(typename D::type));

		typename T::value_type end = D::process(reinterpret_cast<const typename D::type*>(data), length, dest, T());

		if (opt_swap)
		{
			for (typename T::value_type i = dest; i != end; ++i)
				*i = endian_swap(*i);
		}

		return static_cast<size_t>(end - dest) * sizeof(*dest);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %cl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
andb $0x1, %al
movb %al, -0x21(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0x58440
movq %rax, -0x30(%rbp)
testb $0x1, -0x21(%rbp)
je 0x5834e
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x30(%rbp), %rax
je 0x5834c
movq -0x40(%rbp), %rax
movzwl (%rax), %edi
callq 0x51be0
movw %ax, %cx
movq -0x40(%rbp), %rax
movw %cx, (%rax)
movq -0x40(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x40(%rbp)
jmp 0x5831e
jmp 0x5834e
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
sarq %rax
shlq %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::utf16_writer::high(unsigned short*, unsigned int)
static value_type high(value_type result, uint32_t ch)
		{
			uint32_t msh = static_cast<uint32_t>(ch - 0x10000) >> 10;
			uint32_t lsh = static_cast<uint32_t>(ch - 0x10000) & 0x3ff;

			result[0] = static_cast<uint16_t>(0xD800 + msh);
			result[1] = static_cast<uint16_t>(0xDC00 + lsh);

			return result + 2;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0xc(%rbp), %eax
subl $0x10000, %eax          # imm = 0x10000
shrl $0xa, %eax
movl %eax, -0x10(%rbp)
movl -0xc(%rbp), %eax
subl $0x10000, %eax          # imm = 0x10000
andl $0x3ff, %eax            # imm = 0x3FF
movl %eax, -0x14(%rbp)
movl -0x10(%rbp), %eax
addl $0xd800, %eax           # imm = 0xD800
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, (%rax)
movl -0x14(%rbp), %eax
addl $0xdc00, %eax           # imm = 0xDC00
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rax
addq $0x4, %rax
popq %rbp
retq
nopl (%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::get_file_size(_IO_FILE*, unsigned long&)
PUGI__FN xml_parse_status get_file_size(FILE* file, size_t& out_result)
	{
	#if defined(PUGI__MSVC_CRT_VERSION) && PUGI__MSVC_CRT_VERSION >= 1400 && !defined(_WIN32_WCE)
		// there are 64-bit versions of fseek/ftell, let's use them
		typedef __int64 length_type;

		_fseeki64(file, 0, SEEK_END);
		length_type length = _ftelli64(file);
		_fseeki64(file, 0, SEEK_SET);
	#elif defined(__MINGW32__) && !defined(__NO_MINGW_LFS) && (!defined(__STRICT_ANSI__) || defined(__MINGW64_VERSION_MAJOR))
		// there are 64-bit versions of fseek/ftell, let's use them
		typedef off64_t length_type;

		fseeko64(file, 0, SEEK_END);
		length_type length = ftello64(file);
		fseeko64(file, 0, SEEK_SET);
	#else
		// if this is a 32-bit OS, long is enough; if this is a unix system, long is 64-bit, which is enough; otherwise we can't do anything anyway.
		typedef long length_type;

		fseek(file, 0, SEEK_END);
		length_type length = ftell(file);
		fseek(file, 0, SEEK_SET);
	#endif

		// check for I/O errors
		if (length < 0) return status_io_error;

		// check for overflow
		size_t result = static_cast<size_t>(length);

		if (static_cast<length_type>(result) != length) return status_out_of_memory;

		// finalize
		out_result = result;

		return status_ok;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x2, %edx
callq 0x7b10
movq -0x10(%rbp), %rdi
callq 0x7230
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x7b10
cmpq $0x0, -0x20(%rbp)
jge 0x58f1e
movl $0x2, -0x4(%rbp)
jmp 0x58f4b
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x58f39
movl $0x3, -0x4(%rbp)
jmp 0x58f4b
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::convert_path_heap(wchar_t const*)
PUGI__FN char* convert_path_heap(const wchar_t* str)
	{
		assert(str);

		// first pass: get length in utf8 characters
		size_t length = strlength_wide(str);
		size_t size = as_utf8_begin(str, length);

		// allocate resulting string
		char* result = static_cast<char*>(xml_memory::allocate(size + 1));
		if (!result) return 0;

		// second pass: convert to utf8
		as_utf8_end(result, size, str, length);

		// zero-terminate
		result[size] = 0;

		return result;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x58fb5
jmp 0x58fd4
leaq 0x12c39(%rip), %rdi     # 0x6bbf5
leaq 0x12392(%rip), %rsi     # 0x6b355
movl $0x1367, %edx           # imm = 0x1367
leaq 0x13fbd(%rip), %rcx     # 0x6cf8c
callq 0x7180
movq -0x10(%rbp), %rdi
callq 0x49220
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x59050
movq %rax, -0x20(%rbp)
movq 0x3c9ef(%rip), %rax     # 0x959e8
movq -0x20(%rbp), %rdi
addq $0x1, %rdi
callq *%rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x59018
movq $0x0, -0x8(%rbp)
jmp 0x59041
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x18(%rbp), %rcx
callq 0x59080
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: void pugi::impl::(anonymous namespace)::sort<pugi::xpath_node*, pugi::impl::(anonymous namespace)::document_order_comparator>(pugi::xpath_node*, pugi::xpath_node*, pugi::impl::(anonymous namespace)::document_order_comparator const&)
void sort(I begin, I end, const Pred& pred)
	{
		// sort large chunks
		while (end - begin > 16)
		{
			// find median element
			I middle = begin + (end - begin) / 2;
			I median = median3(begin, middle, end - 1, pred);

			// partition in three chunks (< = >)
			I eqbeg, eqend;
			partition3(begin, end, *median, pred, &eqbeg, &eqend);

			// loop on larger half
			if (eqbeg - begin > end - eqend)
			{
				sort(eqend, end, pred);
				end = eqbeg;
			}
			else
			{
				sort(begin, eqbeg, pred);
				begin = eqend;
			}
		}

		// insertion sort small chunk
		insertion_sort(begin, end, pred);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
cmpq $0x10, %rax
jle 0x59681
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movl $0x2, %ecx
cqto
idivq %rcx
movq %rax, %rcx
movq -0x50(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq $-0x10, %rdx
movq -0x18(%rbp), %rcx
callq 0x59e10
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x48(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %r8
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
leaq -0x30(%rbp), %r9
leaq -0x38(%rbp), %rax
movq %rax, (%rsp)
callq 0x59ea0
movq -0x30(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
sarq $0x4, %rax
movq -0x10(%rbp), %rcx
movq -0x38(%rbp), %rdx
subq %rdx, %rcx
sarq $0x4, %rcx
cmpq %rcx, %rax
jle 0x59663
movq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x59570
movq -0x30(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x5967c
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x59570
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x59584
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x59fc0
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::document_buffer_order(pugi::xpath_node const&)
PUGI__FN const void* document_buffer_order(const xpath_node& xnode)
	{
		xml_node_struct* node = xnode.node().internal_object();

		if (node)
		{
			if ((get_document(node).header & xml_memory_page_contents_shared_mask) == 0)
			{
				if (node->name && (node->header & impl::xml_memory_page_name_allocated_or_shared_mask) == 0) return node->name;
				if (node->value && (node->header & impl::xml_memory_page_value_allocated_or_shared_mask) == 0) return node->value;
			}

			return 0;
		}

		xml_attribute_struct* attr = xnode.attribute().internal_object();

		if (attr)
		{
			if ((get_document(attr).header & xml_memory_page_contents_shared_mask) == 0)
			{
				if ((attr->header & impl::xml_memory_page_name_allocated_or_shared_mask) == 0) return attr->name;
				if ((attr->header & impl::xml_memory_page_value_allocated_or_shared_mask) == 0) return attr->value;
			}

			return 0;
		}

		return 0;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x49680
movq %rax, -0x20(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x459a0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x59abc
movq -0x18(%rbp), %rdi
callq 0x42780
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
jne 0x59aaf
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x59a80
movq -0x18(%rbp), %rax
movq (%rax), %rax
andq $0x60, %rax
cmpq $0x0, %rax
jne 0x59a80
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x59b45
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x59aad
movq -0x18(%rbp), %rax
movq (%rax), %rax
andq $0x50, %rax
cmpq $0x0, %rax
jne 0x59aad
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x59b45
jmp 0x59aaf
movq $0x0, -0x8(%rbp)
jmp 0x59b45
movq -0x10(%rbp), %rdi
callq 0x496d0
movq %rax, -0x30(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x410e0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x59b3d
movq -0x28(%rbp), %rdi
callq 0x59ca0
movq (%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
jne 0x59b33
movq -0x28(%rbp), %rax
movq (%rax), %rax
andq $0x60, %rax
cmpq $0x0, %rax
jne 0x59b12
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x59b45
movq -0x28(%rbp), %rax
movq (%rax), %rax
andq $0x50, %rax
cmpq $0x0, %rax
jne 0x59b31
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x59b45
jmp 0x59b33
movq $0x0, -0x8(%rbp)
jmp 0x59b45
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nop
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::impl::(anonymous namespace)::node_is_before(pugi::xml_node_struct*, pugi::xml_node_struct*)
PUGI__FN bool node_is_before(xml_node_struct* ln, xml_node_struct* rn)
	{
		// find common ancestor at the same depth, if any
		xml_node_struct* lp = ln;
		xml_node_struct* rp = rn;

		while (lp && rp && lp->parent != rp->parent)
		{
			lp = lp->parent;
			rp = rp->parent;
		}

		// parents are the same!
		if (lp && rp) return node_is_before_sibling(lp, rp);

		// nodes are at different depths, need to normalize heights
		bool left_higher = !lp;

		while (lp)
		{
			lp = lp->parent;
			ln = ln->parent;
		}

		while (rp)
		{
			rp = rp->parent;
			rn = rn->parent;
		}

		// one node is the ancestor of the other
		if (ln == rn) return left_higher;

		// find common ancestor... again
		while (ln->parent != rn->parent)
		{
			ln = ln->parent;
			rn = rn->parent;
		}

		return node_is_before_sibling(ln, rn);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x20(%rbp)
movb %al, -0x2a(%rbp)
je 0x59b9e
xorl %eax, %eax
cmpq $0x0, -0x28(%rbp)
movb %al, -0x2a(%rbp)
je 0x59b9e
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x28(%rbp), %rcx
cmpq 0x18(%rcx), %rax
setne %al
movb %al, -0x2a(%rbp)
movb -0x2a(%rbp), %al
testb $0x1, %al
jne 0x59ba7
jmp 0x59bc1
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x59b70
cmpq $0x0, -0x20(%rbp)
je 0x59be6
cmpq $0x0, -0x28(%rbp)
je 0x59be6
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x59d20
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x59c8d
cmpq $0x0, -0x20(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x29(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x59c16
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x59bf5
jmp 0x59c18
cmpq $0x0, -0x28(%rbp)
je 0x59c39
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x59c18
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jne 0x59c4d
movb -0x29(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x59c8d
jmp 0x59c4f
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x18(%rcx), %rax
je 0x59c7b
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x59c4f
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x59d20
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: 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 %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x18(%rcx), %rax
jne 0x59d44
jmp 0x59d63
leaq 0x1343a(%rip), %rdi     # 0x6d185
leaq 0x11603(%rip), %rsi     # 0x6b355
movl $0x1eda, %edx           # imm = 0x1EDA
leaq 0x13440(%rip), %rcx     # 0x6d19e
callq 0x7180
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x59d80
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
setb %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x59df9
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x20(%rbp)
movb %al, -0x29(%rbp)
je 0x59da7
cmpq $0x0, -0x28(%rbp)
setne %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
testb $0x1, %al
jne 0x59db0
jmp 0x59dea
movq -0x20(%rbp), %rax
cmpq -0x18(%rbp), %rax
jne 0x59dc0
movb $0x1, -0x1(%rbp)
jmp 0x59df9
movq -0x28(%rbp), %rax
cmpq -0x10(%rbp), %rax
jne 0x59dd0
movb $0x0, -0x1(%rbp)
jmp 0x59df9
movq -0x20(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x59d90
cmpq $0x0, -0x28(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jliesch[P]ofxget/pugixml/pugixml.cpp
// Function: pugi::xpath_node* pugi::impl::(anonymous namespace)::median3<pugi::xpath_node*, pugi::impl::(anonymous namespace)::document_order_comparator>(pugi::xpath_node*, pugi::xpath_node*, pugi::xpath_node*, pugi::impl::(anonymous namespace)::document_order_comparator const&)
I median3(I first, I middle, I last, const Pred& pred)
	{
		if (pred(*middle, *first)) swap(middle, first);
		if (pred(*last, *middle)) swap(last, middle);
		if (pred(*middle, *first)) swap(middle, first);

		return middle;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x8(%rbp), %rdx
callq 0x596f0
testb $0x1, %al
jne 0x59e3f
jmp 0x59e4c
leaq -0x10(%rbp), %rdi
leaq -0x8(%rbp), %rsi
callq 0x5a0a0
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0x596f0
testb $0x1, %al
jne 0x59e63
jmp 0x59e70
leaq -0x18(%rbp), %rdi
leaq -0x10(%rbp), %rsi
callq 0x5a0a0
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x8(%rbp), %rdx
callq 0x596f0
testb $0x1, %al
jne 0x59e87
jmp 0x59e94
leaq -0x10(%rbp), %rdi
leaq -0x8(%rbp), %rsi
callq 0x5a0a0
movq -0x10(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop