//
// X509_VERIFY_PARAM_lookup from 0xdeefa0 to 0xdef014 (116 bytes)
//
// 3 xrefs:
// > X509_STORE_CTX_init @ 0xdedb78
// > X509_STORE_CTX_set_default @ 0xdede24
// > ??> @ 0x61158
//
// 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 X509_VERIFY_PARAM_lookup(__int64 a1)
{
int v1; // w1
_QWORD v3[14]; // [xsp+20h] [xbp+20h] BYREF
v3[0] = a1;
if ( qword_125F720 && (v1 = OPENSSL_sk_find(qword_125F720, (__int64)v3), v1 != -1) )
return OPENSSL_sk_value(qword_125F720, v1);
else
return OBJ_bsearch_(
(__int64)v3,
(__int64)&off_1130A78,
5,
112,
(__int64 (__fastcall *)(__int64, __int64))sub_DEE364);
}