//
// sub_1070A2C from 0x1070a2c to 0x1070b14 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x140e660
//
// 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:01 +0000
//
bool __fastcall sub_1070A2C(int a1, __int64 *a2)
{
__int64 v2; // x19
v2 = *a2;
if ( a1 == 1 )
{
*(_QWORD *)(v2 + 192) = -1;
*(_QWORD *)(v2 + 200) = -1;
*(_DWORD *)(v2 + 208) = 0;
*(_QWORD *)(v2 + 224) = 0;
*(_QWORD *)(v2 + 232) = 0;
*(_QWORD *)(v2 + 272) = 0;
*(_QWORD *)(v2 + 280) = 0;
*(_QWORD *)(v2 + 312) = 0;
*(_QWORD *)(v2 + 248) = 0;
return (unsigned int)CRYPTO_new_ex_data(3u, v2, (_QWORD *)(v2 + 184)) != 0;
}
else
{
if ( a1 == 3 )
{
CRYPTO_free_ex_data(3u, *a2, (_QWORD *)(v2 + 184));
X509_CERT_AUX_free(*(_QWORD *)(v2 + 312));
ASN1_OCTET_STRING_free(*(_QWORD *)(v2 + 224));
AUTHORITY_KEYID_free(*(_QWORD *)(v2 + 232));
CRL_DIST_POINTS_free(*(_QWORD *)(v2 + 248));
policy_cache_free(*(_QWORD *)(v2 + 240));
GENERAL_NAMES_free(*(_QWORD *)(v2 + 256));
NAME_CONSTRAINTS_free(*(_QWORD *)(v2 + 264));
OPENSSL_sk_pop_free(*(int **)(v2 + 272), (void (__fastcall *)(__int64))IPAddressFamily_free);
ASIdentifiers_free(*(_QWORD *)(v2 + 280));
}
return 1;
}
}