//
// GJBaseGameLayer::unclaimCustomParticle from 0x140241280 to 0x140241335 (181 bytes)
//
// 5 xrefs:
// > ??> @ 0x1405670c8
// > ??> @ 0x1405c9cb0
// > ??> @ 0x140681da0
// > ??> @ 0x140681db0
// > ??> @ 0x1406ce40c
//
// 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 GJBaseGameLayer::unclaimCustomParticle(_QWORD *a1, __int64 a2, __int64 *a3)
{
__int64 v6; // rsi
cocos2d::CCArray *v7; // rbp
cocos2d::CCArray *v8; // rcx
__int64 v9; // rax
__int64 v10; // rdx
if ( a3 )
{
v6 = cocos2d::CCDictionary::objectForKey(a1[1561], a2);
if ( v6 )
{
v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1[1571], a2);
if ( (*(unsigned int (__fastcall **)(__int64 *))(*a3 + 888))(a3) )
v8 = (cocos2d::CCArray *)a1[1562];
else
v8 = (cocos2d::CCArray *)v6;
cocos2d::CCArray::addObject(v8, (struct cocos2d::CCObject *)a3);
cocos2d::CCArray::removeObject(v7, (struct cocos2d::CCObject *)a3, 1);
cocos2d::CCParticleSystem::stopSystem((cocos2d::CCParticleSystem *)a3);
v9 = *a3;
LOBYTE(v10) = 1;
*((_BYTE *)a3 + 697) = 1;
(*(void (__fastcall **)(__int64 *, __int64))(v9 + 1528))(a3, v10);
}
}
}