//
// pugi::xml_node::attribute from 0x8120d0 to 0x81211a (74 bytes)
//
// 3 xrefs:
// > DS_Dictionary::checkCompatibility @ 0x80ac58
// > pugi::xml_node::remove_attribute @ 0x813352
// > sub_8179AC @ 0x817f48
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:38 +0000
//
int __fastcall pugi::xml_node::attribute(pugi::xml_node *this, const char *a2)
{
int i; // r5
const char *v4; // r1
_DWORD v6[2]; // [sp+0h] [bp-8h] BYREF
v6[0] = this;
v6[1] = a2;
if ( *(_DWORD *)this )
{
for ( i = *(_DWORD *)(*(_DWORD *)this + 28); i; i = *(_DWORD *)(i + 16) )
{
v4 = *(const char **)(i + 4);
if ( v4 && sub_80FCB4(a2, v4) )
{
pugi::xml_attribute::xml_attribute(v6, i);
return v6[0];
}
}
}
pugi::xml_attribute::xml_attribute(v6);
return v6[0];
}