//
// CRYPTO_secure_malloc_done from 0xdb62f4 to 0xdb63ac (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x42b40
//
// 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 CRYPTO_secure_malloc_done()
{
__int64 result; // x0
result = 0;
if ( !qword_125F168 )
{
CRYPTO_free((void *)qword_125F128, (__int64)"crypto/mem_sec.c", 445);
CRYPTO_free((void *)qword_125F140, (__int64)"crypto/mem_sec.c", 446);
CRYPTO_free((void *)qword_125F148, (__int64)"crypto/mem_sec.c", 447);
if ( qword_125F108 )
{
if ( qword_125F110 )
munmap((void *)qword_125F108, qword_125F110);
}
qword_125F108 = 0;
qword_125F110 = 0;
qword_125F118 = 0;
qword_125F120 = 0;
qword_125F128 = 0;
qword_125F130 = 0;
qword_125F138 = 0;
qword_125F140 = 0;
qword_125F148 = 0;
qword_125F150 = 0;
dword_125F158 = 0;
CRYPTO_THREAD_lock_free(qword_125F160);
return 1;
}
return result;
}