//
// X509_CRL_check_suiteb from 0xa53b94 to 0xa53c5c (200 bytes)
//
// 2 xrefs:
// > sub_A5AEB8 @ 0xa5afa8
// > ??> @ 0x8082c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:24 +0000
//
int __fastcall X509_CRL_check_suiteb(int a1, _DWORD *a2, int a3)
{
char *v6; // r6
int v7; // r0
int v8; // r0
int curve_name; // r0
bool v10; // zf
bool v11; // zf
if ( (a3 & 0x30000) == 0 )
return 0;
v6 = OBJ_obj2nid(*(_DWORD *)(a1 + 4));
if ( !a2 )
return 57;
if ( EVP_PKEY_id((int)a2) != 408 )
return 57;
v7 = EVP_PKEY_get0_EC_KEY(a2);
v8 = EC_KEY_get0_group(v7);
if ( !v8 )
return 57;
curve_name = EC_GROUP_get_curve_name(v8);
if ( curve_name == 715 )
{
v10 = v6 == (_BYTE *)&stru_30C.st_shndx + 1;
if ( v6 != (_BYTE *)&stru_30C.st_shndx + 1 )
v10 = v6 + 1 == nullptr;
if ( !v10 )
return 59;
if ( (a3 & 0x20000) != 0 )
return 0;
else
return 60;
}
else
{
if ( curve_name != 415 )
return 58;
v11 = v6 == (char *)&stru_30C.st_shndx;
if ( v6 != (char *)&stru_30C.st_shndx )
v11 = v6 + 1 == nullptr;
if ( !v11 )
return 59;
if ( (a3 & 0x10000) != 0 )
return 0;
else
return 60;
}
}