//
// policy_data_free from 0xa604b4 to 0xa60514 (96 bytes)
//
// 12 xrefs:
// > policy_cache_free @ 0xa600f4
// > policy_cache_set @ 0xa60264
// > policy_cache_set @ 0xa60398
// > policy_cache_set_mapping @ 0xa60718
// > X509_policy_check @ 0xa60c1c
// > X509_policy_check @ 0xa60ef8
// > X509_policy_check @ 0xa613e4
// > ??> @ 0x81fac
// > policy_cache_free @ 0xa60100
// > policy_cache_set @ 0xa60280
// > X509_policy_tree_free @ 0xa60824
// > ??> @ 0xd1d7c8
//
// 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:33 +0000
//
void __fastcall policy_data_free(void *a1)
{
if ( a1 )
{
ASN1_OBJECT_free(*((_DWORD **)a1 + 1));
if ( (*(_DWORD *)a1 & 4) == 0 )
OPENSSL_sk_pop_free(*((_DWORD *)a1 + 2), (void (__fastcall *)(int))POLICYQUALINFO_free);
OPENSSL_sk_pop_free(*((_DWORD *)a1 + 3), (void (__fastcall *)(int))ASN1_OBJECT_free);
CRYPTO_free(a1, (int)"crypto/x509v3/pcy_data.c", 27);
}
}