//
// sub_1004D0890 from 0x1004d0890 to 0x1004d08e3 (83 bytes)
//
// 1 xrefs:
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004cfb17
//
// 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
//
std::string *__fastcall sub_1004D0890(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;
}