//
// pugi::xml_node::find_child_by_attribute from 0x813480 to 0x8134ee (110 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)
{
int v5; // r4
_DWORD *i; // r5
const char *v7; // r1
const char *v8; // r1
_DWORD v10[3]; // [sp+0h] [bp-Ch] BYREF
v10[0] = this;
v10[1] = a2;
v10[2] = a3;
if ( !*(_DWORD *)this )
goto LABEL_13;
v5 = *(_DWORD *)(*(_DWORD *)this + 16);
LABEL_3:
if ( v5 )
{
for ( i = *(_DWORD **)(v5 + 28); ; i = (_DWORD *)i[4] )
{
if ( !i )
{
v5 = *(_DWORD *)(v5 + 24);
goto LABEL_3;
}
v7 = (const char *)i[1];
if ( v7 && sub_80FCB4(a2, v7) )
{
v8 = (const char *)i[2];
if ( !v8 )
v8 = (const char *)&unk_B6B226;
if ( sub_80FCB4(a3, v8) )
break;
}
}
pugi::xml_node::xml_node(v10, v5);
}
else
{
LABEL_13:
pugi::xml_node::xml_node(v10);
}
return v10[0];
}