//
// ENGINE_get_cipher from 0x7f8bf8 to 0x7f8c68 (112 bytes)
//
// 2 xrefs:
// > EVP_CipherInit_ex @ 0x802fa4
// > ??> @ 0x6269c
//
// 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
//
int __fastcall ENGINE_get_cipher(int a1, int a2)
{
int (__fastcall *ciphers)(int, int *, _DWORD, int); // r12
int v6; // [sp+Ch] [bp-8h] BYREF
ciphers = (int (__fastcall *)(int, int *, _DWORD, int))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;
}