//
// tinyxml2::XMLAttribute::ParseDeep from 0xd95afc to 0xd95bfc (256 bytes)
//
// 2 xrefs:
// > tinyxml2::XMLElement::ParseAttributes @ 0xd987d8
// > ??> @ 0x8c098
//
// 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:21 +0000
//
char *__fastcall tinyxml2::XMLAttribute::ParseDeep(tinyxml2::XMLAttribute *this, char *a2, unsigned __int8 a3)
{
int v3; // w23
char *v5; // x0
char *v6; // x19
int v7; // w20
char *result; // x0
int v9; // w20
char *v10; // x19
int v11; // w3
int v12; // t1
int v13; // t1
char v14[8]; // [xsp+40h] [xbp+40h] BYREF
v3 = a3;
v5 = tinyxml2::StrPair::ParseName((tinyxml2::XMLAttribute *)((char *)this + 8), a2);
v6 = v5;
if ( v5 )
{
v7 = (unsigned __int8)*v5;
if ( *v5 )
{
while ( (v7 & 0x80) == 0 )
{
if ( !isspace(v7) )
{
result = nullptr;
if ( v7 == 61 )
{
v9 = (unsigned __int8)v6[1];
v10 = v6 + 1;
if ( (v9 & 0x80) == 0 )
{
while ( isspace(v9) )
{
v12 = (unsigned __int8)*++v10;
v9 = v12;
if ( (v12 & 0x80) != 0 )
return nullptr;
}
if ( v9 == 39 || (result = nullptr, v9 == 34) )
{
*(_WORD *)v14 = 0;
v14[0] = *v10;
if ( v3 )
v11 = 3;
else
v11 = 2;
return tinyxml2::StrPair::ParseText((tinyxml2::XMLAttribute *)((char *)this + 32), v10 + 1, v14, v11);
}
}
}
return result;
}
v13 = (unsigned __int8)*++v6;
v7 = v13;
}
}
}
return nullptr;
}