//
// sub_1000CFC4C from 0x1000cfc4c to 0x1000cfce0 (148 bytes)
//
// 4 xrefs:
// > sub_1000CF820 @ 0x1000cf83c
// > sub_10044F410 @ 0x10044f48c
// > sub_1004BCBA8 @ 0x1004bcbc8
// > ??> @ 0x1008ceeb8
//
// This function is hookable on this platform (idp: arm, 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 10:58:53 +0000
//
__int64 __fastcall sub_1000CFC4C(__int64 a1)
{
__int64 v2; // x20
*(_QWORD *)a1 = off_1008CEEB8;
*(_QWORD *)(a1 + 128) = off_1008CEF08;
v2 = a1 + 128;
*(_QWORD *)(a1 + 16) = off_1008CEEE0;
*(_QWORD *)(a1 + 24) = off_1008CF0A8;
if ( *(char *)(a1 + 111) < 0 )
operator delete(*(void **)(a1 + 88));
*(_QWORD *)(a1 + 24) = &`vtable for'std::streambuf.~basic_streambuf;
std::locale::~locale((std::locale *)(a1 + 32));
std::iostream::~iostream(a1, off_1008CEF20);
std::ios::~ios(v2);
return a1;
}