//
// GameToolbox::particleFromString from 0x100047908 to 0x1000479c0 (184 bytes)
//
// 18 xrefs:
// > SecretLayer5::onSubmit @ 0x100075048
// > GauntletSelectLayer::playUnlockAnimation @ 0x1001c0124
// > GauntletSelectLayer::unlockAnimationStep2 @ 0x1001c0684
// > GauntletSelectLayer::unlockAnimationStep3 @ 0x1001c093c
// > GauntletSelectLayer::unlockAnimationStep3 @ 0x1001c0ae0
// > CreateParticlePopup::init @ 0x1002ca574
// > CreateParticlePopup::init @ 0x1002ca8b4
// > CreateParticlePopup::init @ 0x1002ca8d0
// > GJDifficultySprite::updateFeatureState @ 0x1002e5b54
// > LevelAreaLayer::init @ 0x1003444a4
// > ParticleGameObject::updateParticle @ 0x100381654
// > GJPathPage::playUnlockAnimation @ 0x1003ba5f0
// > GJPathPage::unlockAnimationStep2 @ 0x1003bad34
// > GJPathPage::unlockAnimationStep3 @ 0x1003bb0b4
// > GJPathPage::unlockAnimationStep3 @ 0x1003bb19c
// > LevelPage::updateDynamicPage @ 0x1004028e4
// > LevelPage::updateDynamicPage @ 0x10040298c
// > LevelPage::updateDynamicPage @ 0x100402a34
//
// 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 GameToolbox::particleFromString(
__int64 a1,
cocos2d::CCParticleSystemQuad *a2,
bool a3)
{
__int64 v4; // x8
cocos2d::ParticleStruct v7; // [xsp+0h] [xbp-140h] BYREF
v4 = *(unsigned __int8 *)(a1 + 23);
if ( (v4 & 0x80u) != 0LL )
v4 = *(_QWORD *)(a1 + 8);
if ( v4 )
{
memset(&v7, 0, 221);
*(_QWORD *)&v7.frictionPos = 0;
*(_QWORD *)&v7.respawn = 0;
*(_QWORD *)((char *)&v7.respawnVar + 1) = 0;
memset(&v7.frictionSize, 0, 40);
GameToolbox::particleStringToStruct(a1, (__int64)&v7);
a2 = GameToolbox::particleFromStruct(&v7, a2, a3);
if ( v7.sFrame.m_data.m_short.shortStorage.__elems_[22] < 0 )
operator delete((void *)v7.sFrame.m_data.m_long.capacitym1);
}
return a2;
}