//
// cocos2d::CCParticleSystemQuad::create from 0x100602b20 to 0x100602bd1 (177 bytes)
//
// 62 xrefs:
// > PlayLayer::init @ 0x1000ac68c
// > PlayLayer::showCompleteText @ 0x1000b4826
// > PlayLayer::showCompleteText @ 0x1000b4947
// > PlayLayer::spawnFirework @ 0x1000b51e6
// > GJBaseGameLayer::spawnParticle @ 0x10015cc15
// > GJBaseGameLayer::playSpeedParticle @ 0x10015cd36
// > GJBaseGameLayer::createParticle @ 0x10015d6bf
// > PlayerObject::playDeathEffect @ 0x10020c518
// > PlayerObject::playDeathEffect @ 0x10020cb9f
// > PlayerObject::playDeathEffect @ 0x10020d26f
// > PlayerObject::playDeathEffect @ 0x10020d902
// > PlayerObject::playDeathEffect @ 0x10020dd44
// > PlayerObject::playDeathEffect @ 0x10020e4bc
// > PlayerObject::playDeathEffect @ 0x10020eb30
// > PlayerObject::playDeathEffect @ 0x10020f20b
// > PlayerObject::playDeathEffect @ 0x10020f5b7
// > PlayerObject::playDeathEffect @ 0x10020fb46
// > PlayerObject::playDeathEffect @ 0x1002100f2
// > PlayerObject::playDeathEffect @ 0x1002108de
// > PlayerObject::playDeathEffect @ 0x100210eca
// > PlayerObject::playDeathEffect @ 0x100211526
// > PlayerObject::playDeathEffect @ 0x100211818
// > PlayerObject::playDeathEffect @ 0x100211e1b
// > PlayerObject::playDeathEffect @ 0x10021243e
// > PlayerObject::playDeathEffect @ 0x100212a7d
// > PlayerObject::playDeathEffect @ 0x100212cb9
// > PlayerObject::playDeathEffect @ 0x100213149
// > ExplodeItemNode::createSprites @ 0x100213d80
// > PlayerObject::playCompleteEffect @ 0x10021414c
// > GJChestSprite::switchToState @ 0x10021e69b
// > GJChestSprite::switchToState @ 0x10021ec26
// > MapPackCell::playCompleteEffect @ 0x1002529f6
// > MapSelectLayer::checkTouchMonster @ 0x10026945a
// > GJShopLayer::init @ 0x100323d20
// > SecretLayer4::playCoinEffect @ 0x1003b4c8c
// > GJWorldNode::unlockActiveItem @ 0x1003c33df
// > PlayerObject::init @ 0x1003fb2ba
// > PlayerObject::init @ 0x1003fb306
// > PlayerObject::init @ 0x1003fb34b
// > PlayerObject::init @ 0x1003fb390
// > PlayerObject::init @ 0x1003fb3d5
// > PlayerObject::init @ 0x1003fb45d
// > PlayerObject::init @ 0x1003fb665
// > PlayerObject::init @ 0x1003fb6db
// > PlayerObject::init @ 0x1003fb751
// > PlayerObject::init @ 0x1003fb796
// > PlayerObject::init @ 0x1003fb810
// > LevelPage::playCoinEffect @ 0x10043676f
// > SecretLayer2::playCoinEffect @ 0x1004a0e6c
// > SecretLayer3::onClick @ 0x1004a4f79
// > EndLevelLayer::starEnterFinished @ 0x1004c324b
// > EndLevelLayer::coinEnterFinished @ 0x1004c359d
// > EndLevelLayer::currencyEnterFinished @ 0x1004c379b
// > EndLevelLayer::diamondEnterFinished @ 0x1004c389b
// > MenuGameLayer::destroyPlayer @ 0x1004fafc9
// > SecretLayer::playCoinEffect @ 0x1005fcecc
// > CurrencyRewardLayer::init @ 0x1007a6358
// > CurrencyRewardLayer::init @ 0x1007a6766
// > CurrencyRewardLayer::init @ 0x1007a6b77
// > CurrencyRewardLayer::init @ 0x1007a6f27
// > CurrencyRewardLayer::createObjectsFull @ 0x1007a8581
// > CurrencyRewardLayer::createObjectsFull @ 0x1007a87ce
//
// 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 cocos2d::CCParticleSystemQuad::create(const char *a1, bool a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x348u);
cocos2d::CCParticleSystem::CCParticleSystem(v2);
*(_QWORD *)v2 = off_10097E268;
*((_QWORD *)v2 + 40) = off_10097E8D8;
*((_OWORD *)v2 + 49) = 0;
*((_DWORD *)v2 + 200) = 0;
sub_10028D130(v2 + 812);
*((_WORD *)v2 + 416) = 0;
v2[834] = -1;
*(_QWORD *)(v2 + 804) = 0;
if ( cocos2d::CCParticleSystem::initWithFile((cocos2d::CCParticleSystem *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (cocos2d::CCParticleSystemQuad *)v2;
}