//
// GJBaseGameLayer::unclaimCustomParticle from 0x1002a1fdc to 0x1002a2094 (184 bytes)
//
// 2 xrefs:
// > ??> @ 0x1008df9f8
// > ??> @ 0x100919080
//
// 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 11:02:13 +0000
//
__int64 __fastcall GJBaseGameLayer::unclaimCustomParticle(__int64 result, __int64 a2, _BYTE *a3)
{
__int64 v5; // x20
__int64 v6; // x22
__int64 v7; // x21
__int64 v8; // x0
float v9; // s0
if ( a3 )
{
v5 = result;
result = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(result + 12288), a2);
if ( result )
{
v6 = result;
v7 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(v5 + 12344), a2);
if ( (*(unsigned int (__fastcall **)(_BYTE *))(*(_QWORD *)a3 + 912LL))(a3) )
v8 = *(_QWORD *)(v5 + 12296);
else
v8 = v6;
sub_1002E74E0(v8, a3);
sub_1002E765C(v7, a3, 1);
v9 = cocos2d::CCParticleSystem::stopSystem((__int64)a3);
a3[689] = 1;
return (*(__int64 (__fastcall **)(_BYTE *, __int64, float))(*(_QWORD *)a3 + 1584LL))(a3, 1, v9);
}
}
return result;
}