//
// tinyxml2::StrPair::ParseName from 0x18009ea40 to 0x18009ead3 (147 bytes)
//
// 4 xrefs:
// > tinyxml2::XMLAttribute::ParseDeep @ 0x18009e1e9
// > tinyxml2::XMLElement::ParseDeep @ 0x18009e4fe
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1278
//
// This function is hookable on this platform (idp: pc, 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 11:22:12 +0000
//
char *__fastcall tinyxml2::StrPair::ParseName(tinyxml2::StrPair *this, char *a2)
{
char *v2; // rbx
unsigned __int8 v5; // al
char v6; // al
v2 = a2;
if ( !a2 )
return nullptr;
v5 = *a2;
if ( !*a2 )
return nullptr;
while ( 1 )
{
if ( v5 < 0x80u && !isalnum(v5) )
{
v6 = *v2;
if ( *v2 != 95 && v6 != 58 )
break;
}
LABEL_10:
v5 = *++v2;
if ( !v5 )
goto LABEL_11;
}
if ( v6 == 45 || v6 == 46 )
{
if ( v2 <= a2 )
return nullptr;
goto LABEL_10;
}
LABEL_11:
if ( v2 > a2 )
{
tinyxml2::StrPair::Set(this, a2, v2, 0);
return v2;
}
return nullptr;
}