//
// ERR_get_next_error_library from 0x101f630 to 0x101f6b4 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x6b110
//
// 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:16:10 +0000
//
__int64 ERR_get_next_error_library()
{
unsigned int v0; // w19
unsigned int v2; // w19
v0 = CRYPTO_THREAD_run_once(&unk_1566C78, sub_101D8A8);
if ( !v0 )
return v0;
v0 = dword_1566468;
if ( !dword_1566468 )
return v0;
CRYPTO_THREAD_write_lock(qword_1566460);
v2 = dword_1551D24++;
CRYPTO_THREAD_unlock(qword_1566460);
return v2;
}