//
// GJBaseGameLayer::unclaimCustomParticle from 0x100205020 to 0x1002050d8 (184 bytes)
//
// 2 xrefs:
// > ??> @ 0x10078fe40
// > ??> @ 0x1007c0c58
//
// 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
//
__int64 __fastcall GJBaseGameLayer::unclaimCustomParticle(__int64 result, __int64 a2, __int64 a3)
{
__int64 v5; // x20
__int64 v6; // x22
__int64 v7; // x21
__int64 v8; // x0
if ( a3 )
{
v5 = result;
result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(result + 12168), a2);
if ( result )
{
v6 = result;
v7 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v5 + 12224), a2);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a3 + 896LL))(a3) )
v8 = *(_QWORD *)(v5 + 12176);
else
v8 = v6;
sub_10024A2D0(v8, a3);
sub_10024A444(v7, a3, 1);
cocos2d::CCParticleSystem::stopSystem((cocos2d::CCParticleSystem *)a3);
*(_BYTE *)(a3 + 689) = 1;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a3 + 1568LL))(a3, 1);
}
}
return result;
}