//
// ssl3_comp_find from 0xfbc3d0 to 0xfbc454 (132 bytes)
//
// 2 xrefs:
// > tls_process_server_hello @ 0xfc7ba4
// > ??> @ 0xe34e8
//
// 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:15:18 +0000
//
_DWORD *__fastcall ssl3_comp_find(__int64 a1, int a2)
{
unsigned int v3; // w19
int v5; // w22
__int64 v6; // x1
_DWORD *result; // x0
if ( !a2 )
return nullptr;
v3 = a1 == 0;
if ( !a1 )
return nullptr;
v5 = OPENSSL_sk_num(a1);
if ( v5 <= 0 )
return nullptr;
while ( 1 )
{
v6 = v3++;
result = (_DWORD *)OPENSSL_sk_value(a1, v6);
if ( *result == a2 )
break;
if ( v3 == v5 )
return nullptr;
}
return result;
}