{"type": "func", "start": 4297908624, "end": 4297908752, "name": "CreateParticlePopup::onEmitterMode", "pseudocode": "// \n// CreateParticlePopup::onEmitterMode from 0x1002ce190 to 0x1002ce210 (128 bytes)\n// \n// 2 xrefs:\n// > CreateParticlePopup::init @ 0x1002cb518\n// > CreateParticlePopup::init @ 0x1002cb60c\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::onEmitterMode(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w20\n  bool v4; // w1\n\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  CreateParticlePopup::updateParticleValueForType(a1, (float)v3, EmitterMode, nullptr);\n  CCMenuItemToggler::toggle(a1->m_gravityToggler, v3 == 0);\n  CCMenuItemToggler::toggle(a1->m_radiusToggler, v3 == 1);\n  v4 = ((unsigned int (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getEmitterMode)(a1->m_particle) == 0;\n  CreateParticlePopup::toggleGravityMode(a1, v4);\n}", "assembly": "; \n; CreateParticlePopup::onEmitterMode from 0x1002ce190 to 0x1002ce210 (128 bytes)\n; \n; 2 xrefs:\n; > CreateParticlePopup::init @ 0x1002cb518\n; > CreateParticlePopup::init @ 0x1002cb60c\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002ce190\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002ce194\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002ce198\nMOV             X19, X0                                                ; +0xc, 0x1002ce19c\nLDR             X8, [X1]                                               ; +0x10, 0x1002ce1a0\nLDR             X8, [X8,#0x40]                                         ; +0x14, 0x1002ce1a4\nMOV             X0, X1                                                 ; +0x18, 0x1002ce1a8\nBLR             X8                                                     ; +0x1c, 0x1002ce1ac\nMOV             X20, X0                                                ; +0x20, 0x1002ce1b0\nSCVTF           S0, W0                                                 ; +0x24, 0x1002ce1b4\nMOV             X0, X19                                                ; +0x28, 0x1002ce1b8\nMOV             W1, #0x3E ; '>'                                        ; +0x2c, 0x1002ce1bc\nMOV             X2, #0                                                 ; +0x30, 0x1002ce1c0\nBL              CreateParticlePopup__updateParticleValueForType        ; +0x34, 0x1002ce1c4\nLDR             X0, [X19,#0x350]                                       ; +0x38, 0x1002ce1c8\nCMP             W20, #0                                                ; +0x3c, 0x1002ce1cc\nCSET            W1, EQ                                                 ; +0x40, 0x1002ce1d0\nBL              CCMenuItemToggler__toggle                              ; +0x44, 0x1002ce1d4\nLDR             X0, [X19,#0x358]                                       ; +0x48, 0x1002ce1d8\nCMP             W20, #1                                                ; +0x4c, 0x1002ce1dc\nCSET            W1, EQ                                                 ; +0x50, 0x1002ce1e0\nBL              CCMenuItemToggler__toggle                              ; +0x54, 0x1002ce1e4\nLDR             X0, [X19,#0x2B0]                                       ; +0x58, 0x1002ce1e8\nLDR             X8, [X0]                                               ; +0x5c, 0x1002ce1ec\nLDR             X8, [X8,#0x628]                                        ; +0x60, 0x1002ce1f0\nBLR             X8                                                     ; +0x64, 0x1002ce1f4\nCMP             W0, #0                                                 ; +0x68, 0x1002ce1f8\nCSET            W1, EQ                                                 ; +0x6c, 0x1002ce1fc\nMOV             X0, X19                                                ; +0x70, 0x1002ce200\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x1002ce204\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x1002ce208\nB               CreateParticlePopup__toggleGravityMode                 ; +0x7c, 0x1002ce20c", "xrefs": ["CreateParticlePopup::init @ 0x1002cb518", "CreateParticlePopup::init @ 0x1002cb60c"], "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"}