//
// sub_1001E9960 from 0x1001e9960 to 0x1001e99d9 (121 bytes)
//
// 2 xrefs:
// > ??> @ 0x1001e976e
// > ??> @ 0x100ae02a0
//
// 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:26:30 +0000
//
__int64 __fastcall sub_1001E9960(__int64 a1)
{
*(_QWORD *)a1 = &off_100AE02A0;
*(_QWORD *)(a1 + 120) = off_100AE02C8;
*(_QWORD *)(a1 + 16) = &off_100BB1EA0;
if ( (*(_BYTE *)(a1 + 80) & 1) != 0 )
operator delete(*(void **)(a1 + 96));
*(_QWORD *)(a1 + 16) = &`vtable for'std::streambuf.~basic_streambuf;
std::locale::~locale((std::locale *)(a1 + 24));
std::istream::~istream(a1, off_100AE02E0);
return std::ios::~ios(a1 + 120);
}