//
// cms_set1_SignerIdentifier from 0x109f604 to 0x109f68c (136 bytes)
//
// 3 xrefs:
// > CMS_add1_recipient_cert @ 0x109cd8c
// > CMS_add1_signer @ 0x10a0c30
// > ??> @ 0x8d418
//
// 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:30 +0000
//
__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;
}