//
// PKCS7_get_signed_attribute from 0x827e7c to 0x827ea8 (44 bytes)
//
// 4 xrefs:
// > PKCS7_dataFinal @ 0x8282c4
// > PKCS7_get_smimecap @ 0x8bbde8
// > PKCS7_add_attrib_content_type @ 0x8bbf44
// > ??> @ 0x65e0c
//
// 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
//
int __fastcall PKCS7_get_signed_attribute(int a1)
{
int v1; // r4
int attr; // r0
v1 = *(_DWORD *)(a1 + 12);
X509at_get_attr_by_NID(v1);
attr = X509at_get_attr(v1);
return X509_ATTRIBUTE_get0_type(attr, 0);
}