//
// ssl_set_version_bound from 0xd4f304 to 0xd4f374 (112 bytes)
//
// 7 xrefs:
// > SSL_ctrl @ 0xd406e4
// > SSL_ctrl @ 0xd40704
// > SSL_CTX_ctrl @ 0xd40ac0
// > SSL_CTX_ctrl @ 0xd40adc
// > sub_D625B0 @ 0xd626b8
// > sub_D626EC @ 0xd627f4
// > ??> @ 0x384f0
//
// 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
//
__int64 __fastcall ssl_set_version_bound(int a1, int a2, int *a3)
{
__int64 result; // x0
if ( !a2 )
{
LABEL_6:
*a3 = a2;
return 1;
}
if ( a1 != 0x10000 )
{
if ( a1 != 0x1FFFF || a2 <= 65276 && a2 != 256 || a2 > 65280 )
return 0;
goto LABEL_6;
}
result = 0;
if ( (unsigned int)(a2 - 768) <= 3 )
{
*a3 = a2;
return 1;
}
return result;
}