//
// pugi::xml_node::set_name from 0x812944 to 0x812974 (48 bytes)
//
// 11 xrefs:
// > pugi::xml_node::append_child @ 0x812d8e
// > sub_812DAC @ 0x812dec
// > sub_812DAC @ 0x812e76
// > sub_812DAC @ 0x812e96
// > pugi::xml_node::prepend_child @ 0x812f5c
// > pugi::xml_node::insert_child_before @ 0x813006
// > pugi::xml_node::insert_child_after @ 0x8130ae
// > pugi::xml_node::append_child @ 0x8130ee
// > pugi::xml_node::prepend_child @ 0x813126
// > pugi::xml_node::insert_child_after @ 0x81315e
// > pugi::xml_node::insert_child_before @ 0x813196
//
// 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::set_name(pugi::xml_node *this, char *a2)
{
unsigned int v4; // r0
v4 = (unsigned int)pugi::xml_node::type(this) - 2;
if ( v4 <= 5 && ((1 << v4) & 0x31) != 0 )
return sub_811938((int *)(*(_DWORD *)this + 8), *(int **)this, 16, a2);
else
return 0;
}