//
// sub_1004CC570 from 0x1004cc570 to 0x1004cc67f (271 bytes)
//
// 5 xrefs:
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004ca8ac
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004ca93c
// > GJGameLevel::scoreStringToVector @ 0x100584c40
// > SongInfoLayer::init @ 0x1006d845d
// > sub_1008CFA00 @ 0x1008cfa34
//
// 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
//
unsigned __int64 __fastcall sub_1004CC570(__int64 a1, const std::string *a2, int a3)
{
*(_QWORD *)(a1 + 176) = 0;
*(_QWORD *)(a1 + 16) = off_100B6FF60;
*(_QWORD *)a1 = &off_100B6FFB8;
*(_QWORD *)(a1 + 128) = &off_100B6FFE0;
*(_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_100B6FF38;
*(_QWORD *)(a1 + 128) = off_100B6FF88;
*(_QWORD *)(a1 + 16) = off_100B6FF60;
*(_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_100BB1EA0;
*(_OWORD *)(a1 + 88) = 0;
*(_OWORD *)(a1 + 104) = 0;
*(_DWORD *)(a1 + 120) = a3;
std::string::operator=((std::string *)(a1 + 88), a2);
return sub_100162A80(a1 + 24);
}