//
// SSL_get_cipher_list from 0x798148 to 0x79819c (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x5bdec
//
// 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
//
int __fastcall SSL_get_cipher_list(int a1, int a2)
{
int ciphers; // r0
int v4; // r5
int v5; // r0
if ( !a1 )
return 0;
ciphers = SSL_get_ciphers(a1);
v4 = ciphers;
if ( ciphers && a2 < OPENSSL_sk_num(ciphers) && (v5 = OPENSSL_sk_value(v4, a2)) != 0 )
return *(_DWORD *)(v5 + 4);
else
return 0;
}