//
// CMS_SignerInfo_set1_signer_cert from 0x109f828 to 0x109f874 (76 bytes)
//
// 3 xrefs:
// > CMS_set1_signers_certs @ 0x109f9c4
// > CMS_set1_signers_certs @ 0x109f9d8
// > ??> @ 0xf8800
//
// 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_SignerInfo_set1_signer_cert(__int64 a1, __int64 a2)
{
__int64 result; // x0
if ( a2 )
{
X509_up_ref(a2);
EVP_PKEY_free(*(_QWORD *)(a1 + 64));
*(_QWORD *)(a1 + 64) = X509_get_pubkey(a2);
}
result = X509_free(*(_QWORD *)(a1 + 56));
*(_QWORD *)(a1 + 56) = a2;
return result;
}