//
// pugi::xml_node::find_child_by_attribute from 0xb55e84 to 0xb55f58 (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x42d08
//
// 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,
const char *a2,
const char *a3)
{
pugi::xml_node_struct *root; // x0
__int64 v6; // x23
_QWORD *v7; // x19
const char *v8; // x1
const char *v9; // x1
pugi::xml_node v11; // [xsp+40h] [xbp+40h] BYREF
root = this->_root;
if ( root && (v6 = *((_QWORD *)root + 4)) != 0 )
{
while ( 1 )
{
v7 = *(_QWORD **)(v6 + 56);
if ( v7 )
break;
LABEL_10:
v6 = *(_QWORD *)(v6 + 48);
if ( !v6 )
goto LABEL_11;
}
while ( 1 )
{
v8 = (const char *)v7[1];
if ( v8 && !strcmp(a2, v8) )
{
v9 = (const char *)v7[2];
if ( !v9 )
v9 = &byte_F288A0;
if ( !strcmp(a3, v9) )
break;
}
v7 = (_QWORD *)v7[4];
if ( !v7 )
goto LABEL_10;
}
pugi::xml_node::xml_node(&v11, v6);
return v11._root;
}
else
{
LABEL_11:
pugi::xml_node::xml_node(&v11);
return v11._root;
}
}