//
// ERR_get_next_error_library from 0xa10074 to 0xa100d8 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x7c43c
//
// 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:45 +0000
//
int ERR_get_next_error_library()
{
int v0; // r4
int v2; // r4
v0 = CRYPTO_THREAD_run_once(&unk_D3414C, sub_A0E308);
if ( !v0 )
return v0;
v0 = dword_D34140;
if ( !dword_D34140 )
return v0;
CRYPTO_THREAD_write_lock(dword_D3413C);
v2 = dword_D25CE0++;
CRYPTO_THREAD_unlock(dword_D3413C);
return v2;
}