//
// X509_CRL_check_suiteb from 0x10651a4 to 0x1065290 (236 bytes)
//
// 2 xrefs:
// > sub_106C1C4 @ 0x106c2c0
// > ??> @ 0x59350
//
// 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:16:52 +0000
//
__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;
}