{"type": "func", "start": 4299624108, "end": 4299624272, "name": "EditorUI::toggleEnableRotate", "pseudocode": "// \n// EditorUI::toggleEnableRotate from 0x100470eac to 0x100470f50 (164 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x10016320c\n// > EditorUI::init @ 0x100470964\n// > EditorUI::init @ 0x10046ee50\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::toggleEnableRotate(__int64 a1)\n{\n  __int64 v2; // x0\n  _BOOL4 v3; // w21\n  __int64 v4; // x0\n  __n128 v5; // q0\n  __int64 v6; // x0\n  __int64 v7; // x0\n\n  v2 = GameManager::sharedState();\n  v3 = !GameManager::getGameVariable(v2, \"0007\");\n  v4 = GameManager::sharedState();\n  GameManager::setGameVariable(v4, \"0007\", v3);\n  v6 = EditorSFXManager::sharedState(v5);\n  EditorSFXManager::playAction(v6, 193, 189);\n  v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 984) + 1072LL))(*(_QWORD *)(a1 + 984));\n  if ( v3 )\n  {\n    ButtonSprite::updateBGImage(v7, (__int64)\"GJ_button_02.png\");\n    return EditorUI::toggleSpecialEditButtons(a1, 1);\n  }\n  else\n  {\n    ButtonSprite::updateBGImage(v7, (__int64)\"GJ_button_01.png\");\n    return EditorUI::deactivateRotationControl(a1);\n  }\n}", "assembly": "; \n; EditorUI::toggleEnableRotate from 0x100470eac to 0x100470f50 (164 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x10016320c\n; > EditorUI::init @ 0x100470964\n; > EditorUI::init @ 0x10046ee50\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100470eac\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100470eb0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100470eb4\nADD             X29, SP, #0x20                                         ; +0xc, 0x100470eb8\nMOV             X19, X0                                                ; +0x10, 0x100470ebc\nBL              GameManager__sharedState                               ; +0x14, 0x100470ec0\nADRL            X20, a0007; \"0007\"                                     ; +0x18, 0x100470ec4\nMOV             X1, X20                                                ; +0x20, 0x100470ecc\nBL              GameManager__getGameVariable                           ; +0x24, 0x100470ed0\nEOR             W21, W0, #1                                            ; +0x28, 0x100470ed4\nBL              GameManager__sharedState                               ; +0x2c, 0x100470ed8\nMOV             X1, X20                                                ; +0x30, 0x100470edc\nMOV             X2, X21                                                ; +0x34, 0x100470ee0\nBL              GameManager__setGameVariable                           ; +0x38, 0x100470ee4\nBL              EditorSFXManager__sharedState                          ; +0x3c, 0x100470ee8\nMOV             W1, #0xC1                                              ; +0x40, 0x100470eec\nMOV             W2, #0xBD                                              ; +0x44, 0x100470ef0\nBL              EditorSFXManager__playAction                           ; +0x48, 0x100470ef4\nLDR             X0, [X19,#0x3D8]                                       ; +0x4c, 0x100470ef8\nLDR             X8, [X0]                                               ; +0x50, 0x100470efc\nLDR             X8, [X8,#0x430]                                        ; +0x54, 0x100470f00\nBLR             X8                                                     ; +0x58, 0x100470f04\nTBNZ            W21, #0, loc_100470F2C                                 ; +0x5c, 0x100470f08\nADRL            X1, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x60, 0x100470f0c\nBL              ButtonSprite__updateBGImage                            ; +0x68, 0x100470f14\nMOV             X0, X19                                                ; +0x6c, 0x100470f18\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x100470f1c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x100470f20\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x78, 0x100470f24\nB               EditorUI__deactivateRotationControl                    ; +0x7c, 0x100470f28\nADRL            X1, aGjButton02Png; \"GJ_button_02.png\"                 ; +0x80, 0x100470f2c\nBL              ButtonSprite__updateBGImage                            ; +0x88, 0x100470f34\nMOV             X0, X19                                                ; +0x8c, 0x100470f38\nMOV             W1, #1                                                 ; +0x90, 0x100470f3c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x94, 0x100470f40\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x98, 0x100470f44\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x9c, 0x100470f48\nB               EditorUI__toggleSpecialEditButtons                     ; +0xa0, 0x100470f4c", "xrefs": ["EditorUI::handleEditorAction @ 0x10016320c", "EditorUI::init @ 0x100470964", "EditorUI::init @ 0x10046ee50"], "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"}