//
// GJBaseGameLayer::unclaimCustomParticle from 0x998998 to 0x998a48 (176 bytes)
//
// 3 xrefs:
// > ??> @ 0x7ebc8
// > ??> @ 0x1428a28
// > ??> @ 0x1475858
//
// 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:03 +0000
//
__int64 __fastcall GJBaseGameLayer::unclaimCustomParticle(__int64 result, __int64 a2, cocos2d::CCObject *a3)
{
__int64 v3; // x20
cocos2d::CCArray *v6; // x22
cocos2d::CCArray *v7; // x21
__int64 v8; // x2
if ( a3 )
{
v3 = result;
result = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(result + 12288), a2);
v6 = (cocos2d::CCArray *)result;
if ( result )
{
v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(v3 + 12344), a2);
if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a3 + 912LL))(a3) )
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v3 + 12296), a3);
else
cocos2d::CCArray::addObject(v6, a3);
cocos2d::CCArray::removeObject(v7, a3, 1);
cocos2d::CCParticleSystem::stopSystem(a3);
v8 = *(_QWORD *)a3;
*((_BYTE *)a3 + 689) = 1;
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(v8 + 1584))(a3);
}
}
return result;
}