//
// GJBaseGameLayer::unclaimCustomParticle from 0x14034b2e0 to 0x14034b398 (184 bytes)
//
// 5 xrefs:
// > ??> @ 0x14076b8a8
// > ??> @ 0x1407d5f08
// > ??> @ 0x1408b80a0
// > ??> @ 0x1408b80b0
// > ??> @ 0x140920024
//
// This function is hookable on this platform (idp: pc, 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 11:30:44 +0000
//
void __fastcall GJBaseGameLayer::unclaimCustomParticle(_QWORD *a1, __int64 a2, struct cocos2d::CCObject *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[1590], a2);
if ( v6 )
{
v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1[1600], a2);
if ( (*(unsigned int (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)a3 + 904LL))(a3) )
v8 = (cocos2d::CCArray *)a1[1591];
else
v8 = (cocos2d::CCArray *)v6;
cocos2d::CCArray::addObject(v8, a3);
cocos2d::CCArray::removeObject(v7, a3, 1);
cocos2d::CCParticleSystem::stopSystem(a3);
v9 = *(_QWORD *)a3;
LOBYTE(v10) = 1;
*((_BYTE *)a3 + 697) = 1;
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v9 + 1544))(a3, v10);
}
}
}