//
// OCSP_resp_find from 0x1041c60 to 0x1041ce0 (128 bytes)
//
// 2 xrefs:
// > OCSP_resp_find_status @ 0x1041dcc
// > ??> @ 0x82300
//
// 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:31 +0000
//
__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;
}