//
// sub_1800AEA70 from 0x1800aea70 to 0x1800aeb18 (168 bytes)
//
// 3 xrefs:
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1d54
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1de5
// > ??> @ 0x1801b840c
//
// 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
//
// Hidden C++ exception states: #wind=2
_QWORD *__fastcall sub_1800AEA70(_QWORD *a1, size_t *a2, char a3, int a4)
{
if ( a4 )
{
*a1 = &unk_1800E6C00;
a1[2] = &unk_1800E6C08;
std::ios::ios(a1 + 19);
}
std::iostream::iostream(a1, a1 + 3, 0);
*(_QWORD *)((char *)a1 + *(int *)(*a1 + 4LL)) = &std::basic_stringstream,std::allocator>::`vftable';
*(_DWORD *)((char *)a1 + *(int *)(*a1 + 4LL) - 4) = *(_DWORD *)(*a1 + 4LL) - 152;
sub_1800A28C0((__int64)(a1 + 3), a2, a3);
return a1;
}