{"type": "func", "start": 10243852, "end": 10243984, "name": "CreateParticlePopup::onEmitterMode", "pseudocode": "// \n// CreateParticlePopup::onEmitterMode from 0x9c4f0c to 0x9c4f90 (132 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x89bc8\n// > CreateParticlePopup::init @ 0x9c63e4\n// > CreateParticlePopup::init @ 0x9c64f8\n// > <???> @ 0x122cad8\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::onEmitterMode(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w20\n  bool v4; // w1\n\n  v3 = 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 = a1->m_particle->getEmitterMode(a1->m_particle) == 0;\n  CreateParticlePopup::toggleGravityMode(a1, v4);\n}", "assembly": "; \n; CreateParticlePopup::onEmitterMode from 0x9c4f0c to 0x9c4f90 (132 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x89bc8\n; > CreateParticlePopup::init @ 0x9c63e4\n; > CreateParticlePopup::init @ 0x9c64f8\n; > <???> @ 0x122cad8\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             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x9c4f0c\nMOV             X29, SP                                                ; +0x4, 0x9c4f10\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x9c4f14\nMOV             X19, X0                                                ; +0xc, 0x9c4f18\nMOV             X0, X1                                                 ; +0x10, 0x9c4f1c\nLDR             X1, [X1]                                               ; +0x14, 0x9c4f20\nLDR             X1, [X1,#0x40]                                         ; +0x18, 0x9c4f24\nBLR             X1                                                     ; +0x1c, 0x9c4f28\nMOV             W20, W0                                                ; +0x20, 0x9c4f2c\nMOV             X2, #0                                                 ; +0x24, 0x9c4f30\nMOV             X0, X19                                                ; +0x28, 0x9c4f34\nSCVTF           S0, W20                                                ; +0x2c, 0x9c4f38\nMOV             W1, #0x3E ; '>'                                        ; +0x30, 0x9c4f3c\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x34, 0x9c4f40\nCMP             W20, WZR                                               ; +0x38, 0x9c4f44\nLDR             X0, [X19,#0x350]; this                                 ; +0x3c, 0x9c4f48\nCSET            W1, EQ; bool                                           ; +0x40, 0x9c4f4c\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x44, 0x9c4f50\nCMP             W20, #1                                                ; +0x48, 0x9c4f54\nLDR             X0, [X19,#0x358]; this                                 ; +0x4c, 0x9c4f58\nCSET            W1, EQ; bool                                           ; +0x50, 0x9c4f5c\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x54, 0x9c4f60\nLDR             X1, [X19,#0x2B0]                                       ; +0x58, 0x9c4f64\nMOV             X0, X1                                                 ; +0x5c, 0x9c4f68\nLDR             X1, [X1]                                               ; +0x60, 0x9c4f6c\nLDR             X1, [X1,#0x628]                                        ; +0x64, 0x9c4f70\nBLR             X1                                                     ; +0x68, 0x9c4f74\nCMP             W0, WZR                                                ; +0x6c, 0x9c4f78\nMOV             X0, X19; this                                          ; +0x70, 0x9c4f7c\nCSET            W1, EQ; bool                                           ; +0x74, 0x9c4f80\nLDP             X19, X20, [SP,#var_s10]                                ; +0x78, 0x9c4f84\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x7c, 0x9c4f88\nB               _ZN19CreateParticlePopup17toggleGravityModeEb; CreateParticlePopup::toggleGravityMode(bool) ; +0x80, 0x9c4f8c", "xrefs": ["<???> @ 0x89bc8", "CreateParticlePopup::init @ 0x9c63e4", "CreateParticlePopup::init @ 0x9c64f8", "<???> @ 0x122cad8"], "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"}