//
// LevelEditorLayer::claimCustomParticle from 0x364f10 to 0x364f7a (106 bytes)
//
// 0 xrefs:
//
// 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(
int a1,
int a2,
const cocos2d::ParticleStruct *a3,
int a4,
int a5,
int a6,
bool a7)
{
cocos2d::CCParticleSystemQuad *v9; // r4
cocos2d::CCNode *v10; // r0
if ( !*(_BYTE *)(a1 + 11771) )
return (cocos2d::CCParticleSystemQuad *)*(unsigned __int8 *)(a1 + 11771);
v9 = GameToolbox::particleFromStruct(a3, nullptr, 1);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 10836), v9);
cocos2d::CCParticleSystem::resetSystem(v9);
v9->setVisible(v9, 1);
v9->setAutoRemoveOnFinish(v9, a7);
v10 = GJBaseGameLayer::parentForZLayer((GJBaseGameLayer *)a1, a4, 0, 4, 0);
v10->addChild_0(v10, v9, a5);
return v9;
}