//
// engine_cleanup_add_last from 0x101b93c to 0x101b9a4 (104 bytes)
//
// 2 xrefs:
// > ENGINE_add @ 0x101bf48
// > ??> @ 0xd8640
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:07 +0000
//
_QWORD *__fastcall engine_cleanup_add_last(__int64 a1)
{
_QWORD *result; // x0
if ( qword_15663E8 || (result = (_QWORD *)OPENSSL_sk_new_null(a1), (qword_15663E8 = (__int64)result) != 0) )
{
result = (_QWORD *)CRYPTO_malloc(8, "crypto/engine/eng_lib.c", 123);
if ( result )
{
*result = a1;
return (_QWORD *)OPENSSL_sk_push(qword_15663E8, result);
}
}
return result;
}