//
// pugi::xml_node::find_child_by_attribute from 0xdc9ca8 to 0xdc9d7c (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x5f788
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:53 +0000
//
__int64 __fastcall pugi::xml_node::find_child_by_attribute(pugi::xml_node *this, const char *a2, const char *a3)
{
__int64 v5; // x0
__int64 v6; // x23
_QWORD *v7; // x19
const char *v8; // x1
const char *v9; // x1
__int64 v11; // [xsp+40h] [xbp+40h] BYREF
v5 = *(_QWORD *)this;
if ( v5 && (v6 = *(_QWORD *)(v5 + 32)) != 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_11B8890;
if ( !strcmp(a3, v9) )
break;
}
v7 = (_QWORD *)v7[4];
if ( !v7 )
goto LABEL_10;
}
pugi::xml_node::xml_node(&v11, v6);
return v11;
}
else
{
LABEL_11:
pugi::xml_node::xml_node(&v11);
return v11;
}
}