//
// CRYPTO_secure_allocated from 0xdb6a20 to 0xdb6aa0 (128 bytes)
//
// 2 xrefs:
// > CRYPTO_secure_free @ 0xdb6acc
// > ??> @ 0x9f258
//
// 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
//
bool __fastcall CRYPTO_secure_allocated(unsigned __int64 a1)
{
_BOOL4 v3; // w19
if ( !dword_125F158 )
return 0;
v3 = 0;
CRYPTO_THREAD_write_lock(qword_125F160);
if ( a1 >= qword_125F118 )
v3 = a1 < qword_125F118 + qword_125F120;
CRYPTO_THREAD_unlock(qword_125F160);
return v3;
}