//
// sub_1002DE230 from 0x1002de230 to 0x1002de2a0 (112 bytes)
//
// 2 xrefs:
// > sub_1002DDB70 @ 0x1002ddbb4
// > sub_1002DDBC0 @ 0x1002ddbf8
//
// 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
//
void __fastcall sub_1002DE230(void ***a1)
{
void **v1; // x20
std::thread *v2; // x21
std::thread *v4; // x0
void *v5; // x8
v1 = *a1;
v2 = (std::thread *)**a1;
if ( v2 )
{
v4 = (std::thread *)v1[1];
v5 = v2;
if ( v4 != v2 )
{
do
std::thread::~thread(v4 - 1);
while ( v4 != v2 );
v5 = **a1;
}
v1[1] = v2;
operator delete(v5);
}
}