//
// GJBaseGameLayer::removeTemporaryParticles from 0x8888b4 to 0x888994 (224 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::resetLevelVariables @ 0x88aa90
// > ??> @ 0x92328
//
// 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 GJBaseGameLayer::removeTemporaryParticles(GJBaseGameLayer *a1)
{
__int64 *p_m_customParticlesUIDs; // x22
unsigned int i; // w19
_DWORD *v4; // x20
int v5; // [xsp+44h] [xbp+44h] BYREF
p_m_customParticlesUIDs = (__int64 *)&a1->m_customParticlesUIDs;
for ( i = 0;
i < (unsigned int)cocos2d::CCArray::count(a1->m_temporaryParticles);
cocos2d::CCArray::fastRemoveObjectAtIndex(a1->m_temporaryParticles, i) )
{
while ( 1 )
{
v4 = (_DWORD *)cocos2d::CCArray::objectAtIndex(a1->m_temporaryParticles, i);
if ( (*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 1560LL))(v4) )
break;
if ( ++i >= (unsigned int)cocos2d::CCArray::count(a1->m_temporaryParticles) )
return;
}
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 520LL))(v4);
v5 = v4[2];
sub_888850(p_m_customParticlesUIDs, &v5);
}
}