//
// OCSP_resp_find from 0xa329ac to 0xa32a1c (112 bytes)
//
// 2 xrefs:
// > OCSP_resp_find_status @ 0xa32ad0
// > ??> @ 0x7e30c
//
// 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:06 +0000
//
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;
}