// File: /workspace/github_cpp_makefile_star2_O1/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, %r13
movq %rdi, %r12
callq 0x3fe0
movq %rax, (%rsp)
movq %r13, %rdi
movl %ebx, %esi
callq 0x6e8a
movq %rax, %r14
testq %rax, %rax
sete %al
je 0x7f6a
movzbl (%r14), %ecx
cmpl $0x3c, %ecx
je 0x7ed1
testl %ecx, %ecx
je 0x7f6a
movl $0x58, %edi
callq 0x3130
movq %rax, %rbp
movq %rax, %rdi
leaq 0x2535(%rip), %rsi      # 0xa3e5
callq 0x6916
movq (%rbp), %rax
movq 0x18(%rax), %rax
leaq 0x82ac(%rip), %rcx      # 0x10170
cmpb $0x1, (%rcx)
jne 0x7f2f
movq %rbp, %rdi
movq %r14, %rsi
jmp 0x7f35
movq %r14, %rdi
leaq 0x2640(%rip), %rsi      # 0xa51b
xorl %edx, %edx
movl %ebx, %ecx
callq 0x7254
testb %al, %al
jne 0x7f8d
movq %r12, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x78a4
movq %rax, %rbp
testq %rax, %rax
je 0x7f21
movq (%rbp), %rax
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq *0x18(%rax)
movq %rax, %r14
movq %r12, %rdi
movq %rbp, %rsi
callq 0x369c
movq %r14, %r13
testq %rbp, %rbp
jne 0x7e6f
jmp 0x7f8a
movq %rbp, %rdi
movq %r13, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq *%rax
movq %rax, %r13
movq %rbp, %rdi
callq 0x7fb8
testb %al, %al
je 0x7f5a
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x8(%rax)
jmp 0x7e6f
movq %r12, %rdi
movq %rbp, %rsi
callq 0x369c
jmp 0x7e6f
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7f8d
testb $0x1, %al
je 0x7f8d
movl $0x5, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %ebx, %r8d
callq 0x77f6
jmp 0x7f8d
xorl %r14d, %r14d
movq %r14, %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
nop