//
// ENGINE_get_cipher from 0x101cea4 to 0x101cf18 (116 bytes)
//
// 2 xrefs:
// > EVP_CipherInit_ex @ 0x1028118
// > ??> @ 0x53bd8
//
// 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:08 +0000
//
__int64 __fastcall ENGINE_get_cipher(__int64 a1, unsigned int a2)
{
unsigned int (__fastcall *ciphers)(__int64, __int64 *, _QWORD, _QWORD); // x4
__int64 v6; // [xsp+28h] [xbp+28h] BYREF
ciphers = (unsigned int (__fastcall *)(__int64, __int64 *, _QWORD, _QWORD))ENGINE_get_ciphers(a1);
if ( ciphers && ciphers(a1, &v6, 0, a2) )
return v6;
ERR_put_error(38, 185, 146, "crypto/engine/tb_cipher.c", 74);
return 0;
}