//
// pugi::xml_node::first_attribute from 0x81230c to 0x81233e (50 bytes)
//
// 6 xrefs:
// > sub_812344 @ 0x812360
// > sub_8123E4 @ 0x8123fe
// > sub_812DAC @ 0x812df2
// > sub_812DAC @ 0x812e9c
// > sub_816CF0 @ 0x81709e
// > sub_816CF0 @ 0x8170fc
//
// 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::first_attribute(pugi::xml_node *this, int a2)
{
_DWORD v3[2]; // [sp+0h] [bp-8h] BYREF
v3[0] = this;
v3[1] = a2;
if ( *(_DWORD *)this )
pugi::xml_attribute::xml_attribute(v3, *(_DWORD *)(*(_DWORD *)this + 28));
else
pugi::xml_attribute::xml_attribute(v3);
return v3[0];
}