//
// X509V3_EXT_add from 0xa6bfb4 to 0xa6c060 (172 bytes)
//
// 3 xrefs:
// > X509V3_EXT_add_list @ 0xa6c14c
// > X509V3_EXT_add_alias @ 0xa6c1f4
// > ??> @ 0x82c1c
//
// 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:39 +0000
//
int __fastcall X509V3_EXT_add(int a1)
{
int *v1; // r12
int v2; // r1
int v3; // r4
int *v5; // r0
v1 = (int *)dword_D35ADC;
v2 = a1;
if ( dword_D35ADC || (v5 = OPENSSL_sk_new((int)sub_A6BF64), v2 = a1, v1 = v5, (dword_D35ADC = (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;
}