//
// CMS_SignerInfo_set1_signer_cert from 0xa8b828 to 0xa8b864 (60 bytes)
//
// 3 xrefs:
// > CMS_set1_signers_certs @ 0xa8b99c
// > CMS_set1_signers_certs @ 0xa8b9bc
// > ??> @ 0x8402c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:55 +0000
//
_DWORD *__fastcall CMS_SignerInfo_set1_signer_cert(int a1, int a2)
{
_DWORD *result; // r0
if ( a2 )
{
X509_up_ref(a2);
EVP_PKEY_free(*(_DWORD *)(a1 + 32));
*(_DWORD *)(a1 + 32) = X509_get_pubkey(a2);
}
result = X509_free(*(_DWORD **)(a1 + 28));
*(_DWORD *)(a1 + 28) = a2;
return result;
}