//
// _CONF_add_string from 0x10a1338 to 0x10a13ec (180 bytes)
//
// 2 xrefs:
// > sub_10A1D38 @ 0x10a237c
// > ??> @ 0x55d68
//
// 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:31 +0000
//
__int64 __fastcall CONF_add_string(__int64 a1, _QWORD *a2, _QWORD *a3)
{
int *v3; // x19
__int64 result; // x0
void **v6; // x0
void **v7; // x20
v3 = (int *)a2[2];
*a3 = *a2;
result = OPENSSL_sk_push(v3, (__int64)a3);
if ( (_DWORD)result )
{
v6 = (void **)OPENSSL_LH_insert(*(__int64 **)(a1 + 16), a3);
v7 = v6;
if ( v6 )
{
OPENSSL_sk_delete_ptr((__int64)v3, (__int64)v6);
CRYPTO_free(v7[1], (__int64)"crypto/conf/conf_api.c", 62);
CRYPTO_free(v7[2], (__int64)"crypto/conf/conf_api.c", 63);
CRYPTO_free(v7, (__int64)"crypto/conf/conf_api.c", 64);
}
return 1;
}
return result;
}