//
// CMS_add0_RevocationInfoChoice from 0xa8a5bc to 0xa8a690 (212 bytes)
//
// 2 xrefs:
// > CMS_add0_crl @ 0xa8a6a4
// > ??> @ 0x83f5c
//
// 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:54 +0000
//
_DWORD *__fastcall CMS_add0_RevocationInfoChoice(int *a1)
{
char *v2; // r0
int v3; // r5
int **v4; // r5
_DWORD *v5; // r4
int v6; // r5
_DWORD *result; // r0
int *v8; // r0
v2 = OBJ_obj2nid(*a1);
if ( v2 != (_BYTE *)&dword_14 + 2 )
{
if ( v2 == (_BYTE *)&dword_14 + 3 )
{
v3 = *(_DWORD *)(a1[1] + 4);
if ( v3 )
{
v4 = (int **)(v3 + 4);
goto LABEL_5;
}
}
else
{
ERR_put_error(46, 132, 152, (int)"crypto/cms/cms_lib.c", 431);
}
return nullptr;
}
v4 = (int **)(a1[1] + 16);
if ( a1[1] == -16 )
return nullptr;
LABEL_5:
if ( !*v4 )
{
v8 = OPENSSL_sk_new_null();
*v4 = v8;
if ( !v8 )
return nullptr;
}
v5 = ASN1_item_new((int)CMS_RevocationInfoChoice_it);
if ( !v5 )
return nullptr;
v6 = OPENSSL_sk_push(*v4, (int)v5);
result = v5;
if ( !v6 )
{
ASN1_item_free(v5, CMS_RevocationInfoChoice_it);
return nullptr;
}
return result;
}