//
// OPENSSL_thread_stop from 0xdb1e10 to 0xdb1ea8 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0xbaf78
//
// 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 OPENSSL_thread_stop()
{
_DWORD *local; // x20
__int64 result; // x0
local = (_DWORD *)CRYPTO_THREAD_get_local(&unk_125F0AC);
result = CRYPTO_THREAD_set_local(&unk_125F0AC, 0);
if ( local )
{
if ( *local )
{
ASYNC_cleanup_thread();
if ( !local[1] )
return CRYPTO_free(local, "crypto/init.c", 339);
}
else if ( !local[1] )
{
return CRYPTO_free(local, "crypto/init.c", 339);
}
err_delete_thread_state();
return CRYPTO_free(local, "crypto/init.c", 339);
}
return result;
}