{"type": "func", "start": 5373564224, "end": 5373564582, "name": "ParticleGameObject::updateSyncedAnimation", "pseudocode": "// \n// ParticleGameObject::updateSyncedAnimation from 0x1404a1540 to 0x1404a16a6 (358 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14060da90\n// > <???> @ 0x1406a7b28\n// > <???> @ 0x1406a7b60\n// > <???> @ 0x1406dc6b0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid ParticleGameObject::updateSyncedAnimation(ParticleGameObject *a1, float a2, int a3)\n{\n  __int64 v3; // rdx\n  cocos2d::CCParticleSystemQuad *m_particle; // rcx\n  float m_respawnResult; // xmm0_4\n  double v7; // xmm0_8\n  float v8; // xmm6_4\n  double v9; // xmm0_8\n  float v10; // xmm0_4\n  float v11; // xmm8_4\n\n  m_particle = a1->m_particle;\n  if ( m_particle )\n  {\n    if ( a1->m_animateOnTrigger )\n    {\n      if ( a1->m_animationTriggered )\n      {\n        cocos2d::CCParticleSystem::resetSystem(m_particle);\n        a1->m_animationTriggered = 0;\n      }\n    }\n    else\n    {\n      m_respawnResult = a1->m_respawnResult;\n      if ( m_respawnResult < 0.0 )\n      {\n        v7 = ((double (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64, int))m_particle->getLifeVar)(\n               m_particle,\n               v3,\n               a3);\n        v8 = *(float *)&v7;\n        v9 = ((double (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getLife)(a1->m_particle);\n        v10 = a1->m_particle->getDuration(a1->m_particle) + (float)(*(float *)&v9 + v8);\n        m_particle = a1->m_particle;\n        qword_1406C2F48 = 214013 * qword_1406C2F48 + 2531011;\n        v11 = fmaxf(\n                0.0,\n                (float)((float)((float)((float)((float)(((unsigned __int64)qword_1406C2F48 >> 16) & 0x7FFF) / 32767.0)\n                                      + (float)((float)(((unsigned __int64)qword_1406C2F48 >> 16) & 0x7FFF) / 32767.0))\n                              - 1.0)\n                      * m_particle->m_fRespawnVar)\n              + m_particle->m_fRespawn);\n        if ( a1->m_startingRespawn )\n        {\n          a1->m_startingRespawn = 0;\n          m_respawnResult = v11 + a2;\n        }\n        else\n        {\n          m_respawnResult = (float)(v10 + a2) + v11;\n        }\n        a1->m_respawnResult = m_respawnResult;\n      }\n      if ( a2 > m_respawnResult )\n      {\n        cocos2d::CCParticleSystem::resetSystem(m_particle);\n        a1->m_respawnResult = -1.0;\n      }\n    }\n  }\n}", "assembly": "; \n; ParticleGameObject::updateSyncedAnimation from 0x1404a1540 to 0x1404a16a6 (358 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14060da90\n; > <???> @ 0x1406a7b28\n; > <???> @ 0x1406a7b60\n; > <???> @ 0x1406dc6b0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1404a1540\nsub     rsp, 60h                                                       ; +0x2, 0x1404a1542\nmov     rbx, rcx                                                       ; +0x6, 0x1404a1546\nmovaps  [rsp+68h+var_48], xmm9                                         ; +0x9, 0x1404a1549\nmov     rcx, [rcx+308h]                                                ; +0xf, 0x1404a154f\nmovaps  xmm9, xmm1                                                     ; +0x16, 0x1404a1556\ntest    rcx, rcx                                                       ; +0x1a, 0x1404a155a\njz      loc_1404A169A                                                  ; +0x1d, 0x1404a155d\ncmp     byte ptr [rbx+599h], 0                                         ; +0x23, 0x1404a1563\njz      short loc_1404A1592                                            ; +0x2a, 0x1404a156a\ncmp     byte ptr [rbx+5A1h], 0                                         ; +0x2c, 0x1404a156c\njz      loc_1404A169A                                                  ; +0x33, 0x1404a1573\ncall    cs:?resetSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::resetSystem(void) ; +0x39, 0x1404a1579\nmov     byte ptr [rbx+5A1h], 0                                         ; +0x3f, 0x1404a157f\nmovaps  xmm9, [rsp+68h+var_48]                                         ; +0x46, 0x1404a1586\nadd     rsp, 60h                                                       ; +0x4c, 0x1404a158c\npop     rbx                                                            ; +0x50, 0x1404a1590\nretn                                                                   ; +0x51, 0x1404a1591\nmovss   xmm0, dword ptr [rbx+714h]                                     ; +0x52, 0x1404a1592\nmovaps  [rsp+68h+var_38], xmm8                                         ; +0x5a, 0x1404a159a\nxorps   xmm8, xmm8                                                     ; +0x60, 0x1404a15a0\ncomiss  xmm8, xmm0                                                     ; +0x64, 0x1404a15a4\njbe     loc_1404A167E                                                  ; +0x68, 0x1404a15a8\nmov     rax, [rcx]                                                     ; +0x6e, 0x1404a15ae\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0x71, 0x1404a15b1\nmovaps  [rsp+68h+var_28], xmm7                                         ; +0x76, 0x1404a15b6\ncall    qword ptr [rax+3C0h]                                           ; +0x7b, 0x1404a15bb\nmov     rcx, [rbx+308h]                                                ; +0x81, 0x1404a15c1\nmovaps  xmm6, xmm0                                                     ; +0x88, 0x1404a15c8\nmov     rax, [rcx]                                                     ; +0x8b, 0x1404a15cb\ncall    qword ptr [rax+3B0h]                                           ; +0x8e, 0x1404a15ce\nmov     rcx, [rbx+308h]                                                ; +0x94, 0x1404a15d4\nmovaps  xmm7, xmm0                                                     ; +0x9b, 0x1404a15db\naddss   xmm7, xmm6                                                     ; +0x9e, 0x1404a15de\nmov     rax, [rcx]                                                     ; +0xa2, 0x1404a15e2\ncall    qword ptr [rax+380h]                                           ; +0xa5, 0x1404a15e5\nimul    rax, cs:qword_1406C2F48, 343FDh                                ; +0xab, 0x1404a15eb\naddss   xmm0, xmm7                                                     ; +0xb6, 0x1404a15f6\nmovaps  xmm7, [rsp+68h+var_28]                                         ; +0xba, 0x1404a15fa\nxorps   xmm1, xmm1                                                     ; +0xbf, 0x1404a15ff\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0xc2, 0x1404a1602\nmov     rcx, [rbx+308h]                                                ; +0xc7, 0x1404a1607\nadd     rax, 269EC3h                                                   ; +0xce, 0x1404a160e\nmov     cs:qword_1406C2F48, rax                                        ; +0xd4, 0x1404a1614\nshr     rax, 10h                                                       ; +0xdb, 0x1404a161b\nand     eax, 7FFFh                                                     ; +0xdf, 0x1404a161f\ncmp     byte ptr [rbx+718h], 0                                         ; +0xe4, 0x1404a1624\ncvtsi2ss xmm1, eax                                                     ; +0xeb, 0x1404a162b\ndivss   xmm1, cs:dword_140623644                                       ; +0xef, 0x1404a162f\naddss   xmm1, xmm1                                                     ; +0xf7, 0x1404a1637\nsubss   xmm1, cs:flt_140622C24                                         ; +0xfb, 0x1404a163b\nmulss   xmm1, dword ptr [rcx+224h]                                     ; +0x103, 0x1404a1643\naddss   xmm1, dword ptr [rcx+220h]                                     ; +0x10b, 0x1404a164b\nmaxss   xmm8, xmm1                                                     ; +0x113, 0x1404a1653\njnz     short loc_1404A1666                                            ; +0x118, 0x1404a1658\naddss   xmm0, xmm9                                                     ; +0x11a, 0x1404a165a\naddss   xmm0, xmm8                                                     ; +0x11f, 0x1404a165f\njmp     short loc_1404A1676                                            ; +0x124, 0x1404a1664\nmovaps  xmm0, xmm8                                                     ; +0x126, 0x1404a1666\nmov     byte ptr [rbx+718h], 0                                         ; +0x12a, 0x1404a166a\naddss   xmm0, xmm9                                                     ; +0x131, 0x1404a1671\nmovss   dword ptr [rbx+714h], xmm0                                     ; +0x136, 0x1404a1676\ncomiss  xmm9, xmm0                                                     ; +0x13e, 0x1404a167e\nmovaps  xmm8, [rsp+68h+var_38]                                         ; +0x142, 0x1404a1682\njbe     short loc_1404A169A                                            ; +0x148, 0x1404a1688\ncall    cs:?resetSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::resetSystem(void) ; +0x14a, 0x1404a168a\nmov     dword ptr [rbx+714h], 0BF800000h                               ; +0x150, 0x1404a1690\nmovaps  xmm9, [rsp+68h+var_48]                                         ; +0x15a, 0x1404a169a\nadd     rsp, 60h                                                       ; +0x160, 0x1404a16a0\npop     rbx                                                            ; +0x164, 0x1404a16a4\nretn                                                                   ; +0x165, 0x1404a16a5", "xrefs": ["<???> @ 0x14060da90", "<???> @ 0x1406a7b28", "<???> @ 0x1406a7b60", "<???> @ 0x1406dc6b0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}