//
// sub_10023E89C from 0x10023e89c to 0x10023e92c (144 bytes)
//
// 2 xrefs:
// > sub_10023E73C @ 0x10023e744
// > ??> @ 0x1007c9528
//
// 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_10023E89C(__int64 a1)
{
__int64 v2; // x20
*(_QWORD *)(a1 + 120) = off_1007C9550;
v2 = a1 + 120;
*(_QWORD *)a1 = off_1007C9528;
*(_QWORD *)(a1 + 16) = off_1007814C8;
if ( *(char *)(a1 + 103) < 0 )
operator delete(*(void **)(a1 + 80));
*(_QWORD *)(a1 + 16) = &`vtable for'std::streambuf.~basic_streambuf;
std::locale::~locale((std::locale *)(a1 + 24));
std::istream::~istream(a1, off_1007C9568);
std::ios::~ios(v2);
return a1;
}