//
// std::__ndk1::recursive_timed_mutex::unlock from 0x977428 to 0x97749c (116 bytes)
//
// 0 xrefs:
//
// 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:05:58 +0000
//
int __fastcall std::recursive_timed_mutex::unlock(std::recursive_timed_mutex *this)
{
int v2; // r0
std::mutex *v4; // [sp+4h] [bp-14h] BYREF
char v5; // [sp+8h] [bp-10h]
int v6; // [sp+Ch] [bp-Ch]
v4 = this;
v5 = 1;
std::mutex::lock((pthread_mutex_t *)this);
v2 = *((_DWORD *)this + 2) - 1;
*((_DWORD *)this + 2) = v2;
if ( v2
|| (*((_DWORD *)this + 3) = 0,
std::unique_lock::unlock(&v4),
std::condition_variable::notify_one((pthread_cond_t *)((char *)this + 4)),
v5) )
{
std::mutex::unlock((pthread_mutex_t *)v4);
}
return _stack_chk_guard - v6;
}