//
// DSA_free from 0xd896fc to 0xd897b8 (188 bytes)
//
// 12 xrefs:
// > sub_D88574 @ 0xd88578
// > sub_D88A48 @ 0xd88afc
// > sub_D88DD8 @ 0xd88e7c
// > sub_D892A8 @ 0xd89304
// > DSA_new_method @ 0xd89868
// > PEM_read_bio_DSAPrivateKey @ 0xdc64d0
// > PEM_read_DSAPrivateKey @ 0xdc66f8
// > d2i_DSA_PUBKEY @ 0xdf2398
// > sub_E29F44 @ 0xe2a01c
// > sub_E29F44 @ 0xe2a144
// > sub_E2BDA0 @ 0xe2be28
// > ??> @ 0xbcfb8
//
// 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 DSA_free(__int64 result)
{
__int64 v1; // x19
void (__fastcall *v2)(__int64); // x1
int v3; // [xsp+2Ch] [xbp+2Ch] BYREF
if ( result )
{
v1 = result;
CRYPTO_atomic_add(result + 72, 0xFFFFFFFFLL, &v3, *(_QWORD *)(result + 104));
result = (unsigned int)v3;
if ( v3 <= 0 )
{
v2 = *(void (__fastcall **)(__int64))(*(_QWORD *)(v1 + 88) + 56LL);
if ( v2 )
v2(v1);
ENGINE_finish(*(_QWORD *)(v1 + 96));
CRYPTO_free_ex_data(7, v1, v1 + 80);
CRYPTO_THREAD_lock_free(*(_QWORD *)(v1 + 104));
BN_clear_free(*(_BYTE **)(v1 + 16));
BN_clear_free(*(_BYTE **)(v1 + 24));
BN_clear_free(*(_BYTE **)(v1 + 32));
BN_clear_free(*(_BYTE **)(v1 + 40));
BN_clear_free(*(_BYTE **)(v1 + 48));
return CRYPTO_free(v1, "crypto/dsa/dsa_lib.c", 144);
}
}
return result;
}