{"type": "func", "start": 5446896, "end": 5447026, "name": "CreateParticlePopup::onCalcEmission", "pseudocode": "// \n// CreateParticlePopup::onCalcEmission from 0x531cf0 to 0x531d72 (130 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::onCalcEmission(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  float v3; // s16\n  float v4; // s16\n  float v5; // s15\n\n  v3 = COERCE_FLOAT(\n         ((int (__fastcall *)(cocos2d::CCParticleSystemQuad *, cocos2d::CCObject *))a1->m_particle->getLife)(\n           a1->m_particle,\n           a2));\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 0x531cf0 to 0x531d72 (130 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            {R4,LR}                                                ; +0x0, 0x531cf0\nMOV             R4, R0                                                 ; +0x2, 0x531cf2\nLDR.W           R0, [R0,#0x20C]                                        ; +0x4, 0x531cf4\nVPUSH           {D8}                                                   ; +0x8, 0x531cf8\nLDR             R3, [R0]                                               ; +0xc, 0x531cfc\nLDR.W           R3, [R3,#0x1DC]                                        ; +0xe, 0x531cfe\nBLX             R3                                                     ; +0x12, 0x531d02\nVMOV            S16, R0                                                ; +0x14, 0x531d04\nLDR.W           R0, [R4,#0x20C]                                        ; +0x18, 0x531d08\nLDR             R3, [R0]                                               ; +0x1c, 0x531d0c\nLDR.W           R3, [R3,#0x1E4]                                        ; +0x1e, 0x531d0e\nBLX             R3                                                     ; +0x22, 0x531d12\nVMOV            S15, R0                                                ; +0x24, 0x531d14\nVADD.F32        S16, S16, S15                                          ; +0x28, 0x531d18\nVCMPE.F32       S16, #0.0                                              ; +0x2c, 0x531d1c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x30, 0x531d20\nBLE             loc_531D40                                             ; +0x34, 0x531d24\nLDR.W           R0, [R4,#0x20C]                                        ; +0x36, 0x531d26\nLDR             R3, [R0]                                               ; +0x3a, 0x531d2a\nLDR.W           R3, [R3,#0x2E4]                                        ; +0x3c, 0x531d2c\nBLX             R3                                                     ; +0x40, 0x531d30\nVMOV            S15, R0                                                ; +0x42, 0x531d32\nVCVT.F32.U32    S15, S15                                               ; +0x46, 0x531d36\nVDIV.F32        S15, S15, S16                                          ; +0x4a, 0x531d3a\nB               loc_531D44                                             ; +0x4e, 0x531d3e\nVMOV.F32        S15, #-1.0                                             ; +0x50, 0x531d40\nVMOV            R1, S15                                                ; +0x54, 0x531d44\nMOV             R0, R4                                                 ; +0x58, 0x531d48\nMOVS            R2, #5                                                 ; +0x5a, 0x531d4a\nMOVS            R3, #0                                                 ; +0x5c, 0x531d4c\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x5e, 0x531d4e\nMOV             R0, R4                                                 ; +0x62, 0x531d52\nMOVS            R1, #5                                                 ; +0x64, 0x531d54\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x66, 0x531d56\nMOV             R0, R4                                                 ; +0x6a, 0x531d5a\nMOVS            R1, #5                                                 ; +0x6c, 0x531d5c\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x6e, 0x531d5e\nVPOP            {D8}                                                   ; +0x72, 0x531d62\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x76, 0x531d66\nPOP.W           {R4,LR}                                                ; +0x7a, 0x531d6a\nB.W             _ZN7cocos2d16CCParticleSystem11resetSystemEv; cocos2d::CCParticleSystem::resetSystem(void) ; +0x7e, 0x531d6e", "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"}