//
// LevelEditorLayer::claimCustomParticle from 0x100364154 to 0x100364224 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007f43b0
//
// 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,
__int64 a5,
__int64 a6,
__int64 a7)
{
cocos2d::CCParticleSystemQuad *v11; // x20
cocos2d::CCNode *v12; // x0
if ( *(_BYTE *)(a1 + 13747) != 1 )
return nullptr;
v11 = GameToolbox::particleFromStruct(a3, nullptr, 1);
sub_10024A2D0(*(_QWORD *)(a1 + 12232));
cocos2d::CCParticleSystem::resetSystem(v11);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v11->setVisible)(v11, 1);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v11->setAutoRemoveOnFinish)(v11, a7);
v12 = GJBaseGameLayer::parentForZLayer((GJBaseGameLayer *)a1, a4, 0, 4, 0);
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCParticleSystemQuad *, __int64))v12->addChild_0)(v12, v11, a5);
return v11;
}