//
// sub_1002E8430 from 0x1002e8430 to 0x1002e8480 (80 bytes)
//
// 4 xrefs:
// > GManager::saveGMTo @ 0x1002e7d0c
// > sub_1002E7D7C @ 0x1002e7dc4
// > sub_1002E8384 @ 0x1002e83ec
// > sub_1002E8404 @ 0x1002e8424
//
// 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:51 +0000
//
__int64 *__fastcall sub_1002E8430(__int64 *a1)
{
__int64 v2; // x20
v2 = *a1;
*a1 = 0;
if ( v2 )
{
if ( *(char *)(v2 + 47) < 0 )
operator delete(*(void **)(v2 + 24));
sub_1002DE764((std::__thread_struct **)v2, nullptr);
operator delete((void *)v2);
}
return a1;
}