//
// LevelEditorLayer::claimCustomParticle from 0x65b5dc to 0x65b6bc (224 bytes)
//
// 2 xrefs:
// > ??> @ 0x8f8e0
// > ??> @ 0x1155340
//
// 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,
__int64 a6,
unsigned __int8 a7)
{
int v7; // w22
cocos2d::CCParticleSystemQuad *v11; // x19
cocos2d::CCNode *v12; // x0
v7 = a7;
if ( !*(_BYTE *)(a1 + 14227) )
return nullptr;
v11 = GameToolbox::particleFromStruct(a3, nullptr, 1);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 12680), v11);
cocos2d::CCParticleSystem::resetSystem(v11);
v11->setVisible(v11, 1);
v11->setAutoRemoveOnFinish(v11, v7);
v12 = GJBaseGameLayer::parentForZLayer((GJBaseGameLayer *)a1, a4, 0, 4, 0);
v12->addChild_0(v12, v11, a5);
return v11;
}