//
// X509V3_EXT_add from 0x8573b4 to 0x857460 (172 bytes)
//
// 3 xrefs:
// > X509V3_EXT_add_list @ 0x85754c
// > X509V3_EXT_add_alias @ 0x8575f4
// > ??> @ 0x6919c
//
// 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 X509V3_EXT_add(int a1)
{
int *v1; // r12
int v2; // r1
int v3; // r4
int *v5; // r0
v1 = (int *)dword_AD4850;
v2 = a1;
if ( dword_AD4850 || (v5 = OPENSSL_sk_new((int)sub_857364), v2 = a1, v1 = v5, (dword_AD4850 = (int)v5) != 0) )
{
v3 = OPENSSL_sk_push(v1, v2);
if ( v3 )
return 1;
else
ERR_put_error(34, 104, 65, (int)"crypto/x509v3/v3_lib.c", 33);
}
else
{
v3 = 0;
ERR_put_error(34, 104, 65, (int)"crypto/x509v3/v3_lib.c", 29);
}
return v3;
}