//
// sub_1067FF0 from 0x1067ff0 to 0x1068120 (304 bytes)
//
// 4 xrefs:
// > sub_10694F0 @ 0x1069a20
// > sub_10694F0 @ 0x1069a34
// > X509_CRL_diff @ 0x106b634
// > X509_CRL_diff @ 0x106b648
//
// 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:54 +0000
//
__int64 __fastcall sub_1067FF0(__int64 a1, __int64 a2)
{
__int64 ext; // x0
__int64 data; // x21
__int64 v7; // x0
__int64 v8; // x1
if ( (X509_CRL_get_ext_by_NID(a1) & 0x80000000) != 0 )
{
data = 0;
if ( (X509_CRL_get_ext_by_NID(a2) & 0x80000000) != 0 )
return 1;
}
else
{
if ( (unsigned int)X509_CRL_get_ext_by_NID(a1) != -1 )
return 0;
ext = X509_CRL_get_ext(a1);
data = X509_EXTENSION_get_data(ext);
if ( (X509_CRL_get_ext_by_NID(a2) & 0x80000000) != 0 )
return !data;
}
if ( (unsigned int)X509_CRL_get_ext_by_NID(a2) != -1 )
return 0;
v7 = X509_CRL_get_ext(a2);
v8 = X509_EXTENSION_get_data(v7);
if ( v8 )
{
if ( data )
return (unsigned int)ASN1_OCTET_STRING_cmp(data, v8) == 0;
return 0;
}
return !data;
}