//
// X509_VERIFY_PARAM_lookup from 0x106d2e0 to 0x106d354 (116 bytes)
//
// 3 xrefs:
// > X509_STORE_CTX_init @ 0x106beb8
// > X509_STORE_CTX_set_default @ 0x106c164
// > ??> @ 0x84850
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:58 +0000
//
__int64 __fastcall X509_VERIFY_PARAM_lookup(__int64 a1)
{
int v1; // w1
_QWORD v3[14]; // [xsp+20h] [xbp+20h] BYREF
v3[0] = a1;
if ( qword_1568520 && (v1 = OPENSSL_sk_find(qword_1568520, (__int64)v3), v1 != -1) )
return OPENSSL_sk_value(qword_1568520, v1);
else
return OBJ_bsearch_(
(__int64)v3,
(__int64)&off_140E008,
5,
112,
(__int64 (__fastcall *)(__int64, __int64))sub_106C6A4);
}