//
// sub_1002417DC from 0x1002417dc to 0x100241828 (76 bytes)
//
// 2 xrefs:
// > sub_1002409B4 @ 0x100240adc
// > sub_100240B14 @ 0x100240b34
//
// 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_1002417DC(__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;
}