{"type": "func", "start": 7847360, "end": 7847406, "name": "EditorSFXActionConfigLayer::onToggleMode", "pseudocode": "// \n// EditorSFXActionConfigLayer::onToggleMode from 0x77bdc0 to 0x77bdee (46 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:59:23 +0000\n// \n\nint __fastcall EditorSFXActionConfigLayer::onToggleMode(EditorSFXActionConfigLayer *this, cocos2d::CCObject *a2)\n{\n  EditorSFXManager *v3; // r0\n  EditorSFXManager *PlayMode; // r5\n  EditorSFXManager *v5; // r0\n\n  v3 = (EditorSFXManager *)EditorSFXManager::sharedState(this);\n  PlayMode = (EditorSFXManager *)EditorSFXManager::getPlayMode(v3, *((_DWORD *)this + 179));\n  v5 = (EditorSFXManager *)EditorSFXManager::sharedState(PlayMode);\n  EditorSFXManager::setPlayMode(v5, *((_DWORD *)this + 179), PlayMode == nullptr);\n  return EditorSFXActionConfigLayer::refreshModeButtons(this);\n}", "assembly": "; \n; EditorSFXActionConfigLayer::onToggleMode from 0x77bdc0 to 0x77bdee (46 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:59:23 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x77bdc0\nMOV             R4, R0                                                 ; +0x2, 0x77bdc2\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x4, 0x77bdc4\nLDR.W           R1, [R4,#0x2CC]; int                                   ; +0x8, 0x77bdc8\nBL              _ZN16EditorSFXManager11getPlayModeEi; EditorSFXManager::getPlayMode(int) ; +0xc, 0x77bdcc\nMOV             R5, R0                                                 ; +0x10, 0x77bdd0\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x12, 0x77bdd2\nCLZ.W           R2, R5                                                 ; +0x16, 0x77bdd6\nLDR.W           R1, [R4,#0x2CC]; int                                   ; +0x1a, 0x77bdda\nLSRS            R2, R2, #5; int                                        ; +0x1e, 0x77bdde\nBL              _ZN16EditorSFXManager11setPlayModeEii; EditorSFXManager::setPlayMode(int,int) ; +0x20, 0x77bde0\nMOV             R0, R4; this                                           ; +0x24, 0x77bde4\nPOP.W           {R3-R5,LR}                                             ; +0x26, 0x77bde6\nB.W             _ZN26EditorSFXActionConfigLayer18refreshModeButtonsEv; EditorSFXActionConfigLayer::refreshModeButtons(void) ; +0x2a, 0x77bdea", "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"}