//
// engine_table_cleanup from 0x10dc464 to 0x10dc4b8 (84 bytes)
//
// 10 xrefs:
// > sub_101C7E0 @ 0x101c7e8
// > sub_101CD28 @ 0x101cd30
// > sub_101CF24 @ 0x101cf2c
// > sub_101D010 @ 0x101d018
// > sub_101D20C @ 0x101d214
// > sub_101D2F8 @ 0x101d300
// > sub_101D3E4 @ 0x101d3ec
// > sub_101D678 @ 0x101d680
// > sub_101D764 @ 0x101d76c
// > ??> @ 0xd1d88
//
// 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 13:17:46 +0000
//
bool __fastcall engine_table_cleanup(__int64 *a1)
{
CRYPTO_THREAD_write_lock((pthread_rwlock_t *)global_engine_lock);
if ( *a1 )
{
OPENSSL_LH_doall(*a1, (__int64 (__fastcall *)(_QWORD))sub_10DC1B4);
OPENSSL_LH_free(*a1);
*a1 = 0;
}
return CRYPTO_THREAD_unlock((pthread_rwlock_t *)global_engine_lock);
}