//
// std::unique_lock::~unique_lock from 0x5abb78 to 0x5abb94 (28 bytes)
//
// 7 xrefs:
// > cocos2d::extension::CCThreadPool::shutdown @ 0x5abbcc
// > sub_5ABD78 @ 0x5abdd0
// > sub_5ABD78 @ 0x5abdf6
// > sub_5ABD78 @ 0x5abe5c
// > cocos2d::extension::CCThreadPool::enqueue @ 0x5ac0f6
// > cocos2d::extension::CCThreadPool::enqueue @ 0x5ac106
// > cocos2d::extension::CCThreadPool::enqueue @ 0x5ac10e
//
// 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
//
// Alternative name is '_ZNSt11unique_lockISt5mutexED1Ev'
int __fastcall std::unique_lock::~unique_lock(int a1)
{
pthread_mutex_t *v2; // r0
if ( *(_BYTE *)(a1 + 4) )
{
v2 = *(pthread_mutex_t **)a1;
if ( v2 )
{
if ( &pthread_create )
pthread_mutex_unlock(v2);
}
}
return a1;
}