//
// sub_A1F7C8 from 0xa1f7c8 to 0xa1f820 (88 bytes)
//
// 3 xrefs:
// > sub_A1F764 @ 0xa1f76c
// > sub_A1F764 @ 0xa1f774
// > ??> @ 0xa1f7bc
//
// 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
//
_DWORD *__fastcall sub_A1F7C8(_DWORD *result)
{
_DWORD *v1; // r4
if ( result )
{
v1 = result;
if ( *result )
{
ASYNC_cleanup_thread();
if ( !v1[1] )
return (_DWORD *)CRYPTO_free(v1, "crypto/init.c", 339);
}
else if ( !result[1] )
{
return (_DWORD *)CRYPTO_free(v1, "crypto/init.c", 339);
}
err_delete_thread_state();
return (_DWORD *)CRYPTO_free(v1, "crypto/init.c", 339);
}
return result;
}