//
// GJBaseGameLayer::unclaimCustomParticle from 0x58b63e to 0x58b6aa (108 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:02 +0000
//
int __fastcall GJBaseGameLayer::unclaimCustomParticle(int result, int a2, cocos2d::CCObject *a3)
{
int v3; // r5
cocos2d::CCArray *v6; // r6
cocos2d::CCArray *v7; // r7
cocos2d::CCArray *v8; // r0
int v9; // r3
v3 = result;
if ( a3 )
{
result = cocos2d::CCDictionary::objectForKey(*(_DWORD *)(result + 10648), a2);
v6 = (cocos2d::CCArray *)result;
if ( result )
{
v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(_DWORD *)(v3 + 10676), a2);
if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a3 + 456))(a3) )
v8 = *(cocos2d::CCArray **)(v3 + 10652);
else
v8 = v6;
cocos2d::CCArray::addObject(v8, a3);
cocos2d::CCArray::removeObject(v7, a3, 1);
cocos2d::CCParticleSystem::stopSystem(a3);
v9 = *(_DWORD *)a3;
*((_BYTE *)a3 + 605) = 1;
return (*(int (__fastcall **)(cocos2d::CCObject *))(v9 + 792))(a3);
}
}
return result;
}