{"type": "func", "start": 4297914668, "end": 4297914824, "name": "CreateParticlePopup::onCalcEmission", "pseudocode": "// \n// CreateParticlePopup::onCalcEmission from 0x1002cf92c to 0x1002cf9c8 (156 bytes)\n// \n// 1 xrefs:\n// > CreateParticlePopup::createParticleSlider @ 0x1002cec90\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::onCalcEmission(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  float v3; // s8\n  float v4; // s8\n  float v5; // s0\n\n  v3 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *, cocos2d::CCObject *))a1->m_particle->getLife)(\n         a1->m_particle,\n         a2);\n  v4 = v3 + ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getLifeVar)(a1->m_particle);\n  v5 = -1.0;\n  if ( v4 > 0.0 )\n    v5 = (float)((unsigned int (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_particle->getTotalParticles)(\n                  a1->m_particle,\n                  -1.0)\n       / 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 0x1002cf92c to 0x1002cf9c8 (156 bytes)\n; \n; 1 xrefs:\n; > CreateParticlePopup::createParticleSlider @ 0x1002cec90\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             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x1002cf92c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002cf930\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002cf934\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002cf938\nMOV             X19, X0                                                ; +0x10, 0x1002cf93c\nLDR             X0, [X0,#0x2B0]                                        ; +0x14, 0x1002cf940\nLDR             X8, [X0]                                               ; +0x18, 0x1002cf944\nLDR             X8, [X8,#0x3B8]                                        ; +0x1c, 0x1002cf948\nBLR             X8                                                     ; +0x20, 0x1002cf94c\nFMOV            S8, S0                                                 ; +0x24, 0x1002cf950\nLDR             X0, [X19,#0x2B0]                                       ; +0x28, 0x1002cf954\nLDR             X8, [X0]                                               ; +0x2c, 0x1002cf958\nLDR             X8, [X8,#0x3C8]                                        ; +0x30, 0x1002cf95c\nBLR             X8                                                     ; +0x34, 0x1002cf960\nFADD            S8, S8, S0                                             ; +0x38, 0x1002cf964\nFMOV            S0, #-1.0                                              ; +0x3c, 0x1002cf968\nFCMP            S8, #0.0                                               ; +0x40, 0x1002cf96c\nB.LE            loc_1002CF98C                                          ; +0x44, 0x1002cf970\nLDR             X0, [X19,#0x2B0]                                       ; +0x48, 0x1002cf974\nLDR             X8, [X0]                                               ; +0x4c, 0x1002cf978\nLDR             X8, [X8,#0x5C8]                                        ; +0x50, 0x1002cf97c\nBLR             X8                                                     ; +0x54, 0x1002cf980\nUCVTF           S0, W0                                                 ; +0x58, 0x1002cf984\nFDIV            S0, S0, S8                                             ; +0x5c, 0x1002cf988\nMOV             X0, X19                                                ; +0x60, 0x1002cf98c\nMOV             W1, #5                                                 ; +0x64, 0x1002cf990\nMOV             X2, #0                                                 ; +0x68, 0x1002cf994\nBL              CreateParticlePopup__updateParticleValueForType        ; +0x6c, 0x1002cf998\nMOV             X0, X19                                                ; +0x70, 0x1002cf99c\nMOV             W1, #5                                                 ; +0x74, 0x1002cf9a0\nBL              CreateParticlePopup__updateSliderForType               ; +0x78, 0x1002cf9a4\nMOV             X0, X19                                                ; +0x7c, 0x1002cf9a8\nMOV             W1, #5                                                 ; +0x80, 0x1002cf9ac\nBL              CreateParticlePopup__updateInputNodeStringForType      ; +0x84, 0x1002cf9b0\nLDR             X0, [X19,#0x2B0]                                       ; +0x88, 0x1002cf9b4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8c, 0x1002cf9b8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x90, 0x1002cf9bc\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x94, 0x1002cf9c0\nB               cocos2d__CCParticleSystem__resetSystem                 ; +0x98, 0x1002cf9c4", "xrefs": ["CreateParticlePopup::createParticleSlider @ 0x1002cec90"], "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"}