//
// sub_1004CC400 from 0x1004cc400 to 0x1004cc453 (83 bytes)
//
// 1 xrefs:
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004cb687
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:31:10 +0000
//
std::string *__fastcall sub_1004CC400(std::string *a1, std::string *a2, unsigned __int8 *a3)
{
unsigned int v3; // eax
std::string::size_type v4; // rax
const std::string::value_type *v5; // rdx
std::string *v6; // rax
v3 = *a3;
if ( (v3 & 1) != 0 )
{
v4 = *((_QWORD *)a3 + 1);
v5 = *((const std::string::value_type **)a3 + 2);
}
else
{
v5 = (const std::string::value_type *)(a3 + 1);
v4 = v3 >> 1;
}
v6 = std::string::append(a2, v5, v4);
*a1 = *v6;
*(_OWORD *)&v6->__r_.__value_.__l.0 = 0;
v6->__r_.__value_.__r.__words[2] = 0;
return a1;
}