//
// GJBaseGameLayer::spawnParticle from 0x10020417c to 0x100204244 (200 bytes)
//
// 3 xrefs:
// > GameObject::spawnDefaultPickupParticle @ 0x100349534
// > GameObject::playDestroyObjectAnim @ 0x100349738
// > GameObject::playDestroyObjectAnim @ 0x100349ca8
//
// 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
//
// local variable allocation has failed, the output may be wrong!
cocos2d::CCParticleSystemQuad *__fastcall GJBaseGameLayer::spawnParticle(
GJBaseGameLayer *a1,
const char *a2,
int a3,
cocos2d::tCCPositionType a4,
cocos2d::CCPoint a5)
{
__int64 v5; // x4
__int64 v6; // x19
__int64 v7; // x23
__int64 v8; // x20
cocos2d::CCParticleSystemQuad *v11; // x21
v6 = v5;
v7 = *(_QWORD *)&a4;
v8 = *(_QWORD *)&a3;
if ( GameManager::sharedState()->m_performanceMode )
return nullptr;
v11 = cocos2d::CCParticleSystemQuad::create(a2, 0);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v11->setTag)(v11, v8);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v11->setPositionType)(v11, v7);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v11->setAutoRemoveOnFinish)(v11, 1);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_objectLayer->addChild_0)(
a1->m_objectLayer,
v11,
v8);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v11->setPosition)(v11, v6);
return v11;
}