//
// ssl_cipher_disabled from 0xfd4454 to 0xfd4554 (256 bytes)
//
// 4 xrefs:
// > SSL_get1_supported_ciphers @ 0xfbefb8
// > tls_construct_client_hello @ 0xfc72b4
// > tls_process_server_hello @ 0xfc793c
// > ??> @ 0x74890
//
// 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:31 +0000
//
__int64 __fastcall ssl_cipher_disabled(__int64 a1, _DWORD *a2, unsigned int a3)
{
unsigned int v3; // w4
_DWORD *v4; // x3
int v5; // w5
int v6; // w4
bool v7; // cc
int v8; // w4
int v9; // w3
v3 = 1;
v4 = *(_DWORD **)(a1 + 144);
if ( (v4[203] & a2[5]) != 0 )
return v3;
if ( (v4[204] & a2[6]) != 0 )
return v3;
v5 = v4[206];
if ( !v5 )
return v3;
if ( (*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 192LL) + 104LL) & 8) == 0 )
{
if ( v5 >= a2[9] && a2[10] >= v4[205] )
return (unsigned int)ssl_security(a1, a3, a2[15], 0, (__int64)a2) == 0;
return v3;
}
v6 = a2[11];
if ( v6 != 256 )
{
if ( v5 == 256 )
v5 = 65280;
LABEL_8:
v7 = v5 <= v6;
v3 = 1;
if ( !v7 )
return v3;
goto LABEL_10;
}
v6 = 65280;
if ( v5 != 256 )
goto LABEL_8;
LABEL_10:
v8 = a2[12];
v9 = v4[205];
if ( v8 == 256 )
{
v8 = 65280;
if ( v9 == 256 )
return (unsigned int)ssl_security(a1, a3, a2[15], 0, (__int64)a2) == 0;
}
else if ( v9 == 256 )
{
v9 = 65280;
}
v7 = v9 < v8;
v3 = 1;
if ( !v7 )
return (unsigned int)ssl_security(a1, a3, a2[15], 0, (__int64)a2) == 0;
return v3;
}