//
// ssl3_comp_find from 0x9a9fc4 to 0x9aa01c (88 bytes)
//
// 2 xrefs:
// > tls_process_server_hello @ 0x9b5e10
// > ??> @ 0x7512c
//
// 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:06:52 +0000
//
_DWORD *__fastcall ssl3_comp_find(int a1, int a2)
{
bool v2; // zf
int v3; // r4
int v6; // r7
_DWORD *result; // r0
v2 = a1 == 0;
if ( a1 )
v2 = a2 == 0;
v3 = v2;
if ( v2 )
return nullptr;
v6 = OPENSSL_sk_num(a1);
if ( v6 <= 0 )
return nullptr;
while ( 1 )
{
result = (_DWORD *)OPENSSL_sk_value(a1, v3++);
if ( *result == a2 )
break;
if ( v3 == v6 )
return nullptr;
}
return result;
}