//
// pugi::xml_node::find_child_by_attribute from 0x603d78 to 0x603de6 (110 bytes)
//
// 0 xrefs:
//
// 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
//
pugi::xml_node_struct *__fastcall pugi::xml_node::find_child_by_attribute(
pugi::xml_node *this,
pugi::xml_node_struct *a2,
pugi::xml_node_struct *a3)
{
int v5; // r4
_DWORD *i; // r5
const char *v7; // r1
const char *v8; // r1
pugi::xml_node v10[3]; // [sp+0h] [bp-Ch] BYREF
v10[0]._root = (pugi::xml_node_struct *)this;
v10[1]._root = a2;
v10[2]._root = a3;
if ( !this->_root )
goto LABEL_13;
v5 = *((_DWORD *)this->_root + 4);
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_6006BA((const char *)a2, v7) )
{
v8 = (const char *)i[2];
if ( !v8 )
v8 = (const char *)&unk_939830;
if ( sub_6006BA((const char *)a3, v8) )
break;
}
}
pugi::xml_node::xml_node(v10, v5);
}
else
{
LABEL_13:
pugi::xml_node::xml_node(v10);
}
return v10[0]._root;
}