//
// OCSP_resp_find from 0x81ddac to 0x81de1c (112 bytes)
//
// 2 xrefs:
// > OCSP_resp_find_status @ 0x81ded0
// > ??> @ 0x6488c
//
// 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 OCSP_resp_find(int a1, int a2, int a3)
{
int v3; // r4
int v5; // r5
_DWORD *v6; // r0
if ( !a1 )
return -1;
if ( a3 < 0 )
v3 = 0;
else
v3 = a3 + 1;
v5 = *(_DWORD *)(a1 + 16);
while ( 1 )
{
if ( v3 >= OPENSSL_sk_num(v5) )
return -1;
v6 = (_DWORD *)OPENSSL_sk_value(v5, v3);
if ( !OCSP_id_cmp(a2, *v6) )
break;
++v3;
}
return v3;
}