//
// ssl_set_version_bound from 0x9bbff8 to 0x9bc05c (100 bytes)
//
// 6 xrefs:
// > SSL_ctrl @ 0x9ac544
// > SSL_ctrl @ 0x9ac55c
// > SSL_CTX_ctrl @ 0x9aca4c
// > sub_9D0C78 @ 0x9d0d70
// > sub_9D0DC8 @ 0x9d0ec0
// > ??> @ 0x7579c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:02 +0000
//
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;
}