//
// sub_1004D0A00 from 0x1004d0a00 to 0x1004d0b0f (271 bytes)
//
// 4 xrefs:
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004ced3c
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004cedcc
// > GJGameLevel::scoreStringToVector @ 0x10055c960
// > sub_1005FF920 @ 0x1005ff951
//
// 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
//
unsigned __int64 __fastcall sub_1004D0A00(__int64 a1, const std::string *a2, int a3)
{
*(_QWORD *)(a1 + 176) = 0;
*(_QWORD *)(a1 + 16) = off_1008C3D90;
*(_QWORD *)a1 = &off_1008C3EA8;
*(_QWORD *)(a1 + 128) = &off_1008C3ED0;
*(_QWORD *)(a1 + 8) = 0;
std::ios_base::init((std::ios_base *)(a1 + 128), (void *)(a1 + 24));
*(_QWORD *)(a1 + 264) = 0;
*(_DWORD *)(a1 + 272) = -1;
*(_QWORD *)a1 = &off_1008C3D68;
*(_QWORD *)(a1 + 128) = off_1008C3DB8;
*(_QWORD *)(a1 + 16) = off_1008C3D90;
*(_QWORD *)(a1 + 24) = &`vtable for'std::streambuf.~basic_streambuf;
std::locale::locale((std::locale *)(a1 + 32));
*(_OWORD *)(a1 + 72) = 0;
*(_OWORD *)(a1 + 56) = 0;
*(_OWORD *)(a1 + 40) = 0;
*(_QWORD *)(a1 + 24) = &off_1008C3F58;
*(_OWORD *)(a1 + 88) = 0;
*(_OWORD *)(a1 + 104) = 0;
*(_DWORD *)(a1 + 120) = a3;
std::string::operator=((std::string *)(a1 + 88), a2);
return sub_100183690(a1 + 24);
}