{"type": "func", "start": 4295016048, "end": 4295016146, "name": "EditorUI::toggleFreeMove", "pseudocode": "// \n// EditorUI::toggleFreeMove from 0x10000be70 to 0x10000bed2 (98 bytes)\n// \n// 2 xrefs:\n// > EditorUI::keyDown @ 0x100050d87\n// > EditorUI::init @ 0x100009a2d\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 __fastcall EditorUI::toggleFreeMove(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  ButtonSprite *v2; // rax\n  const char *v3; // rsi\n  GameManager *v4; // rax\n\n  a1->m_freeMoveEnabled ^= 1u;\n  v2 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCObject *))a1->m_freeMoveBtn->getNormalImage)(\n                         a1->m_freeMoveBtn,\n                         a2);\n  v3 = \"GJ_button_01.png\";\n  if ( a1->m_freeMoveEnabled )\n    v3 = \"GJ_button_02.png\";\n  ButtonSprite::updateBGImage(v2, v3);\n  v4 = GameManager::sharedState();\n  GameManager::setGameVariable(v4, \"0004\", a1->m_freeMoveEnabled);\n}", "assembly": "; \n; EditorUI::toggleFreeMove from 0x10000be70 to 0x10000bed2 (98 bytes)\n; \n; 2 xrefs:\n; > EditorUI::keyDown @ 0x100050d87\n; > EditorUI::init @ 0x100009a2d\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\npush    rbp                                                            ; +0x0, 0x10000be70\nmov     rbp, rsp                                                       ; +0x1, 0x10000be71\npush    rbx                                                            ; +0x4, 0x10000be74\npush    rax                                                            ; +0x5, 0x10000be75\nmov     rbx, rdi                                                       ; +0x6, 0x10000be76\nxor     byte ptr [rdi+308h], 1                                         ; +0x9, 0x10000be79\nmov     rdi, [rdi+360h]                                                ; +0x10, 0x10000be80\nmov     rax, [rdi]                                                     ; +0x17, 0x10000be87\ncall    qword ptr [rax+420h]                                           ; +0x1a, 0x10000be8a\nlea     rcx, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x20, 0x10000be90\nlea     rsi, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x27, 0x10000be97\ncmp     byte ptr [rbx+308h], 0                                         ; +0x2e, 0x10000be9e\ncmovnz  rsi, rcx                                                       ; +0x35, 0x10000bea5\nmov     rdi, rax                                                       ; +0x39, 0x10000bea9\ncall    ButtonSprite__updateBGImage                                    ; +0x3c, 0x10000beac\ncall    GameManager__sharedState                                       ; +0x41, 0x10000beb1\nmovzx   edx, byte ptr [rbx+308h]                                       ; +0x46, 0x10000beb6\nlea     rsi, a0004; \"0004\"                                             ; +0x4d, 0x10000bebd\nmov     rdi, rax                                                       ; +0x54, 0x10000bec4\nadd     rsp, 8                                                         ; +0x57, 0x10000bec7\npop     rbx                                                            ; +0x5b, 0x10000becb\npop     rbp                                                            ; +0x5c, 0x10000becc\njmp     GameManager__setGameVariable                                   ; +0x5d, 0x10000becd", "xrefs": ["EditorUI::keyDown @ 0x100050d87", "EditorUI::init @ 0x100009a2d"], "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"}