//
// ssl3_comp_find from 0xd3e07c to 0xd3e100 (132 bytes)
//
// 2 xrefs:
// > tls_process_server_hello @ 0xd49850
// > ??> @ 0xadaf0
//
// 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
//
_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;
}