//
// sub_1002DB8E8 from 0x1002db8e8 to 0x1002db978 (144 bytes)
//
// 2 xrefs:
// > sub_1002DB788 @ 0x1002db790
// > ??> @ 0x100921bc8
//
// 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 11:02:44 +0000
//
__int64 __fastcall sub_1002DB8E8(__int64 a1)
{
__int64 v2; // x20
*(_QWORD *)(a1 + 120) = off_100921BF0;
v2 = a1 + 120;
*(_QWORD *)a1 = off_100921BC8;
*(_QWORD *)(a1 + 16) = off_1008CF0A8;
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_100921C08);
std::ios::~ios(v2);
return a1;
}