//
// ASN1_STRING_clear_free from 0xfe798c to 0xfe79e4 (88 bytes)
//
// 8 xrefs:
// > sub_1003DA4 @ 0x1003e30
// > sub_1003DA4 @ 0x1003e88
// > sub_1003F10 @ 0x1003fa4
// > sub_1003F10 @ 0x100404c
// > sub_1006C30 @ 0x1006cb4
// > sub_1006C30 @ 0x1006d08
// > sub_1006DA8 @ 0x1006e6c
// > ??> @ 0x6a348
//
// 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:15:40 +0000
//
__int64 __fastcall ASN1_STRING_clear_free(__int64 result)
{
int *v1; // x19
_BYTE *v2; // x0
if ( result )
{
v1 = (int *)result;
v2 = *(_BYTE **)(result + 8);
if ( v2 && (*((_QWORD *)v1 + 2) & 0x10) == 0 )
{
OPENSSL_cleanse(v2, *v1);
return ASN1_STRING_free((__int64)v1);
}
else
{
return ASN1_STRING_free((__int64)v1);
}
}
return result;
}