//
// CMS_RecipientInfo_kari_orig_id_cmp from 0xa89278 to 0xa892ec (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x83dbc
//
// 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:53 +0000
//
int __fastcall CMS_RecipientInfo_kari_orig_id_cmp(_DWORD *a1)
{
_DWORD *v1; // r3
if ( *a1 == 1 )
{
v1 = *(_DWORD **)(a1[1] + 4);
if ( *v1 )
{
if ( *v1 == 1 )
return cms_keyid_cert_cmp(v1[1]);
else
return -1;
}
else
{
return cms_ias_cert_cmp(v1[1]);
}
}
else
{
ERR_put_error(46, 174, 181, (int)"crypto/cms/cms_kari.c", 98);
return -2;
}
}