//
// engine_cleanup_add_last from 0x7f7618 to 0x7f7680 (104 bytes)
//
// 2 xrefs:
// > ENGINE_add @ 0x7f7c98
// > ??> @ 0x623ac
//
// 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
//
_DWORD *__fastcall engine_cleanup_add_last(int a1)
{
_DWORD *result; // r0
if ( dword_AD2E74 || (result = (_DWORD *)OPENSSL_sk_new_null(a1), (dword_AD2E74 = (int)result) != 0) )
{
result = (_DWORD *)CRYPTO_malloc(4, "crypto/engine/eng_lib.c", 123);
if ( result )
{
*result = a1;
return (_DWORD *)OPENSSL_sk_push(dword_AD2E74, result);
}
}
return result;
}