//
// X509_ATTRIBUTE_create from 0xdf0664 to 0xdf06fc (152 bytes)
//
// 3 xrefs:
// > sub_DCC304 @ 0xdcc378
// > sub_DCC304 @ 0xdcc3f0
// > ??> @ 0x54528
//
// 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
//
_QWORD *__fastcall X509_ATTRIBUTE_create(unsigned int a1, unsigned int a2, __int64 a3)
{
_QWORD *result; // x0
__int64 v7; // x19
__int64 v8; // x20
result = (_QWORD *)X509_ATTRIBUTE_new();
v7 = (__int64)result;
if ( result )
{
*result = OBJ_nid2obj(a1);
v8 = ASN1_TYPE_new();
if ( v8 && (unsigned int)OPENSSL_sk_push(*(int **)(v7 + 8), v8) )
{
ASN1_TYPE_set(v8, a2, a3);
return (_QWORD *)v7;
}
else
{
X509_ATTRIBUTE_free(v7);
ASN1_TYPE_free(v8);
return nullptr;
}
}
return result;
}