//
// X509_EXTENSION_create_by_NID from 0xde9b1c to 0xde9ba0 (132 bytes)
//
// 3 xrefs:
// > sub_DFAB3C @ 0xdfac34
// > X509V3_EXT_i2d @ 0xdfb21c
// > ??> @ 0x9b310
//
// 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
//
__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;
}