//
// cms_set1_SignerIdentifier from 0xe21304 to 0xe2138c (136 bytes)
//
// 3 xrefs:
// > CMS_add1_recipient_cert @ 0xe1ea8c
// > CMS_add1_signer @ 0xe22930
// > ??> @ 0x68340
//
// 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_set1_SignerIdentifier(__int64 a1, __int64 a2, int a3)
{
int v4; // w0
int v5; // w2
int v7; // w0
if ( a3 )
{
if ( a3 == 1 )
{
v4 = cms_set1_keyid((__int64 *)(a1 + 8), a2);
v5 = 1;
if ( v4 )
{
LABEL_4:
*(_DWORD *)a1 = v5;
return 1;
}
}
else
{
ERR_put_error(46, 146, 150, (__int64)"crypto/cms/cms_sd.c", 165);
}
}
else
{
v7 = cms_set1_ias((__int64 *)(a1 + 8), a2);
v5 = 0;
if ( v7 )
goto LABEL_4;
}
return 0;
}