//
// tinyxml2::StrPair::ParseName from 0xd93e5c to 0xd93f20 (196 bytes)
//
// 3 xrefs:
// > tinyxml2::XMLAttribute::ParseDeep @ 0xd95b2c
// > tinyxml2::XMLElement::ParseDeep @ 0xd98a7c
// > ??> @ 0x5bcc0
//
// 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::ParseName(tinyxml2::StrPair *this, char *a2)
{
int v2; // w19
char *v5; // x20
int v6; // w0
int v7; // t1
char *result; // x0
if ( !a2 )
return nullptr;
v2 = (unsigned __int8)*a2;
if ( !*a2 )
return nullptr;
v5 = a2;
do
{
if ( (v2 & 0x80) == 0 )
{
v6 = isalnum(v2);
if ( v2 != 58 && v2 != 95 && !v6 )
{
if ( v2 == 45 )
{
if ( a2 >= v5 )
return nullptr;
goto LABEL_10;
}
if ( v2 != 46 || v5 <= a2 )
break;
}
}
LABEL_10:
v7 = (unsigned __int8)*++v5;
v2 = v7;
}
while ( v7 );
result = nullptr;
if ( a2 < v5 )
{
tinyxml2::StrPair::Reset(this);
*((_QWORD *)this + 1) = a2;
result = v5;
*((_QWORD *)this + 2) = v5;
*(_DWORD *)this = 256;
}
return result;
}