//
// SSL_get1_supported_ciphers from 0x9acc74 to 0x9acd1c (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x7582c
//
// 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:06:54 +0000
//
int __fastcall SSL_get1_supported_ciphers(int a1)
{
int ciphers; // r6
int v3; // r4
int v4; // r7
int v5; // r0
int v6; // r1
int v8; // r5
ciphers = SSL_get_ciphers(a1);
if ( !ciphers )
return 0;
ssl_set_client_disabled(a1);
v3 = 0;
v4 = 0;
while ( 1 )
{
v5 = OPENSSL_sk_num(ciphers);
v6 = v3;
if ( v3++ >= v5 )
return v4;
v8 = OPENSSL_sk_value(ciphers, v6);
if ( !ssl_cipher_disabled(a1, v8, 65537) )
{
if ( !v4 )
{
v4 = OPENSSL_sk_new_null(0);
if ( !v4 )
return 0;
}
if ( !OPENSSL_sk_push(v4, v8) )
break;
}
}
OPENSSL_sk_free(v4);
return 0;
}