//
// PKCS7_digest_from_attributes from 0x104c0c0 to 0x104c104 (68 bytes)
//
// 2 xrefs:
// > PKCS7_signatureVerify @ 0x104c32c
// > ??> @ 0xe6fc8
//
// 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:16:36 +0000
//
__int64 __fastcall PKCS7_digest_from_attributes(__int64 a1)
{
__int64 attr; // x0
__int64 result; // x0
X509at_get_attr_by_NID(a1);
attr = X509at_get_attr(a1);
result = X509_ATTRIBUTE_get0_type(attr, 0);
if ( result )
return *(_QWORD *)(result + 8);
return result;
}