//
// sub_97EB00 from 0x97eb00 to 0x97eb64 (100 bytes)
//
// 1 xrefs:
// > std::__ndk1::__thread_struct::~__thread_struct @ 0x97ec84
//
// 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:06:05 +0000
//
int __fastcall sub_97EB00(int a1)
{
int v2; // r4
int v3; // r5
int i; // r6
std::__assoc_sub_state **v5; // r4
std::__assoc_sub_state **v6; // r6
std::__shared_count *v7; // t1
v3 = a1 + 12;
v2 = *(_DWORD *)(a1 + 12);
for ( i = *(_DWORD *)(a1 + 16); i != v2; v2 += 8 )
{
std::mutex::unlock(*(pthread_mutex_t **)(v2 + 4));
std::condition_variable::notify_all(*(pthread_cond_t **)v2);
}
v5 = *(std::__assoc_sub_state ***)(a1 + 4);
v6 = *(std::__assoc_sub_state ***)a1;
if ( *(std::__assoc_sub_state ***)a1 != v5 )
{
do
{
std::__assoc_sub_state::__make_ready(*v6);
v7 = *v6++;
std::__shared_count::__release_shared(v7);
}
while ( v5 != v6 );
}
sub_97EB64(v3);
return sub_97EB90(a1);
}