//
// std::__ndk1::recursive_timed_mutex::unlock from 0xf7a20c to 0xf7a27c (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x736c0
//
// 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:45 +0000
//
__int64 __fastcall std::recursive_timed_mutex::unlock(std::recursive_timed_mutex *this)
{
int v2; // w0
__int64 v3; // x8
v2 = pthread_mutex_lock((pthread_mutex_t *)this);
if ( v2 )
std::__throw_system_error(v2, "mutex lock failed");
v3 = *((_QWORD *)this + 11) - 1LL;
*((_QWORD *)this + 11) = v3;
if ( v3 )
return pthread_mutex_unlock((pthread_mutex_t *)this);
*((_QWORD *)this + 12) = 0;
pthread_mutex_unlock((pthread_mutex_t *)this);
return std::condition_variable::notify_one((pthread_cond_t *)((char *)this + 40));
}