//
// X509_CRL_add0_revoked from 0x106f1f8 to 0x106f278 (128 bytes)
//
// 2 xrefs:
// > X509_CRL_diff @ 0x106b7ac
// > ??> @ 0x6ef68
//
// 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:17:00 +0000
//
__int64 __fastcall X509_CRL_add0_revoked(__int64 a1, __int64 a2)
{
int *v3; // x0
__int64 v5; // [xsp+28h] [xbp+28h]
v3 = *(int **)(a1 + 48);
if ( (v3 || (v5 = a2, v3 = (int *)OPENSSL_sk_new((__int64)sub_106EA3C), *(_QWORD *)(a1 + 48) = v3, a2 = v5, v3))
&& (unsigned int)OPENSSL_sk_push(v3, a2) )
{
*(_DWORD *)(a1 + 80) = 1;
return 1;
}
else
{
ERR_put_error(13, 169, 65, (__int64)"crypto/x509/x_crl.c", 314);
return 0;
}
}