//
// BIO_get_new_index from 0x7d1314 to 0x7d13a8 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x5f81c
//
// 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
//
int BIO_get_new_index()
{
int v1; // [sp+Ch] [bp-4h] BYREF
if ( CRYPTO_THREAD_run_once(&unk_AD2DF0, sub_7D12E0) && dword_AD2DEC )
{
if ( CRYPTO_atomic_add(&unk_AC0A7C, 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;
}
}