//
// X509V3_EXT_add from 0x107c244 to 0x107c2f0 (172 bytes)
//
// 3 xrefs:
// > X509V3_EXT_add_list @ 0x107c3e0
// > X509V3_EXT_add_alias @ 0x107c474
// > ??> @ 0x105dc0
//
// 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:17:07 +0000
//
__int64 __fastcall X509V3_EXT_add(__int64 a1)
{
__int64 v1; // x1
int *v2; // x19
v1 = a1;
v2 = (int *)qword_1568528;
if ( !qword_1568528 )
{
qword_1568528 = (__int64)OPENSSL_sk_new((__int64)sub_107C1F8);
v2 = (int *)qword_1568528;
v1 = a1;
if ( !qword_1568528 )
{
ERR_put_error(34, 104, 65, (__int64)"crypto/x509v3/v3_lib.c", 29);
return (unsigned int)v2;
}
}
if ( (unsigned int)OPENSSL_sk_push(v2, v1) )
{
LODWORD(v2) = 1;
return (unsigned int)v2;
}
ERR_put_error(34, 104, 65, (__int64)"crypto/x509v3/v3_lib.c", 33);
return 0;
}