{"type": "func", "start": 4722504, "end": 4722584, "name": "EditorUI::toggleFreeMove", "pseudocode": "// \n// EditorUI::toggleFreeMove from 0x480f48 to 0x480f98 (80 bytes)\n// \n// 2 xrefs:\n// > EditorUI::init @ 0x48bf56\n// > EditorUI::handleEditorAction @ 0x6f1b8e\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:49:22 +0000\n// \n\nint __fastcall EditorUI::toggleFreeMove(EditorUI *this, cocos2d::CCObject *a2)\n{\n  char *v3; // r0\n  const char *v4; // r1\n  char *updated; // r0\n  GameManager *v6; // r0\n  EditorSFXManager *v7; // r0\n  EditorSFXManager *v8; // r0\n\n  *((_BYTE *)this + 640) ^= 1u;\n  v3 = (char *)(*(int (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 175) + 536))(\n                 *((_DWORD *)this + 175),\n                 a2);\n  if ( *((_BYTE *)this + 640) )\n    v4 = \"GJ_button_02.png\";\n  else\n    v4 = \"GJ_button_01.png\";\n  updated = ButtonSprite::updateBGImage(v3, v4);\n  v6 = (GameManager *)GameManager::sharedState((GameManager *)updated);\n  v7 = (EditorSFXManager *)GameManager::setGameVariable(v6, \"0004\", (const char *)*((unsigned __int8 *)this + 640));\n  v8 = (EditorSFXManager *)EditorSFXManager::sharedState(v7);\n  return EditorSFXManager::playAction(v8, 191, 189);\n}", "assembly": "; \n; EditorUI::toggleFreeMove from 0x480f48 to 0x480f98 (80 bytes)\n; \n; 2 xrefs:\n; > EditorUI::init @ 0x48bf56\n; > EditorUI::handleEditorAction @ 0x6f1b8e\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:49:22 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x480f48\nMOV             R4, R0                                                 ; +0x2, 0x480f4a\nLDRB.W          R3, [R0,#0x280]                                        ; +0x4, 0x480f4c\nEOR.W           R3, R3, #1                                             ; +0x8, 0x480f50\nSTRB.W          R3, [R0,#0x280]                                        ; +0xc, 0x480f54\nLDR.W           R0, [R0,#0x2BC]                                        ; +0x10, 0x480f58\nLDR             R3, [R0]                                               ; +0x14, 0x480f5c\nLDR.W           R3, [R3,#0x218]                                        ; +0x16, 0x480f5e\nBLX             R3                                                     ; +0x1a, 0x480f62\nLDRB.W          R3, [R4,#0x280]                                        ; +0x1c, 0x480f64\nCBNZ            R3, loc_480F70                                         ; +0x20, 0x480f68\nLDR             R1, =(aGjButton01Png - 0x480F70); \"GJ_button_01.png\"   ; +0x22, 0x480f6a\nADD             R1, PC; \"GJ_button_01.png\"                             ; +0x24, 0x480f6c\nB               loc_480F74                                             ; +0x26, 0x480f6e\nLDR             R1, =(aGjButton02Png - 0x480F76); \"GJ_button_02.png\"   ; +0x28, 0x480f70\nADD             R1, PC; \"GJ_button_02.png\"                             ; +0x2a, 0x480f72\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x2c, 0x480f74\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x30, 0x480f78\nLDR             R1, =(a0004 - 0x480F86); \"0004\"                        ; +0x34, 0x480f7c\nLDRB.W          R2, [R4,#0x280]; bool                                  ; +0x36, 0x480f7e\nADD             R1, PC; \"0004\"                                         ; +0x3a, 0x480f82\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x3c, 0x480f84\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x40, 0x480f88\nMOVS            R1, #0xBF; int                                         ; +0x44, 0x480f8c\nMOVS            R2, #0xBD; int                                         ; +0x46, 0x480f8e\nPOP.W           {R4,LR}                                                ; +0x48, 0x480f90\nB.W             _ZN16EditorSFXManager10playActionEii; EditorSFXManager::playAction(int,int) ; +0x4c, 0x480f94", "xrefs": ["EditorUI::init @ 0x48bf56", "EditorUI::handleEditorAction @ 0x6f1b8e"], "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"}