//
// sub_D19CBC from 0xd19cbc to 0xd19d08 (76 bytes)
//
// 0 xrefs:
//
// 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_D19CBC(pthread_t *a1)
{
int v2; // w0
int v3; // w1
__int64 result; // x0
v2 = pthread_equal(*a1, 0);
v3 = 22;
if ( v2 || (result = pthread_detach(*a1), (v3 = result) != 0) )
sub_D1410C(v3);
*a1 = 0;
return result;
}