//
// engine_cleanup_add_first from 0xd9d570 to 0xd9d5dc (108 bytes)
//
// 2 xrefs:
// > engine_table_register @ 0xe5e3c8
// > ??> @ 0x5de70
//
// 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_first(__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_insert(qword_125D5E8, result, 0);
}
}
return result;
}