//
// ASN1_STRING_clear_free from 0x9d7958 to 0x9d79a0 (72 bytes)
//
// 8 xrefs:
// > sub_9F2C54 @ 0x9f2cd4
// > sub_9F2C54 @ 0x9f2d34
// > sub_9F2DCC @ 0x9f2e58
// > sub_9F2DCC @ 0x9f2f08
// > sub_9F5C2C @ 0x9f5cb0
// > sub_9F5C2C @ 0x9f5d0c
// > sub_9F5DC4 @ 0x9f5e84
// > ??> @ 0x7823c
//
// 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:07:15 +0000
//
int __fastcall ASN1_STRING_clear_free(int result)
{
unsigned int *v1; // r4
_BYTE *v2; // r0
if ( result )
{
v1 = (unsigned int *)result;
v2 = *(_BYTE **)(result + 8);
if ( v2 && (v1[3] & 0x10) == 0 )
{
OPENSSL_cleanse(v2, *v1);
return ASN1_STRING_free((int)v1);
}
else
{
return ASN1_STRING_free((int)v1);
}
}
return result;
}