//
// SSL_get_cipher_list from 0xd40cf8 to 0xd40d54 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x9ed18
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall SSL_get_cipher_list(__int64 a1, int a2)
{
__int64 ciphers; // x0
__int64 v4; // x20
__int64 v5; // x0
if ( a1
&& (ciphers = SSL_get_ciphers(a1), (v4 = ciphers) != 0)
&& a2 < (int)OPENSSL_sk_num(ciphers)
&& (v5 = OPENSSL_sk_value(v4, (unsigned int)a2)) != 0 )
{
return *(_QWORD *)(v5 + 8);
}
else
{
return 0;
}
}