//
// GJBaseGameLayer::removeTemporaryParticles from 0x9be9b0 to 0x9bea90 (224 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::resetLevelVariables @ 0x9e7278
// > ??> @ 0xc14b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:58:28 +0000
//
__int64 __fastcall GJBaseGameLayer::removeTemporaryParticles(cocos2d::CCArray **this)
{
__int64 *v2; // x22
unsigned int i; // w19
_DWORD *v4; // x20
int v6; // [xsp+44h] [xbp+44h] BYREF
v2 = (__int64 *)(this + 1545);
for ( i = 0;
i < (unsigned int)cocos2d::CCArray::count(*(this + 1544));
cocos2d::CCArray::fastRemoveObjectAtIndex(*(this + 1544), i) )
{
while ( 1 )
{
v4 = (_DWORD *)cocos2d::CCArray::objectAtIndex(*(this + 1544), i);
if ( (*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 1576LL))(v4) )
break;
if ( ++i >= (unsigned int)cocos2d::CCArray::count(*(this + 1544)) )
return _stack_chk_guard;
}
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 536LL))(v4);
v6 = v4[2];
std::__hash_table,std::equal_to,std::allocator>::__erase_unique(v2, &v6);
}
return _stack_chk_guard;
}