//
// CMS_RecipientEncryptedKey_cert_cmp from 0x8747b8 to 0x8747ec (52 bytes)
//
// 1 xrefs:
// > ??> @ 0x6a37c
//
// 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_RecipientEncryptedKey_cert_cmp(int **a1)
{
int *v1; // r3
int v2; // r2
v1 = *a1;
v2 = **a1;
if ( !v2 )
return cms_ias_cert_cmp(v1[1]);
if ( v2 == 1 )
return cms_keyid_cert_cmp(*(_DWORD *)v1[1]);
return -1;
}