{"type": "func", "start": 6707632, "end": 6707724, "name": "CreateParticlePopup::onEmitterMode", "pseudocode": "// \n// CreateParticlePopup::onEmitterMode from 0x6659b0 to 0x665a0c (92 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:40 +0000\n// \n\nbool __fastcall CreateParticlePopup::onEmitterMode(CCMenuItemToggler **this, cocos2d::CCObject *a2)\n{\n  int v3; // r5\n  unsigned int v4; // r1\n\n  v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  CreateParticlePopup::updateParticleValueForType((unsigned int)this, (float)v3, 62, nullptr);\n  CCMenuItemToggler::toggle(*(this + 158), v3 == 0);\n  CCMenuItemToggler::toggle(*(this + 159), v3 == 1);\n  v4 = __clz((*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 136) + 796))(*(this + 136)));\n  return CreateParticlePopup::toggleGravityMode(this, v4 >> 5);\n}", "assembly": "; \n; CreateParticlePopup::onEmitterMode from 0x6659b0 to 0x665a0c (92 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:40 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x6659b0\nMOV             R4, R0                                                 ; +0x2, 0x6659b2\nLDR             R3, [R1]                                               ; +0x4, 0x6659b4\nMOV             R0, R1                                                 ; +0x6, 0x6659b6\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x6659b8\nBLX             R3                                                     ; +0xa, 0x6659ba\nMOVS            R2, #0x3E ; '>'                                        ; +0xc, 0x6659bc\nMOVS            R3, #0                                                 ; +0xe, 0x6659be\nMOV             R5, R0                                                 ; +0x10, 0x6659c0\nMOV             R0, R4                                                 ; +0x12, 0x6659c2\nVMOV            S15, R5                                                ; +0x14, 0x6659c4\nVCVT.F32.S32    S15, S15                                               ; +0x18, 0x6659c8\nVMOV            R1, S15                                                ; +0x1c, 0x6659cc\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x20, 0x6659d0\nCLZ.W           R1, R5                                                 ; +0x24, 0x6659d4\nLDR.W           R0, [R4,#0x278]; this                                  ; +0x28, 0x6659d8\nLSRS            R1, R1, #5; bool                                       ; +0x2c, 0x6659dc\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x2e, 0x6659de\nSUBS            R3, R5, #1                                             ; +0x32, 0x6659e2\nNEGS            R1, R3                                                 ; +0x34, 0x6659e4\nLDR.W           R0, [R4,#0x27C]; this                                  ; +0x36, 0x6659e6\nADCS            R1, R3; bool                                           ; +0x3a, 0x6659ea\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x3c, 0x6659ec\nLDR.W           R0, [R4,#0x220]                                        ; +0x40, 0x6659f0\nLDR             R3, [R0]                                               ; +0x44, 0x6659f4\nLDR.W           R3, [R3,#0x31C]                                        ; +0x46, 0x6659f6\nBLX             R3                                                     ; +0x4a, 0x6659fa\nCLZ.W           R1, R0                                                 ; +0x4c, 0x6659fc\nMOV             R0, R4; this                                           ; +0x50, 0x665a00\nPOP.W           {R3-R5,LR}                                             ; +0x52, 0x665a02\nLSRS            R1, R1, #5; bool                                       ; +0x56, 0x665a06\nB.W             _ZN19CreateParticlePopup17toggleGravityModeEb; CreateParticlePopup::toggleGravityMode(bool) ; +0x58, 0x665a08", "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"}