//
// ssl_cipher_get_cert_index from 0xfbc658 to 0xfbc698 (64 bytes)
//
// 4 xrefs:
// > ssl_get_server_send_pkey @ 0xfbfd5c
// > ssl_get_server_cert_serverinfo @ 0xfbfed8
// > tls_process_server_certificate @ 0xfc7eec
// > ??> @ 0x95c80
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:18 +0000
//
__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;
}