//
// cms_SignerIdentifier_cert_cmp from 0x876b04 to 0x876b30 (44 bytes)
//
// 3 xrefs:
// > CMS_RecipientInfo_ktri_cert_cmp @ 0x873038
// > CMS_SignerInfo_cert_cmp @ 0x876c70
// > ??> @ 0x6a0cc
//
// 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_SignerIdentifier_cert_cmp(int a1, int a2)
{
if ( !*(_DWORD *)a1 )
return cms_ias_cert_cmp(*(int **)(a1 + 4), a2);
if ( *(_DWORD *)a1 == 1 )
return cms_keyid_cert_cmp(*(_DWORD *)(a1 + 4), a2);
return -1;
}