// // ParticleGameObject::updateSyncedAnimation from 0x4e6678 to 0x4e679a (290 bytes) // // 0 xrefs: // // 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 11:51:05 +0000 // cocos2d::CCParticleSystem *__fastcall ParticleGameObject::updateSyncedAnimation( ParticleGameObject *this, float a2, int a3) { cocos2d::CCParticleSystem *result; // r0 float *v6; // r5 float v7; // s16 float v8; // s18 int v9; // r0 int v10; // r7 float v11; // s14 float v12; // s13 unsigned int v13; // r2 float v14; // s14 float v15; // s14 result = *((cocos2d::CCParticleSystem **)this + 165); if ( result ) { if ( *((_BYTE *)this + 1237) ) { if ( *((_BYTE *)this + 1245) ) { result = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystem::resetSystem(result); *((_BYTE *)this + 1245) = 0; } } else { v6 = (float *)((char *)this + 1572); if ( *((float *)this + 393) < 0.0 ) { v7 = COERCE_FLOAT( (*(int (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD, int))(*(_DWORD *)result + 484))( result, LODWORD(a2), a3)); v8 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 165) + 492))(*((_DWORD *)this + 165))); v9 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 165) + 460))(*((_DWORD *)this + 165)); v10 = *((_DWORD *)this + 165); v11 = *(float *)(v10 + 456); v12 = *(float *)&v9; v13 = (unsigned int)(214013 * qword_D2BC00 + 2531011) >> 16; qword_D2BC00 = 214013 * qword_D2BC00 + 2531011; result = (cocos2d::CCParticleSystem *)(&stru_7FFC + 3); v14 = v11 + (float)((float)((float)((float)((float)(v13 & 0x7FFF) / 32767.0) + (float)((float)(v13 & 0x7FFF) / 32767.0)) - 1.0) * *(float *)(v10 + 460)); if ( v14 <= 0.0 ) v14 = 0.0; if ( *((_BYTE *)this + 1576) ) { v15 = a2 + v14; *((_BYTE *)this + 1576) = 0; } else { v15 = (float)(a2 + (float)((float)(v7 + v8) + v12)) + v14; } *v6 = v15; } if ( *v6 < a2 ) { result = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystem::resetSystem(*((cocos2d::CCParticleSystem **)this + 165)); *v6 = -1.0; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source