//
// sub_600CE4 from 0x600ce4 to 0x600d34 (80 bytes)
//
// 4 xrefs:
// > sub_601C38 @ 0x601c3e
// > pugi::xml_node::prepend_attribute @ 0x603370
// > pugi::xml_node::insert_attribute_before @ 0x603426
// > pugi::xml_node::insert_attribute_after @ 0x6034ce
//
// 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
//
_DWORD *__fastcall sub_600CE4(unsigned int *a1, unsigned int a2, unsigned int a3)
{
unsigned int v4; // r3
_DWORD *result; // r0
unsigned int v6; // r0
unsigned int v7[3]; // [sp+0h] [bp-Ch] BYREF
v7[0] = (unsigned int)a1;
v7[1] = a2;
v7[2] = a3;
v4 = a1[1];
if ( v4 + 20 <= 0x8000 )
{
v6 = *a1;
a1[1] = v4 + 20;
v7[0] = v6;
result = (_DWORD *)(v6 + v4 + 24);
}
else
{
result = (_DWORD *)sub_600C68((int)a1, 0x14u, v7);
}
if ( result )
{
*result = v7[0];
result[1] = 0;
result[2] = 0;
result[3] = 0;
result[4] = 0;
}
return result;
}