//
// std::__ndk1::recursive_mutex::recursive_mutex from 0x977118 to 0x97718a (114 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
//
// Alternative name is '_ZNSt6__ndk115recursive_mutexC1Ev'
pthread_mutex_t *__fastcall std::recursive_mutex::recursive_mutex(pthread_mutex_t *this)
{
int v2; // r5
int v3; // r0
int v4; // r6
pthread_mutexattr_t attr; // [sp+4h] [bp-14h] BYREF
v2 = pthread_mutexattr_init(&attr);
if ( v2 )
goto LABEL_7;
v2 = pthread_mutexattr_settype();
if ( v2 )
{
pthread_mutexattr_destroy(&attr);
goto LABEL_7;
}
v2 = pthread_mutex_init(this, &attr);
v3 = pthread_mutexattr_destroy(&attr);
v4 = v3;
if ( v2 )
LABEL_7:
std::__throw_system_error(v2, "recursive_mutex constructor failed");
if ( v3 )
{
pthread_mutex_destroy(this);
v2 = v4;
goto LABEL_7;
}
return this;
}