//
// X509_EXTENSION_create_by_OBJ from 0xa56684 to 0xa56794 (272 bytes)
//
// 3 xrefs:
// > X509_EXTENSION_create_by_NID @ 0xa567cc
// > sub_A68410 @ 0xa68500
// > ??> @ 0x80edc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:26 +0000
//
const char ***__fastcall X509_EXTENSION_create_by_OBJ(const char ****a1, const char **a2, int a3, _DWORD *a4)
{
const char ***v8; // r4
const char ***v10; // r0
if ( a1 && (v8 = *a1) != nullptr )
{
if ( !X509_EXTENSION_set_object(*a1, a2) || !X509_EXTENSION_set_critical((int)v8, a3) )
goto LABEL_4;
}
else
{
v10 = (const char ***)X509_EXTENSION_new();
v8 = v10;
if ( !v10 )
{
ERR_put_error(11, 109, 65, (int)"crypto/x509/x509_v3.c", 162);
return nullptr;
}
if ( !X509_EXTENSION_set_object(v10, a2) || !X509_EXTENSION_set_critical((int)v8, a3) )
{
LABEL_15:
if ( !a1 )
{
LABEL_6:
X509_EXTENSION_free(v8);
return nullptr;
}
LABEL_4:
if ( *a1 == v8 )
return nullptr;
goto LABEL_6;
}
}
if ( !X509_EXTENSION_set_data((_BOOL4)v8, a4) )
goto LABEL_15;
if ( !a1 || *a1 )
return v8;
*a1 = v8;
return v8;
}