//
// OPENSSL_thread_stop from 0xa1f9bc to 0xa1fa34 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x7db5c
//
// 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:55 +0000
//
int OPENSSL_thread_stop()
{
_DWORD *local; // r5
int result; // r0
local = (_DWORD *)CRYPTO_THREAD_get_local(&unk_D35708);
result = CRYPTO_THREAD_set_local(&unk_D35708, 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;
}