//
// asn1_string_embed_free from 0x9d7884 to 0x9d78e4 (96 bytes)
//
// 3 xrefs:
// > ASN1_STRING_free @ 0x9d7904
// > asn1_primitive_free @ 0x9dd2b8
// > ??> @ 0x7821c
//
// 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_embed_free(int result, int a2)
{
int v3; // r4
if ( result )
{
v3 = result;
if ( (*(_DWORD *)(result + 12) & 0x10) != 0 )
{
if ( a2 )
return result;
return CRYPTO_free(v3, "crypto/asn1/asn1_lib.c", 325);
}
result = CRYPTO_free(*(_DWORD *)(result + 8), "crypto/asn1/asn1_lib.c", 323);
if ( !a2 )
return CRYPTO_free(v3, "crypto/asn1/asn1_lib.c", 325);
}
return result;
}