//
// std::__ndk1::timed_mutex::lock from 0x97722c to 0x97728c (96 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::timed_mutex::lock(std::timed_mutex *this)
{
int v2; // r0
std::mutex *v4; // [sp+0h] [bp-18h] BYREF
unsigned __int8 v5; // [sp+4h] [bp-14h]
int v6; // [sp+8h] [bp-10h]
v4 = this;
v5 = 1;
std::mutex::lock((pthread_mutex_t *)this);
if ( !*((_BYTE *)this + 8) )
{
*((_BYTE *)this + 8) = 1;
LABEL_6:
std::mutex::unlock((pthread_mutex_t *)v4);
return _stack_chk_guard - v6;
}
do
std::condition_variable::wait((pthread_cond_t *)((char *)this + 4), (int)&v4);
while ( *((_BYTE *)this + 8) );
v2 = v5;
*((_BYTE *)this + 8) = 1;
if ( v2 )
goto LABEL_6;
return _stack_chk_guard - v6;
}