//
// SSL_extension_supported from 0x7ad368 to 0x7ad3e4 (124 bytes)
//
// 3 xrefs:
// > SSL_CTX_add_server_custom_ext @ 0x7ad424
// > SSL_CTX_add_client_custom_ext @ 0x7ad57c
// > ??> @ 0x5d7dc
//
// 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
//
bool __fastcall SSL_extension_supported(unsigned int a1)
{
if ( a1 == 18 )
return 1;
if ( a1 > 0x12 )
{
if ( a1 != 35 )
{
if ( a1 > 0x23 )
return a1 == 13172 || a1 == 65281;
if ( a1 - 21 > 1 )
return 0;
}
return 1;
}
if ( a1 == 5 )
return 1;
if ( a1 <= 5 )
return !a1;
return a1 - 10 <= 6;
}