//
// sub_601C38 from 0x601c38 to 0x601c58 (32 bytes)
//
// 2 xrefs:
// > pugi::xml_node::append_attribute @ 0x60330e
// > sub_6049F4 @ 0x605124
//
// 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_601C38(int *a1, unsigned int *a2, unsigned int a3)
{
_DWORD *result; // r0
int v5; // r3
int v6; // r2
result = sub_600CE4(a2, (unsigned int)a2, a3);
if ( result )
{
v5 = *a1;
if ( *a1 )
{
v6 = *(_DWORD *)(v5 + 12);
*(_DWORD *)(v6 + 16) = result;
result[3] = v6;
*(_DWORD *)(v5 + 12) = result;
}
else
{
*a1 = (int)result;
result[3] = result;
}
}
return result;
}