{"type": "func", "start": 4295000160, "end": 4295000341, "name": "EditorUI::toggleEnableRotate", "pseudocode": "// \n// EditorUI::toggleEnableRotate from 0x100008060 to 0x100008115 (181 bytes)\n// \n// 3 xrefs:\n// > EditorUI::init @ 0x100007a13\n// > EditorUI::handleEditorAction @ 0x10060c778\n// > EditorUI::init @ 0x100005d18\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::toggleEnableRotate(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v4; // rdi\n  __int64 v5; // rdx\n  unsigned __int8 v6; // r15\n  __int64 v7; // rdi\n  __int64 v8; // rax\n  __int64 v9; // rax\n\n  v4 = GameManager::sharedState(a1, a2, a3);\n  v6 = GameManager::getGameVariable(v4, \"0007\") ^ 1;\n  v7 = GameManager::sharedState(v4, \"0007\", v5);\n  GameManager::setGameVariable(v7, \"0007\", v6);\n  v8 = EditorSFXManager::sharedState(v7);\n  EditorSFXManager::playAction(v8, 193, 189);\n  v9 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 984) + 1072LL))(*(_QWORD *)(a1 + 984));\n  if ( v6 )\n  {\n    ButtonSprite::updateBGImage(v9, \"GJ_button_02.png\");\n    return EditorUI::toggleSpecialEditButtons(a1, 1);\n  }\n  else\n  {\n    ButtonSprite::updateBGImage(v9, \"GJ_button_01.png\");\n    return EditorUI::deactivateRotationControl(a1);\n  }\n}", "assembly": "; \n; EditorUI::toggleEnableRotate from 0x100008060 to 0x100008115 (181 bytes)\n; \n; 3 xrefs:\n; > EditorUI::init @ 0x100007a13\n; > EditorUI::handleEditorAction @ 0x10060c778\n; > EditorUI::init @ 0x100005d18\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, 0x100008060\nmov     rbp, rsp                                                       ; +0x1, 0x100008061\npush    r15                                                            ; +0x4, 0x100008064\npush    r14                                                            ; +0x6, 0x100008066\npush    rbx                                                            ; +0x8, 0x100008068\npush    rax                                                            ; +0x9, 0x100008069\nmov     rbx, rdi                                                       ; +0xa, 0x10000806a\ncall    GameManager__sharedState                                       ; +0xd, 0x10000806d\nlea     r14, a0007; \"0007\"                                             ; +0x12, 0x100008072\nmov     rdi, rax                                                       ; +0x19, 0x100008079\nmov     rsi, r14                                                       ; +0x1c, 0x10000807c\ncall    GameManager__getGameVariable                                   ; +0x1f, 0x10000807f\nmov     r15d, eax                                                      ; +0x24, 0x100008084\nxor     r15b, 1                                                        ; +0x27, 0x100008087\ncall    GameManager__sharedState                                       ; +0x2b, 0x10000808b\nmovzx   r15d, r15b                                                     ; +0x30, 0x100008090\nmov     rdi, rax                                                       ; +0x34, 0x100008094\nmov     rsi, r14                                                       ; +0x37, 0x100008097\nmov     edx, r15d                                                      ; +0x3a, 0x10000809a\ncall    GameManager__setGameVariable                                   ; +0x3d, 0x10000809d\ncall    EditorSFXManager__sharedState                                  ; +0x42, 0x1000080a2\nmov     rdi, rax                                                       ; +0x47, 0x1000080a7\nmov     esi, 0C1h                                                      ; +0x4a, 0x1000080aa\nmov     edx, 0BDh                                                      ; +0x4f, 0x1000080af\ncall    EditorSFXManager__playAction                                   ; +0x54, 0x1000080b4\nmov     rdi, [rbx+3D8h]                                                ; +0x59, 0x1000080b9\nmov     rax, [rdi]                                                     ; +0x60, 0x1000080c0\ncall    qword ptr [rax+430h]                                           ; +0x63, 0x1000080c3\ntest    r15b, r15b                                                     ; +0x69, 0x1000080c9\njnz     short loc_1000080EF                                            ; +0x6c, 0x1000080cc\nlea     rsi, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x6e, 0x1000080ce\nmov     rdi, rax                                                       ; +0x75, 0x1000080d5\ncall    ButtonSprite__updateBGImage                                    ; +0x78, 0x1000080d8\nmov     rdi, rbx                                                       ; +0x7d, 0x1000080dd\nadd     rsp, 8                                                         ; +0x80, 0x1000080e0\npop     rbx                                                            ; +0x84, 0x1000080e4\npop     r14                                                            ; +0x85, 0x1000080e5\npop     r15                                                            ; +0x87, 0x1000080e7\npop     rbp                                                            ; +0x89, 0x1000080e9\njmp     EditorUI__deactivateRotationControl                            ; +0x8a, 0x1000080ea\nlea     rsi, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x8f, 0x1000080ef\nmov     rdi, rax                                                       ; +0x96, 0x1000080f6\ncall    ButtonSprite__updateBGImage                                    ; +0x99, 0x1000080f9\nmov     rdi, rbx                                                       ; +0x9e, 0x1000080fe\nmov     esi, 1                                                         ; +0xa1, 0x100008101\nadd     rsp, 8                                                         ; +0xa6, 0x100008106\npop     rbx                                                            ; +0xaa, 0x10000810a\npop     r14                                                            ; +0xab, 0x10000810b\npop     r15                                                            ; +0xad, 0x10000810d\npop     rbp                                                            ; +0xaf, 0x10000810f\njmp     EditorUI__toggleSpecialEditButtons                             ; +0xb0, 0x100008110", "xrefs": ["EditorUI::init @ 0x100007a13", "EditorUI::handleEditorAction @ 0x10060c778", "EditorUI::init @ 0x100005d18"], "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"}