//
// ssl_set_client_hello_version from 0x9bc768 to 0x9bc798 (48 bytes)
//
// 2 xrefs:
// > tls_construct_client_hello @ 0x9b5248
// > ??> @ 0x76a0c
//
// 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_client_hello_version(_DWORD *a1)
{
int result; // r0
int v3; // r3
int v4; // [sp+0h] [bp-8h] BYREF
int v5; // [sp+4h] [bp-4h] BYREF
result = ssl_get_client_min_max_version((int)a1, &v4, &v5);
if ( !result )
{
v3 = v5;
*a1 = v5;
a1[81] = v3;
}
return result;
}