//
// sub_776904 from 0x776904 to 0x776928 (36 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCThreadPool::shutdown @ 0x5abbf0
//
// 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
//
int __fastcall sub_776904(pthread_t *a1)
{
int result; // r0
if ( pthread_equal(*a1, 0) )
{
result = 22;
goto LABEL_3;
}
result = pthread_join(*a1, nullptr);
if ( result )
LABEL_3:
sub_7735D4(result);
*a1 = 0;
return result;
}