{"type": "func", "start": 10225424, "end": 10225948, "name": "CreateParticlePopup::update", "pseudocode": "// \n// CreateParticlePopup::update from 0x9c0710 to 0x9c091c (524 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x42b58\n// > <???> @ 0x11c85f8\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 CreateParticlePopup::update(CreateParticlePopup *a1, float a2)\n{\n  float v4; // s0\n  float v5; // s9\n  float m_respawnResult; // s1\n  cocos2d::CCParticleSystemQuad *v7; // x0\n  float v8; // s8\n  cocos2d::CCParticleSystemQuad *v9; // x0\n  float m_fRespawn; // s3\n  unsigned __int64 v11; // x1\n  float m_fRespawnVar; // s2\n  cocos2d::CCLabelBMFont *m_perfLogLabel; // x20\n  cocos2d::CCParticleSystemQuad *m_particle; // x0\n  unsigned int (__fastcall *getParticleCount)(cocos2d::CCParticleSystem *__hidden); // x1\n  void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x21\n  unsigned int ParticleDrawCost; // w0\n  cocos2d::CCString *v18; // x0\n  const char *CString; // x0\n  char *v20; // [xsp+40h] [xbp+40h]\n  __int64 v21; // [xsp+48h] [xbp+48h]\n\n  if ( a1->m_perfLogEnabled )\n  {\n    v4 = a2 + a1->m_perfLogElapsed;\n    if ( v4 >= 0.1 )\n    {\n      m_perfLogLabel = a1->m_perfLogLabel;\n      m_particle = a1->m_particle;\n      getParticleCount = m_particle->getParticleCount;\n      setString = m_perfLogLabel->setString;\n      a1->m_perfLogElapsed = 0.0;\n      v20 = (char *)getParticleCount(m_particle);\n      v21 = a1->m_particle->getTotalParticles(a1->m_particle);\n      ParticleDrawCost = cocos2d::CCParticleSystem::getParticleDrawCost(a1->m_particle);\n      v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                   (cocos2d::CCString *)\"%i/%i\\n%i\",\n                                   v20,\n                                   v21,\n                                   ParticleDrawCost);\n      CString = cocos2d::CCString::getCString(v18);\n      setString(m_perfLogLabel, (const unsigned __int8 *)CString);\n    }\n    else\n    {\n      a1->m_perfLogElapsed = v4;\n    }\n  }\n  v5 = a1->m_particle->getDuration(a1->m_particle);\n  if ( v5 >= 0.0 )\n  {\n    m_respawnResult = a1->m_respawnResult;\n    a1->m_elapsed = a1->m_elapsed + a2;\n    if ( m_respawnResult < 0.0 )\n    {\n      v7 = a1->m_particle;\n      m_fRespawn = v7->m_fRespawn;\n      v11 = 214013 * qword_1243D50 + 2531011;\n      qword_1243D50 = v11;\n      m_fRespawnVar = v7->m_fRespawnVar;\n      if ( (float)(m_fRespawn\n                 + (float)((float)((float)((float)((float)((v11 >> 16) & 0x7FFF) / 32767.0) * 2.0) + -1.0)\n                         * m_fRespawnVar)) <= 0.0 )\n      {\n        a1->m_respawnResult = 0.0;\n      }\n      else\n      {\n        qword_1243D50 = 214013 * v11 + 2531011;\n        a1->m_respawnResult = m_fRespawn\n                            + (float)(m_fRespawnVar\n                                    * (float)((float)((float)((float)(((unsigned __int64)qword_1243D50 >> 16) & 0x7FFF)\n                                                            / 32767.0)\n                                                    * 2.0)\n                                            + -1.0));\n      }\n    }\n    else\n    {\n      v7 = a1->m_particle;\n    }\n    v8 = v7->getLife(v7);\n    if ( a1->m_elapsed > (float)(v5\n                               + (float)((float)(v8 + a1->m_particle->getLifeVar(a1->m_particle)) + a1->m_respawnResult)) )\n    {\n      v9 = a1->m_particle;\n      a1->m_respawnResult = -1.0;\n      a1->m_elapsed = 0.0;\n      cocos2d::CCParticleSystem::resetSystem(v9);\n    }\n  }\n}", "assembly": "; \n; CreateParticlePopup::update from 0x9c0710 to 0x9c091c (524 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x42b58\n; > <???> @ 0x11c85f8\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x9c0710\nMOV             X29, SP                                                ; +0x4, 0x9c0714\nSTP             D8, D9, [SP,#0x50+var_28]                              ; +0x8, 0x9c0718\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x9c071c\nMOV             X19, X0                                                ; +0x10, 0x9c0720\nLDRB            W0, [X0,#0x390]                                        ; +0x14, 0x9c0724\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x18, 0x9c0728\nFMOV            S8, S0                                                 ; +0x1c, 0x9c072c\nCBZ             W0, loc_9C0750                                         ; +0x20, 0x9c0730\nLDR             S0, [X19,#0x394]                                       ; +0x24, 0x9c0734\nLDR             D1, =0x3FB999999999999A                                ; +0x28, 0x9c0738\nFADD            S0, S8, S0                                             ; +0x2c, 0x9c073c\nFCVT            D2, S0                                                 ; +0x30, 0x9c0740\nFCMPE           D2, D1                                                 ; +0x34, 0x9c0744\nB.GE            loc_9C0890                                             ; +0x38, 0x9c0748\nSTR             S0, [X19,#0x394]                                       ; +0x3c, 0x9c074c\nLDR             X1, [X19,#0x2B0]                                       ; +0x40, 0x9c0750\nMOV             X0, X1                                                 ; +0x44, 0x9c0754\nLDR             X1, [X1]                                               ; +0x48, 0x9c0758\nLDR             X1, [X1,#0x388]                                        ; +0x4c, 0x9c075c\nBLR             X1                                                     ; +0x50, 0x9c0760\nFCMPE           S0, #0.0                                               ; +0x54, 0x9c0764\nFMOV            S9, S0                                                 ; +0x58, 0x9c0768\nB.MI            loc_9C07CC                                             ; +0x5c, 0x9c076c\nLDR             S0, [X19,#0x320]                                       ; +0x60, 0x9c0770\nLDR             S1, [X19,#0x3AC]                                       ; +0x64, 0x9c0774\nFADD            S0, S0, S8                                             ; +0x68, 0x9c0778\nFCMPE           S1, #0.0                                               ; +0x6c, 0x9c077c\nSTR             S0, [X19,#0x320]                                       ; +0x70, 0x9c0780\nB.MI            loc_9C0808                                             ; +0x74, 0x9c0784\nLDR             X0, [X19,#0x2B0]                                       ; +0x78, 0x9c0788\nLDR             X1, [X0]                                               ; +0x7c, 0x9c078c\nLDR             X1, [X1,#0x3B8]                                        ; +0x80, 0x9c0790\nBLR             X1                                                     ; +0x84, 0x9c0794\nLDR             X1, [X19,#0x2B0]                                       ; +0x88, 0x9c0798\nFMOV            S8, S0                                                 ; +0x8c, 0x9c079c\nMOV             X0, X1                                                 ; +0x90, 0x9c07a0\nLDR             X1, [X1]                                               ; +0x94, 0x9c07a4\nLDR             X1, [X1,#0x3C8]                                        ; +0x98, 0x9c07a8\nBLR             X1                                                     ; +0x9c, 0x9c07ac\nFADD            S0, S8, S0                                             ; +0xa0, 0x9c07b0\nLDR             S1, [X19,#0x3AC]                                       ; +0xa4, 0x9c07b4\nLDR             S2, [X19,#0x320]                                       ; +0xa8, 0x9c07b8\nFADD            S8, S0, S1                                             ; +0xac, 0x9c07bc\nFADD            S8, S9, S8                                             ; +0xb0, 0x9c07c0\nFCMPE           S2, S8                                                 ; +0xb4, 0x9c07c4\nB.GT            loc_9C07E0                                             ; +0xb8, 0x9c07c8\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xbc, 0x9c07cc\nLDP             D8, D9, [SP,#0x50+var_28]                              ; +0xc0, 0x9c07d0\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xc4, 0x9c07d4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xc8, 0x9c07d8\nRET                                                                    ; +0xcc, 0x9c07dc\nFMOV            S0, #-1.0                                              ; +0xd0, 0x9c07e0\nLDP             D8, D9, [SP,#0x50+var_28]                              ; +0xd4, 0x9c07e4\nLDR             X0, [X19,#0x2B0]; this                                 ; +0xd8, 0x9c07e8\nSTR             S0, [X19,#0x3AC]                                       ; +0xdc, 0x9c07ec\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xe0, 0x9c07f0\nFMOV            S0, WZR                                                ; +0xe4, 0x9c07f4\nSTR             S0, [X19,#0x320]                                       ; +0xe8, 0x9c07f8\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xec, 0x9c07fc\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xf0, 0x9c0800\nB               _ZN7cocos2d16CCParticleSystem11resetSystemEv; cocos2d::CCParticleSystem::resetSystem(void) ; +0xf4, 0x9c0804\nADRP            X3, #qword_1243D50@PAGE                                ; +0xf8, 0x9c0808\nMOV             X2, #0x343FD                                           ; +0xfc, 0x9c080c\nLDR             X0, [X19,#0x2B0]                                       ; +0x104, 0x9c0814\nLDR             S5, =0x46FFFE00                                        ; +0x108, 0x9c0818\nLDR             X1, [X3,#qword_1243D50@PAGEOFF]                        ; +0x10c, 0x9c081c\nFMOV            S4, #2.0                                               ; +0x110, 0x9c0820\nFMOV            S0, #-1.0                                              ; +0x114, 0x9c0824\nMUL             X1, X1, X2                                             ; +0x118, 0x9c0828\nLDR             S3, [X0,#0x208]                                        ; +0x11c, 0x9c082c\nADD             X1, X1, #0x269,LSL#12                                  ; +0x120, 0x9c0830\nADD             X1, X1, #0xEC3                                         ; +0x124, 0x9c0834\nSTR             X1, [X3,#qword_1243D50@PAGEOFF]                        ; +0x128, 0x9c0838\nUBFX            X2, X1, #0x10, #0xF                                    ; +0x12c, 0x9c083c\nLDR             S2, [X0,#0x20C]                                        ; +0x130, 0x9c0840\nSCVTF           S1, X2                                                 ; +0x134, 0x9c0844\nFDIV            S1, S1, S5                                             ; +0x138, 0x9c0848\nFMADD           S1, S1, S4, S0                                         ; +0x13c, 0x9c084c\nFMADD           S1, S1, S2, S3                                         ; +0x140, 0x9c0850\nFCMPE           S1, #0.0                                               ; +0x144, 0x9c0854\nB.LE            loc_9C0910                                             ; +0x148, 0x9c0858\nMOV             X2, #0x343FD                                           ; +0x14c, 0x9c085c\nMUL             X1, X1, X2                                             ; +0x154, 0x9c0864\nADD             X1, X1, #0x269,LSL#12                                  ; +0x158, 0x9c0868\nADD             X1, X1, #0xEC3                                         ; +0x15c, 0x9c086c\nSTR             X1, [X3,#qword_1243D50@PAGEOFF]                        ; +0x160, 0x9c0870\nUBFX            X1, X1, #0x10, #0xF                                    ; +0x164, 0x9c0874\nSCVTF           S1, X1                                                 ; +0x168, 0x9c0878\nFDIV            S1, S1, S5                                             ; +0x16c, 0x9c087c\nFMADD           S0, S1, S4, S0                                         ; +0x170, 0x9c0880\nFMADD           S0, S2, S0, S3                                         ; +0x174, 0x9c0884\nSTR             S0, [X19,#0x3AC]                                       ; +0x178, 0x9c0888\nB               loc_9C078C                                             ; +0x17c, 0x9c088c\nLDR             X1, [X19,#0x2B0]                                       ; +0x180, 0x9c0890\nLDR             X20, [X19,#0x398]                                      ; +0x184, 0x9c0894\nMOV             X0, X1                                                 ; +0x188, 0x9c0898\nLDR             X1, [X1]                                               ; +0x18c, 0x9c089c\nFMOV            S0, WZR                                                ; +0x190, 0x9c08a0\nLDR             X2, [X20]                                              ; +0x194, 0x9c08a4\nLDR             X1, [X1,#0x380]                                        ; +0x198, 0x9c08a8\nLDR             X21, [X2,#0x390]                                       ; +0x19c, 0x9c08ac\nSTR             S0, [X19,#0x394]                                       ; +0x1a0, 0x9c08b0\nBLR             X1                                                     ; +0x1a4, 0x9c08b4\nMOV             W1, W0                                                 ; +0x1a8, 0x9c08b8\nLDR             X2, [X19,#0x2B0]                                       ; +0x1ac, 0x9c08bc\nSTR             X1, [X29,#0x50+var_10]                                 ; +0x1b0, 0x9c08c0\nMOV             X0, X2                                                 ; +0x1b4, 0x9c08c4\nLDR             X2, [X2]                                               ; +0x1b8, 0x9c08c8\nLDR             X2, [X2,#0x5C8]                                        ; +0x1bc, 0x9c08cc\nBLR             X2                                                     ; +0x1c0, 0x9c08d0\nMOV             W2, W0                                                 ; +0x1c4, 0x9c08d4\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x1c8, 0x9c08d8\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x1cc, 0x9c08dc\nBL              _ZN7cocos2d16CCParticleSystem19getParticleDrawCostEv; cocos2d::CCParticleSystem::getParticleDrawCost(void) ; +0x1d0, 0x9c08e0\nMOV             W3, W0                                                 ; +0x1d4, 0x9c08e4\nLDR             X1, [X29,#0x50+var_10]; char *                         ; +0x1d8, 0x9c08e8\nADRP            X0, #aIII_0@PAGE; \"%i/%i\\n%i\"                          ; +0x1dc, 0x9c08ec\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x1e0, 0x9c08f0\nADD             X0, X0, #aIII_0@PAGEOFF; \"%i/%i\\n%i\"                   ; +0x1e4, 0x9c08f4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1e8, 0x9c08f8\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1ec, 0x9c08fc\nMOV             X1, X0                                                 ; +0x1f0, 0x9c0900\nMOV             X0, X20                                                ; +0x1f4, 0x9c0904\nBLR             X21                                                    ; +0x1f8, 0x9c0908\nB               loc_9C0750                                             ; +0x1fc, 0x9c090c\nFMOV            S0, WZR                                                ; +0x200, 0x9c0910\nSTR             S0, [X19,#0x3AC]                                       ; +0x204, 0x9c0914\nB               loc_9C078C                                             ; +0x208, 0x9c0918", "xrefs": ["<???> @ 0x42b58", "<???> @ 0x11c85f8"], "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"}