//
// ssl_cipher_get_cert_index from 0xd3e304 to 0xd3e344 (64 bytes)
//
// 4 xrefs:
// > ssl_get_server_send_pkey @ 0xd41a08
// > ssl_get_server_cert_serverinfo @ 0xd41b84
// > tls_process_server_certificate @ 0xd49b98
// > ??> @ 0x6f1e0
//
// 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_cipher_get_cert_index(__int64 a1)
{
int v1; // w1
__int64 result; // x0
v1 = *(_DWORD *)(a1 + 24);
result = 3;
if ( (v1 & 8) == 0 )
{
result = 2;
if ( (v1 & 2) == 0 )
{
result = 0;
if ( (v1 & 1) == 0 )
{
result = 8;
if ( (v1 & 0x80) == 0 )
{
if ( (v1 & 0x20) != 0 )
return 4;
else
return 0xFFFFFFFFLL;
}
}
}
}
return result;
}