//
// X509_ATTRIBUTE_create_by_NID from 0x1064554 to 0x10645e0 (140 bytes)
//
// 2 xrefs:
// > X509at_add1_attr_by_NID @ 0x10645f4
// > ??> @ 0xe93f8
//
// 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 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;
}