//
// X509_VERIFY_PARAM_lookup from 0xa5bf8c to 0xa5c000 (116 bytes)
//
// 3 xrefs:
// > X509_STORE_CTX_init @ 0xa5aab8
// > X509_STORE_CTX_set_default @ 0xa5ae7c
// > ??> @ 0x8125c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:29 +0000
//
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_D35AD8 && (v1 = OPENSSL_sk_find(dword_D35AD8, (int)v3), v1 != -1) )
return OPENSSL_sk_value((_DWORD *)dword_D35AD8, v1);
else
return OBJ_bsearch_((int)v3, (int)&off_C80160, 5, 64, (int (__fastcall *)(int, int))sub_A5B398);
}