//
// ssl3_comp_find from 0x7953c0 to 0x795418 (88 bytes)
//
// 2 xrefs:
// > tls_process_server_hello @ 0x7a120c
// > ??> @ 0x5b6ac
//
// 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(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;
}