//
// engine_cleanup_add_last from 0xd9d5dc to 0xd9d644 (104 bytes)
//
// 2 xrefs:
// > ENGINE_add @ 0xd9dbe8
// > ??> @ 0xa4af0
//
// 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
//
_QWORD *__fastcall engine_cleanup_add_last(__int64 a1)
{
_QWORD *result; // x0
if ( qword_125D5E8 || (result = (_QWORD *)OPENSSL_sk_new_null(a1), (qword_125D5E8 = (__int64)result) != 0) )
{
result = (_QWORD *)CRYPTO_malloc(8, "crypto/engine/eng_lib.c", 123);
if ( result )
{
*result = a1;
return (_QWORD *)OPENSSL_sk_push(qword_125D5E8, result);
}
}
return result;
}