//
// X509_ATTRIBUTE_create from 0x848c4c to 0x848ccc (128 bytes)
//
// 3 xrefs:
// > sub_826A7C @ 0x826ae4
// > sub_826A7C @ 0x826b40
// > ??> @ 0x65d8c
//
// 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
//
int **__fastcall X509_ATTRIBUTE_create(unsigned int a1, int a2, int a3)
{
int **v6; // r4
_DWORD *v7; // r5
v6 = (int **)X509_ATTRIBUTE_new();
if ( !v6 )
return nullptr;
*v6 = (int *)OBJ_nid2obj(a1);
v7 = ASN1_TYPE_new();
if ( v7 && OPENSSL_sk_push(v6[1], (int)v7) )
{
ASN1_TYPE_set(v7, a2, a3);
return v6;
}
else
{
X509_ATTRIBUTE_free(v6);
ASN1_TYPE_free(v7);
return nullptr;
}
}