//
// ssl_set_version_bound from 0x7a73f4 to 0x7a7458 (100 bytes)
//
// 6 xrefs:
// > SSL_ctrl @ 0x797940
// > SSL_ctrl @ 0x797958
// > SSL_CTX_ctrl @ 0x797e48
// > sub_7BC074 @ 0x7bc16c
// > sub_7BC1C4 @ 0x7bc2bc
// > ??> @ 0x5bd1c
//
// 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
//
int __fastcall ssl_set_version_bound(int a1, int a2, int *a3)
{
int v3; // r3
if ( !a2 )
goto LABEL_9;
if ( a1 == 0x10000 )
{
if ( (unsigned int)(a2 - 768) > 3 )
return 0;
LABEL_9:
*a3 = a2;
return 1;
}
if ( a1 == 0x1FFFF )
{
v3 = a2 <= 65276;
if ( a2 == 256 )
v3 = 0;
if ( a2 > 65280 )
v3 |= 1u;
if ( !v3 )
goto LABEL_9;
}
return 0;
}