//
// X509at_add1_attr_by_NID from 0xde62a0 to 0xde62ec (76 bytes)
//
// 11 xrefs:
// > PKCS8_pkey_add1_attr_by_NID @ 0xd6a760
// > EVP_PKEY_add1_attr_by_NID @ 0xdaae18
// > PKCS12_add_localkeyid @ 0xe65ab0
// > PKCS12_add_friendlyname_asc @ 0xe65b08
// > PKCS12_add_friendlyname_utf8 @ 0xe65b38
// > PKCS12_add_friendlyname_uni @ 0xe65b68
// > PKCS12_add_CSPName_asc @ 0xe65b98
// > X509_REQ_add1_attr_by_NID @ 0xe6f3d8
// > CMS_signed_add1_attr_by_NID @ 0xe7adfc
// > CMS_unsigned_add1_attr_by_NID @ 0xe7aeac
// > ??> @ 0xa6c20
//
// 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
//
__int64 *__fastcall X509at_add1_attr_by_NID(void ***a1, unsigned int a2, unsigned int a3, char *a4, unsigned int a5)
{
__int64 *result; // x0
__int64 *v7; // x19
void **v8; // x20
result = X509_ATTRIBUTE_create_by_NID(nullptr, a2, a3, a4, a5);
v7 = result;
if ( result )
{
v8 = X509at_add1_attr(a1, (__int64)result);
X509_ATTRIBUTE_free(v7);
return (__int64 *)v8;
}
return result;
}