//
// BIO_get_new_index from 0xff5574 to 0xff560c (152 bytes)
//
// 1 xrefs:
// > ??> @ 0xfe0c8
//
// 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:15:48 +0000
//
__int64 BIO_get_new_index()
{
unsigned int v1; // [xsp+2Ch] [xbp+2Ch] BYREF
if ( (unsigned int)CRYPTO_THREAD_run_once(algn_1566324, sub_FF5544) && dword_1566320 )
{
if ( (unsigned int)CRYPTO_atomic_add(&unk_1551C20, 1, &v1, bio_type_lock) )
return v1;
else
return 0xFFFFFFFFLL;
}
else
{
ERR_put_error(32, 102, 65, "crypto/bio/bio_meth.c", 28);
return 0xFFFFFFFFLL;
}
}