//
// cocos2d::CCParticleSystem::loadScaledDefaults from 0x1007cb830 to 0x1007cb8d1 (161 bytes)
//
// 18 xrefs:
// > ParticleGameObject::updateParticle @ 0x1001b248b
// > ParticleGameObject::updateParticleScale @ 0x1001b251a
// > ParticleGameObject::setScaleX @ 0x1001b281b
// > ParticleGameObject::setScaleY @ 0x1001b288b
// > ParticleGameObject::setScale @ 0x1001b28fb
// > GameObject::spawnDefaultPickupParticle @ 0x10025e489
// > PlayerObject::togglePlayerScale @ 0x100412ea3
// > PlayerObject::togglePlayerScale @ 0x100412eb7
// > PlayerObject::togglePlayerScale @ 0x100412ecb
// > PlayerObject::togglePlayerScale @ 0x100412edf
// > PlayerObject::togglePlayerScale @ 0x100412ef3
// > PlayerObject::togglePlayerScale @ 0x100412f07
// > PlayerObject::togglePlayerScale @ 0x100412f1b
// > PlayerObject::togglePlayerScale @ 0x100412f2f
// > PlayerObject::togglePlayerScale @ 0x100412f43
// > PlayerObject::togglePlayerScale @ 0x100412f57
// > PlayerObject::togglePlayerScale @ 0x100412f6b
// > GameObject::claimParticle @ 0x1005bcff6
//
// 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!
void __fastcall cocos2d::CCParticleSystem::loadScaledDefaults(cocos2d::CCParticleSystem *a1, float a2)
{
double v2; // [rsp+8h] [rbp-28h] BYREF
float v3[8]; // [rsp+10h] [rbp-20h]
_mm_storel_ps(
(double *)&a1->m_fStartSize,
_mm_mul_ps(_mm_moveldup_ps(*(__m128 *)&a2), (__m128)*(unsigned __int64 *)&a1->m_fDefaultStartSize));
a1->m_fEndSize = a1->m_fDefaultEndSize * a2;
*(_OWORD *)v3 = *(_OWORD *)&a2;
sub_10028CD40(&v2, (unsigned __int64 *)&a1->m_tDefaultPosVar, *(__m128 *)&a2);
sub_10028CC90(&a1->m_tPosVar, &v2);
if ( !a1->m_nEmitterMode )
{
((void (__fastcall *)(cocos2d::CCParticleSystem *, float))a1->setSpeed)(a1, a1->m_fDefaultModeASpeed * v3[0]);
((void (__fastcall *)(cocos2d::CCParticleSystem *, float))a1->setSpeedVar)(a1, v3[0] * a1->m_fDefaultModeASpeedVar);
}
}