//
// X509V3_add_value from 0xa7199c to 0xa71ad0 (308 bytes)
//
// 24 xrefs:
// > i2v_GENERAL_NAME @ 0xa65460
// > i2v_GENERAL_NAME @ 0xa65484
// > i2v_GENERAL_NAME @ 0xa654f0
// > i2v_GENERAL_NAME @ 0xa65524
// > i2v_GENERAL_NAME @ 0xa65548
// > i2v_GENERAL_NAME @ 0xa65644
// > i2v_GENERAL_NAME @ 0xa65660
// > sub_A6E188 @ 0xa6e1e0
// > sub_A70B14 @ 0xa70ba4
// > X509V3_add_value_uchar @ 0xa71ae0
// > X509V3_add_value_bool @ 0xa71af4
// > X509V3_add_value_bool @ 0xa71b00
// > X509V3_add_value_bool_nf @ 0xa71b24
// > X509V3_add_value_int @ 0xa71e08
// > X509V3_parse_list @ 0xa72508
// > X509V3_parse_list @ 0xa725a4
// > X509V3_parse_list @ 0xa72630
// > X509V3_parse_list @ 0xa726d0
// > X509V3_parse_list @ 0xa726f8
// > sub_AD8F00 @ 0xad8f3c
// > sub_AD8F00 @ 0xad8f9c
// > i2v_ASN1_BIT_STRING @ 0xad9228
// > sub_AD9590 @ 0xad95d0
// > ??> @ 0x822ec
//
// 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:42 +0000
//
int __fastcall X509V3_add_value(const char *a1, const char *a2, int **a3)
{
void *v3; // r7
void *v6; // r6
_DWORD *v7; // r5
int *v9; // r0
v3 = (void *)a1;
if ( a1 )
{
v3 = CRYPTO_strdup(a1, (int)"crypto/x509v3/v3_utl.c", 41);
if ( !v3 )
{
v6 = nullptr;
v7 = nullptr;
goto LABEL_9;
}
}
if ( a2 )
{
v6 = CRYPTO_strdup(a2, (int)"crypto/x509v3/v3_utl.c", 43);
if ( !v6 )
{
v7 = nullptr;
goto LABEL_9;
}
}
else
{
v6 = nullptr;
}
v7 = CRYPTO_malloc(&byte_9[3], (int)"crypto/x509v3/v3_utl.c", 45);
if ( v7 )
{
if ( *a3 || (v9 = OPENSSL_sk_new_null(), (*a3 = v9) != nullptr) )
{
v7[1] = v3;
v7[2] = v6;
*v7 = 0;
if ( OPENSSL_sk_push(*a3, (int)v7) )
return 1;
}
}
LABEL_9:
ERR_put_error(34, 105, 65, (int)"crypto/x509v3/v3_utl.c", 56);
CRYPTO_free(v7, (int)"crypto/x509v3/v3_utl.c", 57);
CRYPTO_free(v3, (int)"crypto/x509v3/v3_utl.c", 58);
CRYPTO_free(v6, (int)"crypto/x509v3/v3_utl.c", 59);
return 0;
}