//
// OPENSSL_thread_stop from 0x1030170 to 0x1030208 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0xf3da8
//
// 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:20 +0000
//
__int64 OPENSSL_thread_stop()
{
_DWORD *local; // x20
__int64 result; // x0
local = (_DWORD *)CRYPTO_THREAD_get_local(&unk_1567EAC);
result = CRYPTO_THREAD_set_local(&unk_1567EAC, 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;
}