//
// X509_CRL_add0_revoked from 0x849440 to 0x8494c4 (132 bytes)
//
// 2 xrefs:
// > X509_CRL_diff @ 0x8456ec
// > ??> @ 0x676ac
//
// 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
//
int __fastcall X509_CRL_add0_revoked(int a1, int a2)
{
int *v3; // r0
int v5; // [sp+Ch] [bp-4h]
v3 = *(int **)(a1 + 24);
if ( (v3 || (v5 = a2, v3 = OPENSSL_sk_new((int)sub_848CCC), a2 = v5, (*(_DWORD *)(a1 + 24) = v3) != 0))
&& OPENSSL_sk_push(v3, a2) )
{
*(_DWORD *)(a1 + 40) = 1;
return 1;
}
else
{
ERR_put_error(13, 169, 65, (int)"crypto/x509/x_crl.c", 314);
return 0;
}
}