//
// CMS_RecipientInfo_kari_orig_id_cmp from 0x109d250 to 0x109d2c4 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0xbea08
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:29 +0000
//
__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;
}
}