//
// tinyxml2::XMLNode::FirstChildElement from 0x5eded0 to 0x5edf04 (52 bytes)
//
// 2 xrefs:
// > sub_5EB9B4 @ 0x5eba22
// > sub_5EB9B4 @ 0x5eba2a
//
// 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
//
int __fastcall tinyxml2::XMLNode::FirstChildElement(tinyxml2::XMLNode *this, tinyxml2::XMLUtil *a2)
{
int i; // r5
int v4; // r0
int v5; // r4
tinyxml2::XMLUtil *Str; // r0
int v7; // r3
for ( i = *((_DWORD *)this + 6); ; i = *(_DWORD *)(i + 36) )
{
if ( !i )
return 0;
v4 = (**(int (__fastcall ***)(int))i)(i);
v5 = v4;
if ( v4 )
{
if ( !a2 )
break;
Str = (tinyxml2::XMLUtil *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v4 + 12));
if ( tinyxml2::XMLUtil::StringEqual(Str, a2, (const char *)0x7FFFFFFF, v7) )
break;
}
}
return v5;
}