//
// cocos2d::CCParticleSystem::saveDefaults from 0x7e4520 to 0x7e4578 (88 bytes)
//
// 2 xrefs:
// > GameToolbox::particleFromStruct @ 0x3ce5fa
// > cocos2d::CCParticleSystem::initWithDictionary @ 0x7e51c0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:00:52 +0000
//
float *__fastcall cocos2d::CCParticleSystem::saveDefaults(cocos2d::CCParticleSystem *this)
{
int v2; // r3
float *v3; // r1
float *v4; // r0
int v5; // r3
float *result; // r0
int v7; // r0
int v8; // r3
v2 = *((_DWORD *)this + 120);
v3 = (float *)((char *)this + 392);
v4 = (float *)((char *)this + 688);
*((_DWORD *)v4 - 7) = v2;
*(v4 - 6) = *(v4 - 51);
v5 = *((_DWORD *)v4 - 50);
*((_DWORD *)v4 - 5) = v5;
*((_DWORD *)v4 - 4) = v5;
result = cocos2d::CCPoint::operator=(v4, v3);
*((_DWORD *)this + 169) = *((_DWORD *)this + 102);
if ( !*((_DWORD *)this + 152) )
{
v7 = (*(int (__fastcall **)(cocos2d::CCParticleSystem *))(*(_DWORD *)this + 528))(this);
v8 = *(_DWORD *)this;
*((_DWORD *)this + 170) = v7;
result = (float *)(*(int (__fastcall **)(cocos2d::CCParticleSystem *))(v8 + 536))(this);
*((_DWORD *)this + 171) = result;
}
return result;
}