//
// tinyxml2::StrPair::ParseText from 0xb231f8 to 0xb232b4 (188 bytes)
//
// 7 xrefs:
// > tinyxml2::XMLAttribute::ParseDeep @ 0xb24fec
// > tinyxml2::XMLText::ParseDeep @ 0xb273a4
// > tinyxml2::XMLText::ParseDeep @ 0xb273e0
// > tinyxml2::XMLComment::ParseDeep @ 0xb27448
// > tinyxml2::XMLDeclaration::ParseDeep @ 0xb274b8
// > tinyxml2::XMLUnknown::ParseDeep @ 0xb27528
// > ??> @ 0x3be20
//
// 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
//
char *__fastcall tinyxml2::StrPair::ParseText(tinyxml2::StrPair *this, char *a2, const char *a3, int a4)
{
size_t v8; // x21
int v9; // w1
int v10; // w20
char *i; // x19
int v12; // t1
v8 = strlen(a3);
v9 = (unsigned __int8)*a2;
v10 = *(unsigned __int8 *)a3;
if ( !*a2 )
return nullptr;
for ( i = a2; v10 != v9 || strncmp(i, a3, v8); ++i )
{
v12 = (unsigned __int8)i[1];
v9 = v12;
if ( !v12 )
return nullptr;
}
tinyxml2::StrPair::Reset(this);
*((_QWORD *)this + 2) = i;
*(_DWORD *)this = a4 | 0x100;
*((_QWORD *)this + 1) = a2;
return &i[v8];
}