{"type": "func", "start": 6711488, "end": 6711618, "name": "CreateParticlePopup::onCalcEmission", "pseudocode": "// \n// CreateParticlePopup::onCalcEmission from 0x6668c0 to 0x666942 (130 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:55:41 +0000\n// \n\nint __fastcall CreateParticlePopup::onCalcEmission(CreateParticlePopup *this, cocos2d::CCObject *a2)\n{\n  float v3; // s16\n  float v4; // s16\n  float v5; // s15\n\n  v3 = COERCE_FLOAT(\n         (*(int (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 136) + 484))(\n           *((_DWORD *)this + 136),\n           a2));\n  v4 = v3 + (*(float (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 492))(*((_DWORD *)this + 136));\n  if ( v4 <= 0.0 )\n    v5 = -1.0;\n  else\n    v5 = (float)(unsigned int)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 748))(*((_DWORD *)this + 136))\n       / v4;\n  CreateParticlePopup::updateParticleValueForType((unsigned int)this, v5, 5, nullptr);\n  CreateParticlePopup::updateSliderForType((cocos2d::CCArray **)this, 5);\n  CreateParticlePopup::updateInputNodeStringForType((int)this, 5u);\n  return cocos2d::CCParticleSystem::resetSystem(*((cocos2d::CCParticleSystem **)this + 136));\n}", "assembly": "; \n; CreateParticlePopup::onCalcEmission from 0x6668c0 to 0x666942 (130 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:55:41 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x6668c0\nMOV             R4, R0                                                 ; +0x2, 0x6668c2\nVPUSH           {D8}                                                   ; +0x4, 0x6668c4\nLDR.W           R0, [R0,#0x220]                                        ; +0x8, 0x6668c8\nLDR             R3, [R0]                                               ; +0xc, 0x6668cc\nLDR.W           R3, [R3,#0x1E4]                                        ; +0xe, 0x6668ce\nBLX             R3                                                     ; +0x12, 0x6668d2\nVMOV            S16, R0                                                ; +0x14, 0x6668d4\nLDR.W           R0, [R4,#0x220]                                        ; +0x18, 0x6668d8\nLDR             R3, [R0]                                               ; +0x1c, 0x6668dc\nLDR.W           R3, [R3,#0x1EC]                                        ; +0x1e, 0x6668de\nBLX             R3                                                     ; +0x22, 0x6668e2\nVMOV            S15, R0                                                ; +0x24, 0x6668e4\nVADD.F32        S16, S16, S15                                          ; +0x28, 0x6668e8\nVCMPE.F32       S16, #0.0                                              ; +0x2c, 0x6668ec\nVMRS            APSR_nzcv, FPSCR                                       ; +0x30, 0x6668f0\nBLE             loc_666910                                             ; +0x34, 0x6668f4\nLDR.W           R0, [R4,#0x220]                                        ; +0x36, 0x6668f6\nLDR             R3, [R0]                                               ; +0x3a, 0x6668fa\nLDR.W           R3, [R3,#0x2EC]                                        ; +0x3c, 0x6668fc\nBLX             R3                                                     ; +0x40, 0x666900\nVMOV            S15, R0                                                ; +0x42, 0x666902\nVCVT.F32.U32    S15, S15                                               ; +0x46, 0x666906\nVDIV.F32        S15, S15, S16                                          ; +0x4a, 0x66690a\nB               loc_666914                                             ; +0x4e, 0x66690e\nVMOV.F32        S15, #-1.0                                             ; +0x50, 0x666910\nVMOV            R1, S15                                                ; +0x54, 0x666914\nMOV             R0, R4                                                 ; +0x58, 0x666918\nMOVS            R2, #5                                                 ; +0x5a, 0x66691a\nMOVS            R3, #0                                                 ; +0x5c, 0x66691c\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x5e, 0x66691e\nMOV             R0, R4                                                 ; +0x62, 0x666922\nMOVS            R1, #5                                                 ; +0x64, 0x666924\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x66, 0x666926\nMOV             R0, R4                                                 ; +0x6a, 0x66692a\nMOVS            R1, #5                                                 ; +0x6c, 0x66692c\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x6e, 0x66692e\nVPOP            {D8}                                                   ; +0x72, 0x666932\nLDR.W           R0, [R4,#0x220]; this                                  ; +0x76, 0x666936\nPOP.W           {R4,LR}                                                ; +0x7a, 0x66693a\nB.W             _ZN7cocos2d16CCParticleSystem11resetSystemEv; cocos2d::CCParticleSystem::resetSystem(void) ; +0x7e, 0x66693e", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}