//
// LevelEditorLayer::claimCustomParticle from 0x1402e16d0 to 0x1402e178b (187 bytes)
//
// 3 xrefs:
// > ??> @ 0x140586418
// > ??> @ 0x1406d36d4
// > ??> @ 0x1406d36e0
//
// 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
//
cocos2d::CCParticleSystemQuad *__fastcall LevelEditorLayer::claimCustomParticle(
__int64 a1,
__int64 a2,
const cocos2d::ParticleStruct *a3,
int a4,
int a5,
int a6,
unsigned __int8 a7)
{
cocos2d::CCParticleSystemQuad *v10; // rbx
_BOOL8 v11; // rdx
cocos2d::CCNode *v12; // rax
if ( !*(_BYTE *)(a1 + 14259) )
return nullptr;
v10 = GameToolbox::particleFromStruct(a3, nullptr, 1);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 12576), v10);
cocos2d::CCParticleSystem::resetSystem(v10);
LOBYTE(v11) = 1;
v10->setVisible(v10, v11);
v10->setAutoRemoveOnFinish(v10, a7);
v12 = GJBaseGameLayer::parentForZLayer((GJBaseGameLayer *)a1, a4, 0, 4, 0);
v12->addChild_0(v12, v10, a5);
return v10;
}