// // sub_946A7C from 0x946a7c to 0x946ad2 (86 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 // void __fastcall sub_946A7C(pthread_mutex_t **a1) { pthread_mutex_t *v2; // r0 pthread_mutex_t *v3; // r3 pthread_mutex_t *v4; // r0 v2 = *a1; if ( v2 ) { pthread_mutex_lock(v2); 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] = nullptr; pthread_cond_signal((pthread_cond_t *)(&v4->__align + 1)); } pthread_mutex_unlock(*a1); pthread_join((*a1)->__owner, nullptr); pthread_mutex_destroy(*a1); pthread_cond_destroy((pthread_cond_t *)(&(*a1)->__align + 1)); WebPSafeFree(*a1); *a1 = nullptr; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source