//
// sub_F86908 from 0xf86908 to 0xf86a04 (252 bytes)
//
// 2 xrefs:
// > std::__ndk1::__thread_struct::~__thread_struct @ 0xf86ba0
// > std::__ndk1::__thread_specific_ptr::__at_thread_exit @ 0xf86cc8
//
// 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 sub_F86908(__int64 a1)
{
void **v2; // x20
__int64 v3; // x21
__int64 v4; // x22
pthread_cond_t *v5; // t1
std::__assoc_sub_state **v6; // x21
std::__assoc_sub_state **v7; // x22
std::__shared_count *v8; // t1
char *v9; // x0
char *v10; // x8
std::__assoc_sub_state **v11; // x0
std::__assoc_sub_state **v12; // x8
v2 = (void **)(a1 + 24);
v3 = *(_QWORD *)(a1 + 24);
v4 = *(_QWORD *)(a1 + 32);
while ( v4 != v3 )
{
std::mutex::unlock(*(pthread_mutex_t **)(v3 + 8));
v5 = *(pthread_cond_t **)v3;
v3 += 16;
std::condition_variable::notify_all(v5);
}
v6 = *(std::__assoc_sub_state ***)a1;
v7 = *(std::__assoc_sub_state ***)(a1 + 8);
if ( *(std::__assoc_sub_state ***)a1 != v7 )
{
do
{
std::__assoc_sub_state::__make_ready(*v6);
v8 = *v6++;
std::__shared_count::__release_shared(v8);
}
while ( v7 != v6 );
}
v9 = (char *)*v2;
if ( *v2 )
{
v10 = *(char **)(a1 + 32);
if ( v10 != v9 )
*(_QWORD *)(a1 + 32) = &v10[~(v10 - 16 - v9) & 0xFFFFFFFFFFFFFFF0LL];
operator delete(v9);
}
v11 = *(std::__assoc_sub_state ***)a1;
if ( *(_QWORD *)a1 )
{
v12 = *(std::__assoc_sub_state ***)(a1 + 8);
if ( v12 != v11 )
*(_QWORD *)(a1 + 8) = (char *)v12 + (~((char *)(v12 - 1) - (char *)v11) & 0xFFFFFFFFFFFFFFF8LL);
operator delete(v11);
}
}