//
// tinyxml2::StrPair::ParseName from 0xb232b4 to 0xb23378 (196 bytes)
//
// 3 xrefs:
// > tinyxml2::XMLAttribute::ParseDeep @ 0xb24f74
// > tinyxml2::XMLElement::ParseDeep @ 0xb27edc
// > ??> @ 0x3fd20
//
// 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::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;
}