//
// sub_AFD690 from 0xafd690 to 0xafd6d4 (68 bytes)
//
// 9 xrefs:
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb00a4c
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb015d8
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb01810
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb018a4
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb018b0
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb018bc
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb018c8
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb018d4
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb018e0
//
// 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
//
void __fastcall sub_AFD690(void *p)
{
unsigned int *v1; // x3
int v2; // w2
int v3; // w2
if ( !&pthread_create )
{
v3 = *((_DWORD *)p + 4);
*((_DWORD *)p + 4) = v3 - 1;
if ( v3 > 0 )
return;
LABEL_7:
operator delete(p);
return;
}
v1 = (unsigned int *)((char *)p + 16);
do
v2 = __ldaxr(v1);
while ( __stlxr(v2 - 1, v1) );
if ( v2 <= 0 )
goto LABEL_7;
}