//
// sub_1002DE830 from 0x1002de830 to 0x1002de87c (76 bytes)
//
// 2 xrefs:
// > sub_1002DDA10 @ 0x1002ddb38
// > sub_1002DDB70 @ 0x1002ddb90
//
// 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:46 +0000
//
__int64 __fastcall sub_1002DE830(__int64 a1)
{
__int64 i; // x8
__int64 v3; // x20
v3 = *(_QWORD *)(a1 + 8);
for ( i = *(_QWORD *)(a1 + 16); i != v3; i = *(_QWORD *)(a1 + 16) )
{
*(_QWORD *)(a1 + 16) = i - 8;
std::thread::~thread((std::thread *)(i - 8));
}
if ( *(_QWORD *)a1 )
operator delete(*(void **)a1);
return a1;
}