{"type": "func", "start": 4299088792, "end": 4299089060, "name": "EditorUI::activateRotationControl", "pseudocode": "// \n// EditorUI::activateRotationControl from 0x1003ee398 to 0x1003ee4a4 (268 bytes)\n// \n// 5 xrefs:\n// > EditorUI::undoLastAction @ 0x1003c74a4\n// > EditorUI::redoLastAction @ 0x1003c7508\n// > EditorUI::toggleSpecialEditButtons @ 0x1003e6608\n// > EditorUI::moveObjectCall_1 @ 0x1003f6078\n// > EditorUI::createMoveMenu @ 0x1003f45fc\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::activateRotationControl(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  EditorUI *v3; // x0\n  __n128 v4; // q0\n  GJRotationControl *m_rotationControl; // x20\n  __int64 v6; // x1\n  __n128 v7; // q0\n  GJRotationControl *v8; // x20\n  float v9; // s0\n  double v10; // [xsp+8h] [xbp-18h] BYREF\n\n  if ( ((unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) || a1->m_selectedObject)\n    && (!((unsigned int (__fastcall *)(GJRotationControl *))a1->m_rotationControl->isVisible)(a1->m_rotationControl)\n     || a1->m_canActivateControls) )\n  {\n    EditorUI::deactivateTransformControl(a1);\n    a1->m_canActivateControls = 0;\n    v3 = (EditorUI *)sub_10024A36C((__int64)a1->m_selectedObjects);\n    if ( (_DWORD)v3 )\n    {\n      EditorUI::getGroupCenter(v3, a1->m_selectedObjects, 0);\n      v4.n128_f64[0] = sub_1000229D0(&a1->m_pivotPoint, &v10);\n      ((void (__fastcall *)(GJRotationControl *, cocos2d::CCPoint *, __n128))a1->m_rotationControl->setPosition)(\n        a1->m_rotationControl,\n        &a1->m_pivotPoint,\n        v4);\n    }\n    else\n    {\n      m_rotationControl = a1->m_rotationControl;\n      v6 = ((__int64 (__fastcall *)(GameObject *))a1->m_selectedObject->getPosition)(a1->m_selectedObject);\n      ((void (__fastcall *)(GJRotationControl *, __int64, __n128))m_rotationControl->setPosition)(\n        m_rotationControl,\n        v6,\n        v7);\n    }\n    v8 = a1->m_rotationControl;\n    v9 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer);\n    ((void (__fastcall *)(GJRotationControl *, float))v8->setScale)(v8, 1.0 / v9);\n    ((void (__fastcall *)(GJRotationControl *, __int64))a1->m_rotationControl->setVisible)(a1->m_rotationControl, 1);\n  }\n}", "assembly": "; \n; EditorUI::activateRotationControl from 0x1003ee398 to 0x1003ee4a4 (268 bytes)\n; \n; 5 xrefs:\n; > EditorUI::undoLastAction @ 0x1003c74a4\n; > EditorUI::redoLastAction @ 0x1003c7508\n; > EditorUI::toggleSpecialEditButtons @ 0x1003e6608\n; > EditorUI::moveObjectCall_1 @ 0x1003f6078\n; > EditorUI::createMoveMenu @ 0x1003f45fc\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1003ee398\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003ee39c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003ee3a0\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003ee3a4\nMOV             X19, X0                                                ; +0x10, 0x1003ee3a8\nLDR             X0, [X0,#0x328]                                        ; +0x14, 0x1003ee3ac\nBL              sub_10024A36C                                          ; +0x18, 0x1003ee3b0\nCBNZ            W0, loc_1003EE3C0                                      ; +0x1c, 0x1003ee3b4\nLDR             X8, [X19,#0x520]                                       ; +0x20, 0x1003ee3b8\nCBZ             X8, loc_1003EE494                                      ; +0x24, 0x1003ee3bc\nLDR             X0, [X19,#0x2A0]                                       ; +0x28, 0x1003ee3c0\nLDR             X8, [X0]                                               ; +0x2c, 0x1003ee3c4\nLDR             X8, [X8,#0x150]                                        ; +0x30, 0x1003ee3c8\nBLR             X8                                                     ; +0x34, 0x1003ee3cc\nCBZ             W0, loc_1003EE3E0                                      ; +0x38, 0x1003ee3d0\nLDRB            W8, [X19,#0x2B0]                                       ; +0x3c, 0x1003ee3d4\nCMP             W8, #1                                                 ; +0x40, 0x1003ee3d8\nB.NE            loc_1003EE494                                          ; +0x44, 0x1003ee3dc\nMOV             X0, X19                                                ; +0x48, 0x1003ee3e0\nBL              EditorUI__deactivateTransformControl                   ; +0x4c, 0x1003ee3e4\nSTRB            WZR, [X19,#0x2B0]                                      ; +0x50, 0x1003ee3e8\nLDR             X0, [X19,#0x328]                                       ; +0x54, 0x1003ee3ec\nBL              sub_10024A36C                                          ; +0x58, 0x1003ee3f0\nCBZ             W0, loc_1003EE428                                      ; +0x5c, 0x1003ee3f4\nLDR             X1, [X19,#0x328]                                       ; +0x60, 0x1003ee3f8\nADD             X8, SP, #0x20+var_18                                   ; +0x64, 0x1003ee3fc\nMOV             W2, #0                                                 ; +0x68, 0x1003ee400\nBL              EditorUI__getGroupCenter                               ; +0x6c, 0x1003ee404\nADD             X0, X19, #0x2A8                                        ; +0x70, 0x1003ee408\nADD             X1, SP, #0x20+var_18                                   ; +0x74, 0x1003ee40c\nBL              sub_1000229D0                                          ; +0x78, 0x1003ee410\nLDR             X0, [X19,#0x2A0]                                       ; +0x7c, 0x1003ee414\nLDR             X8, [X0]                                               ; +0x80, 0x1003ee418\nLDR             X8, [X8,#0xB8]                                         ; +0x84, 0x1003ee41c\nADD             X1, X19, #0x2A8                                        ; +0x88, 0x1003ee420\nB               loc_1003EE44C                                          ; +0x8c, 0x1003ee424\nLDR             X20, [X19,#0x2A0]                                      ; +0x90, 0x1003ee428\nLDR             X0, [X19,#0x520]                                       ; +0x94, 0x1003ee42c\nLDR             X8, [X0]                                               ; +0x98, 0x1003ee430\nLDR             X8, [X8,#0xC0]                                         ; +0x9c, 0x1003ee434\nBLR             X8                                                     ; +0xa0, 0x1003ee438\nMOV             X1, X0                                                 ; +0xa4, 0x1003ee43c\nLDR             X8, [X20]                                              ; +0xa8, 0x1003ee440\nLDR             X8, [X8,#0xB8]                                         ; +0xac, 0x1003ee444\nMOV             X0, X20                                                ; +0xb0, 0x1003ee448\nBLR             X8                                                     ; +0xb4, 0x1003ee44c\nLDR             X20, [X19,#0x2A0]                                      ; +0xb8, 0x1003ee450\nLDR             X8, [X19,#0x4E8]                                       ; +0xbc, 0x1003ee454\nLDR             X0, [X8,#0xEE0]                                        ; +0xc0, 0x1003ee458\nLDR             X8, [X0]                                               ; +0xc4, 0x1003ee45c\nLDR             X8, [X8,#0xA8]                                         ; +0xc8, 0x1003ee460\nBLR             X8                                                     ; +0xcc, 0x1003ee464\nFMOV            S1, #1.0                                               ; +0xd0, 0x1003ee468\nLDR             X8, [X20]                                              ; +0xd4, 0x1003ee46c\nLDR             X8, [X8,#0xA0]                                         ; +0xd8, 0x1003ee470\nFDIV            S0, S1, S0                                             ; +0xdc, 0x1003ee474\nMOV             X0, X20                                                ; +0xe0, 0x1003ee478\nBLR             X8                                                     ; +0xe4, 0x1003ee47c\nLDR             X0, [X19,#0x2A0]                                       ; +0xe8, 0x1003ee480\nLDR             X8, [X0]                                               ; +0xec, 0x1003ee484\nLDR             X8, [X8,#0x148]                                        ; +0xf0, 0x1003ee488\nMOV             W1, #1                                                 ; +0xf4, 0x1003ee48c\nBLR             X8                                                     ; +0xf8, 0x1003ee490\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xfc, 0x1003ee494\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x100, 0x1003ee498\nADD             SP, SP, #0x30 ; '0'                                    ; +0x104, 0x1003ee49c\nRET                                                                    ; +0x108, 0x1003ee4a0", "xrefs": ["EditorUI::undoLastAction @ 0x1003c74a4", "EditorUI::redoLastAction @ 0x1003c7508", "EditorUI::toggleSpecialEditButtons @ 0x1003e6608", "EditorUI::moveObjectCall_1 @ 0x1003f6078", "EditorUI::createMoveMenu @ 0x1003f45fc"], "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"}