//
// sub_10017F880 from 0x10017f880 to 0x10017f907 (135 bytes)
//
// 20 xrefs:
// > ??> @ 0x10017f6e3
// > ??> @ 0x10017f704
// > ??> @ 0x10017f71b
// > ??> @ 0x10017fc23
// > ??> @ 0x10017fc44
// > ??> @ 0x10017fc5b
// > ??> @ 0x10018028e
// > ??> @ 0x1001802a5
// > ??> @ 0x1001802bc
// > ??> @ 0x1001806f2
// > ??> @ 0x100180709
// > ??> @ 0x100180720
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004ced93
// > cocos2d::CCTMXMapInfo::startElement @ 0x1004cf695
// > ??> @ 0x1004d01fe
// > ??> @ 0x1004d021f
// > ??> @ 0x10055cb6e
// > ??> @ 0x1005ffd3a
// > ??> @ 0x1005ffd87
// > ??> @ 0x1008c3d68
//
// 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
//
__int64 __fastcall sub_10017F880(__int64 a1)
{
*(_QWORD *)a1 = &off_1008C3D68;
*(_QWORD *)(a1 + 128) = off_1008C3DB8;
*(_QWORD *)(a1 + 16) = off_1008C3D90;
*(_QWORD *)(a1 + 24) = &off_1008C3F58;
if ( (*(_BYTE *)(a1 + 88) & 1) != 0 )
operator delete(*(void **)(a1 + 104));
*(_QWORD *)(a1 + 24) = &`vtable for'std::streambuf.~basic_streambuf;
std::locale::~locale((std::locale *)(a1 + 32));
std::iostream::~iostream(a1, off_1008C3DD0);
return std::ios::~ios(a1 + 128);
}