{"type": "func", "start": 13360848, "end": 13360916, "name": "EditorSFXActionConfigLayer::onToggleMode", "pseudocode": "// \n// EditorSFXActionConfigLayer::onToggleMode from 0xcbded0 to 0xcbdf14 (68 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x9bce0\n// > EditorSFXActionConfigLayer::init @ 0xcbef08\n// > <???> @ 0x15444a0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:15 +0000\n// \n\n__int64 __fastcall EditorSFXActionConfigLayer::onToggleMode(EditorSFXActionConfigLayer *this, cocos2d::CCObject *a2)\n{\n  EditorSFXManager *v3; // x0\n  EditorSFXManager *PlayMode; // x0\n  int v5; // w20\n  EditorSFXManager *v6; // x0\n\n  v3 = (EditorSFXManager *)EditorSFXManager::sharedState(this);\n  PlayMode = (EditorSFXManager *)EditorSFXManager::getPlayMode(v3, *((_DWORD *)this + 256));\n  v5 = (int)PlayMode;\n  v6 = (EditorSFXManager *)EditorSFXManager::sharedState(PlayMode);\n  EditorSFXManager::setPlayMode(v6, *((_DWORD *)this + 256), v5 == 0);\n  return EditorSFXActionConfigLayer::refreshModeButtons(this);\n}", "assembly": "; \n; EditorSFXActionConfigLayer::onToggleMode from 0xcbded0 to 0xcbdf14 (68 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x9bce0\n; > EditorSFXActionConfigLayer::init @ 0xcbef08\n; > <???> @ 0x15444a0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:06:15 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xcbded0\nMOV             X29, SP                                                ; +0x4, 0xcbded4\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xcbded8\nMOV             X19, X0                                                ; +0xc, 0xcbdedc\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x10, 0xcbdee0\nLDR             W1, [X19,#0x400]; int                                  ; +0x14, 0xcbdee4\nBL              _ZN16EditorSFXManager11getPlayModeEi; EditorSFXManager::getPlayMode(int) ; +0x18, 0xcbdee8\nMOV             W20, W0                                                ; +0x1c, 0xcbdeec\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x20, 0xcbdef0\nCMP             W20, WZR                                               ; +0x24, 0xcbdef4\nLDR             W1, [X19,#0x400]; int                                  ; +0x28, 0xcbdef8\nCSET            W2, EQ; int                                            ; +0x2c, 0xcbdefc\nBL              _ZN16EditorSFXManager11setPlayModeEii; EditorSFXManager::setPlayMode(int,int) ; +0x30, 0xcbdf00\nMOV             X0, X19; this                                          ; +0x34, 0xcbdf04\nLDP             X19, X20, [SP,#var_s10]                                ; +0x38, 0xcbdf08\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x3c, 0xcbdf0c\nB               _ZN26EditorSFXActionConfigLayer18refreshModeButtonsEv; EditorSFXActionConfigLayer::refreshModeButtons(void) ; +0x40, 0xcbdf10", "xrefs": ["<???> @ 0x9bce0", "EditorSFXActionConfigLayer::init @ 0xcbef08", "<???> @ 0x15444a0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}