{"type": "func", "start": 5438768, "end": 5439222, "name": "CreateParticlePopup::update", "pseudocode": "// \n// CreateParticlePopup::update from 0x52fd30 to 0x52fef6 (454 bytes)\n// \n// 0 xrefs:\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; // s15\n  cocos2d::CCLabelBMFont *m_perfLogLabel; // r5\n  void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r6\n  const char *v7; // r8\n  unsigned int v8; // r7\n  int ParticleDrawCost; // r0\n  cocos2d::CCString *v10; // r0\n  const char *CString; // r0\n  float v12; // s17\n  cocos2d::CCParticleSystemQuad *m_particle; // r0\n  float m_fRespawn; // s14\n  float m_fRespawnVar; // s13\n  unsigned int v16; // r2\n  __int64 v17; // r6\n  int v18; // r6\n  float v19; // s14\n  float v20; // s16\n  cocos2d::CCParticleSystemQuad *v21; // r0\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      a1->m_perfLogElapsed = 0.0;\n      setString = m_perfLogLabel->setString;\n      v7 = (const char *)a1->m_particle->getParticleCount(a1->m_particle);\n      v8 = a1->m_particle->getTotalParticles(a1->m_particle);\n      ParticleDrawCost = cocos2d::CCParticleSystem::getParticleDrawCost(a1->m_particle);\n      v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                   (cocos2d::CCString *)\"%i/%i\\n%i\",\n                                   v7,\n                                   v8,\n                                   ParticleDrawCost);\n      CString = cocos2d::CCString::getCString(v10);\n      setString(m_perfLogLabel, (const unsigned __int8 *)CString);\n    }\n    else\n    {\n      a1->m_perfLogElapsed = v4;\n    }\n  }\n  v12 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getDuration)(a1->m_particle));\n  if ( v12 >= 0.0 )\n  {\n    m_particle = a1->m_particle;\n    a1->m_elapsed = a1->m_elapsed + a2;\n    if ( a1->m_respawnResult < 0.0 )\n    {\n      m_fRespawn = m_particle->m_fRespawn;\n      m_fRespawnVar = m_particle->m_fRespawnVar;\n      v16 = (unsigned int)(214013 * qword_AC7758 + 2531011) >> 16;\n      v17 = 214013 * qword_AC7758 + 2531011;\n      qword_AC7758 = v17;\n      if ( (float)(m_fRespawn\n                 + (float)((float)((float)((float)((float)(v16 & 0x7FFF) / 32767.0)\n                                         + (float)((float)(v16 & 0x7FFF) / 32767.0))\n                                 - 1.0)\n                         * m_fRespawnVar)) <= 0.0 )\n      {\n        v19 = 0.0;\n      }\n      else\n      {\n        qword_AC7758 = 214013 * v17 + 2531011;\n        v18 = ((214013 * v17 + 2531011) >> 16) & 0x7FFF;\n        v19 = m_fRespawn\n            + (float)((float)((float)((float)((float)v18 / 32767.0) + (float)((float)v18 / 32767.0)) - 1.0)\n                    * m_fRespawnVar);\n      }\n      a1->m_respawnResult = v19;\n    }\n    v20 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->getLife)(m_particle));\n    if ( a1->m_elapsed > (float)(v12\n                               + (float)((float)(v20 + a1->m_particle->getLifeVar(a1->m_particle)) + a1->m_respawnResult)) )\n    {\n      a1->m_elapsed = 0.0;\n      v21 = a1->m_particle;\n      a1->m_respawnResult = -1.0;\n      cocos2d::CCParticleSystem::resetSystem(v21);\n    }\n  }\n}", "assembly": "; \n; CreateParticlePopup::update from 0x52fd30 to 0x52fef6 (454 bytes)\n; \n; 0 xrefs:\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.W          {R3-R11,LR}                                            ; +0x0, 0x52fd30\nMOV             R4, R0                                                 ; +0x4, 0x52fd34\nLDRB.W          R3, [R0,#0x284]                                        ; +0x6, 0x52fd36\nVPUSH           {D8-D9}                                                ; +0xa, 0x52fd3a\nVMOV            S16, R1                                                ; +0xe, 0x52fd3e\nVLDR            S18, =0.0                                              ; +0x12, 0x52fd42\nCBZ             R3, loc_52FDB2                                         ; +0x16, 0x52fd46\nVLDR            S15, [R0,#0x288]                                       ; +0x18, 0x52fd48\nVLDR            D6, =0.1                                               ; +0x1c, 0x52fd4c\nVADD.F32        S15, S16, S15                                          ; +0x20, 0x52fd50\nVCVT.F64.F32    D5, S15                                                ; +0x24, 0x52fd54\nVCMPE.F64       D5, D6                                                 ; +0x28, 0x52fd58\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2c, 0x52fd5c\nBGE             loc_52FD68                                             ; +0x30, 0x52fd60\nVSTR            S15, [R0,#0x288]                                       ; +0x32, 0x52fd62\nB               loc_52FDB2                                             ; +0x36, 0x52fd66\nLDR.W           R5, [R0,#0x28C]                                        ; +0x38, 0x52fd68\nVSTR            S18, [R0,#0x288]                                       ; +0x3c, 0x52fd6c\nLDR.W           R0, [R0,#0x20C]                                        ; +0x40, 0x52fd70\nLDR             R3, [R5]                                               ; +0x44, 0x52fd74\nLDR.W           R6, [R3,#0x1C8]                                        ; +0x46, 0x52fd76\nLDR             R3, [R0]                                               ; +0x4a, 0x52fd7a\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x4c, 0x52fd7c\nBLX             R3                                                     ; +0x50, 0x52fd80\nMOV             R8, R0                                                 ; +0x52, 0x52fd82\nLDR.W           R0, [R4,#0x20C]                                        ; +0x54, 0x52fd84\nLDR             R3, [R0]                                               ; +0x58, 0x52fd88\nLDR.W           R3, [R3,#0x2E4]                                        ; +0x5a, 0x52fd8a\nBLX             R3                                                     ; +0x5e, 0x52fd8e\nMOV             R7, R0                                                 ; +0x60, 0x52fd90\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x62, 0x52fd92\nBL              _ZN7cocos2d16CCParticleSystem19getParticleDrawCostEv; cocos2d::CCParticleSystem::getParticleDrawCost(void) ; +0x66, 0x52fd96\nMOV             R1, R8; char *                                         ; +0x6a, 0x52fd9a\nMOV             R2, R7                                                 ; +0x6c, 0x52fd9c\nMOV             R3, R0                                                 ; +0x6e, 0x52fd9e\nLDR             R0, =(aIII_1 - 0x52FDA6); \"%i/%i\\n%i\"                  ; +0x70, 0x52fda0\nADD             R0, PC; \"%i/%i\\n%i\"                                    ; +0x72, 0x52fda2\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x74, 0x52fda4\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x78, 0x52fda8\nMOV             R1, R0                                                 ; +0x7c, 0x52fdac\nMOV             R0, R5                                                 ; +0x7e, 0x52fdae\nBLX             R6                                                     ; +0x80, 0x52fdb0\nLDR.W           R0, [R4,#0x20C]                                        ; +0x82, 0x52fdb2\nLDR             R3, [R0]                                               ; +0x86, 0x52fdb6\nLDR.W           R3, [R3,#0x1C4]                                        ; +0x88, 0x52fdb8\nBLX             R3                                                     ; +0x8c, 0x52fdbc\nVMOV            S17, R0                                                ; +0x8e, 0x52fdbe\nVCMPE.F32       S17, #0.0                                              ; +0x92, 0x52fdc2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x96, 0x52fdc6\nBMI.W           loc_52FEEE                                             ; +0x9a, 0x52fdca\nVLDR            S15, [R4,#0x248]                                       ; +0x9e, 0x52fdce\nLDR.W           R0, [R4,#0x20C]                                        ; +0xa2, 0x52fdd2\nVADD.F32        S15, S15, S16                                          ; +0xa6, 0x52fdd6\nVSTR            S15, [R4,#0x248]                                       ; +0xaa, 0x52fdda\nVLDR            S15, [R4,#0x29C]                                       ; +0xae, 0x52fdde\nVCMPE.F32       S15, #0.0                                              ; +0xb2, 0x52fde2\nVMRS            APSR_nzcv, FPSCR                                       ; +0xb6, 0x52fde6\nBPL             loc_52FE9A                                             ; +0xba, 0x52fdea\nLDR             R1, =(stru_AC7750 - 0x52FDFC)                          ; +0xbc, 0x52fdec\nMOVW            R10, #0x7FFF                                           ; +0xbe, 0x52fdee\nLDR             R5, =0x343FD                                           ; +0xc2, 0x52fdf2\nVMOV.F32        S12, #1.0                                              ; +0xc4, 0x52fdf4\nADD             R1, PC; stru_AC7750                                    ; +0xc8, 0x52fdf8\nADR.W           R9, dword_52FF00                                       ; +0xca, 0x52fdfa\nLDRD.W          R8, R9, [R9]                                           ; +0xce, 0x52fdfe\nVLDR            S11, =32767.0                                          ; +0xd2, 0x52fe02\nLDR             R6, [R1,#(qword_AC7758 - 0xAC7750)]                    ; +0xd6, 0x52fe06\nLDR             R2, [R1,#(qword_AC7758+4 - 0xAC7750)]                  ; +0xd8, 0x52fe08\nVLDR            S14, [R0,#0x1C0]                                       ; +0xda, 0x52fe0a\nUMULL           R6, R7, R6, R5                                         ; +0xde, 0x52fe0e\nVLDR            S13, [R0,#0x1C4]                                       ; +0xe2, 0x52fe12\nADDS.W          R6, R6, R8                                             ; +0xe6, 0x52fe16\nVMOV.F32        S10, S14                                               ; +0xea, 0x52fe1a\nMLA             R7, R5, R2, R7                                         ; +0xee, 0x52fe1e\nMOV.W           R2, R6,LSR#16                                          ; +0xf2, 0x52fe22\nADC.W           R7, R7, R9                                             ; +0xf6, 0x52fe26\nSTRD.W          R6, R7, [R1,#(qword_AC7758 - 0xAC7750)]                ; +0xfa, 0x52fe2a\nORR.W           R2, R2, R7,LSL#16                                      ; +0xfe, 0x52fe2e\nAND.W           R2, R2, R10                                            ; +0x102, 0x52fe32\nVMOV            S15, R2                                                ; +0x106, 0x52fe36\nVCVT.F32.S32    S15, S15                                               ; +0x10a, 0x52fe3a\nVDIV.F32        S15, S15, S11                                          ; +0x10e, 0x52fe3e\nVADD.F32        S15, S15, S15                                          ; +0x112, 0x52fe42\nVSUB.F32        S15, S15, S12                                          ; +0x116, 0x52fe46\nVMLA.F32        S10, S15, S13                                          ; +0x11a, 0x52fe4a\nVCMPE.F32       S10, #0.0                                              ; +0x11e, 0x52fe4e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x122, 0x52fe52\nBLE             loc_52FE92                                             ; +0x126, 0x52fe56\nUMULL           R2, R3, R6, R5                                         ; +0x128, 0x52fe58\nADDS.W          R2, R2, R8                                             ; +0x12c, 0x52fe5c\nMOV.W           R6, R2,LSR#16                                          ; +0x130, 0x52fe60\nMLA             R3, R5, R7, R3                                         ; +0x134, 0x52fe64\nADC.W           R3, R3, R9                                             ; +0x138, 0x52fe68\nSTRD.W          R2, R3, [R1,#(qword_AC7758 - 0xAC7750)]                ; +0x13c, 0x52fe6c\nORR.W           R6, R6, R3,LSL#16                                      ; +0x140, 0x52fe70\nAND.W           R6, R6, R10                                            ; +0x144, 0x52fe74\nVMOV            S15, R6                                                ; +0x148, 0x52fe78\nVCVT.F32.S32    S15, S15                                               ; +0x14c, 0x52fe7c\nVDIV.F32        S15, S15, S11                                          ; +0x150, 0x52fe80\nVADD.F32        S15, S15, S15                                          ; +0x154, 0x52fe84\nVSUB.F32        S15, S15, S12                                          ; +0x158, 0x52fe88\nVMLA.F32        S14, S15, S13                                          ; +0x15c, 0x52fe8c\nB               loc_52FE96                                             ; +0x160, 0x52fe90\nVLDR            S14, =0.0                                              ; +0x162, 0x52fe92\nVSTR            S14, [R4,#0x29C]                                       ; +0x166, 0x52fe96\nLDR             R3, [R0]                                               ; +0x16a, 0x52fe9a\nLDR.W           R3, [R3,#0x1DC]                                        ; +0x16c, 0x52fe9c\nBLX             R3                                                     ; +0x170, 0x52fea0\nVMOV            S16, R0                                                ; +0x172, 0x52fea2\nLDR.W           R0, [R4,#0x20C]                                        ; +0x176, 0x52fea6\nLDR             R3, [R0]                                               ; +0x17a, 0x52feaa\nLDR.W           R3, [R3,#0x1E4]                                        ; +0x17c, 0x52feac\nBLX             R3                                                     ; +0x180, 0x52feb0\nVMOV            S15, R0                                                ; +0x182, 0x52feb2\nVADD.F32        S16, S16, S15                                          ; +0x186, 0x52feb6\nVLDR            S15, [R4,#0x29C]                                       ; +0x18a, 0x52feba\nVADD.F32        S16, S16, S15                                          ; +0x18e, 0x52febe\nVLDR            S15, [R4,#0x248]                                       ; +0x192, 0x52fec2\nVADD.F32        S16, S17, S16                                          ; +0x196, 0x52fec6\nVCMPE.F32       S15, S16                                               ; +0x19a, 0x52feca\nVMRS            APSR_nzcv, FPSCR                                       ; +0x19e, 0x52fece\nBLE             loc_52FEEE                                             ; +0x1a2, 0x52fed2\nVSTR            S18, [R4,#0x248]                                       ; +0x1a4, 0x52fed4\nVPOP            {D8-D9}                                                ; +0x1a8, 0x52fed8\nLDR             R3, =0xBF800000                                        ; +0x1ac, 0x52fedc\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x1ae, 0x52fede\nSTR.W           R3, [R4,#0x29C]                                        ; +0x1b2, 0x52fee2\nPOP.W           {R3-R11,LR}                                            ; +0x1b6, 0x52fee6\nB.W             _ZN7cocos2d16CCParticleSystem11resetSystemEv; cocos2d::CCParticleSystem::resetSystem(void) ; +0x1ba, 0x52feea\nVPOP            {D8-D9}                                                ; +0x1be, 0x52feee\nPOP.W           {R3-R11,PC}                                            ; +0x1c2, 0x52fef2", "xrefs": [], "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"}