//
// std::__ndk1::__thread_local_data from 0xf86818 to 0xf86888 (112 bytes)
//
// 8 xrefs:
// > sub_6A89C0 @ 0x6a89ec
// > sub_7888C8 @ 0x7888f4
// > sub_7985D0 @ 0x798600
// > sub_D1D888 @ 0xd1d8b4
// > std::__ndk1::notify_all_at_thread_exit @ 0xf41e90
// > std::__ndk1::__assoc_sub_state::set_value_at_thread_exit @ 0xf87300
// > std::__ndk1::__assoc_sub_state::set_exception_at_thread_exit @ 0xf875b0
// > ??> @ 0xa12d8
//
// 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:53 +0000
//
void *__fastcall std::__thread_local_data()
{
unsigned __int8 v0; // w8
v0 = atomic_load((unsigned __int8 *)&byte_1565E98);
if ( (v0 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_1565E98) )
{
std::__thread_specific_ptr::__thread_specific_ptr(&unk_1565E90);
_cxa_guard_release((__guard *)&byte_1565E98);
}
return &unk_1565E90;
}