// // sub_946B08 from 0x946b08 to 0x946b48 (64 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:11 +0000 // pthread_mutex_t *__fastcall sub_946B08(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(*a1); } else { return (pthread_mutex_t *)j_pthread_mutex_unlock(*a1); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source