//
// asn1_string_embed_free from 0xfe78bc to 0xfe7920 (100 bytes)
//
// 3 xrefs:
// > ASN1_STRING_free @ 0xfe792c
// > asn1_primitive_free @ 0xfecc54
// > ??> @ 0xe1da8
//
// 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_embed_free(__int64 result, int a2)
{
__int64 v2; // x19
if ( result )
{
v2 = result;
result = *(_QWORD *)(result + 16);
if ( (result & 0x10) != 0 )
{
if ( a2 )
return result;
return CRYPTO_free(v2, "crypto/asn1/asn1_lib.c", 325);
}
result = CRYPTO_free(*(_QWORD *)(v2 + 8), "crypto/asn1/asn1_lib.c", 323);
if ( !a2 )
return CRYPTO_free(v2, "crypto/asn1/asn1_lib.c", 325);
}
return result;
}