//
// ENGINE_get_pkey_meth from 0xd9f200 to 0xd9f274 (116 bytes)
//
// 3 xrefs:
// > EVP_PKEY_CTX_new @ 0xdadfd8
// > EVP_PKEY_CTX_new_id @ 0xdae220
// > ??> @ 0x56058
//
// 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
//
__int64 __fastcall ENGINE_get_pkey_meth(__int64 a1, unsigned int a2)
{
unsigned int (__fastcall *pkey_meths)(__int64, __int64 *, _QWORD, _QWORD); // x4
__int64 v6; // [xsp+28h] [xbp+28h] BYREF
pkey_meths = (unsigned int (__fastcall *)(__int64, __int64 *, _QWORD, _QWORD))ENGINE_get_pkey_meths(a1);
if ( pkey_meths && pkey_meths(a1, &v6, 0, a2) )
return v6;
ERR_put_error(38, 192, 101, "crypto/engine/tb_pkmeth.c", 76);
return 0;
}