//
// std::__ndk1::__thread_struct::notify_all_at_thread_exit from 0xf86bc0 to 0xf86c34 (116 bytes)
//
// 2 xrefs:
// > std::__ndk1::notify_all_at_thread_exit @ 0xf41eb4
// > ??> @ 0xb41c0
//
// 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
//
__int64 *__fastcall std::__thread_struct::notify_all_at_thread_exit(__int64 *result, __int64 a2, __int64 a3)
{
__int64 v3; // x8
_OWORD *v4; // x9
__int128 v5; // [xsp+8h] [xbp-18h] BYREF
__int64 v6; // [xsp+18h] [xbp-8h]
v6 = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
v3 = *result;
*(_QWORD *)&v5 = a2;
*((_QWORD *)&v5 + 1) = a3;
v4 = *(_OWORD **)(v3 + 32);
if ( (unsigned __int64)v4 >= *(_QWORD *)(v3 + 40) )
{
result = (__int64 *)sub_F86CF0(v3 + 24, &v5);
}
else
{
*v4 = v5;
*(_QWORD *)(v3 + 32) += 16LL;
}
_ReadStatusReg(TPIDR_EL0);
return result;
}