//
// tinyxml2::StrPair::ParseText from 0xd93da0 to 0xd93e5c (188 bytes)
//
// 7 xrefs:
// > tinyxml2::XMLAttribute::ParseDeep @ 0xd95ba4
// > tinyxml2::XMLText::ParseDeep @ 0xd97f48
// > tinyxml2::XMLText::ParseDeep @ 0xd97f84
// > tinyxml2::XMLComment::ParseDeep @ 0xd97fec
// > tinyxml2::XMLDeclaration::ParseDeep @ 0xd9805c
// > tinyxml2::XMLUnknown::ParseDeep @ 0xd980cc
// > ??> @ 0x56da0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:20 +0000
//
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 + 1) = a2;
*((_QWORD *)this + 2) = i;
*(_DWORD *)this = a4 | 0x100;
return &i[v8];
}