//
// cocos2d::CCParticleSystem::saveDefaults from 0xaffa30 to 0xaffaac (124 bytes)
//
// 3 xrefs:
// > GameToolbox::particleFromStruct @ 0x5823d0
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xb0082c
// > ??> @ 0x36000
//
// 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
//
void cocos2d::CCParticleSystem::saveDefaults(cocos2d::CCParticleSystem *a1)
{
float v1; // s0
float v2; // s1
float m_fEndSize; // w2
float m_fStartSize; // w4
float m_fStartSizeVar; // w3
int m_nEmitterMode; // w0
float v8; // s0
cocos2d::CCParticleSystem_vtbl *v9; // x1
m_fEndSize = a1->m_fEndSize;
m_fStartSize = a1->m_fStartSize;
m_fStartSizeVar = a1->m_fStartSizeVar;
a1->m_fDefaultEndSize2 = m_fEndSize;
a1->m_fDefaultStartSize = m_fStartSize;
a1->m_fDefaultStartSizeVar = m_fStartSizeVar;
a1->m_fDefaultEndSize = m_fEndSize;
cocos2d::CCPoint::operator=(&a1->m_tDefaultPosVar, v1, v2, (float *)&a1->m_tPosVar);
m_nEmitterMode = a1->m_nEmitterMode;
a1->m_fDefaultAngle = a1->m_fAngle;
if ( !m_nEmitterMode )
{
v8 = a1->getSpeed(a1);
v9 = a1->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_fDefaultModeASpeed = v8;
a1->m_fDefaultModeASpeedVar = v9->getSpeedVar(a1);
}
}