//
// pugi::xml_node::attribute from 0xdc5388 to 0xdc5424 (156 bytes)
//
// 4 xrefs:
// > DS_Dictionary::checkCompatibility @ 0xdb5f14
// > pugi::xml_node::remove_attribute @ 0xdc96c0
// > sub_DD3A70 @ 0xdd3bb0
// > ??> @ 0x8dfd0
//
// 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:50 +0000
//
__int64 __fastcall pugi::xml_node::attribute(pugi::xml_node *this, const char *a2)
{
__int64 v3; // x0
__int64 v4; // x19
const char *v5; // x1
__int64 v7; // [xsp+30h] [xbp+30h] BYREF
v3 = *(_QWORD *)this;
if ( v3 && (v4 = *(_QWORD *)(v3 + 56)) != 0 )
{
while ( 1 )
{
v5 = *(const char **)(v4 + 8);
if ( v5 )
{
if ( !strcmp(a2, v5) )
break;
}
v4 = *(_QWORD *)(v4 + 32);
if ( !v4 )
goto LABEL_8;
}
pugi::xml_attribute::xml_attribute(&v7, v4);
return v7;
}
else
{
LABEL_8:
pugi::xml_attribute::xml_attribute(&v7);
return v7;
}
}