//
// sub_F89DD4 from 0xf89dd4 to 0xf89e54 (128 bytes)
//
// 2 xrefs:
// > __cxa_thread_atexit @ 0xf89d04
// > __cxa_thread_atexit @ 0xf89d0c
//
// 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:13:55 +0000
//
_BYTE *sub_F89DD4()
{
_QWORD *i; // x20
__int64 v1; // x21
_BYTE *result; // x0
for ( i = *(_QWORD **)_emutls_get_address(&unk_154D2B0); i; i = *(_QWORD **)_emutls_get_address(&unk_154D2B0) )
{
v1 = i[2];
*(_QWORD *)_emutls_get_address(&unk_154D2B0) = v1;
((void (__fastcall *)(_QWORD))*i)(i[1]);
free(i);
}
result = (_BYTE *)_emutls_get_address(&unk_154D290);
*result = 0;
return result;
}