//
// CMS_add0_RevocationInfoChoice from 0xe202fc to 0xe203d0 (212 bytes)
//
// 2 xrefs:
// > CMS_add0_crl @ 0xe203dc
// > ??> @ 0x96a20
//
// 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
//
__int64 __fastcall CMS_add0_RevocationInfoChoice(__int64 *a1)
{
int v2; // w0
__int64 v3; // x20
int **v4; // x20
__int64 v5; // x19
__int64 v6; // x0
int *v8; // x0
v2 = OBJ_obj2nid(*a1);
if ( v2 != 22 )
{
if ( v2 == 23 )
{
v3 = *(_QWORD *)(a1[1] + 8);
if ( v3 )
{
v4 = (int **)(v3 + 8);
goto LABEL_5;
}
}
else
{
ERR_put_error(46, 132, 152, (__int64)"crypto/cms/cms_lib.c", 431);
}
return 0;
}
v4 = (int **)(a1[1] + 32);
if ( a1[1] == -32 )
return 0;
LABEL_5:
if ( !*v4 )
{
v8 = (int *)OPENSSL_sk_new_null();
*v4 = v8;
if ( !v8 )
return 0;
}
v5 = ASN1_item_new((__int64)CMS_RevocationInfoChoice_it);
if ( !v5 )
return 0;
if ( !(unsigned int)OPENSSL_sk_push(*v4, v5) )
{
v6 = v5;
v5 = 0;
ASN1_item_free(v6, CMS_RevocationInfoChoice_it);
}
return v5;
}