//
// X509at_add1_attr_by_NID from 0x10645e0 to 0x106462c (76 bytes)
//
// 11 xrefs:
// > PKCS8_pkey_add1_attr_by_NID @ 0xfe8ac0
// > EVP_PKEY_add1_attr_by_NID @ 0x1029178
// > PKCS12_add_localkeyid @ 0x10e3ab0
// > PKCS12_add_friendlyname_asc @ 0x10e3b08
// > PKCS12_add_friendlyname_utf8 @ 0x10e3b38
// > PKCS12_add_friendlyname_uni @ 0x10e3b68
// > PKCS12_add_CSPName_asc @ 0x10e3b98
// > X509_REQ_add1_attr_by_NID @ 0x10ed3d8
// > CMS_signed_add1_attr_by_NID @ 0x10f8dfc
// > CMS_unsigned_add1_attr_by_NID @ 0x10f8eac
// > ??> @ 0xdaf80
//
// 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:52 +0000
//
__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;
}