{"type": "func", "start": 4294999888, "end": 4295000009, "name": "EditorUI::toggleFreeMove", "pseudocode": "// \n// EditorUI::toggleFreeMove from 0x100007f50 to 0x100007fc9 (121 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060c409\n// > EditorUI::init @ 0x100005c77\n// \n// This function is hookable on this platform (idp: pc, 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:18:48 +0000\n// \n\n__int64 __fastcall EditorUI::toggleFreeMove(__int64 a1)\n{\n  __int64 v2; // rax\n  const char *v3; // rsi\n  __int64 v4; // rdi\n  __int64 v5; // rdx\n  __int64 v6; // rax\n  __int64 v7; // rax\n\n  *(_BYTE *)(a1 + 864) ^= 1u;\n  v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 960) + 1072LL))(*(_QWORD *)(a1 + 960));\n  v3 = \"GJ_button_01.png\";\n  if ( *(_BYTE *)(a1 + 864) )\n    v3 = \"GJ_button_02.png\";\n  v4 = v2;\n  ButtonSprite::updateBGImage(v2, v3);\n  v6 = GameManager::sharedState(v4, v3, v5);\n  GameManager::setGameVariable(v6, \"0004\", *(unsigned __int8 *)(a1 + 864));\n  v7 = EditorSFXManager::sharedState();\n  return EditorSFXManager::playAction(v7, 191, 189);\n}", "assembly": "; \n; EditorUI::toggleFreeMove from 0x100007f50 to 0x100007fc9 (121 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060c409\n; > EditorUI::init @ 0x100005c77\n; \n; This function is hookable on this platform (idp: pc, 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:18:48 +0000\n; \npush    rbp                                                            ; +0x0, 0x100007f50\nmov     rbp, rsp                                                       ; +0x1, 0x100007f51\npush    rbx                                                            ; +0x4, 0x100007f54\npush    rax                                                            ; +0x5, 0x100007f55\nmov     rbx, rdi                                                       ; +0x6, 0x100007f56\nxor     byte ptr [rdi+360h], 1                                         ; +0x9, 0x100007f59\nmov     rdi, [rdi+3C0h]                                                ; +0x10, 0x100007f60\nmov     rax, [rdi]                                                     ; +0x17, 0x100007f67\ncall    qword ptr [rax+430h]                                           ; +0x1a, 0x100007f6a\nlea     rcx, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x20, 0x100007f70\nlea     rsi, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x27, 0x100007f77\ncmp     byte ptr [rbx+360h], 0                                         ; +0x2e, 0x100007f7e\ncmovnz  rsi, rcx                                                       ; +0x35, 0x100007f85\nmov     rdi, rax                                                       ; +0x39, 0x100007f89\ncall    ButtonSprite__updateBGImage                                    ; +0x3c, 0x100007f8c\ncall    GameManager__sharedState                                       ; +0x41, 0x100007f91\nmovzx   edx, byte ptr [rbx+360h]                                       ; +0x46, 0x100007f96\nlea     rsi, a0004; \"0004\"                                             ; +0x4d, 0x100007f9d\nmov     rdi, rax                                                       ; +0x54, 0x100007fa4\ncall    GameManager__setGameVariable                                   ; +0x57, 0x100007fa7\ncall    EditorSFXManager__sharedState                                  ; +0x5c, 0x100007fac\nmov     rdi, rax                                                       ; +0x61, 0x100007fb1\nmov     esi, 0BFh                                                      ; +0x64, 0x100007fb4\nmov     edx, 0BDh                                                      ; +0x69, 0x100007fb9\nadd     rsp, 8                                                         ; +0x6e, 0x100007fbe\npop     rbx                                                            ; +0x72, 0x100007fc2\npop     rbp                                                            ; +0x73, 0x100007fc3\njmp     EditorSFXManager__playAction                                   ; +0x74, 0x100007fc4", "xrefs": ["EditorUI::handleEditorAction @ 0x10060c409", "EditorUI::init @ 0x100005c77"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}