{"type": "func", "start": 10241400, "end": 10241572, "name": "CreateParticlePopup::onCalcEmission", "pseudocode": "// \n// CreateParticlePopup::onCalcEmission from 0x9c4578 to 0x9c4624 (172 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x811b0\n// > CreateParticlePopup::createParticleSlider @ 0x9c3f88\n// > <???> @ 0x122c598\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::onCalcEmission(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  float v3; // s8\n  float v4; // s8\n  float v5; // s0\n\n  v3 = a1->m_particle->getLife(a1->m_particle);\n  v4 = v3 + a1->m_particle->getLifeVar(a1->m_particle);\n  if ( v4 <= 0.0 )\n    v5 = -1.0;\n  else\n    v5 = (float)a1->m_particle->getTotalParticles(a1->m_particle) / v4;\n  CreateParticlePopup::updateParticleValueForType(a1, v5, Emission, nullptr);\n  CreateParticlePopup::updateSliderForType(a1, Emission);\n  CreateParticlePopup::updateInputNodeStringForType(a1, Emission);\n  cocos2d::CCParticleSystem::resetSystem(a1->m_particle);\n}", "assembly": "; \n; CreateParticlePopup::onCalcEmission from 0x9c4578 to 0x9c4624 (172 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x811b0\n; > CreateParticlePopup::createParticleSlider @ 0x9c3f88\n; > <???> @ 0x122c598\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,#-0x20+var_s0]!                          ; +0x0, 0x9c4578\nMOV             X29, SP                                                ; +0x4, 0x9c457c\nLDR             X1, [X0,#0x2B0]                                        ; +0x8, 0x9c4580\nSTR             X19, [SP,#var_s10]                                     ; +0xc, 0x9c4584\nMOV             X19, X0                                                ; +0x10, 0x9c4588\nMOV             X0, X1                                                 ; +0x14, 0x9c458c\nLDR             X1, [X1]                                               ; +0x18, 0x9c4590\nSTR             D8, [SP,#var_s18]                                      ; +0x1c, 0x9c4594\nLDR             X1, [X1,#0x3B8]                                        ; +0x20, 0x9c4598\nBLR             X1                                                     ; +0x24, 0x9c459c\nLDR             X1, [X19,#0x2B0]                                       ; +0x28, 0x9c45a0\nFMOV            S8, S0                                                 ; +0x2c, 0x9c45a4\nMOV             X0, X1                                                 ; +0x30, 0x9c45a8\nLDR             X1, [X1]                                               ; +0x34, 0x9c45ac\nLDR             X1, [X1,#0x3C8]                                        ; +0x38, 0x9c45b0\nBLR             X1                                                     ; +0x3c, 0x9c45b4\nFADD            S8, S8, S0                                             ; +0x40, 0x9c45b8\nFCMPE           S8, #0.0                                               ; +0x44, 0x9c45bc\nB.LE            loc_9C461C                                             ; +0x48, 0x9c45c0\nLDR             X1, [X19,#0x2B0]                                       ; +0x4c, 0x9c45c4\nMOV             X0, X1                                                 ; +0x50, 0x9c45c8\nLDR             X1, [X1]                                               ; +0x54, 0x9c45cc\nLDR             X1, [X1,#0x5C8]                                        ; +0x58, 0x9c45d0\nBLR             X1                                                     ; +0x5c, 0x9c45d4\nUCVTF           S0, W0                                                 ; +0x60, 0x9c45d8\nFDIV            S0, S0, S8                                             ; +0x64, 0x9c45dc\nMOV             X2, #0                                                 ; +0x68, 0x9c45e0\nMOV             X0, X19                                                ; +0x6c, 0x9c45e4\nMOV             W1, #5                                                 ; +0x70, 0x9c45e8\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x74, 0x9c45ec\nMOV             X0, X19                                                ; +0x78, 0x9c45f0\nMOV             W1, #5                                                 ; +0x7c, 0x9c45f4\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x80, 0x9c45f8\nMOV             X0, X19                                                ; +0x84, 0x9c45fc\nMOV             W1, #5                                                 ; +0x88, 0x9c4600\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x8c, 0x9c4604\nLDR             D8, [SP,#var_s18]                                      ; +0x90, 0x9c4608\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x94, 0x9c460c\nLDR             X19, [SP,#var_s10]                                     ; +0x98, 0x9c4610\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x9c, 0x9c4614\nB               _ZN7cocos2d16CCParticleSystem11resetSystemEv; cocos2d::CCParticleSystem::resetSystem(void) ; +0xa0, 0x9c4618\nFMOV            S0, #-1.0                                              ; +0xa4, 0x9c461c\nB               loc_9C45E0                                             ; +0xa8, 0x9c4620", "xrefs": ["<???> @ 0x811b0", "CreateParticlePopup::createParticleSlider @ 0x9c3f88", "<???> @ 0x122c598"], "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"}