//
// X509V3_add_value_int from 0x85d1d8 to 0x85d23c (100 bytes)
//
// 5 xrefs:
// > sub_859274 @ 0x859298
// > sub_859274 @ 0x8592ac
// > sub_85BF14 @ 0x85bf64
// > sub_8C3FD0 @ 0x8c4008
// > ??> @ 0x6949c
//
// 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_add_value_int(const char *a1, int a2, int **a3)
{
const char *v5; // r0
char *v6; // r6
int v7; // r4
if ( !a2 )
return 1;
v5 = i2s_ASN1_INTEGER(0, a2);
v6 = (char *)v5;
if ( !v5 )
return 0;
v7 = X509V3_add_value(a1, v5, a3);
CRYPTO_free(v6, (int)"crypto/x509v3/v3_utl.c", 189);
return v7;
}