//
// X509_CRL_check_suiteb from 0xde6e64 to 0xde6f50 (236 bytes)
//
// 2 xrefs:
// > sub_DEDE84 @ 0xdedf80
// > ??> @ 0x3dbc0
//
// 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 X509_CRL_check_suiteb(__int64 a1, unsigned int *a2, int a3)
{
unsigned int v3; // w3
int v7; // w21
__int64 v8; // x0
__int64 v9; // x0
int curve_name; // w0
v3 = 0;
if ( (*(_QWORD *)&a3 & 0x30000LL) == 0 )
return v3;
v7 = OBJ_obj2nid(*(_QWORD *)(a1 + 8));
if ( a2 && (unsigned int)EVP_PKEY_id(a2) == 408 )
{
v8 = EVP_PKEY_get0_EC_KEY((__int64)a2);
v9 = EC_KEY_get0_group(v8);
v3 = 57;
if ( v9 )
{
curve_name = EC_GROUP_get_curve_name(v9);
if ( curve_name == 715 )
{
if ( v7 == 795 || (v3 = 59, v7 == -1) )
{
if ( (*(_QWORD *)&a3 & 0x20000LL) != 0 )
return 0;
else
return 60;
}
}
else
{
v3 = 58;
if ( curve_name == 415 )
{
if ( v7 == 794 || (v3 = 59, v7 == -1) )
{
if ( (*(_QWORD *)&a3 & 0x10000LL) != 0 )
return 0;
else
return 60;
}
}
}
}
return v3;
}
return 57;
}