// File: /workspace/github_cpp_makefile_star2_O3/smallmuou[P]tinyhtml/tinyxmlparser.cpp
// Function: TiXmlElement::ReadValue(char const*, TiXmlParsingData*, TiXmlEncoding)
const char* TiXmlElement::ReadValue( const char* p, TiXmlParsingData* data, TiXmlEncoding encoding )
{
	TiXmlDocument* document = GetDocument();

	// Read in text and elements in any order.
	const char* pWithWhiteSpace = p;
	p = SkipWhiteSpace( p, encoding );

	while ( p && *p )
	{
		if ( *p != '<' )
		{
			// Take what we have, make a text element.
			TiXmlText* textNode = new TiXmlText( "" );

			if ( !textNode )
			{
			    return 0;
			}

			if ( TiXmlBase::IsWhiteSpaceCondensed() )
			{
				p = textNode->Parse( p, data, encoding );
			}
			else
			{
				// Special case: we want to keep the white space
				// so that leading spaces aren't removed.
				p = textNode->Parse( pWithWhiteSpace, data, encoding );
			}

			if ( !textNode->Blank() )
				LinkEndChild( textNode );
			else
				delete textNode;
		} 
		else 
		{
			// We hit a '<'
			// Have we hit a new element or an end tag? This could also be
			// a TiXmlText in the "CDATA" style.
			if ( StringEqual( p, "</", false, encoding ) )
			{
				return p;
			}
			else
			{
				TiXmlNode* node = Identify( p, encoding );
				if ( node )
				{
					p = node->Parse( p, data, encoding );
					LinkEndChild( node );
				}				
				else
				{
					return 0;
				}
			}
		}
		pWithWhiteSpace = p;
		p = SkipWhiteSpace( p, encoding );
	}

	if ( !p )
	{
		if ( document ) document->SetError( TIXML_ERROR_READING_ELEMENT_VALUE, 0, 0, encoding );
	}	
	return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
callq 0x3fac
movq %rax, (%rsp)
movq %r14, %rdi
movl %ebx, %esi
callq 0x6d4c
testq %rax, %rax
je 0x7db2
movq %rax, %r13
movzbl (%r13), %eax
cmpl $0x3c, %eax
je 0x7d21
testl %eax, %eax
je 0x7dd4
movl $0x58, %edi
callq 0x3130
movq %rax, %rbp
movq %rax, %rdi
leaq 0x26e5(%rip), %rsi      # 0xa3e5
callq 0x6812
movq (%rbp), %rax
movq 0x18(%rax), %rax
leaq 0x845c(%rip), %rcx      # 0x10170
cmpb $0x1, (%rcx)
jne 0x7d69
movq %rbp, %rdi
movq %r13, %rsi
jmp 0x7d6f
movq %r13, %rdi
leaq 0x27f0(%rip), %rsi      # 0xa51b
xorl %edx, %edx
callq 0x70e8
testb %al, %al
jne 0x7dd4
movq %r12, %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x773a
testq %rax, %rax
je 0x7dd1
movq %rax, %rbp
movq (%rax), %rax
movq %rbp, %rdi
movq %r13, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq *0x18(%rax)
movq %rax, %r14
jmp 0x7d91
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq *%rax
movq %rax, %r14
movq %rbp, %rdi
callq 0x7dfe
testb %al, %al
je 0x7d91
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x8(%rax)
jmp 0x7d9c
movq %r12, %rdi
movq %rbp, %rsi
callq 0x36ac
movq %r14, %rdi
movl %ebx, %esi
callq 0x6d4c
movq %rax, %r13
testq %rax, %rax
jne 0x7cd7
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7dd1
xorl %r13d, %r13d
movl $0x5, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %ebx, %r8d
callq 0x768c
jmp 0x7dd4
xorl %r13d, %r13d
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x58, %esi
movq %rbp, %rdi
callq 0x3140
movq %rbx, %rdi
callq 0x3280