//
// pugi::xml_text::_data_new from 0x604204 to 0x604246 (66 bytes)
//
// 7 xrefs:
// > pugi::xml_text::set @ 0x6043de
// > pugi::xml_text::set @ 0x604408
// > pugi::xml_text::set @ 0x604458
// > pugi::xml_text::set @ 0x6044ac
// > pugi::xml_text::set @ 0x6044f4
// > pugi::xml_text::set @ 0x604534
// > pugi::xml_text::set @ 0x60458c
//
// 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
//
pugi::xml_node_struct *__fastcall pugi::xml_text::_data_new(
pugi::xml_text *this,
pugi::xml_node_struct *a2,
int a3,
int a4)
{
pugi::xml_node_struct *result; // r0
pugi::xml_node_struct *v6; // r2
pugi::xml_node v7; // [sp+4h] [bp-Ch] BYREF
_DWORD v8[2]; // [sp+8h] [bp-8h] BYREF
v7._root = a2;
v8[0] = a3;
v8[1] = a4;
result = (pugi::xml_node_struct *)pugi::xml_text::_data(this);
if ( !result )
{
pugi::xml_node::xml_node(v8, *(_DWORD *)this);
v7._root = pugi::xml_node::append_child(
(pugi::xml_node_struct *)v8,
(pugi::xml_node_struct *)((char *)&dword_0 + 3),
v6);
return pugi::xml_node::internal_object(&v7);
}
return result;
}