//
// pugi::xml_node::find_child_by_attribute from 0x8133f4 to 0x813476 (130 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:39 +0000
//
int __fastcall pugi::xml_node::find_child_by_attribute(
pugi::xml_node *this,
const char *a2,
const char *a3,
const char *a4)
{
_DWORD *i; // r4
const char *v8; // r1
const char *v9; // r1
_DWORD *j; // r6
const char *v12; // r1
_DWORD v13[2]; // [sp+0h] [bp-8h] BYREF
v13[0] = this;
v13[1] = a2;
if ( *(_DWORD *)this )
{
for ( i = *(_DWORD **)(*(_DWORD *)this + 16); i; i = (_DWORD *)i[6] )
{
v8 = (const char *)i[2];
if ( v8 && sub_80FCB4(a2, v8) )
{
for ( j = (_DWORD *)i[7]; j; j = (_DWORD *)j[4] )
{
v9 = (const char *)j[1];
if ( v9 && sub_80FCB4(a3, v9) )
{
v12 = (const char *)j[2];
if ( !v12 )
v12 = (const char *)&unk_B6B226;
if ( sub_80FCB4(a4, v12) )
{
pugi::xml_node::xml_node(v13, (int)i);
return v13[0];
}
}
}
}
}
}
pugi::xml_node::xml_node(v13);
return v13[0];
}