//
// X509_ATTRIBUTE_create_by_NID from 0xde6214 to 0xde62a0 (140 bytes)
//
// 2 xrefs:
// > X509at_add1_attr_by_NID @ 0xde62b4
// > ??> @ 0xb2530
//
// 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 X509_ATTRIBUTE_create_by_NID(
__int64 **a1,
unsigned int a2,
unsigned int a3,
char *a4,
unsigned int a5)
{
char **v6; // x0
__int64 v7; // x19
__int64 *v8; // x20
v6 = OBJ_nid2obj(a2);
v7 = (__int64)v6;
if ( v6 )
{
v8 = X509_ATTRIBUTE_create_by_OBJ(a1, (__int64)v6, a3, a4, a5);
if ( !v8 )
ASN1_OBJECT_free(v7);
}
else
{
v8 = nullptr;
ERR_put_error(11, 136, 109, (__int64)"crypto/x509/x509_att.c", 177);
}
return v8;
}