//
// policy_data_free from 0x1071584 to 0x10715f4 (112 bytes)
//
// 12 xrefs:
// > policy_cache_free @ 0x10711ec
// > policy_cache_set @ 0x1071374
// > policy_cache_set @ 0x107147c
// > policy_cache_set_mapping @ 0x1071804
// > X509_policy_check @ 0x1071e90
// > X509_policy_check @ 0x1071fb8
// > X509_policy_check @ 0x1072344
// > ??> @ 0x908c8
// > policy_cache_free @ 0x10711f8
// > policy_cache_set @ 0x1071390
// > X509_policy_tree_free @ 0x10718f8
// > ??> @ 0x1543dd0
//
// 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
//
void __fastcall policy_data_free(void *a1)
{
if ( a1 )
{
ASN1_OBJECT_free(*((_QWORD *)a1 + 1));
if ( (*(_DWORD *)a1 & 4) == 0 )
OPENSSL_sk_pop_free(*((int **)a1 + 2), (void (__fastcall *)(__int64))POLICYQUALINFO_free);
OPENSSL_sk_pop_free(*((int **)a1 + 3), (void (__fastcall *)(__int64))ASN1_OBJECT_free);
CRYPTO_free(a1, (__int64)"crypto/x509v3/pcy_data.c", 27);
}
}