//
// ssl_set_version_bound from 0xfcd658 to 0xfcd6c8 (112 bytes)
//
// 7 xrefs:
// > SSL_ctrl @ 0xfbea38
// > SSL_ctrl @ 0xfbea58
// > SSL_CTX_ctrl @ 0xfbee14
// > SSL_CTX_ctrl @ 0xfbee30
// > sub_FE0904 @ 0xfe0a0c
// > sub_FE0A40 @ 0xfe0b48
// > ??> @ 0x521b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:27 +0000
//
__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;
}