//
// pugi::xml_node::find_child_by_attribute from 0xdc9bb4 to 0xdc9ca8 (244 bytes)
//
// 1 xrefs:
// > ??> @ 0x60b98
//
// 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,
const char *a4)
{
__int64 v7; // x0
_QWORD *v8; // x21
const char *v9; // x1
_QWORD *v10; // x19
const char *v11; // x1
const char *v12; // x1
__int64 v14; // [xsp+50h] [xbp+50h] BYREF
v7 = *(_QWORD *)this;
if ( v7 && (v8 = *(_QWORD **)(v7 + 32)) != nullptr )
{
while ( 1 )
{
v9 = (const char *)v8[2];
if ( v9 )
{
if ( !strcmp(a2, v9) )
{
v10 = (_QWORD *)v8[7];
if ( v10 )
break;
}
}
LABEL_12:
v8 = (_QWORD *)v8[6];
if ( !v8 )
goto LABEL_13;
}
while ( 1 )
{
v11 = (const char *)v10[1];
if ( v11 && !strcmp(a3, v11) )
{
v12 = (const char *)v10[2];
if ( !v12 )
v12 = &byte_11B8890;
if ( !strcmp(a4, v12) )
break;
}
v10 = (_QWORD *)v10[4];
if ( !v10 )
goto LABEL_12;
}
pugi::xml_node::xml_node(&v14, (__int64)v8);
return v14;
}
else
{
LABEL_13:
pugi::xml_node::xml_node(&v14);
return v14;
}
}