//
// BIO_get_new_index from 0x9e5f14 to 0x9e5fa8 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x7929c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:23 +0000
//
int BIO_get_new_index()
{
int v1; // [sp+Ch] [bp-4h] BYREF
if ( CRYPTO_THREAD_run_once(&unk_D3407C, sub_9E5EE0) && dword_D34078 )
{
if ( CRYPTO_atomic_add(&unk_D25C54, 1, &v1, bio_type_lock) )
return v1;
else
return -1;
}
else
{
ERR_put_error(32, 102, 65, "crypto/bio/bio_meth.c", 28);
return -1;
}
}