//
// sub_107EA14 from 0x107ea14 to 0x107eaa8 (148 bytes)
//
// 2 xrefs:
// > X509_PURPOSE_cleanup @ 0x107f490
// > X509_PURPOSE_cleanup @ 0x107f4a0
//
// 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:09 +0000
//
void __fastcall sub_107EA14(__int64 a1)
{
int v1; // w2
if ( a1 )
{
v1 = *(_DWORD *)(a1 + 8);
if ( (v1 & 1) != 0 )
{
if ( (v1 & 2) != 0 )
{
CRYPTO_free(*(void **)(a1 + 24), (__int64)"crypto/x509v3/v3_purp.c", 223);
CRYPTO_free(*(void **)(a1 + 32), (__int64)"crypto/x509v3/v3_purp.c", 224);
CRYPTO_free((void *)a1, (__int64)"crypto/x509v3/v3_purp.c", 226);
}
else
{
CRYPTO_free((void *)a1, (__int64)"crypto/x509v3/v3_purp.c", 226);
}
}
}
}