//
// CMS_RecipientInfo_kari_orig_id_cmp from 0xe1ef50 to 0xe1efc4 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x900d8
//
// 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_RecipientInfo_kari_orig_id_cmp(__int64 a1)
{
__int64 v1; // x0
if ( *(_DWORD *)a1 == 1 )
{
v1 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
if ( *(_DWORD *)v1 )
{
if ( *(_DWORD *)v1 == 1 )
return cms_keyid_cert_cmp(*(_QWORD *)(v1 + 8));
else
return 0xFFFFFFFFLL;
}
else
{
return cms_ias_cert_cmp(*(_QWORD *)(v1 + 8));
}
}
else
{
ERR_put_error(46, 174, 181, (__int64)"crypto/cms/cms_kari.c", 98);
return 4294967294LL;
}
}