//
// tinyxml2::StrPair::ParseText from 0x5ed562 to 0x5ed5b4 (82 bytes)
//
// 6 xrefs:
// > tinyxml2::XMLAttribute::ParseDeep @ 0x5ee060
// > tinyxml2::XMLText::ParseDeep @ 0x5ee8f0
// > tinyxml2::XMLText::ParseDeep @ 0x5ee91a
// > tinyxml2::XMLComment::ParseDeep @ 0x5ee952
// > tinyxml2::XMLDeclaration::ParseDeep @ 0x5ee97e
// > tinyxml2::XMLUnknown::ParseDeep @ 0x5ee9aa
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
const char *__fastcall tinyxml2::StrPair::ParseText(tinyxml2::StrPair *this, char *a2, const char *a3, int a4)
{
const char *v8; // r10
char *v9; // r5
size_t v10; // r8
const char *v11; // r6
const char *result; // r0
const char *v13; // t1
v8 = (const char *)*(unsigned __int8 *)a3;
v9 = a2;
v10 = strlen(a3);
while ( 1 )
{
v11 = v9;
v13 = (const char *)(unsigned __int8)*v9++;
result = v13;
if ( !v13 )
break;
if ( result == v8 && !strncmp(v11, a3, v10) )
{
tinyxml2::StrPair::Reset(this);
*((_DWORD *)this + 1) = a2;
*((_DWORD *)this + 2) = v11;
*(_DWORD *)this = a4 | 0x100;
return &v11[v10];
}
}
return result;
}