//
// sub_D19C6C from 0xd19c6c to 0xd19cbc (80 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCThreadPool::shutdown @ 0xaab400
//
// 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
//
__int64 __fastcall sub_D19C6C(pthread_t *a1)
{
int v2; // w0
int v3; // w1
__int64 result; // x0
v2 = pthread_equal(*a1, 0);
v3 = 22;
if ( v2 || (result = pthread_join(*a1, nullptr), (v3 = result) != 0) )
sub_D1410C(v3);
*a1 = 0;
return result;
}