//
// CRYPTO_secure_allocated from 0x80f870 to 0x80f8d8 (104 bytes)
//
// 2 xrefs:
// > CRYPTO_secure_free @ 0x80f8f8
// > ??> @ 0x641ac
//
// 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 int a1)
{
_BOOL4 v3; // r4
if ( !dword_AD44F0 )
return 0;
CRYPTO_THREAD_write_lock(dword_AD44F4);
v3 = a1 >= dword_AD44D0 && a1 < dword_AD44D0 + dword_AD44D4;
CRYPTO_THREAD_unlock(dword_AD44F4);
return v3;
}