{"type": "func", "start": 4297917952, "end": 4297918428, "name": "CreateParticlePopup::update", "pseudocode": "// \n// CreateParticlePopup::update from 0x1002d0600 to 0x1002d07dc (476 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1007d73c8\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 __fastcall CreateParticlePopup::update(CreateParticlePopup *a1, float a2)\n{\n  float v4; // s0\n  cocos2d::CCLabelBMFont *m_perfLogLabel; // x20\n  int v6; // w21\n  int v7; // w22\n  int ParticleDrawCost; // w0\n  cocos2d::CCString *v9; // x0\n  const char *CString; // x0\n  float v11; // s0\n  float v12; // s9\n  cocos2d::CCParticleSystemQuad *m_particle; // x0\n  float m_fRespawn; // s0\n  unsigned __int64 v15; // x11\n  float m_fRespawnVar; // s4\n  float v17; // s5\n  float v18; // s8\n\n  if ( a1->m_perfLogEnabled )\n  {\n    v4 = a1->m_perfLogElapsed + a2;\n    a1->m_perfLogElapsed = v4;\n    if ( v4 >= 0.1 )\n    {\n      a1->m_perfLogElapsed = 0.0;\n      m_perfLogLabel = a1->m_perfLogLabel;\n      v6 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getParticleCount)(a1->m_particle);\n      v7 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getTotalParticles)(a1->m_particle);\n      ParticleDrawCost = cocos2d::CCParticleSystem::getParticleDrawCost(a1->m_particle);\n      v9 = (cocos2d::CCString *)sub_100268F4C(\"%i/%i\\n%i\", v6, v7, ParticleDrawCost);\n      CString = cocos2d::CCString::getCString(v9);\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_perfLogLabel->setString)(m_perfLogLabel, CString);\n    }\n  }\n  v11 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getDuration)(a1->m_particle);\n  if ( v11 >= 0.0 )\n  {\n    v12 = v11;\n    a1->m_elapsed = a1->m_elapsed + a2;\n    m_particle = a1->m_particle;\n    if ( a1->m_respawnResult < 0.0 )\n    {\n      m_fRespawn = m_particle->m_fRespawn;\n      v15 = 214013 * qword_10086DA10 + 2531011;\n      qword_10086DA10 = v15;\n      m_fRespawnVar = m_particle->m_fRespawnVar;\n      v17 = 0.0;\n      if ( (float)(m_fRespawn\n                 + (float)((float)((float)((float)((float)((v15 >> 16) & 0x7FFF) / 32767.0) * 2.0) + -1.0)\n                         * m_fRespawnVar)) > 0.0 )\n      {\n        qword_10086DA10 = 214013 * v15 + 2531011;\n        v17 = m_fRespawn\n            + (float)((float)((float)((float)((float)(((unsigned __int64)qword_10086DA10 >> 16) & 0x7FFF) / 32767.0)\n                                    * 2.0)\n                            + -1.0)\n                    * m_fRespawnVar);\n      }\n      a1->m_respawnResult = v17;\n    }\n    v18 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getLife)(m_particle);\n    if ( a1->m_elapsed > (float)(v12\n                               + (float)((float)(v18\n                                               + ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getLifeVar)(a1->m_particle))\n                                       + a1->m_respawnResult)) )\n    {\n      a1->m_elapsed = 0.0;\n      a1->m_respawnResult = -1.0;\n      cocos2d::CCParticleSystem::resetSystem(a1->m_particle);\n    }\n  }\n}", "assembly": "; \n; CreateParticlePopup::update from 0x1002d0600 to 0x1002d07dc (476 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1007d73c8\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\nSUB             SP, SP, #0x60                                          ; +0x0, 0x1002d0600\nSTP             D9, D8, [SP,#0x50+var_30]                              ; +0x4, 0x1002d0604\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x1002d0608\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x1002d060c\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x1002d0610\nADD             X29, SP, #0x50                                         ; +0x14, 0x1002d0614\nFMOV            S8, S0                                                 ; +0x18, 0x1002d0618\nMOV             X19, X0                                                ; +0x1c, 0x1002d061c\nLDRB            W8, [X0,#0x390]                                        ; +0x20, 0x1002d0620\nCMP             W8, #1                                                 ; +0x24, 0x1002d0624\nB.NE            loc_1002D06B0                                          ; +0x28, 0x1002d0628\nLDR             S0, [X19,#0x394]                                       ; +0x2c, 0x1002d062c\nFADD            S0, S0, S8                                             ; +0x30, 0x1002d0630\nSTR             S0, [X19,#0x394]                                       ; +0x34, 0x1002d0634\nFCVT            D0, S0                                                 ; +0x38, 0x1002d0638\nADRP            X8, #qword_100635B38@PAGE                              ; +0x3c, 0x1002d063c\nLDR             D1, [X8,#qword_100635B38@PAGEOFF]                      ; +0x40, 0x1002d0640\nFCMP            D0, D1                                                 ; +0x44, 0x1002d0644\nB.LT            loc_1002D06B0                                          ; +0x48, 0x1002d0648\nSTR             WZR, [X19,#0x394]                                      ; +0x4c, 0x1002d064c\nLDR             X20, [X19,#0x398]                                      ; +0x50, 0x1002d0650\nLDR             X0, [X19,#0x2B0]                                       ; +0x54, 0x1002d0654\nLDR             X8, [X0]                                               ; +0x58, 0x1002d0658\nLDR             X8, [X8,#0x380]                                        ; +0x5c, 0x1002d065c\nBLR             X8                                                     ; +0x60, 0x1002d0660\nMOV             X21, X0                                                ; +0x64, 0x1002d0664\nLDR             X0, [X19,#0x2B0]                                       ; +0x68, 0x1002d0668\nLDR             X8, [X0]                                               ; +0x6c, 0x1002d066c\nLDR             X8, [X8,#0x5C8]                                        ; +0x70, 0x1002d0670\nBLR             X8                                                     ; +0x74, 0x1002d0674\nMOV             X22, X0                                                ; +0x78, 0x1002d0678\nLDR             X0, [X19,#0x2B0]                                       ; +0x7c, 0x1002d067c\nBL              cocos2d__CCParticleSystem__getParticleDrawCost         ; +0x80, 0x1002d0680\nSTP             X22, X0, [SP,#0x50+var_48]                             ; +0x84, 0x1002d0684\nSTR             X21, [SP,#0x50+var_50]                                 ; +0x88, 0x1002d0688\nADRL            X0, aIII_1; \"%i/%i\\n%i\"                                ; +0x8c, 0x1002d068c\nBL              sub_100268F4C                                          ; +0x94, 0x1002d0694\nBL              cocos2d__CCString__getCString                          ; +0x98, 0x1002d0698\nMOV             X1, X0                                                 ; +0x9c, 0x1002d069c\nLDR             X8, [X20]                                              ; +0xa0, 0x1002d06a0\nLDR             X8, [X8,#0x390]                                        ; +0xa4, 0x1002d06a4\nMOV             X0, X20                                                ; +0xa8, 0x1002d06a8\nBLR             X8                                                     ; +0xac, 0x1002d06ac\nLDR             X0, [X19,#0x2B0]                                       ; +0xb0, 0x1002d06b0\nLDR             X8, [X0]                                               ; +0xb4, 0x1002d06b4\nLDR             X8, [X8,#0x388]                                        ; +0xb8, 0x1002d06b8\nBLR             X8                                                     ; +0xbc, 0x1002d06bc\nFCMP            S0, #0.0                                               ; +0xc0, 0x1002d06c0\nB.MI            loc_1002D07C4                                          ; +0xc4, 0x1002d06c4\nFMOV            S9, S0                                                 ; +0xc8, 0x1002d06c8\nLDR             S0, [X19,#0x320]                                       ; +0xcc, 0x1002d06cc\nFADD            S0, S0, S8                                             ; +0xd0, 0x1002d06d0\nSTR             S0, [X19,#0x320]                                       ; +0xd4, 0x1002d06d4\nLDR             S0, [X19,#0x3AC]                                       ; +0xd8, 0x1002d06d8\nLDR             X0, [X19,#0x2B0]                                       ; +0xdc, 0x1002d06dc\nFCMP            S0, #0.0                                               ; +0xe0, 0x1002d06e0\nB.PL            loc_1002D0760                                          ; +0xe4, 0x1002d06e4\nMOV             W8, #0x269EC3                                          ; +0xe8, 0x1002d06e8\nMOV             W9, #0x343FD                                           ; +0xf0, 0x1002d06f0\nLDR             S0, [X0,#0x218]                                        ; +0xf8, 0x1002d06f8\nADRP            X10, #qword_10086DA10@PAGE                             ; +0xfc, 0x1002d06fc\nLDR             X11, [X10,#qword_10086DA10@PAGEOFF]                    ; +0x100, 0x1002d0700\nMADD            X11, X11, X9, X8                                       ; +0x104, 0x1002d0704\nSTR             X11, [X10,#qword_10086DA10@PAGEOFF]                    ; +0x108, 0x1002d0708\nUBFX            X12, X11, #0x10, #0xF                                  ; +0x10c, 0x1002d070c\nUCVTF           S2, X12                                                ; +0x110, 0x1002d0710\nADRP            X12, #dword_100635A20@PAGE                             ; +0x114, 0x1002d0714\nLDR             S1, [X12,#dword_100635A20@PAGEOFF]                     ; +0x118, 0x1002d0718\nFDIV            S4, S2, S1                                             ; +0x11c, 0x1002d071c\nFMOV            S2, #-1.0                                              ; +0x120, 0x1002d0720\nFMOV            S3, #2.0                                               ; +0x124, 0x1002d0724\nFMADD           S5, S4, S3, S2                                         ; +0x128, 0x1002d0728\nLDR             S4, [X0,#0x21C]                                        ; +0x12c, 0x1002d072c\nFMADD           S6, S5, S4, S0                                         ; +0x130, 0x1002d0730\nFMOV            S5, WZR                                                ; +0x134, 0x1002d0734\nFCMP            S6, #0.0                                               ; +0x138, 0x1002d0738\nB.LE            loc_1002D075C                                          ; +0x13c, 0x1002d073c\nMADD            X8, X11, X9, X8                                        ; +0x140, 0x1002d0740\nSTR             X8, [X10,#qword_10086DA10@PAGEOFF]                     ; +0x144, 0x1002d0744\nUBFX            X8, X8, #0x10, #0xF                                    ; +0x148, 0x1002d0748\nUCVTF           S5, X8                                                 ; +0x14c, 0x1002d074c\nFDIV            S1, S5, S1                                             ; +0x150, 0x1002d0750\nFMADD           S1, S1, S3, S2                                         ; +0x154, 0x1002d0754\nFMADD           S5, S1, S4, S0                                         ; +0x158, 0x1002d0758\nSTR             S5, [X19,#0x3AC]                                       ; +0x15c, 0x1002d075c\nLDR             X8, [X0]                                               ; +0x160, 0x1002d0760\nLDR             X8, [X8,#0x3B8]                                        ; +0x164, 0x1002d0764\nBLR             X8                                                     ; +0x168, 0x1002d0768\nFMOV            S8, S0                                                 ; +0x16c, 0x1002d076c\nLDR             X0, [X19,#0x2B0]                                       ; +0x170, 0x1002d0770\nLDR             X8, [X0]                                               ; +0x174, 0x1002d0774\nLDR             X8, [X8,#0x3C8]                                        ; +0x178, 0x1002d0778\nBLR             X8                                                     ; +0x17c, 0x1002d077c\nFADD            S0, S8, S0                                             ; +0x180, 0x1002d0780\nLDR             S1, [X19,#0x3AC]                                       ; +0x184, 0x1002d0784\nFADD            S0, S0, S1                                             ; +0x188, 0x1002d0788\nLDR             S1, [X19,#0x320]                                       ; +0x18c, 0x1002d078c\nFADD            S0, S9, S0                                             ; +0x190, 0x1002d0790\nFCMP            S1, S0                                                 ; +0x194, 0x1002d0794\nB.LE            loc_1002D07C4                                          ; +0x198, 0x1002d0798\nSTR             WZR, [X19,#0x320]                                      ; +0x19c, 0x1002d079c\nMOV             W8, #0xBF800000                                        ; +0x1a0, 0x1002d07a0\nSTR             W8, [X19,#0x3AC]                                       ; +0x1a4, 0x1002d07a4\nLDR             X0, [X19,#0x2B0]                                       ; +0x1a8, 0x1002d07a8\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x1ac, 0x1002d07ac\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x1b0, 0x1002d07b0\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x1b4, 0x1002d07b4\nLDP             D9, D8, [SP,#0x50+var_30]                              ; +0x1b8, 0x1002d07b8\nADD             SP, SP, #0x60 ; '`'                                    ; +0x1bc, 0x1002d07bc\nB               cocos2d__CCParticleSystem__resetSystem                 ; +0x1c0, 0x1002d07c0\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x1c4, 0x1002d07c4\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x1c8, 0x1002d07c8\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x1cc, 0x1002d07cc\nLDP             D9, D8, [SP,#0x50+var_30]                              ; +0x1d0, 0x1002d07d0\nADD             SP, SP, #0x60 ; '`'                                    ; +0x1d4, 0x1002d07d4\nRET                                                                    ; +0x1d8, 0x1002d07d8", "xrefs": ["<???> @ 0x1007d73c8"], "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"}