//
// X509_EXTENSION_create_by_NID from 0x1067e5c to 0x1067ee0 (132 bytes)
//
// 3 xrefs:
// > sub_1078E7C @ 0x1078f74
// > X509V3_EXT_i2d @ 0x107955c
// > ??> @ 0xcc850
//
// 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:54 +0000
//
__int64 *__fastcall X509_EXTENSION_create_by_NID(__int64 **a1, unsigned int a2, int a3, unsigned int *a4)
{
char **v5; // x0
__int64 v6; // x19
__int64 *v7; // x20
v5 = OBJ_nid2obj(a2);
v6 = (__int64)v5;
if ( v5 )
{
v7 = X509_EXTENSION_create_by_OBJ(a1, (__int64)v5, a3, a4);
if ( !v7 )
ASN1_OBJECT_free(v6);
}
else
{
v7 = nullptr;
ERR_put_error(11, 108, 109, (__int64)"crypto/x509/x509_v3.c", 144);
}
return v7;
}