{"type": "func", "start": 7031912, "end": 7032260, "name": "EditorUI::activateRotationControl", "pseudocode": "// \n// EditorUI::activateRotationControl from 0x6b4c68 to 0x6b4dc4 (348 bytes)\n// \n// 7 xrefs:\n// > EditorUI::toggleSpecialEditButtons @ 0x6b4fbc\n// > EditorUI::moveObjectCall @ 0x6b9448\n// > EditorUI::undoLastAction @ 0x6c11ac\n// > EditorUI::redoLastAction @ 0x6c1214\n// > <???> @ 0xc6030\n// > EditorUI::createMoveMenu @ 0x68b4f8\n// > <???> @ 0x122ee28\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 EditorUI::activateRotationControl(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GJRotationControl *m_rotationControl; // x21\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22\n  const cocos2d::CCPoint *v5; // x0\n  GJRotationControl *v6; // x21\n  void (__fastcall *setScale)(cocos2d::CCNode *__hidden, float); // x22\n  float v8; // s0\n  cocos2d::CCPoint GroupCenter; // 0:kr00_8.8\n\n  if ( ((unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) || a1->m_selectedObject)\n    && (!a1->m_rotationControl->isVisible(a1->m_rotationControl) || a1->m_canActivateControls) )\n  {\n    EditorUI::deactivateTransformControl(a1);\n    a1->m_canActivateControls = 0;\n    if ( (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) )\n    {\n      GroupCenter = EditorUI::getGroupCenter(a1, a1->m_selectedObjects, 0);\n      cocos2d::CCPoint::operator=(&a1->m_pivotPoint, GroupCenter.x, GroupCenter.y);\n      a1->m_rotationControl->setPosition(a1->m_rotationControl, &a1->m_pivotPoint);\n    }\n    else\n    {\n      m_rotationControl = a1->m_rotationControl;\n      setPosition = m_rotationControl->setPosition;\n      v5 = a1->m_selectedObject->getPosition(a1->m_selectedObject);\n      setPosition(m_rotationControl, v5);\n    }\n    v6 = a1->m_rotationControl;\n    setScale = v6->setScale;\n    v8 = a1->m_editorLayer->m_objectLayer->getScale(a1->m_editorLayer->m_objectLayer);\n    setScale(v6, 1.0 / v8);\n    a1->m_rotationControl->setVisible(a1->m_rotationControl, 1);\n  }\n}", "assembly": "; \n; EditorUI::activateRotationControl from 0x6b4c68 to 0x6b4dc4 (348 bytes)\n; \n; 7 xrefs:\n; > EditorUI::toggleSpecialEditButtons @ 0x6b4fbc\n; > EditorUI::moveObjectCall @ 0x6b9448\n; > EditorUI::undoLastAction @ 0x6c11ac\n; > EditorUI::redoLastAction @ 0x6c1214\n; > <???> @ 0xc6030\n; > EditorUI::createMoveMenu @ 0x68b4f8\n; > <???> @ 0x122ee28\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x6b4c68\nMOV             X29, SP                                                ; +0x4, 0x6b4c6c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x6b4c70\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6b4c74\nMOV             X19, X0                                                ; +0x10, 0x6b4c78\nLDR             X0, [X0,#0x338]; this                                  ; +0x14, 0x6b4c7c\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x18, 0x6b4c80\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6b4c84\nLDR             X1, [X1]                                               ; +0x20, 0x6b4c88\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x24, 0x6b4c8c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x6b4c90\nCBNZ            W0, loc_6B4CA0                                         ; +0x2c, 0x6b4c94\nLDR             X0, [X19,#0x530]                                       ; +0x30, 0x6b4c98\nCBZ             X0, loc_6B4CC4                                         ; +0x34, 0x6b4c9c\nLDR             X1, [X19,#0x2B0]                                       ; +0x38, 0x6b4ca0\nMOV             X0, X1                                                 ; +0x3c, 0x6b4ca4\nLDR             X1, [X1]                                               ; +0x40, 0x6b4ca8\nLDR             X1, [X1,#0x150]                                        ; +0x44, 0x6b4cac\nBLR             X1                                                     ; +0x48, 0x6b4cb0\nUXTB            W0, W0                                                 ; +0x4c, 0x6b4cb4\nCBZ             W0, loc_6B4CE8                                         ; +0x50, 0x6b4cb8\nLDRB            W0, [X19,#0x2C0]                                       ; +0x54, 0x6b4cbc\nCBNZ            W0, loc_6B4CE8                                         ; +0x58, 0x6b4cc0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x5c, 0x6b4cc4\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x60, 0x6b4cc8\nLDR             X0, [X20]                                              ; +0x64, 0x6b4ccc\nCMP             X1, X0                                                 ; +0x68, 0x6b4cd0\nB.NE            loc_6B4DC0                                             ; +0x6c, 0x6b4cd4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x70, 0x6b4cd8\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x74, 0x6b4cdc\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x78, 0x6b4ce0\nRET                                                                    ; +0x7c, 0x6b4ce4\nMOV             X0, X19; this                                          ; +0x80, 0x6b4ce8\nBL              _ZN8EditorUI26deactivateTransformControlEv; EditorUI::deactivateTransformControl(void) ; +0x84, 0x6b4cec\nSTRB            WZR, [X19,#0x2C0]                                      ; +0x88, 0x6b4cf0\nLDR             X0, [X19,#0x338]; this                                 ; +0x8c, 0x6b4cf4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x90, 0x6b4cf8\nCBNZ            W0, loc_6B4D7C                                         ; +0x94, 0x6b4cfc\nLDR             X1, [X19,#0x530]                                       ; +0x98, 0x6b4d00\nLDR             X21, [X19,#0x2B0]                                      ; +0x9c, 0x6b4d04\nMOV             X0, X1                                                 ; +0xa0, 0x6b4d08\nLDR             X1, [X1]                                               ; +0xa4, 0x6b4d0c\nLDR             X2, [X21]                                              ; +0xa8, 0x6b4d10\nLDR             X1, [X1,#0xC0]                                         ; +0xac, 0x6b4d14\nLDR             X22, [X2,#0xB8]                                        ; +0xb0, 0x6b4d18\nBLR             X1                                                     ; +0xb4, 0x6b4d1c\nMOV             X1, X0                                                 ; +0xb8, 0x6b4d20\nMOV             X0, X21                                                ; +0xbc, 0x6b4d24\nBLR             X22                                                    ; +0xc0, 0x6b4d28\nLDR             X0, [X19,#0x4F8]                                       ; +0xc4, 0x6b4d2c\nLDR             X21, [X19,#0x2B0]                                      ; +0xc8, 0x6b4d30\nLDR             X1, [X0,#0x1030]                                       ; +0xcc, 0x6b4d34\nLDR             X2, [X21]                                              ; +0xd0, 0x6b4d38\nMOV             X0, X1                                                 ; +0xd4, 0x6b4d3c\nLDR             X1, [X1]                                               ; +0xd8, 0x6b4d40\nLDR             X22, [X2,#0xA0]                                        ; +0xdc, 0x6b4d44\nLDR             X1, [X1,#0xA8]                                         ; +0xe0, 0x6b4d48\nBLR             X1                                                     ; +0xe4, 0x6b4d4c\nFMOV            S1, #1.0                                               ; +0xe8, 0x6b4d50\nMOV             X0, X21                                                ; +0xec, 0x6b4d54\nFDIV            S0, S1, S0                                             ; +0xf0, 0x6b4d58\nBLR             X22                                                    ; +0xf4, 0x6b4d5c\nLDR             X2, [X19,#0x2B0]                                       ; +0xf8, 0x6b4d60\nMOV             W1, #1                                                 ; +0xfc, 0x6b4d64\nMOV             X0, X2                                                 ; +0x100, 0x6b4d68\nLDR             X2, [X2]                                               ; +0x104, 0x6b4d6c\nLDR             X2, [X2,#0x148]                                        ; +0x108, 0x6b4d70\nBLR             X2                                                     ; +0x10c, 0x6b4d74\nB               loc_6B4CC4                                             ; +0x110, 0x6b4d78\nADD             X22, X29, #0x40+var_10                                 ; +0x114, 0x6b4d7c\nLDR             X1, [X19,#0x338]; cocos2d::CCArray *                   ; +0x118, 0x6b4d80\nMOV             X8, X22                                                ; +0x11c, 0x6b4d84\nMOV             W2, #0; bool                                           ; +0x120, 0x6b4d88\nMOV             X0, X19; this                                          ; +0x124, 0x6b4d8c\nADD             X21, X19, #0x2B8                                       ; +0x128, 0x6b4d90\nBL              _ZN8EditorUI14getGroupCenterEPN7cocos2d7CCArrayEb; EditorUI::getGroupCenter(cocos2d::CCArray *,bool) ; +0x12c, 0x6b4d94\nMOV             X1, X22                                                ; +0x130, 0x6b4d98\nMOV             X0, X21                                                ; +0x134, 0x6b4d9c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x138, 0x6b4da0\nLDR             X2, [X19,#0x2B0]                                       ; +0x13c, 0x6b4da4\nMOV             X1, X21                                                ; +0x140, 0x6b4da8\nMOV             X0, X2                                                 ; +0x144, 0x6b4dac\nLDR             X2, [X2]                                               ; +0x148, 0x6b4db0\nLDR             X2, [X2,#0xB8]                                         ; +0x14c, 0x6b4db4\nBLR             X2                                                     ; +0x150, 0x6b4db8\nB               loc_6B4D2C                                             ; +0x154, 0x6b4dbc\nBL              .__stack_chk_fail                                      ; +0x158, 0x6b4dc0", "xrefs": ["EditorUI::toggleSpecialEditButtons @ 0x6b4fbc", "EditorUI::moveObjectCall @ 0x6b9448", "EditorUI::undoLastAction @ 0x6c11ac", "EditorUI::redoLastAction @ 0x6c1214", "<???> @ 0xc6030", "EditorUI::createMoveMenu @ 0x68b4f8", "<???> @ 0x122ee28"], "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"}