//
// engine_table_cleanup from 0xac9624 to 0xac9670 (76 bytes)
//
// 10 xrefs:
// > sub_A0D1B8 @ 0xa0d1c0
// > sub_A0D694 @ 0xa0d69c
// > sub_A0D878 @ 0xa0d880
// > sub_A0D9A8 @ 0xa0d9b0
// > sub_A0DB8C @ 0xa0db94
// > sub_A0DCBC @ 0xa0dcc4
// > sub_A0DDEC @ 0xa0ddf4
// > sub_A0E054 @ 0xa0e05c
// > sub_A0E184 @ 0xa0e18c
// > ??> @ 0x7c02c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:09:19 +0000
//
bool __fastcall engine_table_cleanup(int *a1)
{
CRYPTO_THREAD_write_lock((pthread_rwlock_t *)global_engine_lock);
if ( *a1 )
{
OPENSSL_LH_doall(*a1, (int (__fastcall *)(_DWORD))sub_AC9388);
OPENSSL_LH_free((int *)*a1);
*a1 = 0;
}
return CRYPTO_THREAD_unlock((pthread_rwlock_t *)global_engine_lock);
}