//
// pugi::xml_node::set_name from 0xb542c8 to 0xb54324 (92 bytes)
//
// 12 xrefs:
// > pugi::xml_node::append_child @ 0xb54be4
// > sub_B54BF0 @ 0xb54c5c
// > sub_B54BF0 @ 0xb54cb4
// > sub_B54BF0 @ 0xb54d90
// > pugi::xml_node::prepend_child @ 0xb54f04
// > pugi::xml_node::insert_child_before @ 0xb550d0
// > pugi::xml_node::insert_child_after @ 0xb55268
// > pugi::xml_node::append_child @ 0xb552d0
// > pugi::xml_node::prepend_child @ 0xb55330
// > pugi::xml_node::insert_child_after @ 0xb55390
// > pugi::xml_node::insert_child_before @ 0xb553f0
// > ??> @ 0xbc010
//
// 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
//
__int64 __fastcall pugi::xml_node::set_name(pugi::xml_node *this, char *a2)
{
unsigned int v4; // w0
v4 = pugi::xml_node::type(this);
if ( v4 == 2 || v4 >= 2 && v4 - 6 <= 1 )
return sub_B4C840((const char **)this->_root + 2, (__int64 *)this->_root, 16, a2);
else
return 0;
}