LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxml.cpp
// Function: TiXmlHandle::ChildElement(int) const
TiXmlHandle TiXmlHandle::ChildElement( int count ) const
{
	if ( node )
	{
		int i;
		TiXmlElement* child = node->FirstChildElement();
		for (	i=0;
				child && i<count;
				child = child->NextSiblingElement(), ++i )
		{
			// nothing
		}
		if ( child )
			return TiXmlHandle( child );
	}
	return TiXmlHandle( 0 );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rsi), %rax
testq %rax, %rax
je 0x638f
movl %edx, %ebp
movq 0x28(%rax), %r15
xorl %r14d, %r14d
testq %r15, %r15
je 0x633e
movq (%r15), %rax
movq %r15, %rdi
callq *0x28(%rax)
testq %rax, %rax
jne 0x6332
movq 0x48(%r15), %r15
jmp 0x6319
movq (%r15), %rax
movq %r15, %rdi
callq *0x28(%rax)
movq %rax, %r14
testq %r14, %r14
setne %al
sete %cl
testl %ebp, %ebp
setle %dl
orb %cl, %dl
jne 0x638b
xorl %r15d, %r15d
movq 0x48(%r14), %r14
testq %r14, %r14
je 0x6378
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
testq %rax, %rax
je 0x6353
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
movq %rax, %r14
jmp 0x637b
xorl %r14d, %r14d
testq %r14, %r14
setne %al
je 0x638b
incl %r15d
cmpl %ebp, %r15d
jl 0x6353
testb %al, %al
jne 0x6392
xorl %r14d, %r14d
movq %r14, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxml.cpp
// Function: TiXmlHandle::ChildElement(char const*, int) const
TiXmlHandle TiXmlHandle::ChildElement( const char* value, int count ) const
{
	if ( node )
	{
		int i;
		TiXmlElement* child = node->FirstChildElement( value );
		for (	i=0;
				child && i<count;
				child = child->NextSiblingElement( value ), ++i )
		{
			// nothing
		}
		if ( child )
			return TiXmlHandle( child );
	}
	return TiXmlHandle( 0 );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x6400
movl %ecx, %ebp
movq %rdx, %r14
movq %rdx, %rsi
callq 0x3ec4
testq %rax, %rax
setne %cl
sete %dl
testl %ebp, %ebp
setle %sil
orb %dl, %sil
jne 0x63fc
movl $0x1, %r15d
movq %rax, %rdi
movq %r14, %rsi
callq 0x3f68
testq %rax, %rax
setne %cl
je 0x63fc
leal 0x1(%r15), %edx
cmpl %ebp, %r15d
movl %edx, %r15d
jl 0x63dd
testb %cl, %cl
jne 0x6402
xorl %eax, %eax
movq %rax, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxml.cpp
// Function: TiXmlPrinter::VisitEnter(TiXmlElement const&, TiXmlAttribute const*)
bool TiXmlPrinter::VisitEnter( const TiXmlElement& element, const TiXmlAttribute* firstAttribute )
{
	DoIndent();
	buffer += "<";
	buffer += element.Value();

	for( const TiXmlAttribute* attrib = firstAttribute; attrib; attrib = attrib->Next() )
	{
		buffer += " ";
		attrib->Print( 0, 0, &buffer );
	}

	if ( !element.FirstChild() ) 
	{
		buffer += " />";
		DoLineBreak();
	}
	else 
	{
		buffer += ">";
		if (    element.FirstChild()->ToText()
			  && element.LastChild() == element.FirstChild()
			  && element.FirstChild()->ToText()->CDATA() == false )
		{
			simpleTextPrint = true;
			// no DoLineBreak()!
		}
		else
		{
			DoLineBreak();
		}
	}
	++depth;	
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
callq 0x698c
leaq 0x10(%rbx), %r14
leaq 0x40db(%rip), %rsi      # 0xa519
movl $0x1, %edx
movq %r14, %rdi
callq 0x8b94
movq 0x38(%r15), %r13
addq $0x10, %r13
movq %r13, %rdi
callq 0x30a0
movq %r14, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x8b94
testq %r12, %r12
je 0x64b5
leaq 0x3e2f(%rip), %r13      # 0xa2a4
movl $0x1, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x8b94
movq %r12, %rdi
xorl %esi, %esi
movq %r14, %rcx
callq 0x5388
movq 0x38(%r12), %r12
movq 0x28(%r12), %rax
cmpq $0x0, (%rax)
jne 0x64b0
movq 0x20(%r12), %rax
cmpq $0x0, (%rax)
jne 0x64b0
xorl %r12d, %r12d
testq %r12, %r12
jne 0x6475
cmpq $0x0, 0x28(%r15)
je 0x64fb
leaq 0x3ee0(%rip), %rsi      # 0xa3a3
movl $0x1, %edx
movq %r14, %rdi
callq 0x8b94
movq 0x28(%r15), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
testq %rax, %rax
je 0x650f
movq 0x28(%r15), %rdi
cmpq %rdi, 0x30(%r15)
jne 0x650f
movq (%rdi), %rax
callq *0x40(%rax)
cmpb $0x0, 0x50(%rax)
jne 0x650f
movb $0x1, 0xc(%rbx)
jmp 0x6522
leaq 0x3da8(%rip), %rsi      # 0xa2aa
movl $0x3, %edx
movq %r14, %rdi
callq 0x8b94
movq 0x20(%rbx), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %r14, %rdi
callq 0x8b94
incl 0x8(%rbx)
movb $0x1, %al
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxml.cpp
// Function: TiXmlPrinter::VisitExit(TiXmlElement const&)
bool TiXmlPrinter::VisitExit( const TiXmlElement& element )
{
	--depth;
	if ( !element.FirstChild() ) 
	{
		// nothing.
	}
	else 
	{
		if ( simpleTextPrint )
		{
			simpleTextPrint = false;
		}
		else
		{
			DoIndent();
		}
		buffer += "</";
		buffer += element.Value();
		buffer += ">";
		DoLineBreak();
	}
	return true;
}

// Assembly:
decl 0x8(%rdi)
cmpq $0x0, 0x28(%rsi)
je 0x65c1
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rsi, %r15
cmpb $0x1, 0xc(%rdi)
jne 0x6557
movb $0x0, 0xc(%rbx)
jmp 0x655f
movq %rbx, %rdi
callq 0x698c
leaq 0x10(%rbx), %r14
leaq 0x3fb1(%rip), %rsi      # 0xa51b
movl $0x2, %edx
movq %r14, %rdi
callq 0x8b94
movq 0x38(%r15), %r15
addq $0x10, %r15
movq %r15, %rdi
callq 0x30a0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x8b94
leaq 0x3e07(%rip), %rsi      # 0xa3a3
movl $0x1, %edx
movq %r14, %rdi
callq 0x8b94
movq 0x20(%rbx), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %r14, %rdi
callq 0x8b94
popq %rbx
popq %r14
popq %r15
movb $0x1, %al
retq
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxml.cpp
// Function: TiXmlPrinter::Visit(TiXmlText const&)
bool TiXmlPrinter::Visit( const TiXmlText& text )
{
	if ( text.CDATA() )
	{
		DoIndent();
		buffer += "<![CDATA[";
		buffer += text.Value();
		buffer += "]]>";
		DoLineBreak();
	}
	else if ( simpleTextPrint )
	{
		TIXML_STRING str;
		TiXmlBase::EncodeString( text.ValueTStr(), &str );
		buffer += str;
	}
	else
	{
		DoIndent();
		TIXML_STRING str;
		TiXmlBase::EncodeString( text.ValueTStr(), &str );
		buffer += str;
		DoLineBreak();
	}
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x50(%rsi)
jne 0x6643
movq %rbx, %rdi
callq 0x698c
leaq 0x10(%rbx), %r15
leaq 0x3f32(%rip), %rsi      # 0xa51e
movl $0x9, %edx
movq %r15, %rdi
callq 0x8b94
movq 0x38(%r14), %r14
addq $0x10, %r14
movq %r14, %rdi
callq 0x30a0
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x8b94
leaq 0x3f0a(%rip), %rsi      # 0xa528
movl $0x3, %edx
movq %r15, %rdi
callq 0x8b94
movq 0x20(%rbx), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %r15, %rdi
callq 0x8b94
jmp 0x66ea
cmpb $0x1, 0xc(%rbx)
jne 0x667e
leaq 0x9c08(%rip), %rax      # 0x10258
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
addq $0x38, %r14
movq %r14, %rdi
callq 0x3432
addq $0x10, %rbx
movq 0x8(%rsp), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x8b94
jmp 0x66cc
movq %rbx, %rdi
callq 0x698c
leaq 0x9bcb(%rip), %rax      # 0x10258
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
addq $0x38, %r14
movq %r14, %rdi
callq 0x3432
leaq 0x10(%rbx), %r14
movq 0x8(%rsp), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %r14, %rdi
callq 0x8b94
movq 0x20(%rbx), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %r14, %rdi
callq 0x8b94
movq 0x8(%rsp), %rdi
cmpq 0x9908(%rip), %rdi      # 0xffe0
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x66ea
callq 0x31d0
movb $0x1, %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x66f8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq 0x98d9(%rip), %rdi      # 0xffe0
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x6719
callq 0x31d0
movq %rbx, %rdi
callq 0x3280
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxml.cpp
// Function: TiXmlPrinter::Visit(TiXmlDeclaration const&)
bool TiXmlPrinter::Visit( const TiXmlDeclaration& declaration )
{
	DoIndent();
	declaration.Print( 0, 0, &buffer );
	DoLineBreak();
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x698c
leaq 0x10(%r14), %r15
movq (%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
callq *0x90(%rax)
movq 0x20(%r14), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %r15, %rdi
callq 0x8b94
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxml.cpp
// Function: TiXmlPrinter::Visit(TiXmlComment const&)
bool TiXmlPrinter::Visit( const TiXmlComment& comment )
{
	DoIndent();
	buffer += "<!--";
	buffer += comment.Value();
	buffer += "-->";
	DoLineBreak();
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
callq 0x698c
leaq 0x10(%rbx), %r14
leaq 0x3dad(%rip), %rsi      # 0xa52c
movl $0x4, %edx
movq %r14, %rdi
callq 0x8b94
movq 0x38(%r15), %r15
addq $0x10, %r15
movq %r15, %rdi
callq 0x30a0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x8b94
leaq 0x3bf0(%rip), %rsi      # 0xa3a1
movl $0x3, %edx
movq %r14, %rdi
callq 0x8b94
movq 0x20(%rbx), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %r14, %rdi
callq 0x8b94
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxml.cpp
// Function: TiXmlPrinter::Visit(TiXmlUnknown const&)
bool TiXmlPrinter::Visit( const TiXmlUnknown& unknown )
{
	DoIndent();
	buffer += "<";
	buffer += unknown.Value();
	buffer += ">";
	DoLineBreak();
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %rbx
callq 0x698c
leaq 0x10(%rbx), %r14
leaq 0x3d24(%rip), %rsi      # 0xa519
movl $0x1, %edx
movq %r14, %rdi
callq 0x8b94
movq 0x38(%r15), %r15
addq $0x10, %r15
movq %r15, %rdi
callq 0x30a0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x8b94
leaq 0x3b7c(%rip), %rsi      # 0xa3a3
movl $0x1, %edx
movq %r14, %rdi
callq 0x8b94
movq 0x20(%rbx), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %r14, %rdi
callq 0x8b94
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxml.cpp
// Function: TiXmlNode::~TiXmlNode()
TiXmlNode::~TiXmlNode()
{
	TiXmlNode* node = firstChild;
	TiXmlNode* temp = 0;

	while ( node )
	{
		temp = node;
		node = node->next;
		delete temp;
	}	
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8ef2(%rip), %rax      # 0xf750
movq %rax, (%rdi)
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x687c
movq (%rdi), %rax
movq 0x48(%rdi), %r14
callq *0x8(%rax)
movq %r14, %rdi
testq %r14, %r14
jne 0x686a
movq 0x38(%rbx), %rdi
cmpq 0x9759(%rip), %rdi      # 0xffe0
sete %al
testq %rdi, %rdi
sete %cl
addq $0x8, %rsp
orb %al, %cl
je 0x689c
popq %rbx
popq %r14
retq
popq %rbx
popq %r14
jmp 0x31d0
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxmlparser.cpp
// Function: TiXmlBase::ConvertUTF32ToUTF8(unsigned long, char*, int*)
void TiXmlBase::ConvertUTF32ToUTF8( unsigned long input, char* output, int* length )
{
	const unsigned long BYTE_MASK = 0xBF;
	const unsigned long BYTE_MARK = 0x80;
	const unsigned long FIRST_BYTE_MARK[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };

	if (input < 0x80) 
		*length = 1;
	else if ( input < 0x800 )
		*length = 2;
	else if ( input < 0x10000 )
		*length = 3;
	else if ( input < 0x200000 )
		*length = 4;
	else
		{ *length = 0; return; }	// This code won't covert this correctly anyway.

	output += *length;

	// Scary scary fall throughs.
	switch (*length) 
	{
		case 4:
			--output; 
			*output = (char)((input | BYTE_MARK) & BYTE_MASK); 
			input >>= 6;
		case 3:
			--output; 
			*output = (char)((input | BYTE_MARK) & BYTE_MASK); 
			input >>= 6;
		case 2:
			--output; 
			*output = (char)((input | BYTE_MARK) & BYTE_MASK); 
			input >>= 6;
		case 1:
			--output; 
			*output = (char)(input | FIRST_BYTE_MARK[*length]);
	}
}

// Assembly:
xorps %xmm0, %xmm0
movaps %xmm0, -0x28(%rsp)
movaps %xmm0, -0x18(%rsp)
movaps %xmm0, -0x38(%rsp)
movq $0xc0, -0x28(%rsp)
movq $0xe0, -0x20(%rsp)
movq $0xf0, -0x18(%rsp)
movq $0xf8, -0x10(%rsp)
movq $0xfc, -0x8(%rsp)
movl $0x1, %eax
cmpq $0x80, %rdi
jb 0x6c47
movl $0x2, %eax
cmpq $0x800, %rdi            # imm = 0x800
jb 0x6c47
movl $0x3, %eax
cmpq $0x10000, %rdi          # imm = 0x10000
jb 0x6c47
movl $0x4, %eax
cmpq $0x200000, %rdi         # imm = 0x200000
jae 0x6ca2
movl %eax, (%rdx)
leal -0x1(%rax), %ecx
cmpl $0x3, %ecx
ja 0x6ca1
movl %eax, %eax
addq %rax, %rsi
leaq 0x39a3(%rip), %rax      # 0xa600
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl %edi, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, -0x1(%rsi)
decq %rsi
shrq $0x6, %rdi
movl %edi, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, -0x1(%rsi)
decq %rsi
shrq $0x6, %rdi
movl %edi, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, -0x1(%rsi)
decq %rsi
shrq $0x6, %rdi
movslq (%rdx), %rax
orl -0x38(%rsp,%rax,8), %edi
movb %dil, -0x1(%rsi)
retq
movl $0x0, (%rdx)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxmlparser.cpp
// Function: TiXmlBase::SkipWhiteSpace(char const*, TiXmlEncoding)
const char* TiXmlBase::SkipWhiteSpace( const char* p, TiXmlEncoding encoding )
{
	if ( !p || !*p )
	{
		return 0;
	}
	if ( encoding == TIXML_ENCODING_UTF8 )
	{
		while ( *p )
		{
			const unsigned char* pU = (const unsigned char*)p;
			
			// Skip the stupid Microsoft UTF-8 Byte order marks
			if (	*(pU+0)==TIXML_UTF_LEAD_0
				 && *(pU+1)==TIXML_UTF_LEAD_1 
				 && *(pU+2)==TIXML_UTF_LEAD_2 )
			{
				p += 3;
				continue;
			}
			else if(*(pU+0)==TIXML_UTF_LEAD_0
				 && *(pU+1)==0xbfU
				 && *(pU+2)==0xbeU )
			{
				p += 3;
				continue;
			}
			else if(*(pU+0)==TIXML_UTF_LEAD_0
				 && *(pU+1)==0xbfU
				 && *(pU+2)==0xbfU )
			{
				p += 3;
				continue;
			}

			if ( IsWhiteSpace( *p ) )		// Still using old rules for white space.
				++p;
			else
				break;
		}
	}
	else
	{
		while ( *p && IsWhiteSpace( *p ) )
			++p;
	}

	return p;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x6f23
movq %rdi, %rbx
cmpb $0x0, (%rdi)
je 0x6f23
cmpl $0x1, %esi
jne 0x6f2d
movzbl (%rbx), %ebp
cmpl $0xef, %ebp
je 0x6ebd
testl %ebp, %ebp
jne 0x6ec9
jmp 0x6f25
cmpb $-0x45, 0x1(%rbx)
jne 0x6ec9
cmpb $-0x41, 0x2(%rbx)
je 0x6ef1
cmpl $0xef, %ebp
jne 0x6ef9
cmpb $-0x41, 0x1(%rbx)
jne 0x6edd
cmpb $-0x42, 0x2(%rbx)
je 0x6ef1
cmpl $0xef, %ebp
jne 0x6ef9
cmpb $-0x41, 0x1(%rbx)
jne 0x6ef9
cmpb $-0x41, 0x2(%rbx)
jne 0x6ef9
addq $0x3, %rbx
xorl %eax, %eax
jmp 0x6f1d
movl %ebp, %edi
callq 0x3060
testl %eax, %eax
setne %al
cmpl $0xa, %ebp
sete %cl
cmpl $0xd, %ebp
sete %dl
orb %cl, %dl
orb %al, %dl
movzbl %dl, %eax
addq %rax, %rbx
xorb $0x1, %al
testb %al, %al
je 0x6eac
jmp 0x6f25
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
movb (%rbx), %r14b
testb %r14b, %r14b
je 0x6f25
movzbl %r14b, %ebp
movl %ebp, %edi
callq 0x3060
testl %eax, %eax
jne 0x6f4f
cmpb $0xd, %r14b
je 0x6f4f
cmpl $0xa, %ebp
jne 0x6f25
movb 0x1(%rbx), %r14b
incq %rbx
jmp 0x6f30
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxmlparser.cpp
// Function: TiXmlBase::ReadName(char const*, TiXmlString*, TiXmlEncoding)
const char* TiXmlBase::ReadName( const char* p, TIXML_STRING * name, TiXmlEncoding encoding )
{
	// Oddly, not supported on some comilers,
	//name->clear();
	// So use this:
	*name = "";
	assert( p );

	// Names start with letters or underscores.
	// Of course, in unicode, tinyxml has no idea what a letter *is*. The
	// algorithm is generous.
	//
	// After that, they can be letters, underscores, numbers,
	// hyphens, or colons. (Colons are valid ony for namespaces,
	// but tinyxml can't tell namespaces from names.)
	if (    p && *p 
		 && ( IsAlpha( (unsigned char) *p, encoding ) || *p == '_' ) )
	{
		const char* start = p;
		while(		p && *p
				&&	(		IsAlphaNum( (unsigned char ) *p, encoding ) 
						 || *p == '_'
						 || *p == '-'
						 || *p == '.'
						 || *p == ':' ) )
		{
			//(*name) += *p; // expensive
			++p;
		}
		if ( p-start > 0 ) {
			name->assign( start, p-start );
		}
		return p;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x3475(%rip), %rsi      # 0xa3e5
movq %r14, %rdi
xorl %edx, %edx
callq 0x8ae8
testq %rbx, %rbx
je 0x7019
movzbl (%rbx), %ebp
testl %ebp, %ebp
je 0x6fa7
movb $0x1, %al
cmpb $0x7e, %bpl
ja 0x6f9e
movl %ebp, %edi
callq 0x3250
testl %eax, %eax
setne %al
cmpl $0x5f, %ebp
je 0x6fac
testb %al, %al
jne 0x6fac
xorl %r15d, %r15d
jmp 0x7007
movb (%rbx), %al
movq %rbx, %r15
testb %al, %al
je 0x6ff1
movabsq $0x4000000002003, %r13  # imm = 0x4000000002003
movq %rbx, %r15
cmpb $0x7e, %al
ja 0x6fe6
movzbl %al, %r12d
movl %r12d, %edi
callq 0x3150
testl %eax, %eax
jne 0x6fe6
addl $-0x2d, %r12d
cmpl $0x32, %r12d
ja 0x6ff1
btq %r12, %r13
jae 0x6ff1
movb 0x1(%r15), %al
incq %r15
testb %al, %al
jne 0x6fc2
movq %r15, %rdx
subq %rbx, %rdx
testq %rdx, %rdx
jle 0x7007
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8ae8
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x32f3(%rip), %rdi      # 0xa313
leaq 0x3a4b(%rip), %rsi      # 0xaa72
leaq 0x3ab2(%rip), %rcx      # 0xaae0
movl $0x197, %edx            # imm = 0x197
callq 0x30e0
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxmlparser.cpp
// Function: TiXmlBase::StringEqual(char const*, char const*, bool, TiXmlEncoding)
bool TiXmlBase::StringEqual( const char* p,
							 const char* tag,
							 bool ignoreCase,
							 TiXmlEncoding encoding )
{
	assert( p );
	assert( tag );
	if ( !p || !*p )
	{
		assert( 0 );
		return false;
	}

	const char* q = p;

	if ( ignoreCase )
	{
		while ( *q && *tag && ToLower( *q, encoding ) == ToLower( *tag, encoding ) )
		{
			++q;
			++tag;
		}

		if ( *tag == 0 )
			return true;
	}
	else
	{
		while ( *q && *tag && *q == *tag )
		{
			++q;
			++tag;
		}

		if ( *tag == 0 )		// Have we found the end of the tag, and everything equal?
			return true;
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x72e5
movq %rsi, %rbx
testq %rsi, %rsi
je 0x7304
movq %rdi, %r14
cmpb $0x0, (%rdi)
je 0x7323
movb (%r14), %al
testb %dl, %dl
je 0x72b7
testb %al, %al
je 0x72cf
incq %r14
movsbl (%rbx), %ebp
testl %ebp, %ebp
je 0x72cf
movsbl %al, %edi
callq 0x3200
movl %eax, %r15d
movl %ebp, %edi
callq 0x3200
cmpl %eax, %r15d
jne 0x72cf
incq %rbx
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x728a
jmp 0x72cf
testb %al, %al
je 0x72cf
incq %r14
cmpb (%rbx), %al
jne 0x72cf
incq %rbx
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x72be
cmpb $0x0, (%rbx)
je 0x72d8
xorl %eax, %eax
jmp 0x72da
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3027(%rip), %rdi      # 0xa313
leaq 0x377f(%rip), %rsi      # 0xaa72
leaq 0x38bc(%rip), %rcx      # 0xabb6
movl $0x21b, %edx            # imm = 0x21B
callq 0x30e0
leaq 0x38ff(%rip), %rdi      # 0xac0a
leaq 0x3760(%rip), %rsi      # 0xaa72
leaq 0x389d(%rip), %rcx      # 0xabb6
movl $0x21c, %edx            # imm = 0x21C
callq 0x30e0
leaq 0x2e4f(%rip), %rdi      # 0xa179
leaq 0x3741(%rip), %rsi      # 0xaa72
leaq 0x387e(%rip), %rcx      # 0xabb6
movl $0x21f, %edx            # imm = 0x21F
callq 0x30e0
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxmlparser.cpp
// Function: TiXmlDocument::SetError(int, char const*, TiXmlParsingData*, TiXmlEncoding)
void TiXmlDocument::SetError( int err, const char* pError, TiXmlParsingData* data, TiXmlEncoding encoding )
{	
	// The first error in a chain is more accurate - don't set again!
	if ( error )
		return;

	assert( err > 0 && err < TIXML_ERROR_STRING_COUNT );
	error   = true;
	errorId = err;
	errorDesc = errorString[ errorId ];

	errorLocation.Clear();
	if ( pError && data )
	{
		data->Stamp( pError, encoding );
		errorLocation = data->Cursor();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpb $0x0, 0x50(%rdi)
jne 0x7875
leal -0x1(%rsi), %eax
cmpl $0xf, %eax
jae 0x7884
movl %r8d, %ebp
movq %rcx, %rbx
movq %rdx, %r15
movq %rdi, %r14
movb $0x1, 0x50(%rdi)
movl %esi, 0x54(%rdi)
movl %esi, %eax
leaq 0x89a5(%rip), %rcx      # 0x101d0
movq (%rcx,%rax,8), %r12
leaq 0x58(%rdi), %r13
movq %r12, %rdi
callq 0x30a0
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x8ae8
movq $-0x1, 0x64(%r14)
testq %r15, %r15
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x7875
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x6cd6
movq (%rbx), %rax
movq %rax, 0x64(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x338e(%rip), %rdi      # 0xac19
leaq 0x31e0(%rip), %rsi      # 0xaa72
leaq 0x33aa(%rip), %rcx      # 0xac43
movl $0x324, %edx            # imm = 0x324
callq 0x30e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxmlparser.cpp
// Function: TiXmlText::Blank() const
bool TiXmlText::Blank() const
{
	for ( unsigned i=0; i<value.length(); i++ )
		if ( !IsWhiteSpace( value[i] ) )
			return false;
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x38(%rdi), %r14
movq (%r14), %r15
testq %r15, %r15
sete %bl
je 0x8000
movl $0x1, %r12d
xorl %eax, %eax
movzbl 0x10(%r14,%rax), %ebp
movl %ebp, %edi
callq 0x3060
testl %eax, %eax
jne 0x7ff2
cmpl $0xd, %ebp
je 0x7ff2
cmpl $0xa, %ebp
jne 0x8000
movl %r12d, %eax
incl %r12d
cmpq %rax, %r15
setbe %bl
ja 0x7fd7
andb $0x1, %bl
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxmlparser.cpp
// Function: TiXmlUnknown::Parse(char const*, TiXmlParsingData*, TiXmlEncoding)
const char* TiXmlUnknown::Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding )
{
	TiXmlDocument* document = GetDocument();
	p = SkipWhiteSpace( p, encoding );

	if ( data )
	{
		data->Stamp( p, encoding );
		location = data->Cursor();
	}
	if ( !p || !*p || *p != '<' )
	{
		if ( document ) document->SetError( TIXML_ERROR_PARSING_UNKNOWN, p, data, encoding );
		return 0;
	}
	++p;
    value = "";

	while ( p && *p && *p != '>' )
	{
		value += *p;
		++p;
	}

	if ( !p )
	{
		if ( document )	
			document->SetError( TIXML_ERROR_PARSING_UNKNOWN, 0, 0, encoding );
	}
	if ( p && *p == '>' )
		return p+1;
	return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3fe0
movq %rax, %r12
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6e8a
movq %rax, %rbx
testq %r15, %r15
je 0x8053
movq %r15, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x6cd6
movq (%r15), %rax
movq %rax, 0x8(%r14)
testq %rbx, %rbx
je 0x809f
cmpb $0x3c, (%rbx)
jne 0x809f
addq $0x38, %r14
leaq 0x237d(%rip), %rsi      # 0xa3e5
movq %r14, %rdi
xorl %edx, %edx
callq 0x8ae8
incq %rbx
leaq 0xf(%rsp), %r15
movzbl (%rbx), %ecx
testl %ecx, %ecx
je 0x80be
cmpl $0x3e, %ecx
je 0x80be
movb %cl, 0xf(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x8b94
incq %rbx
jmp 0x807a
testq %r12, %r12
je 0x80ba
movq %r12, %rdi
movl $0x9, %esi
movq %rbx, %rdx
movq %r15, %rcx
movl %ebp, %r8d
callq 0x77f6
xorl %eax, %eax
jmp 0x80c9
leaq 0x1(%rbx), %rax
cmpb $0x3e, %cl
cmovneq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyxmlparser.cpp
// Function: TiXmlComment::Parse(char const*, TiXmlParsingData*, TiXmlEncoding)
const char* TiXmlComment::Parse( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding )
{
	TiXmlDocument* document = GetDocument();
	value = "";

	p = SkipWhiteSpace( p, encoding );

	if ( data )
	{
		data->Stamp( p, encoding );
		location = data->Cursor();
	}
	const char* startTag = "<!--";
	const char* endTag   = "-->";

	if ( !StringEqual( p, startTag, false, encoding ) )
	{
		if ( document )
			document->SetError( TIXML_ERROR_PARSING_COMMENT, p, data, encoding );
		return 0;
	}
	p += strlen( startTag );

	// [ 1475201 ] TinyXML parses entities in comments
	// Oops - ReadText doesn't work, because we don't want to parse the entities.
	// p = ReadText( p, &value, false, endTag, false, encoding );
	//
	// from the XML spec:
	/*
	 [Definition: Comments may appear anywhere in a document outside other markup; in addition, 
	              they may appear within the document type declaration at places allowed by the grammar. 
				  They are not part of the document's character data; an XML processor MAY, but need not, 
				  make it possible for an application to retrieve the text of comments. For compatibility, 
				  the string "--" (double-hyphen) MUST NOT occur within comments.] Parameter entity 
				  references MUST NOT be recognized within comments.

				  An example of a comment:

				  <!-- declarations for <head> & <body> -->
	*/

    value = "";
	// Keep all the white space.
	while (	p && *p && !StringEqual( p, endTag, false, encoding ) )
	{
		value.append( p, 1 );
		++p;
	}
	if ( p && *p ) 
		p += strlen( endTag );

	return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r13
callq 0x3fe0
movq %rax, (%rsp)
leaq 0x38(%r13), %r14
leaq 0x22e5(%rip), %rsi      # 0xa3e5
movq %r14, %rdi
xorl %edx, %edx
callq 0x8ae8
movq %r15, %rdi
movl %ebx, %esi
callq 0x6e8a
movq %rax, %r15
movq %rax, %rbp
testq %r12, %r12
je 0x8134
movq %r12, %rdi
movq %rbp, %rsi
movl %ebx, %edx
callq 0x6cd6
movq (%r12), %rax
movq %rax, 0x8(%r13)
leaq 0x23f1(%rip), %rsi      # 0xa52c
movq %rbp, %rdi
xorl %edx, %edx
movl %ebx, %ecx
callq 0x7254
testb %al, %al
je 0x81a0
addq $0x4, %r15
leaq 0x228f(%rip), %rsi      # 0xa3e5
movq %r14, %rdi
xorl %edx, %edx
callq 0x8ae8
cmpb $0x0, 0x4(%rbp)
je 0x81c0
leaq 0x2234(%rip), %r12      # 0xa3a1
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
movl %ebx, %ecx
callq 0x7254
testb %al, %al
jne 0x81c0
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x8b94
leaq 0x1(%r15), %rcx
cmpb $0x0, 0x1(%r15)
movq %rcx, %r15
jne 0x816d
jmp 0x81c3
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x81bc
movl $0xa, %esi
movq %rbp, %rdx
movq %r12, %rcx
movl %ebx, %r8d
callq 0x77f6
xorl %eax, %eax
jmp 0x81d2
movq %r15, %rcx
xorl %eax, %eax
cmpb $0x0, (%rcx)
setne %al
leaq (%rax,%rax,2), %rax
addq %rcx, %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/smallmuou[P]tinyhtml/xmlexample.cpp
// Function: main
int main()
{
    TiHtmlDocument doc;
    doc.ParseURL( "test.html" );

    /* Get Album */
    TiHtmlResult* result = doc.Query(".album/ul/li/a");
    if (result) {
        printf("count=%d\n", result->Count());
        for (int ii = 0; ii < result->Count(); ii++) {
            printf("channel:%s, rel:%s\n", result->Element(ii)->GetText(),  result->Element(ii)->Attribute("rel"));
        }
        delete(result);
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x94bc
leaq 0x231d(%rip), %rsi      # 0xacbb
movq %rbx, %rdi
callq 0x9506
leaq 0x2318(%rip), %rsi      # 0xacc5
movq %rsp, %rdi
callq 0x9582
movq %rax, %rbx
testq %rax, %rax
je 0x8a38
movq %rbx, %rdi
callq 0x8f5e
leaq 0x2308(%rip), %rdi      # 0xacd4
movl %eax, %esi
xorl %eax, %eax
callq 0x3050
leaq 0x2316(%rip), %r14      # 0xacf2
leaq 0x22fb(%rip), %r15      # 0xacde
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x8f5e
cmpl %eax, %ebp
jge 0x8a2f
movq %rbx, %rdi
movl %ebp, %esi
callq 0x8f62
movq %rax, %rdi
callq 0x8fe0
movq %rax, %r12
movq %rbx, %rdi
movl %ebp, %esi
callq 0x8f62
movq %rax, %rdi
movq %r14, %rsi
callq 0x8fd0
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3050
incl %ebp
jmp 0x89e5
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq %rsp, %rdi
callq 0x953c
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8a53
jmp 0x8a53
movq %rax, %rbx
movq %rsp, %rdi
callq 0x953c
movq %rbx, %rdi
callq 0x3280
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinystr.cpp
// Function: TiXmlString::assign(char const*, unsigned long)
TiXmlString& TiXmlString::assign(const char* str, size_type len)
{
	size_type cap = capacity();
	if (len > cap || cap > 3*(len + 8))
	{
		TiXmlString tmp;
		tmp.init(len);
		memcpy(tmp.start(), str, len);
		swap(tmp);
	}
	else
	{
		memmove(start(), str, len);
		set_size(len);
	}
	return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x8(%rdi), %rax
cmpq %rdx, %rax
jb 0x8b13
leaq (%r14,%r14,2), %rcx
addq $0x18, %rcx
cmpq %rcx, %rax
jbe 0x8b6c
leaq 0x773e(%rip), %r13      # 0x10258
movq %r13, %r12
testq %r14, %r14
je 0x8b3f
leaq 0x1b(%r14), %rdi
andq $-0x4, %rdi
callq 0x3040
movq %rax, %r12
movq %r14, (%rax)
movb $0x0, 0x10(%rax,%r14)
movq %r14, 0x8(%rax)
leaq 0x10(%r12), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3100
movq (%rbx), %rdi
movq %r12, (%rbx)
cmpq %r13, %rdi
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x8b87
callq 0x31d0
jmp 0x8b87
addq $0x10, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3260
movq (%rbx), %rax
movq %r14, (%rax)
movb $0x0, 0x10(%rax,%r14)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinystr.cpp
// Function: TiXmlString::append(char const*, unsigned long)
TiXmlString& TiXmlString::append(const char* str, size_type len)
{
	size_type newsize = length() + len;
	if (newsize > capacity())
	{
		reserve (newsize + capacity());
	}
	memmove(finish(), str, len);
	set_size(newsize);
	return *this;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %rax
movq (%rax), %r12
addq %rdx, %r12
movq 0x8(%rax), %rsi
cmpq %rsi, %r12
jbe 0x8bc2
addq %r12, %rsi
movq %rbx, %rdi
callq 0x8a68
movq (%rbx), %rax
movq (%rax), %rcx
leaq (%rax,%rcx), %rdi
addq $0x10, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3260
movq (%rbx), %rax
movq %r12, (%rax)
movb $0x0, 0x10(%rax,%r12)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinystr.cpp
// Function: operator+(TiXmlString const&, TiXmlString const&)
TiXmlString operator + (const TiXmlString & a, const TiXmlString & b)
{
	TiXmlString tmp;
	tmp.reserve(a.length() + b.length());
	tmp += a;
	tmp += b;
	return tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x764a(%rip), %r12      # 0x10258
movq %r12, (%rdi)
movq (%rsi), %rax
movq (%rdx), %rcx
movq (%rcx), %rsi
addq (%rax), %rsi
callq 0x8a68
movq (%r15), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x8b94
movq (%r14), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x8b94
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x8c70
callq 0x31d0
movq %r14, %rdi
callq 0x3280
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinystr.cpp
// Function: operator+(TiXmlString const&, char const*)
TiXmlString operator + (const TiXmlString & a, const char* b)
{
	TiXmlString tmp;
	TiXmlString::size_type b_len = static_cast<TiXmlString::size_type>( strlen(b) );
	tmp.reserve(a.length() + b_len);
	tmp += a;
	tmp.append(b, b_len);
	return tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x75c7(%rip), %r13      # 0x10258
movq %r13, (%rdi)
movq %rdx, %rdi
callq 0x30a0
movq %rax, %r15
movq (%r12), %rax
movq (%rax), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x8a68
movq (%r12), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x8b94
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x8b94
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x8cfa
callq 0x31d0
movq %r14, %rdi
callq 0x3280
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinystr.cpp
// Function: operator+(char const*, TiXmlString const&)
TiXmlString operator + (const char* a, const TiXmlString & b)
{
	TiXmlString tmp;
	TiXmlString::size_type a_len = static_cast<TiXmlString::size_type>( strlen(a) );
	tmp.reserve(a_len + b.length());
	tmp.append(a, a_len);
	tmp += b;
	return tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x753d(%rip), %r13      # 0x10258
movq %r13, (%rdi)
movq %rsi, %rdi
callq 0x30a0
movq %rax, %r12
movq (%r14), %rax
movq (%rax), %rsi
addq %r12, %rsi
movq %rbx, %rdi
callq 0x8a68
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x8b94
movq (%r14), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x8b94
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r13, %rdi
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x8d82
callq 0x31d0
movq %r14, %rdi
callq 0x3280
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyhtml.cpp
// Function: strtrim(char*)
char* strtrim(char* str) {
    if (!str) return str;

    int len = strlen(str);
    int loff = 0, roff = len-1;
    
    /* Left offset */
    while (loff<len && str[loff]==' ') loff++;
    loff = MIN(loff, roff);

    /* Right offset*/
    while (roff>=0 && str[roff]==' ') roff--;
    roff = MAX(roff, loff);

    len = roff-loff+1;
    strncpy(str, str+loff, roff-loff+1);
    str[len] = '\0';
    return str;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0x8e02
movq %rbx, %rdi
callq 0x30a0
leal -0x1(%rax), %ecx
testl %eax, %eax
jle 0x8dc3
movl %eax, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
xorl %edx, %edx
cmpb $0x20, (%rbx,%rdx)
jne 0x8dc5
incq %rdx
cmpq %rdx, %rsi
jne 0x8db1
movl %eax, %edx
jmp 0x8dc5
xorl %edx, %edx
cmpl %ecx, %edx
cmovgel %ecx, %edx
testl %eax, %eax
jle 0x8de0
leal -0x1(%rax), %ecx
cmpb $0x20, (%rbx,%rcx)
jne 0x8de0
decl %eax
jg 0x8dce
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl %edx, %ecx
cmovlel %edx, %ecx
subl %edx, %ecx
incl %ecx
movslq %edx, %rsi
addq %rbx, %rsi
movslq %ecx, %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x30c0
movb $0x0, (%rbx,%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyhtml.cpp
// Function: TiHtmlResult::~TiHtmlResult()
TiHtmlResult::~TiHtmlResult() {
    if (elements) {

        while (count > 0)  delete(elements[--count]);

        free(elements);
        elements = NULL;
        capacity = 0;
        count = 0;
    }
}

// Assembly:
leaq 0x6f25(%rip), %rax      # 0xfd70
movq %rax, (%rdi)
cmpq $0x0, 0x8(%rdi)
je 0x8e9b
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
jmp 0x8e7e
movq 0x8(%rbx), %rcx
decl %eax
movl %eax, 0x14(%rbx)
movq (%rcx,%rax,8), %rdi
testq %rdi, %rdi
je 0x8e7e
movl $0x8, %esi
callq 0x3140
movl 0x14(%rbx), %eax
testl %eax, %eax
jg 0x8e62
movq (%r14), %rdi
callq 0x31a0
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyhtml.cpp
// Function: TiHtmlResult::Append(TiHtmlElement*)
bool TiHtmlResult::Append( TiHtmlElement* element ) {
    if (capacity <= 0 || !element) return false;

    if (count >= capacity) {
        elements = (TiHtmlElement** )realloc(elements, capacity*2*sizeof(TiHtmlElement* ));
        if (elements) capacity = capacity*2;
    }
    
    elements[count++] = element;
    return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl 0x10(%rdi), %esi
testl %esi, %esi
setg %al
testq %rbx, %rbx
setne %bpl
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x8f08
movq %rdi, %r14
cmpl %esi, 0x14(%rdi)
jl 0x8ef5
movq 0x8(%r14), %rdi
shlq $0x4, %rsi
callq 0x3270
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x8ef5
shll 0x10(%r14)
movq 0x8(%r14), %rax
movslq 0x14(%r14), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x14(%r14)
movq %rbx, (%rax,%rcx,8)
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyhtml.cpp
// Function: TiHtmlResult::Clear()
void TiHtmlResult::Clear() {
    if (elements) {
        while (count > 0) delete(elements[--count]);

        memset(elements, 0, sizeof(TiHtmlElement* )*capacity);
        count = 0;
    }
}

// Assembly:
cmpq $0x0, 0x8(%rdi)
je 0x8fc3
pushq %rbx
movq %rdi, %rbx
jmp 0x8fa1
movq 0x8(%rbx), %rcx
decl %eax
movl %eax, 0x14(%rbx)
movq (%rcx,%rax,8), %rdi
testq %rdi, %rdi
je 0x8fa1
movl $0x8, %esi
callq 0x3140
movl 0x14(%rbx), %eax
testl %eax, %eax
jg 0x8f85
movq 0x8(%rbx), %rdi
movslq 0x10(%rbx), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x30d0
movl $0x0, 0x14(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyhtml.cpp
// Function: FindByTag(TiHtmlElement*, char const*, bool)
TiHtmlResult* FindByTag( TiHtmlElement* htmlElement, const char* name,  bool deep ) {
    TiXmlElement* element = (TiXmlElement* )htmlElement->internal;
    TiXmlElement* node = NULL;
    TiHtmlResult* result = new TiHtmlResult();

    int arrayCount = 0;
    int arrayCapacity = 0;
    TiXmlElement** array = (TiXmlElement** )calloc(sizeof(TiXmlElement* ), MIN_CAPACITY);
    if (array) arrayCapacity = MIN_CAPACITY;
    int i = 0;

    /* 广度优先遍历 */
    array[i] = element;
    do {
        element = array[i];
        TIXML_FOR_EACH(element, node, name) {
            result->Append(new TiHtmlElement(node));

            //add to array
            if (deep && array) {
                if (arrayCount >= arrayCapacity) {
                    array = (TiXmlElement** )realloc(array, sizeof(TiXmlElement* )*arrayCapacity*2);
                    if (array) arrayCapacity *= 2;
                }

                if (array) {
                    array[arrayCount++] = node;
                }
            }
        }

        i++;
    } while(deep && element && i < arrayCount);

    if (array) free(array);

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, 0xc(%rsp)
movq %rsi, %r14
movq (%rdi), %rbx
movl $0x18, %edi
callq 0x3130
movq %rax, %r15
leaq 0x6d55(%rip), %rax      # 0xfd70
movq %rax, (%r15)
movl $0x200, %edi            # imm = 0x200
movl $0x1, %esi
callq 0x30f0
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0x903e
movl $0x40, 0x10(%r15)
movq %r15, %rbp
movl $0x0, 0x14(%r15)
movl $0x8, %edi
movl $0x40, %esi
callq 0x30f0
movq %rax, %r15
xorl %r13d, %r13d
testq %rax, %rax
setne %r13b
shll $0x6, %r13d
movq %rbx, (%rax)
xorl %ecx, %ecx
xorl %ebx, %ebx
movq %rcx, 0x10(%rsp)
movq (%r15,%rcx,8), %rdi
movq %r14, %rsi
callq 0x3ec4
testq %rax, %rax
je 0x90f3
movq %rax, %r12
movl $0x8, %edi
callq 0x3130
movq %r12, (%rax)
movq %rbp, %rdi
movq %rax, %rsi
callq 0x8eb4
cmpb $0x0, 0xc(%rsp)
je 0x90e0
testq %r15, %r15
je 0x90e0
cmpl %r13d, %ebx
jl 0x90cd
movslq %r13d, %rsi
shlq $0x4, %rsi
movq %r15, %rdi
callq 0x3270
movq %rax, %r15
testq %rax, %rax
setne %cl
shll %cl, %r13d
testq %r15, %r15
je 0x90dd
movslq %ebx, %rax
incl %ebx
movq %r12, (%r15,%rax,8)
jmp 0x90e0
xorl %r15d, %r15d
movq %r12, %rdi
movq %r14, %rsi
callq 0x3f68
movq %rax, %r12
testq %rax, %rax
jne 0x9089
cmpb $0x0, 0xc(%rsp)
movq 0x10(%rsp), %rcx
je 0x910e
incq %rcx
movslq %ebx, %rax
cmpq %rax, %rcx
jl 0x9070
testq %r15, %r15
je 0x911b
movq %r15, %rdi
callq 0x31a0
movq %rbp, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyhtml.cpp
// Function: FindByAttribute(TiHtmlElement*, char const*, char const*, bool)
TiHtmlResult* FindByAttribute( TiHtmlElement* htmlElement, const char* name, const char* value, bool deep ) {
    TiXmlElement* element = (TiXmlElement* )htmlElement->internal;
    TiXmlElement* node = NULL;
    TiHtmlResult* result = new TiHtmlResult();

    int arrayCount = 0;
    int arrayCapacity = 0;
    TiXmlElement** array = (TiXmlElement** )calloc(sizeof(TiXmlElement* ), MIN_CAPACITY);
    if (array) arrayCapacity = MIN_CAPACITY;
    int i = 0;

    /* 广度优先遍历 */
    array[i] = element;
    do {
        element = array[i];
        TIXML_FOR_EACH_ALL(element, node) {
            const char* aValue = node->Attribute(name);

            //add to array
            if (deep && array) {
                if (arrayCount >= arrayCapacity) {
                    array = (TiXmlElement** )realloc(array, sizeof(TiXmlElement* )*arrayCapacity*2);
                    if (array) arrayCapacity *= 2;
                }

                if (array) {
                    array[arrayCount++] = node;
                }
            }

            if (aValue && 0 == strcasecmp(aValue, value)) {
                result->Append(new TiHtmlElement(node));
            }
        }

        i++;
    } while(deep && element && i < arrayCount);

    if (array) free(array);

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %ebp
movq %rdx, 0x18(%rsp)
movq %rsi, 0x20(%rsp)
movq (%rdi), %rbx
movl $0x18, %edi
callq 0x3130
movq %rax, %r14
leaq 0x6c12(%rip), %rax      # 0xfd70
movq %rax, (%r14)
movl $0x200, %edi            # imm = 0x200
movl $0x1, %esi
callq 0x30f0
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x9181
movl $0x40, 0x10(%r14)
movq %r14, 0x8(%rsp)
movl $0x0, 0x14(%r14)
movl $0x8, %edi
movl $0x40, %esi
callq 0x30f0
movq %rax, %r12
xorl %r14d, %r14d
testq %rax, %rax
setne %r14b
shll $0x6, %r14d
movq %rbx, (%rax)
xorl %ecx, %ecx
xorl %r15d, %r15d
movq %rcx, 0x10(%rsp)
movq (%r12,%rcx,8), %rdi
callq 0x3e98
testq %rax, %rax
je 0x9262
movq %rax, %r13
movq %r13, %rdi
movq 0x20(%rsp), %rsi
callq 0x4310
movq %rax, %rbx
testb %bpl, %bpl
je 0x921e
testq %r12, %r12
je 0x921e
cmpl %r14d, %r15d
jl 0x920a
movslq %r14d, %rsi
shlq $0x4, %rsi
movq %r12, %rdi
callq 0x3270
movq %rax, %r12
testq %rax, %rax
setne %cl
shll %cl, %r14d
testq %r12, %r12
je 0x921b
movslq %r15d, %rax
incl %r15d
movq %r13, (%r12,%rax,8)
jmp 0x921e
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x924e
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0x3160
testl %eax, %eax
jne 0x924e
movl $0x8, %edi
callq 0x3130
movq %r13, (%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x8eb4
movq %r13, %rdi
callq 0x3f3e
movq %rax, %r13
testq %rax, %rax
jne 0x91d0
testb %bpl, %bpl
movq 0x10(%rsp), %rcx
je 0x927b
incq %rcx
movslq %r15d, %rax
cmpq %rax, %rcx
jl 0x91b6
testq %r12, %r12
je 0x9288
movq %r12, %rdi
callq 0x31a0
movq 0x8(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyhtml.cpp
// Function: TiHtmlDocument::ParseData(char const*)
bool TiHtmlDocument::ParseData( const char * data ) {
    if (data){ 
        TiXmlDocument* doc = (TiXmlDocument* )internal;
        doc->Parse(data);
        if (doc->Error()) return false;
        return true;
    }
    
    return false;
}

// Assembly:
testq %rsi, %rsi
je 0x9538
pushq %rbx
movq 0x8(%rdi), %rbx
movq (%rbx), %rax
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq *0x18(%rax)
movb 0x50(%rbx), %al
xorb $0x1, %al
popq %rbx
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/smallmuou[P]tinyhtml/tinyhtml.cpp
// Function: TiHtmlDocument::Query(char const*)
TiHtmlResult* TiHtmlDocument::Query( const char* query ) {
    TiXmlDocument* doc = (TiXmlDocument* )internal;
    TiXmlElement* rootElement = doc ? doc ->RootElement():NULL;
    TiHtmlElement* element = new TiHtmlElement(rootElement);
    TiHtmlResult* result = element->Query(query);
    delete(element);
    return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x959d
callq 0x3e98
movq %rax, %r14
jmp 0x95a0
xorl %r14d, %r14d
movl $0x8, %edi
callq 0x3130
movq %rax, %r15
movq %r14, (%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x929c
movq %rax, %rbx
movl $0x8, %esi
movq %r15, %rdi
callq 0x3140
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Manuel123cool[P]smiley/read_variable.cpp
// Function: Variable::checkIfValueIsIdentifier(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Variable::checkIfValueIsIdentifier(std::string code)
{
    std::string value;
    bool start{ false };
    int whiteSpaceCount{ 0 };
    for(const auto &c : code) 
    {    
         if (start)
            value += c;    

        if (c == ' ')
             ++whiteSpaceCount;

        if (whiteSpaceCount == 2)
            start = true;
        
    } 
    if (value.at(0) == '"')
        return false;
    
    char valueChar[value.length() + 1]; 
    std::strcpy(valueChar, value.c_str());    
    
    if (static_cast<int>(valueChar[0]) > 57)
        return true;
    
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%rsi), %r15
testq %r15, %r15
je 0x330e
movq (%rsi), %r12
xorl %r13d, %r13d
movl $0x1, %ecx
xorl %ebx, %ebx
xorl %r14d, %r14d
testb $0x1, %bl
je 0x32ef
movsbl (%r12,%r13), %esi
leaq -0x48(%rbp), %rdi
callq 0x2120
movl $0x1, %ecx
xorl %eax, %eax
cmpb $0x20, (%r12,%r13)
sete %al
addl %eax, %r14d
cmpl $0x2, %r14d
movzbl %bl, %ebx
cmovel %ecx, %ebx
incq %r13
cmpq %r13, %r15
jne 0x32d7
movq -0x40(%rbp), %rbx
testq %rbx, %rbx
je 0x337c
movq -0x48(%rbp), %rax
cmpb $0x22, (%rax)
jne 0x3324
xorl %ebx, %ebx
jmp 0x3352
movq %rsp, %r14
movq %rsp, %r15
addq $0x10, %rbx
andq $-0x10, %rbx
movq %r15, %rdi
subq %rbx, %rdi
movq %rdi, %rsp
negq %rbx
movq -0x48(%rbp), %rsi
callq 0x2140
cmpb $0x3a, (%r15,%rbx)
setge %bl
movq %r14, %rsp
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x336b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2170
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xae02(%rip), %rdi      # 0xe185
xorl %esi, %esi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2210
jmp 0x3391
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x33ad
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2250
nop