//
// pugi::xml_node::set_name from 0x60327c to 0x6032ac (48 bytes)
//
// 11 xrefs:
// > pugi::xml_node::append_child @ 0x6036b6
// > sub_6036D4 @ 0x603714
// > sub_6036D4 @ 0x60379e
// > sub_6036D4 @ 0x6037be
// > pugi::xml_node::prepend_child @ 0x603880
// > pugi::xml_node::insert_child_before @ 0x60391e
// > pugi::xml_node::insert_child_after @ 0x6039be
// > pugi::xml_node::append_child @ 0x6039fe
// > pugi::xml_node::prepend_child @ 0x603a36
// > pugi::xml_node::insert_child_after @ 0x603a6e
// > pugi::xml_node::insert_child_before @ 0x603aa6
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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_6022A8((int *)this->_root + 2, (int *)this->_root, 16, a2);
else
return 0;
}