//
// ssl_set_client_disabled from 0xfd68a4 to 0xfd6944 (160 bytes)
//
// 3 xrefs:
// > SSL_get1_supported_ciphers @ 0xfbef84
// > tls_construct_client_hello @ 0xfc7274
// > ??> @ 0xaeeb0
//
// 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:32 +0000
//
__int64 __fastcall ssl_set_client_disabled(_QWORD *a1)
{
__int64 v1; // x3
__int64 result; // x0
int v4; // w1
__int64 v5; // x0
int v6; // w3
v1 = a1[18];
*(_DWORD *)(v1 + 816) = 0;
*(_DWORD *)(v1 + 812) = 0;
ssl_set_sig_mask((_DWORD *)(v1 + 816), (__int64)a1, 0x5000Eu);
ssl_get_client_min_max_version((__int64)a1, (_DWORD *)(a1[18] + 820LL), (signed int *)(a1[18] + 824LL));
if ( !a1[53] )
{
v5 = a1[18];
v6 = *(_DWORD *)(v5 + 812);
*(_DWORD *)(v5 + 816) |= 0x10u;
*(_DWORD *)(v5 + 812) = v6 | 0x1C8;
}
result = a1[114];
if ( (result & 0x20) == 0 )
{
result = a1[18];
v4 = *(_DWORD *)(result + 812);
*(_DWORD *)(result + 816) |= 0x40u;
*(_DWORD *)(result + 812) = v4 | 0x20;
}
return result;
}