//
// OCSP_resp_find from 0xdc3900 to 0xdc3980 (128 bytes)
//
// 2 xrefs:
// > OCSP_resp_find_status @ 0xdc3a6c
// > ??> @ 0x5f568
//
// 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 OCSP_resp_find(__int64 a1, __int64 a2, int a3)
{
__int64 v4; // x20
unsigned int v5; // w19
_QWORD *v6; // x0
if ( a1 )
{
v4 = *(_QWORD *)(a1 + 32);
if ( a3 >= 0 )
v5 = a3 + 1;
else
v5 = 0;
while ( (int)v5 < (int)OPENSSL_sk_num(v4) )
{
v6 = (_QWORD *)OPENSSL_sk_value(v4, v5);
if ( !(unsigned int)OCSP_id_cmp(a2, *v6) )
return v5;
++v5;
}
}
return 0xFFFFFFFFLL;
}