{"type": "func", "start": 4299623856, "end": 4299623976, "name": "EditorUI::toggleFreeMove", "pseudocode": "// \n// EditorUI::toggleFreeMove from 0x100470db0 to 0x100470e28 (120 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x100162f4c\n// > EditorUI::init @ 0x100470954\n// > EditorUI::init @ 0x10046edd0\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 11:05:38 +0000\n// \n\n__int64 __fastcall EditorUI::toggleFreeMove(__int64 a1)\n{\n  __int64 v2; // x0\n  const char *v3; // x1\n  __int64 v4; // x0\n  __n128 v5; // q0\n  __int64 v6; // x0\n\n  *(_BYTE *)(a1 + 864) ^= 1u;\n  v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 960) + 1072LL))(*(_QWORD *)(a1 + 960));\n  if ( *(_BYTE *)(a1 + 864) )\n    v3 = \"GJ_button_02.png\";\n  else\n    v3 = \"GJ_button_01.png\";\n  ButtonSprite::updateBGImage(v2, (__int64)v3);\n  v4 = GameManager::sharedState();\n  GameManager::setGameVariable(v4, \"0004\", *(unsigned __int8 *)(a1 + 864));\n  v6 = EditorSFXManager::sharedState(v5);\n  return EditorSFXManager::playAction(v6, 191, 189);\n}", "assembly": "; \n; EditorUI::toggleFreeMove from 0x100470db0 to 0x100470e28 (120 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x100162f4c\n; > EditorUI::init @ 0x100470954\n; > EditorUI::init @ 0x10046edd0\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 11:05:38 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100470db0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100470db4\nADD             X29, SP, #0x10                                         ; +0x8, 0x100470db8\nMOV             X19, X0                                                ; +0xc, 0x100470dbc\nLDRB            W8, [X0,#0x360]                                        ; +0x10, 0x100470dc0\nEOR             W8, W8, #1                                             ; +0x14, 0x100470dc4\nSTRB            W8, [X0,#0x360]                                        ; +0x18, 0x100470dc8\nLDR             X0, [X0,#0x3C0]                                        ; +0x1c, 0x100470dcc\nLDR             X8, [X0]                                               ; +0x20, 0x100470dd0\nLDR             X8, [X8,#0x430]                                        ; +0x24, 0x100470dd4\nBLR             X8                                                     ; +0x28, 0x100470dd8\nLDRB            W8, [X19,#0x360]                                       ; +0x2c, 0x100470ddc\nADRL            X9, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x30, 0x100470de0\nADRL            X10, aGjButton02Png; \"GJ_button_02.png\"                ; +0x38, 0x100470de8\nCMP             W8, #0                                                 ; +0x40, 0x100470df0\nCSEL            X1, X10, X9, NE                                        ; +0x44, 0x100470df4\nBL              ButtonSprite__updateBGImage                            ; +0x48, 0x100470df8\nBL              GameManager__sharedState                               ; +0x4c, 0x100470dfc\nLDRB            W2, [X19,#0x360]                                       ; +0x50, 0x100470e00\nADRL            X1, a0004; \"0004\"                                      ; +0x54, 0x100470e04\nBL              GameManager__setGameVariable                           ; +0x5c, 0x100470e0c\nBL              EditorSFXManager__sharedState                          ; +0x60, 0x100470e10\nMOV             W1, #0xBF                                              ; +0x64, 0x100470e14\nMOV             W2, #0xBD                                              ; +0x68, 0x100470e18\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x6c, 0x100470e1c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x70, 0x100470e20\nB               EditorSFXManager__playAction                           ; +0x74, 0x100470e24", "xrefs": ["EditorUI::handleEditorAction @ 0x100162f4c", "EditorUI::init @ 0x100470954", "EditorUI::init @ 0x10046edd0"], "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"}