//
// sub_736F48 from 0x736f48 to 0x736f88 (64 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
pthread_mutex_t *__fastcall sub_736F48(pthread_mutex_t **a1)
{
pthread_mutex_t *result; // r0
pthread_mutex_t *v3; // r3
pthread_mutex_t *v4; // r0
result = *a1;
if ( result )
{
pthread_mutex_lock(result);
v3 = a1[1];
if ( v3 )
{
while ( v3 != (pthread_mutex_t *)((char *)&dword_0 + 1) )
{
pthread_cond_wait((pthread_cond_t *)(&(*a1)->__align + 1), *a1);
v3 = a1[1];
}
v4 = *a1;
a1[1] = (pthread_mutex_t *)(&dword_0 + 2);
pthread_cond_signal((pthread_cond_t *)(&v4->__align + 1));
return (pthread_mutex_t *)j_pthread_mutex_unlock_0(*a1);
}
else
{
return (pthread_mutex_t *)j_pthread_mutex_unlock_0(*a1);
}
}
return result;
}