//
// cms_SignerIdentifier_get0_signer_id from 0x876a9c to 0x876b04 (104 bytes)
//
// 3 xrefs:
// > CMS_RecipientInfo_ktri_get0_signer_id @ 0x872fe4
// > CMS_SignerInfo_get0_signer_id @ 0x876c68
// > ??> @ 0x6a0ac
//
// 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_get0_signer_id(int *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4)
{
int result; // r0
result = *a1;
if ( result )
{
if ( result != 1 )
return 0;
if ( a2 )
{
*a2 = a1[1];
return result;
}
}
else
{
if ( a3 )
*a3 = *(_DWORD *)a1[1];
if ( a4 )
{
*a4 = *(_DWORD *)(a1[1] + 4);
return 1;
}
}
return 1;
}