//
// CMS_RecipientInfo_kari_orig_id_cmp from 0x874678 to 0x8746ec (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x6a33c
//
// 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 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;
}
}