//
// X509_VERIFY_PARAM_lookup from 0x84738c to 0x847400 (116 bytes)
//
// 3 xrefs:
// > X509_STORE_CTX_init @ 0x845eb8
// > X509_STORE_CTX_set_default @ 0x84627c
// > ??> @ 0x677dc
//
// 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 X509_VERIFY_PARAM_lookup(int a1)
{
unsigned int v1; // r1
_DWORD v3[17]; // [sp+8h] [bp-44h] BYREF
v3[0] = a1;
if ( dword_AD484C && (v1 = OPENSSL_sk_find(dword_AD484C, (int)v3), v1 != -1) )
return OPENSSL_sk_value((_DWORD *)dword_AD484C, v1);
else
return OBJ_bsearch_((int)v3, (int)&off_A38EE0, 5, 64, (int (__fastcall *)(int, int))sub_846798);
}