//
// X509_ATTRIBUTE_create from 0x106e9a4 to 0x106ea3c (152 bytes)
//
// 3 xrefs:
// > sub_104A664 @ 0x104a6d8
// > sub_104A664 @ 0x104a750
// > ??> @ 0x74d70
//
// 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:59 +0000
//
_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;
}