//
// ERR_get_next_error_library from 0xda12d0 to 0xda1354 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x4c458
//
// 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
//
__int64 ERR_get_next_error_library()
{
unsigned int v0; // w19
unsigned int v2; // w19
v0 = CRYPTO_THREAD_run_once(&unk_125DE78, sub_D9F548);
if ( !v0 )
return v0;
v0 = dword_125D668;
if ( !dword_125D668 )
return v0;
CRYPTO_THREAD_write_lock(qword_125D660);
v2 = dword_1238A44++;
CRYPTO_THREAD_unlock(qword_125D660);
return v2;
}