{"type": "func", "start": 8127028, "end": 8127156, "name": "EditorUI::toggleFreeMove", "pseudocode": "// \n// EditorUI::toggleFreeMove from 0x7c0234 to 0x7c02b4 (128 bytes)\n// \n// 5 xrefs:\n// > EditorUI::init @ 0x7d1000\n// > EditorUI::handleEditorAction @ 0xbd7d2c\n// > <???> @ 0xcdcc0\n// > EditorUI::init @ 0x7cf4f4\n// > <???> @ 0x15460e8\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 12:54:06 +0000\n// \n\n__int64 __fastcall EditorUI::toggleFreeMove(EditorUI *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x1\n  ButtonSprite *v4; // x0\n  GameManager *updated; // x0\n  GameManager *v6; // x0\n  EditorSFXManager *v7; // x0\n  EditorSFXManager *v8; // x0\n\n  v3 = *((_QWORD *)this + 120);\n  *((_BYTE *)this + 864) ^= 1u;\n  v4 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1072LL))(v3);\n  if ( *((_BYTE *)this + 864) )\n    updated = (GameManager *)ButtonSprite::updateBGImage(v4, \"GJ_button_02.png\");\n  else\n    updated = (GameManager *)ButtonSprite::updateBGImage(v4, \"GJ_button_01.png\");\n  v6 = (GameManager *)GameManager::sharedState(updated);\n  v7 = (EditorSFXManager *)GameManager::setGameVariable(v6, \"0004\", *((_BYTE *)this + 864));\n  v8 = (EditorSFXManager *)EditorSFXManager::sharedState(v7);\n  return EditorSFXManager::playAction(v8, 191, 189);\n}", "assembly": "; \n; EditorUI::toggleFreeMove from 0x7c0234 to 0x7c02b4 (128 bytes)\n; \n; 5 xrefs:\n; > EditorUI::init @ 0x7d1000\n; > EditorUI::handleEditorAction @ 0xbd7d2c\n; > <???> @ 0xcdcc0\n; > EditorUI::init @ 0x7cf4f4\n; > <???> @ 0x15460e8\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 12:54:06 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x7c0234\nMOV             X29, SP                                                ; +0x4, 0x7c0238\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x7c023c\nMOV             X19, X0                                                ; +0xc, 0x7c0240\nLDRB            W0, [X0,#0x360]                                        ; +0x10, 0x7c0244\nLDR             X1, [X19,#0x3C0]                                       ; +0x14, 0x7c0248\nEOR             W0, W0, #1                                             ; +0x18, 0x7c024c\nSTRB            W0, [X19,#0x360]                                       ; +0x1c, 0x7c0250\nMOV             X0, X1                                                 ; +0x20, 0x7c0254\nLDR             X1, [X1]                                               ; +0x24, 0x7c0258\nLDR             X1, [X1,#0x430]                                        ; +0x28, 0x7c025c\nBLR             X1                                                     ; +0x2c, 0x7c0260\nLDRB            W1, [X19,#0x360]                                       ; +0x30, 0x7c0264\nCBZ             W1, loc_7C02A4                                         ; +0x34, 0x7c0268\nADRL            X1, aGjButton02Png; \"GJ_button_02.png\"                 ; +0x38, 0x7c026c\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x40, 0x7c0274\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x44, 0x7c0278\nLDRB            W2, [X19,#0x360]; bool                                 ; +0x48, 0x7c027c\nADRL            X1, a0004; \"0004\"                                      ; +0x4c, 0x7c0280\nBL              _ZN11GameManager15setGameVariableEPKcb; GameManager::setGameVariable(char const*,bool) ; +0x54, 0x7c0288\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x58, 0x7c028c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x5c, 0x7c0290\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0x7c0294\nMOV             W1, #0xBF; int                                         ; +0x64, 0x7c0298\nMOV             W2, #0xBD; int                                         ; +0x68, 0x7c029c\nB               _ZN16EditorSFXManager10playActionEii; EditorSFXManager::playAction(int,int) ; +0x6c, 0x7c02a0\nADRL            X1, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x70, 0x7c02a4\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x78, 0x7c02ac\nB               loc_7C0278                                             ; +0x7c, 0x7c02b0", "xrefs": ["EditorUI::init @ 0x7d1000", "EditorUI::handleEditorAction @ 0xbd7d2c", "<???> @ 0xcdcc0", "EditorUI::init @ 0x7cf4f4", "<???> @ 0x15460e8"], "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"}