//
// engine_table_unregister from 0x8b45d8 to 0x8b461c (68 bytes)
//
// 10 xrefs:
// > ENGINE_unregister_pkey_asn1_meths @ 0x7f8678
// > ENGINE_unregister_ciphers @ 0x7f8ab0
// > ENGINE_unregister_DH @ 0x7f8c94
// > ENGINE_unregister_digests @ 0x7f8dc4
// > ENGINE_unregister_DSA @ 0x7f8fa8
// > ENGINE_unregister_EC @ 0x7f90d8
// > ENGINE_unregister_pkey_meths @ 0x7f9208
// > ENGINE_unregister_RAND @ 0x7f9470
// > ENGINE_unregister_RSA @ 0x7f95a0
// > ??> @ 0x625cc
//
// 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
//
bool __fastcall engine_table_unregister(int *a1, int a2)
{
CRYPTO_THREAD_write_lock((pthread_rwlock_t *)global_engine_lock);
if ( *a1 )
OPENSSL_LH_doall_arg(*a1, (int (__fastcall *)(_DWORD, int))sub_8B4330, a2);
return CRYPTO_THREAD_unlock((pthread_rwlock_t *)global_engine_lock);
}