//
// EVP_PKEY_meth_find from 0x806dc0 to 0x806e3c (124 bytes)
//
// 3 xrefs:
// > EVP_PKEY_CTX_new @ 0x807148
// > EVP_PKEY_CTX_new_id @ 0x8073d0
// > ??> @ 0x63c1c
//
// 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 EVP_PKEY_meth_find(int a1)
{
int v1; // r1
int result; // r0
_DWORD *v3; // [sp+8h] [bp-70h] BYREF
_DWORD v4[27]; // [sp+Ch] [bp-6Ch] BYREF
v4[0] = a1;
v3 = v4;
if ( dword_AD43AC )
{
v1 = OPENSSL_sk_find(dword_AD43AC, v4);
if ( v1 >= 0 )
return OPENSSL_sk_value(dword_AD43AC, v1);
}
result = OBJ_bsearch_(&v3, &off_AC0DE4, 10, 4, sub_806DA8);
if ( result )
return *(_DWORD *)result;
return result;
}