//
// sub_D18BA8 from 0xd18ba8 to 0xd18bf4 (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_D18BA8(__int64 a1)
{
unsigned int *v2; // x1
unsigned int v3; // w2
if ( (__int64 *)a1 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v2 = (unsigned int *)(a1 + 16);
do
v3 = __ldaxr(v2);
while ( __stlxr(v3 + 1, v2) );
}
else
{
++*(_DWORD *)(a1 + 16);
}
}
return a1 + 24;
}