LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/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 0x6888
leaq 0x10(%rbx), %r14
leaq 0x3ead(%rip), %rsi      # 0xa52c
movl $0x4, %edx
movq %r14, %rdi
callq 0x89c2
movq 0x38(%r15), %r15
addq $0x10, %r15
movq %r15, %rdi
callq 0x30a0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x89c2
leaq 0x3cf0(%rip), %rsi      # 0xa3a1
movl $0x3, %edx
movq %r14, %rdi
callq 0x89c2
movq 0x20(%rbx), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %r14, %rdi
callq 0x89c2
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x6888
leaq 0x10(%rbx), %r14
leaq 0x3e24(%rip), %rsi      # 0xa519
movl $0x1, %edx
movq %r14, %rdi
callq 0x89c2
movq 0x38(%r15), %r15
addq $0x10, %r15
movq %r15, %rdi
callq 0x30a0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x89c2
leaq 0x3c7c(%rip), %rsi      # 0xa3a3
movl $0x1, %edx
movq %r14, %rdi
callq 0x89c2
movq 0x20(%rbx), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %r14, %rdi
callq 0x89c2
movb $0x1, %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x9022(%rip), %rax      # 0xf780
movq %rax, (%rdi)
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x677c
movq (%rdi), %rax
movq 0x48(%rdi), %r14
callq *0x8(%rax)
movq %r14, %rdi
testq %r14, %r14
jne 0x676a
movq 0x38(%rbx), %rdi
cmpq 0x9859(%rip), %rdi      # 0xffe0
sete %al
testq %rdi, %rdi
sete %cl
addq $0x8, %rsp
orb %al, %cl
je 0x679c
popq %rbx
popq %r14
retq
popq %rbx
popq %r14
jmp 0x31d0
// File: /workspace/github_cpp_makefile_star2_O3/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, -0x38(%rsp)
movq $0xc0, -0x28(%rsp)
movq $0xe0, -0x20(%rsp)
movq $0xf0, -0x18(%rsp)
movq $0xf8, -0x10(%rsp)
movq $0xfc, -0x8(%rsp)
cmpq $0x80, %rdi
jae 0x6b17
movl $0x1, (%rdx)
movl $0x1, %eax
jmp 0x6b72
cmpq $0x7ff, %rdi            # imm = 0x7FF
ja 0x6b28
movl $0x2, (%rdx)
jmp 0x6b62
cmpq $0xffff, %rdi           # imm = 0xFFFF
ja 0x6b39
movl $0x3, (%rdx)
jmp 0x6b55
cmpq $0x200000, %rdi         # imm = 0x200000
jae 0x6b7a
movl $0x4, (%rdx)
movl %edi, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x3(%rsi)
shrq $0x6, %rdi
movl %edi, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x2(%rsi)
shrq $0x6, %rdi
movl %edi, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rsi)
shrq $0x6, %rdi
movslq (%rdx), %rax
orl -0x38(%rsp,%rax,8), %edi
movb %dil, (%rsi)
retq
movl $0x0, (%rdx)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x6e0a
movq %rdi, %rbx
movb (%rdi), %r14b
testb %r14b, %r14b
je 0x6e0a
cmpl $0x1, %esi
jne 0x6de2
movzbl %r14b, %ebp
cmpb $-0x11, %bpl
je 0x6d80
testl %ebp, %ebp
jne 0x6da6
jmp 0x6e0c
movzbl 0x1(%rbx), %eax
cmpl $0xbf, %eax
je 0x6d94
cmpl $0xbb, %eax
je 0x6d9a
jmp 0x6da6
cmpb $-0x42, 0x2(%rbx)
je 0x6da0
cmpb $-0x41, 0x2(%rbx)
jne 0x6da6
addq $0x3, %rbx
jmp 0x6ddd
movl %ebp, %edi
callq 0x3060
testl %eax, %eax
setne %cl
cmpb $0xa, %bpl
sete %dl
cmpb $0xd, %bpl
sete %sil
orb %dl, %sil
orb %cl, %sil
movzbl %sil, %ecx
addq %rcx, %rbx
testl %eax, %eax
jne 0x6ddd
cmpb $0xa, %r14b
je 0x6ddd
cmpl $0xd, %ebp
jne 0x6e0c
movb (%rbx), %r14b
jmp 0x6d6d
movzbl %r14b, %ebp
movl %ebp, %edi
callq 0x3060
testl %eax, %eax
jne 0x6dfc
cmpb $0xd, %r14b
je 0x6dfc
cmpl $0xa, %ebp
jne 0x6e0c
movb 0x1(%rbx), %r14b
incq %rbx
testb %r14b, %r14b
jne 0x6de2
jmp 0x6e0c
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x35b9(%rip), %rsi      # 0xa3e5
movq %r14, %rdi
xorl %edx, %edx
callq 0x890e
testq %rbx, %rbx
je 0x6ec9
movzbl (%rbx), %ebp
testl %ebp, %ebp
je 0x6e5d
cmpb $0x7e, %bpl
ja 0x6e62
movl %ebp, %edi
callq 0x3250
cmpb $0x5f, %bpl
je 0x6e62
testl %eax, %eax
jne 0x6e62
xorl %r15d, %r15d
jmp 0x6eb7
movabsq $0x4000000002003, %r13  # imm = 0x4000000002003
movq %rbx, %r15
cmpb $0x7e, %bpl
ja 0x6e95
movzbl %bpl, %r12d
movl %r12d, %edi
callq 0x3150
testl %eax, %eax
jne 0x6e95
addl $-0x2d, %r12d
cmpl $0x32, %r12d
ja 0x6ea1
btq %r12, %r13
jae 0x6ea1
movb 0x1(%r15), %bpl
incq %r15
testb %bpl, %bpl
jne 0x6e6f
movq %r15, %rdx
subq %rbx, %rdx
testq %rdx, %rdx
jle 0x6eb7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x890e
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3443(%rip), %rdi      # 0xa313
leaq 0x375b(%rip), %rsi      # 0xa632
leaq 0x37c2(%rip), %rcx      # 0xa6a0
movl $0x197, %edx            # imm = 0x197
callq 0x30e0
// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x718a
movq %rsi, %rbx
testq %rsi, %rsi
je 0x71a9
movq %rdi, %r14
movb (%rdi), %al
testb %al, %al
je 0x71c8
testb %dl, %dl
je 0x7156
xorl %r13d, %r13d
movsbl (%rbx,%r13), %r15d
movb $0x1, %bpl
testl %r15d, %r15d
je 0x7179
movsbl %al, %edi
callq 0x3200
movl %eax, %r12d
movl %r15d, %edi
callq 0x3200
cmpl %eax, %r12d
jne 0x7172
movb 0x1(%r14,%r13), %al
incq %r13
testb %al, %al
jne 0x711c
cmpb $0x0, (%rbx,%r13)
jne 0x7172
jmp 0x7179
xorl %ecx, %ecx
movb (%rbx,%rcx), %dl
cmpb %dl, %al
jne 0x716e
movb 0x1(%r14,%rcx), %al
incq %rcx
testb %al, %al
jne 0x7158
movb (%rbx,%rcx), %dl
testb %dl, %dl
je 0x7176
xorl %ebp, %ebp
jmp 0x7179
movb $0x1, %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3182(%rip), %rdi      # 0xa313
leaq 0x349a(%rip), %rsi      # 0xa632
leaq 0x35d7(%rip), %rcx      # 0xa776
movl $0x21b, %edx            # imm = 0x21B
callq 0x30e0
leaq 0x361a(%rip), %rdi      # 0xa7ca
leaq 0x347b(%rip), %rsi      # 0xa632
leaq 0x35b8(%rip), %rcx      # 0xa776
movl $0x21c, %edx            # imm = 0x21C
callq 0x30e0
leaq 0x2faa(%rip), %rdi      # 0xa179
leaq 0x345c(%rip), %rsi      # 0xa632
leaq 0x3599(%rip), %rcx      # 0xa776
movl $0x21f, %edx            # imm = 0x21F
callq 0x30e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x770b
leal -0x1(%rsi), %eax
cmpl $0xf, %eax
jae 0x771a
movl %r8d, %ebp
movq %rcx, %rbx
movq %rdx, %r15
movq %rdi, %r14
movb $0x1, 0x50(%rdi)
movl %esi, 0x54(%rdi)
movl %esi, %eax
leaq 0x8b0f(%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 0x890e
movq $-0x1, 0x64(%r14)
testq %r15, %r15
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x770b
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x6bae
movq (%rbx), %rax
movq %rax, 0x64(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x30b8(%rip), %rdi      # 0xa7d9
leaq 0x2f0a(%rip), %rsi      # 0xa632
leaq 0x30d4(%rip), %rcx      # 0xa803
movl $0x324, %edx            # imm = 0x324
callq 0x30e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/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
movb $0x1, %bl
testq %r15, %r15
je 0x7e42
movl $0x1, %r12d
xorl %eax, %eax
movzbl 0x10(%r14,%rax), %ebp
movl %ebp, %edi
callq 0x3060
testl %eax, %eax
jne 0x7e37
cmpl $0xd, %ebp
je 0x7e37
cmpl $0xa, %ebp
jne 0x7e4d
movl %r12d, %eax
incl %r12d
cmpq %rax, %r15
ja 0x7e1c
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
jmp 0x7e42
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3fac
movq %rax, %r12
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6d4c
movq %rax, %rbx
testq %r15, %r15
je 0x7e97
movq %r15, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x6bae
movq (%r15), %rax
movq %rax, 0x8(%r14)
testq %rbx, %rbx
je 0x7ee3
cmpb $0x3c, (%rbx)
jne 0x7ee3
addq $0x38, %r14
leaq 0x2539(%rip), %rsi      # 0xa3e5
movq %r14, %rdi
xorl %edx, %edx
callq 0x890e
incq %rbx
leaq 0xf(%rsp), %r15
movzbl (%rbx), %ecx
testl %ecx, %ecx
je 0x7f02
cmpl $0x3e, %ecx
je 0x7f02
movb %cl, 0xf(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x89c2
incq %rbx
jmp 0x7ebe
testq %r12, %r12
je 0x7efe
movq %r12, %rdi
movl $0x9, %esi
movq %rbx, %rdx
movq %r15, %rcx
movl %ebp, %r8d
callq 0x768c
xorl %eax, %eax
jmp 0x7f0d
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_O3/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, %ebp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
callq 0x3fac
movq %rax, (%rsp)
leaq 0x38(%r12), %r14
leaq 0x24a0(%rip), %rsi      # 0xa3e5
movq %r14, %rdi
xorl %edx, %edx
callq 0x890e
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6d4c
movq %rax, %rbx
movq %rax, %r13
testq %r15, %r15
je 0x7f79
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x6bae
movq (%r15), %rax
movq %rax, 0x8(%r12)
leaq 0x25ac(%rip), %rsi      # 0xa52c
movq %r13, %rdi
xorl %edx, %edx
callq 0x70e8
testb %al, %al
je 0x7fea
addq $0x4, %rbx
leaq 0x244c(%rip), %rsi      # 0xa3e5
xorl %r15d, %r15d
movq %r14, %rdi
xorl %edx, %edx
callq 0x890e
cmpb $0x0, 0x4(%r13)
je 0x8017
leaq 0x23ed(%rip), %r12      # 0xa3a1
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x70e8
testb %al, %al
jne 0x800b
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x89c2
leaq 0x1(%rbx), %rax
cmpb $0x0, 0x1(%rbx)
movq %rax, %rbx
jne 0x7fb7
movq %rax, %rbx
jmp 0x8017
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8006
movl $0xa, %esi
movq %r13, %rdx
movq %r15, %rcx
movl %ebp, %r8d
callq 0x768c
xorl %r15d, %r15d
jmp 0x801a
xorl %eax, %eax
cmpb $0x0, (%rbx)
setne %al
leaq (%rax,%rax,2), %r15
addq %rbx, %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x92d4
leaq 0x24cf(%rip), %rsi      # 0xaca1
movq %rbx, %rdi
callq 0x931e
leaq 0x24ca(%rip), %rsi      # 0xacab
movq %rsp, %rdi
callq 0x939a
movq %rax, %rbx
testq %rax, %rax
je 0x886c
movq %rbx, %rdi
callq 0x8d8a
leaq 0x24ba(%rip), %rdi      # 0xacba
movl %eax, %esi
xorl %eax, %eax
callq 0x3050
leaq 0x24c8(%rip), %r14      # 0xacd8
leaq 0x24ad(%rip), %r15      # 0xacc4
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x8d8a
cmpl %eax, %ebp
jge 0x8863
movq %rbx, %rdi
movl %ebp, %esi
callq 0x8d8e
movq %rax, %rdi
callq 0x8e0e
movq %rax, %r12
movq %rbx, %rdi
movl %ebp, %esi
callq 0x8d8e
movq %rax, %rdi
movq %r14, %rsi
callq 0x8dfe
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3050
incl %ebp
jmp 0x8819
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq %rsp, %rdi
callq 0x9354
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8887
jmp 0x8887
movq %rax, %rbx
movq %rsp, %rdi
callq 0x9354
movq %rbx, %rdi
callq 0x3280
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x8(%rdi), %rax
cmpq %rdx, %rax
jb 0x893d
leaq (%r14,%r14,2), %rcx
addq $0x18, %rcx
cmpq %rcx, %rax
jbe 0x898e
testq %r14, %r14
je 0x89b8
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)
leaq 0x78e1(%rip), %rax      # 0x10258
cmpq %rax, %rdi
sete %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x89a9
callq 0x31d0
jmp 0x89a9
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
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x7899(%rip), %r12      # 0x10258
jmp 0x895a
nop
// File: /workspace/github_cpp_makefile_star2_O3/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), %rcx
movq 0x8(%rax), %rsi
leaq (%rcx,%rdx), %r12
cmpq %rsi, %r12
jbe 0x89f7
addq %r12, %rsi
movq %rbx, %rdi
callq 0x889c
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_O3/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 0x781b(%rip), %r12      # 0x10258
movq %r12, (%rdi)
movq (%rsi), %rax
movq (%rdx), %rcx
movq (%rcx), %rsi
addq (%rax), %rsi
callq 0x889c
movq (%r15), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x89c2
movq (%r14), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x89c2
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 0x8a9f
callq 0x31d0
movq %r14, %rdi
callq 0x3280
// File: /workspace/github_cpp_makefile_star2_O3/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 0x7798(%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 0x889c
movq (%r12), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x89c2
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x89c2
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 0x8b29
callq 0x31d0
movq %r14, %rdi
callq 0x3280
// File: /workspace/github_cpp_makefile_star2_O3/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 0x770e(%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 0x889c
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x89c2
movq (%r14), %rsi
movq (%rsi), %rdx
addq $0x10, %rsi
movq %rbx, %rdi
callq 0x89c2
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 0x8bb1
callq 0x31d0
movq %r14, %rdi
callq 0x3280
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/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 0x8c32
movq %rbx, %rdi
callq 0x30a0
leal -0x1(%rax), %ecx
testl %eax, %eax
jle 0x8c0e
movl %eax, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
xorl %edx, %edx
cmpb $0x20, (%rbx,%rdx)
jne 0x8bf1
incq %rdx
cmpq %rdx, %rsi
jne 0x8be1
movl %eax, %edx
cmpl %ecx, %edx
cmovgel %ecx, %edx
testl %eax, %eax
jle 0x8c10
leal -0x1(%rax), %ecx
cmpb $0x20, (%rbx,%rcx)
jne 0x8c10
decl %eax
jg 0x8bfa
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x8c10
movl %ecx, %edx
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_O3/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:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x70ee(%rip), %rax      # 0xfd70
movq %rax, (%rdi)
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x8cc6
leaq 0x8(%rbx), %r14
movl 0x14(%rbx), %eax
testl %eax, %eax
jle 0x8cba
movq 0x8(%rbx), %rcx
decl %eax
movl %eax, 0x14(%rbx)
movq (%rcx,%rax,8), %rdi
movl $0x8, %esi
callq 0x3140
movl 0x14(%rbx), %eax
testl %eax, %eax
jg 0x8c99
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_O3/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:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x8df0
movl 0x14(%rbx), %eax
testl %eax, %eax
jle 0x8dda
movq 0x8(%rbx), %rcx
decl %eax
movl %eax, 0x14(%rbx)
movq (%rcx,%rax,8), %rdi
movl $0x8, %esi
callq 0x3140
movl 0x14(%rbx), %eax
testl %eax, %eax
jg 0x8db8
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_O3/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 0x6f27(%rip), %rax      # 0xfd70
movq %rax, (%r15)
movl $0x200, %edi            # imm = 0x200
movl $0x1, %esi
callq 0x30f0
movq %rax, 0x8(%r15)
testq %rax, %rax
je 0x8e6c
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 0x3ea2
testq %rax, %rax
je 0x8f23
movq %rax, %r12
movl $0x8, %edi
callq 0x3130
movq %r12, (%rax)
movq %rbp, %rdi
movq %rax, %rsi
callq 0x8ce6
cmpb $0x0, 0xc(%rsp)
je 0x8f09
testq %r15, %r15
je 0x8f09
cmpl %r13d, %ebx
jl 0x8f00
movslq %r13d, %rsi
shlq $0x4, %rsi
movq %r15, %rdi
callq 0x3270
testq %rax, %rax
setne %cl
shll %cl, %r13d
testq %rax, %rax
je 0x8f1e
movq %rax, %r15
movslq %ebx, %rax
incl %ebx
movq %r12, (%r15,%rax,8)
movq %r12, %rdi
movq %r14, %rsi
callq 0x3f3e
movq %rax, %r12
testq %rax, %rax
jne 0x8eb7
jmp 0x8f23
xorl %r15d, %r15d
jmp 0x8f09
cmpb $0x0, 0xc(%rsp)
movq 0x10(%rsp), %rcx
je 0x8f3e
incq %rcx
movslq %ebx, %rax
cmpq %rax, %rcx
jl 0x8e9e
testq %r15, %r15
je 0x8f4b
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_O3/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 0x6de2(%rip), %rax      # 0xfd70
movq %rax, (%r14)
movl $0x200, %edi            # imm = 0x200
movl $0x1, %esi
callq 0x30f0
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x8fb1
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 0x3e76
testq %rax, %rax
je 0x9094
movq %rax, %r13
movq %r13, %rdi
movq 0x20(%rsp), %rsi
callq 0x42c6
movq %rax, %rbx
testb %bpl, %bpl
je 0x9049
testq %r12, %r12
je 0x9049
cmpl %r14d, %r15d
jl 0x903f
movslq %r14d, %rsi
shlq $0x4, %rsi
movq %r12, %rdi
callq 0x3270
testq %rax, %rax
setne %cl
shll %cl, %r14d
testq %rax, %rax
je 0x908f
movq %rax, %r12
movslq %r15d, %rax
incl %r15d
movq %r13, (%r12,%rax,8)
testq %rbx, %rbx
je 0x9079
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0x3160
testl %eax, %eax
jne 0x9079
movl $0x8, %edi
callq 0x3130
movq %r13, (%rax)
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x8ce6
movq %r13, %rdi
callq 0x3f14
movq %rax, %r13
testq %rax, %rax
jne 0x9000
jmp 0x9094
xorl %r12d, %r12d
jmp 0x9049
testb %bpl, %bpl
movq 0x10(%rsp), %rcx
je 0x90ad
incq %rcx
movslq %r15d, %rax
cmpq %rax, %rcx
jl 0x8fe6
testq %r12, %r12
je 0x90ba
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_O3/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 0x9350
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_O3/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 0x93b5
callq 0x3e76
movq %rax, %r14
jmp 0x93b8
xorl %r14d, %r14d
movl $0x8, %edi
callq 0x3130
movq %rax, %r15
movq %r14, (%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x90ce
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_O3/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 0x32df
movq (%rsi), %r12
xorl %r13d, %r13d
xorl %r14d, %r14d
xorl %ebx, %ebx
testb $0x1, %r14b
je 0x3254
movsbl (%r12,%r13), %esi
leaq -0x48(%rbp), %rdi
callq 0x2120
xorl %eax, %eax
cmpb $0x20, (%r12,%r13)
sete %al
addl %eax, %ebx
cmpl $0x2, %ebx
sete %al
orb %al, %r14b
incq %r13
cmpq %r13, %r15
jne 0x3240
movq -0x40(%rbp), %rbx
testq %rbx, %rbx
je 0x32df
movq -0x48(%rbp), %rdi
cmpb $0x22, (%rdi)
jne 0x3287
xorl %ebx, %ebx
jmp 0x32b9
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 0x32ce
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 0xae9f(%rip), %rdi      # 0xe185
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2210
jmp 0x32f3
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x330f
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2250
nop
// File: /workspace/github_cpp_makefile_star2_O3/Manuel123cool[P]smiley/read_variable.cpp
// Function: Variable::getValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string Variable::getValue(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;
        
    } 
    std::string stringValue;
    if (value.at(0) == '"')
    {
        for (int i{ 1 }; i < value.length() - 1; ++i)
        {
           stringValue += value.at(i); 
        } 
        value = stringValue;
    }
    return value; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x8(%rdx), %r14
testq %r14, %r14
je 0x3436
movq (%rdx), %r15
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r12d, %r12d
testb $0x1, %bpl
je 0x336b
movsbl (%r15,%r13), %esi
movq %rbx, %rdi
callq 0x2120
xorl %eax, %eax
cmpb $0x20, (%r15,%r13)
sete %al
addl %eax, %r12d
cmpl $0x2, %r12d
sete %al
orb %al, %bpl
incq %r13
cmpq %r13, %r14
jne 0x3358
movq 0x8(%rbx), %rdx
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
testq %rdx, %rdx
je 0x344c
movq (%rbx), %rax
cmpb $0x22, (%rax)
jne 0x3413
leaq -0x3(%rdx), %rax
cmpq $-0x3, %rax
ja 0x33ef
movl $0x1, %r14d
leaq 0x8(%rsp), %r15
cmpq %r14, %rdx
jbe 0x3425
movq (%rbx), %rax
movsbl (%rax,%r14), %esi
movq %r15, %rdi
callq 0x2120
incq %r14
movq 0x8(%rbx), %rdx
leaq -0x1(%rdx), %rax
cmpq %r14, %rax
ja 0x33ca
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x20c0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3413
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xad59(%rip), %rdi      # 0xe185
movq %r14, %rsi
xorl %eax, %eax
callq 0x2210
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0xad32(%rip), %rdi      # 0xe185
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2210
jmp 0x3462
jmp 0x3462
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3481
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x3481
movq %rax, %r14
movq (%rbx), %rdi
cmpq (%rsp), %rdi
je 0x3499
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2170
movq %r14, %rdi
callq 0x2250
nop
// File: /workspace/github_cpp_makefile_star2_O3/Manuel123cool[P]smiley/read_variable.cpp
// Function: Variable::getIdentifier(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string Variable::getIdentifier(std::string code)
{
    std::string identifier;
    bool start{ false };
    for(const auto &c : code) 
    {
        if (c == ' ' && start)
            return identifier;

        if (start)
            identifier += c;

        if (c == ' ' && !start)
            start = true;
    } 
    return "something went wrong";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%rdx), %r12
testq %r12, %r12
je 0x350a
movq (%rdx), %r13
xorl %ebp, %ebp
leaq 0x8(%rsp), %r14
xorl %r15d, %r15d
movb (%r13,%rbp), %al
cmpb $0x20, %al
jne 0x34f1
testb $0x1, %r15b
movb $0x1, %r15b
je 0x3502
jmp 0x3545
testb $0x1, %r15b
je 0x3502
movsbl %al, %esi
movq %r14, %rdi
callq 0x2120
incq %rbp
cmpq %rbp, %r12
jne 0x34dd
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xab67(%rip), %rsi      # 0xe07f
leaq 0xab74(%rip), %rdx      # 0xe093
movq %rbx, %rdi
callq 0x79c6
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3578
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x3578
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rcx
leaq 0x18(%rsp), %rdx
cmpq %rdx, %rcx
je 0x3569
movq %rcx, (%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rbx)
jmp 0x356f
movups (%rdx), %xmm0
movups %xmm0, (%rax)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x358c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x35ab
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2250
nop
// File: /workspace/github_cpp_makefile_star2_O3/Manuel123cool[P]smiley/read_variable.cpp
// Function: Variable::getType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string Variable::getValueVar(std::string identifier)
{
    for (int i{ 0 }; i < m_variables.size(); ++i)
    {
        if (m_variables.at(i).identifier == identifier)
            return m_variables.at(i).value;
    } 
    std::cout << "Get value: identifier not found\n";
    return "smt went wrong";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%rsi), %r15
testq %r15, %r15
je 0x368a
movq (%rsi), %r12
xorl %r13d, %r13d
leaq 0x8(%rsp), %rbx
xorl %ebp, %ebp
xorl %r14d, %r14d
testb $0x1, %bpl
je 0x3606
movsbl (%r12,%r13), %esi
movq %rbx, %rdi
callq 0x2120
xorl %eax, %eax
cmpb $0x20, (%r12,%r13)
sete %al
addl %eax, %r14d
cmpl $0x2, %r14d
sete %al
orb %al, %bpl
incq %r13
cmpq %r13, %r15
jne 0x35f3
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x368a
movq 0x8(%rsp), %rdi
movb (%rdi), %cl
movl $0x1, %ebx
cmpb $0x22, %cl
je 0x3662
movl $0x2, %ebx
cmpb $0x2e, %cl
je 0x3662
movl $0x1, %ecx
cmpq %rcx, %rax
je 0x3660
cmpb $0x2e, (%rdi,%rcx)
leaq 0x1(%rcx), %rcx
jne 0x364f
jmp 0x3662
xorl %ebx, %ebx
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3679
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xaaf4(%rip), %rdi      # 0xe185
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2210
jmp 0x369e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x36bd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2250
nop
// File: /workspace/github_cpp_makefile_star2_O3/Manuel123cool[P]smiley/read_variable.cpp
// Function: Variable::printValue(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Variable::printValue(std::string identifier)
{
    for (int i{ 0 }; i < m_variables.size(); ++i)
    {
        if (m_variables.at(i).identifier == identifier)
        {
            std::cout << m_variables.at(i).value << std::endl;
            return; 
        }
    } 
    std::cerr << "Print: identifier not found" << std::endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r15
movq 0x8(%rdi), %rax
subq %r15, %rax
je 0x3725
movq %rsi, %rbx
sarq $0x3, %rax
movabsq $-0x71c71c71c71c71c7, %r12 # imm = 0x8E38E38E38E38E39
imulq %rax, %r12
movq 0x8(%rsi), %r14
cmpq $0x1, %r12
adcq $0x0, %r12
addq $0x30, %r15
cmpq %r14, (%r15)
jne 0x371c
testq %r14, %r14
je 0x3742
movq (%rbx), %rsi
movq -0x8(%r15), %rdi
movq %r14, %rdx
callq 0x2180
testl %eax, %eax
je 0x3742
addq $0x48, %r15
decq %r12
jne 0x36ff
movq 0xe8c4(%rip), %rbx      # 0x11ff0
leaq 0xa961(%rip), %rsi      # 0xe094
movl $0x1b, %edx
movq %rbx, %rdi
callq 0x2190
jmp 0x3759
movq -0x28(%r15), %rsi
movq -0x20(%r15), %rdx
movq 0xe877(%rip), %rdi      # 0x11fc8
callq 0x2190
movq %rax, %rbx
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x20e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/Manuel123cool[P]smiley/read_variable.cpp
// Function: Variable::setVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Variable::Types)
void Variable::setVariable(std::string identifier, std::string value, Types type)
{
    for (int i{ 0 }; i < m_variables.size(); ++i)
    {
        if (m_variables.at(i).identifier == identifier)
        {
            m_variables.at(i).value = value; 
            m_variables.at(i).type = type; 
            return;
        }
    } 
    
    TypeValue typeValue; 
    typeValue.identifier = identifier;
    typeValue.value = value;
    typeValue.type = type; 
    
    m_variables.push_back(typeValue);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, 0xc(%rsp)
movq %rdx, 0x18(%rsp)
movq %rsi, %r12
movq (%rdi), %r15
movq %rdi, 0x10(%rsp)
movq 0x8(%rdi), %r14
subq %r15, %r14
je 0x3810
sarq $0x3, %r14
movabsq $-0x71c71c71c71c71c7, %rax # imm = 0x8E38E38E38E38E39
imulq %rax, %r14
movq 0x8(%r12), %rbp
cmpq $0x1, %r14
adcq $0x0, %r14
xorl %ebx, %ebx
xorl %r13d, %r13d
cmpq %rbp, 0x30(%r15,%rbx)
jne 0x3804
testq %rbp, %rbp
je 0x3893
movq (%r12), %rsi
movq 0x28(%r15,%rbx), %rdi
movq %rbp, %rdx
callq 0x2180
testl %eax, %eax
je 0x3893
incq %r13
addq $0x48, %rbx
cmpq %r13, %r14
jne 0x37db
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
xorl %eax, %eax
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq %rax, -0x8(%rbx)
movb %al, (%rbx)
movq %r12, %rsi
callq 0x20c0
leaq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x20c0
leaq 0x20(%rsp), %rsi
movl 0xc(%rsp), %eax
movl %eax, (%rsi)
movq 0x10(%rsp), %rdi
callq 0x78c8
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x387a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x38d2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x38d2
leaq (%r15,%rbx), %rdi
addq $0x8, %rdi
movq 0x18(%rsp), %rsi
callq 0x20c0
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x71c71c71c71c71c7, %rcx # imm = 0x8E38E38E38E38E39
imulq %rcx, %rdx
cmpq %r13, %rdx
jbe 0x38e1
movl 0xc(%rsp), %ecx
movl %ecx, (%rax,%rbx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa839(%rip), %rdi      # 0xe121
movq %r13, %rsi
xorl %eax, %eax
callq 0x2210
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x78f2
movq %rbx, %rdi
callq 0x2250
nop