//
// CRYPTO_secure_malloc_done from 0x1034654 to 0x103470c (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x5f4e8
//
// 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:16:23 +0000
//
__int64 CRYPTO_secure_malloc_done()
{
__int64 result; // x0
result = 0;
if ( !qword_1567F68 )
{
CRYPTO_free((void *)qword_1567F28, (__int64)"crypto/mem_sec.c", 445);
CRYPTO_free((void *)qword_1567F40, (__int64)"crypto/mem_sec.c", 446);
CRYPTO_free((void *)qword_1567F48, (__int64)"crypto/mem_sec.c", 447);
if ( qword_1567F08 )
{
if ( qword_1567F10 )
munmap((void *)qword_1567F08, qword_1567F10);
}
qword_1567F08 = 0;
qword_1567F10 = 0;
qword_1567F18 = 0;
qword_1567F20 = 0;
qword_1567F28 = 0;
qword_1567F30 = 0;
qword_1567F38 = 0;
qword_1567F40 = 0;
qword_1567F48 = 0;
qword_1567F50 = 0;
dword_1567F58 = 0;
CRYPTO_THREAD_lock_free(qword_1567F60);
return 1;
}
return result;
}