// // std::__ndk1::recursive_timed_mutex::lock from 0x977320 to 0x9773c0 (160 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::lock(std::recursive_timed_mutex *this) { pthread_t v2; // r8 int v3; // r0 int v4; // r1 std::mutex *v6; // [sp+4h] [bp-18h] BYREF char v7; // [sp+8h] [bp-14h] int v8; // [sp+Ch] [bp-10h] v2 = pthread_self(); v6 = this; v7 = 1; std::mutex::lock((pthread_mutex_t *)this); v3 = pthread_equal(v2, *((_DWORD *)this + 3)); v4 = *((_DWORD *)this + 2); if ( v3 ) { if ( v4 == -1 ) std::__throw_system_error(11, "recursive_timed_mutex lock limit reached"); *((_DWORD *)this + 2) = v4 + 1; } else { if ( v4 ) { do std::condition_variable::wait((pthread_cond_t *)((char *)this + 4), (int)&v6); while ( *((_DWORD *)this + 2) ); } *((_DWORD *)this + 2) = 1; *((_DWORD *)this + 3) = v2; } if ( v7 ) std::mutex::unlock((pthread_mutex_t *)v6); return _stack_chk_guard - v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source