//
// sub_1000AD6E0 from 0x1000ad6e0 to 0x1000ad774 (148 bytes)
//
// 3 xrefs:
// > sub_1000AD2B4 @ 0x1000ad2d0
// > sub_1003A7060 @ 0x1003a70a0
// > ??> @ 0x1007812d8
//
// 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_1000AD6E0(__int64 a1)
{
__int64 v2; // x20
*(_QWORD *)a1 = off_1007812D8;
*(_QWORD *)(a1 + 128) = off_100781328;
v2 = a1 + 128;
*(_QWORD *)(a1 + 16) = off_100781300;
*(_QWORD *)(a1 + 24) = off_1007814C8;
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_100781340);
std::ios::~ios(v2);
return a1;
}