//
// asn1_string_embed_free from 0xd6955c to 0xd695c0 (100 bytes)
//
// 3 xrefs:
// > ASN1_STRING_free @ 0xd695cc
// > asn1_primitive_free @ 0xd6e8f4
// > ??> @ 0xac6f8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}