//
// LevelEditorLayer::claimCustomParticle from 0x78711c to 0x7871fc (224 bytes)
//
// 2 xrefs:
// > ??> @ 0xb4658
// > ??> @ 0x1435f80
//
// 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:53:25 +0000
//
cocos2d::CCObject *__fastcall LevelEditorLayer::claimCustomParticle(
__int64 a1,
__int64 a2,
unsigned int *a3,
int a4,
unsigned int a5,
__int64 a6,
unsigned __int8 a7)
{
unsigned int v7; // w22
cocos2d::CCObject *v11; // x19
__int64 v12; // x0
v7 = a7;
if ( !*(_BYTE *)(a1 + 14012) )
return nullptr;
v11 = (cocos2d::CCObject *)GameToolbox::particleFromStruct(a3, 0, 1);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 12352), v11);
cocos2d::CCParticleSystem::resetSystem(v11);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v11 + 344LL))(v11, 1);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v11 + 1584LL))(v11, v7);
v12 = GJBaseGameLayer::parentForZLayer((GJBaseGameLayer *)a1, a4, 0, 4, 0);
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, _QWORD))(*(_QWORD *)v12 + 464LL))(v12, v11, a5);
return v11;
}