//
// ssl_cipher_disabled from 0x9c36f8 to 0x9c37ec (244 bytes)
//
// 4 xrefs:
// > SSL_get1_supported_ciphers @ 0x9accc8
// > tls_construct_client_hello @ 0x9b54a0
// > tls_process_server_hello @ 0x9b5b2c
// > ??> @ 0x7584c
//
// 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:05 +0000
//
bool __fastcall ssl_cipher_disabled(int a1, _DWORD *a2, int a3)
{
_DWORD *v3; // r3
int v4; // r12
int v5; // lr
int v6; // r12
int v7; // r3
v3 = *(_DWORD **)(a1 + 104);
if ( (v3[171] & a2[3]) != 0 )
return 1;
if ( (v3[172] & a2[4]) != 0 )
return 1;
v4 = v3[174];
if ( !v4 )
return 1;
if ( (*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 4) + 100) + 52) & 8) == 0 )
{
if ( v4 >= a2[7] && a2[8] >= v3[173] )
return ssl_security(a1, a3) == 0;
return 1;
}
v5 = a2[9];
if ( v5 != 256 )
{
if ( v4 == 256 )
v4 = 65280;
LABEL_8:
if ( v4 > v5 )
return 1;
goto LABEL_9;
}
if ( v4 != 256 )
{
v5 = 65280;
goto LABEL_8;
}
LABEL_9:
v6 = a2[10];
v7 = v3[173];
if ( v6 == 256 )
{
if ( v7 == 256 )
return ssl_security(a1, a3) == 0;
v6 = 65280;
}
else if ( v7 == 256 )
{
v7 = 65280;
}
if ( v7 >= v6 )
return ssl_security(a1, a3) == 0;
return 1;
}