//
// tinyxml2::StrPair::ParseText from 0x7f85aa to 0x7f85fc (82 bytes)
//
// 6 xrefs:
// > tinyxml2::XMLAttribute::ParseDeep @ 0x7f90b8
// > tinyxml2::XMLText::ParseDeep @ 0x7f9948
// > tinyxml2::XMLText::ParseDeep @ 0x7f9972
// > tinyxml2::XMLComment::ParseDeep @ 0x7f99aa
// > tinyxml2::XMLDeclaration::ParseDeep @ 0x7f99d6
// > tinyxml2::XMLUnknown::ParseDeep @ 0x7f9a02
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:01:12 +0000
//
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;
}