{"type": "func", "start": 12591904, "end": 12592296, "name": "EditorUI::activateRotationControl", "pseudocode": "// \n// EditorUI::activateRotationControl from 0xc02320 to 0xc024a8 (392 bytes)\n// \n// 8 xrefs:\n// > EditorUI::toggleSpecialEditButtons @ 0x7c8038\n// > EditorUI::undoLastAction @ 0x7d1f04\n// > EditorUI::redoLastAction @ 0x7d1f70\n// > EditorUI::moveObjectCall @ 0xc025b8\n// > EditorUI::updateControlsAfterAlign @ 0xc02a8c\n// > <???> @ 0x101a58\n// > EditorUI::createMoveMenu @ 0xbe14a4\n// > <???> @ 0x1547e00\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 13:03:49 +0000\n// \n\n__int64 __fastcall EditorUI::activateRotationControl(GJRotationControl **this, cocos2d::CCObject *a2)\n{\n  __int64 v4; // x21\n  void (__fastcall *v5)(__int64, __int64); // x22\n  __int64 v6; // x0\n  __int64 v7; // x21\n  void (__fastcall *v8)(__int64, float); // x22\n  float v9; // s0\n  long double v10; // q0\n  _BYTE v11[8]; // [xsp+30h] [xbp+30h] BYREF\n\n  if ( ((unsigned int)cocos2d::CCArray::count(*(this + 112)) || *(this + 187))\n    && (!(*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 95) + 352LL))(*(this + 95))\n     || *((_BYTE *)this + 776)) )\n  {\n    EditorUI::deactivateTransformControl((EditorUI *)this);\n    *((_BYTE *)this + 776) = 0;\n    if ( (unsigned int)cocos2d::CCArray::count(*(this + 112)) )\n    {\n      EditorUI::getGroupCenter((cocos2d::CCPoint *)v11, *(this + 112), 0);\n      *(__n128 *)&v10 = cocos2d::CCPoint::operator=(this + 96, v11);\n      (*(void (__fastcall **)(_QWORD, char *, long double))(*(_QWORD *)*(this + 95) + 184LL))(\n        *(this + 95),\n        (char *)this + 768,\n        v10);\n    }\n    else\n    {\n      v4 = (__int64)*(this + 95);\n      v5 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 184LL);\n      v6 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 187) + 192LL))(*(this + 187));\n      v5(v4, v6);\n    }\n    v7 = (__int64)*(this + 95);\n    v8 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL);\n    v9 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)*(this + 180) + 490) + 168LL))(*((_QWORD *)*(this + 180) + 490));\n    v8(v7, 1.0 / v9);\n    if ( !(*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 95) + 352LL))(*(this + 95)) )\n      GJRotationControl::setAngle(*(this + 95), 0.0);\n    (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 95) + 344LL))(*(this + 95), 1);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::activateRotationControl from 0xc02320 to 0xc024a8 (392 bytes)\n; \n; 8 xrefs:\n; > EditorUI::toggleSpecialEditButtons @ 0x7c8038\n; > EditorUI::undoLastAction @ 0x7d1f04\n; > EditorUI::redoLastAction @ 0x7d1f70\n; > EditorUI::moveObjectCall @ 0xc025b8\n; > EditorUI::updateControlsAfterAlign @ 0xc02a8c\n; > <???> @ 0x101a58\n; > EditorUI::createMoveMenu @ 0xbe14a4\n; > <???> @ 0x1547e00\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 13:03:49 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xc02320\nMOV             X29, SP                                                ; +0x4, 0xc02324\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xc02328\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc0232c\nMOV             X19, X0                                                ; +0x10, 0xc02330\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0xc02334\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xc02338\nLDR             X0, [X0,#0x380]; this                                  ; +0x1c, 0xc0233c\nLDR             X1, [X1]                                               ; +0x20, 0xc02340\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x24, 0xc02344\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0xc02348\nCBNZ            W0, loc_C02358                                         ; +0x2c, 0xc0234c\nLDR             X0, [X19,#0x5D8]                                       ; +0x30, 0xc02350\nCBZ             X0, loc_C0237C                                         ; +0x34, 0xc02354\nLDR             X1, [X19,#0x2F8]                                       ; +0x38, 0xc02358\nMOV             X0, X1                                                 ; +0x3c, 0xc0235c\nLDR             X1, [X1]                                               ; +0x40, 0xc02360\nLDR             X1, [X1,#0x160]                                        ; +0x44, 0xc02364\nBLR             X1                                                     ; +0x48, 0xc02368\nUXTB            W0, W0                                                 ; +0x4c, 0xc0236c\nCBZ             W0, loc_C023A0                                         ; +0x50, 0xc02370\nLDRB            W0, [X19,#0x308]                                       ; +0x54, 0xc02374\nCBNZ            W0, loc_C023A0                                         ; +0x58, 0xc02378\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x5c, 0xc0237c\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x60, 0xc02380\nLDR             X0, [X20]                                              ; +0x64, 0xc02384\nCMP             X1, X0                                                 ; +0x68, 0xc02388\nB.NE            loc_C024A4                                             ; +0x6c, 0xc0238c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x70, 0xc02390\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x74, 0xc02394\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x78, 0xc02398\nRET                                                                    ; +0x7c, 0xc0239c\nMOV             X0, X19; this                                          ; +0x80, 0xc023a0\nBL              _ZN8EditorUI26deactivateTransformControlEv; EditorUI::deactivateTransformControl(void) ; +0x84, 0xc023a4\nSTRB            WZR, [X19,#0x308]                                      ; +0x88, 0xc023a8\nLDR             X0, [X19,#0x380]; this                                 ; +0x8c, 0xc023ac\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x90, 0xc023b0\nCBNZ            W0, loc_C02450                                         ; +0x94, 0xc023b4\nLDR             X1, [X19,#0x5D8]                                       ; +0x98, 0xc023b8\nLDR             X21, [X19,#0x2F8]                                      ; +0x9c, 0xc023bc\nMOV             X0, X1                                                 ; +0xa0, 0xc023c0\nLDR             X1, [X1]                                               ; +0xa4, 0xc023c4\nLDR             X2, [X21]                                              ; +0xa8, 0xc023c8\nLDR             X1, [X1,#0xC0]                                         ; +0xac, 0xc023cc\nLDR             X22, [X2,#0xB8]                                        ; +0xb0, 0xc023d0\nBLR             X1                                                     ; +0xb4, 0xc023d4\nMOV             X1, X0                                                 ; +0xb8, 0xc023d8\nMOV             X0, X21                                                ; +0xbc, 0xc023dc\nBLR             X22                                                    ; +0xc0, 0xc023e0\nLDR             X0, [X19,#0x5A0]                                       ; +0xc4, 0xc023e4\nLDR             X21, [X19,#0x2F8]                                      ; +0xc8, 0xc023e8\nLDR             X1, [X0,#0xF50]                                        ; +0xcc, 0xc023ec\nLDR             X2, [X21]                                              ; +0xd0, 0xc023f0\nMOV             X0, X1                                                 ; +0xd4, 0xc023f4\nLDR             X1, [X1]                                               ; +0xd8, 0xc023f8\nLDR             X22, [X2,#0xA0]                                        ; +0xdc, 0xc023fc\nLDR             X1, [X1,#0xA8]                                         ; +0xe0, 0xc02400\nBLR             X1                                                     ; +0xe4, 0xc02404\nFMOV            S1, #1.0                                               ; +0xe8, 0xc02408\nMOV             X0, X21                                                ; +0xec, 0xc0240c\nFDIV            S0, S1, S0                                             ; +0xf0, 0xc02410\nBLR             X22                                                    ; +0xf4, 0xc02414\nLDR             X1, [X19,#0x2F8]                                       ; +0xf8, 0xc02418\nMOV             X0, X1                                                 ; +0xfc, 0xc0241c\nLDR             X1, [X1]                                               ; +0x100, 0xc02420\nLDR             X1, [X1,#0x160]                                        ; +0x104, 0xc02424\nBLR             X1                                                     ; +0x108, 0xc02428\nUXTB            W0, W0                                                 ; +0x10c, 0xc0242c\nCBZ             W0, loc_C02494                                         ; +0x110, 0xc02430\nLDR             X2, [X19,#0x2F8]                                       ; +0x114, 0xc02434\nMOV             W1, #1                                                 ; +0x118, 0xc02438\nMOV             X0, X2                                                 ; +0x11c, 0xc0243c\nLDR             X2, [X2]                                               ; +0x120, 0xc02440\nLDR             X2, [X2,#0x158]                                        ; +0x124, 0xc02444\nBLR             X2                                                     ; +0x128, 0xc02448\nB               loc_C0237C                                             ; +0x12c, 0xc0244c\nADD             X22, X29, #0x40+var_10                                 ; +0x130, 0xc02450\nLDR             X1, [X19,#0x380]; cocos2d::CCArray *                   ; +0x134, 0xc02454\nMOV             X8, X22                                                ; +0x138, 0xc02458\nMOV             W2, #0; bool                                           ; +0x13c, 0xc0245c\nMOV             X0, X19; this                                          ; +0x140, 0xc02460\nADD             X21, X19, #0x300                                       ; +0x144, 0xc02464\nBL              _ZN8EditorUI14getGroupCenterEPN7cocos2d7CCArrayEb; EditorUI::getGroupCenter(cocos2d::CCArray *,bool) ; +0x148, 0xc02468\nMOV             X1, X22                                                ; +0x14c, 0xc0246c\nMOV             X0, X21                                                ; +0x150, 0xc02470\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x154, 0xc02474\nLDR             X2, [X19,#0x2F8]                                       ; +0x158, 0xc02478\nMOV             X1, X21                                                ; +0x15c, 0xc0247c\nMOV             X0, X2                                                 ; +0x160, 0xc02480\nLDR             X2, [X2]                                               ; +0x164, 0xc02484\nLDR             X2, [X2,#0xB8]                                         ; +0x168, 0xc02488\nBLR             X2                                                     ; +0x16c, 0xc0248c\nB               loc_C023E4                                             ; +0x170, 0xc02490\nFMOV            S0, WZR; float                                         ; +0x174, 0xc02494\nLDR             X0, [X19,#0x2F8]; this                                 ; +0x178, 0xc02498\nBL              _ZN17GJRotationControl8setAngleEf; GJRotationControl::setAngle(float) ; +0x17c, 0xc0249c\nB               loc_C02434                                             ; +0x180, 0xc024a0\nBL              .__stack_chk_fail                                      ; +0x184, 0xc024a4", "xrefs": ["EditorUI::toggleSpecialEditButtons @ 0x7c8038", "EditorUI::undoLastAction @ 0x7d1f04", "EditorUI::redoLastAction @ 0x7d1f70", "EditorUI::moveObjectCall @ 0xc025b8", "EditorUI::updateControlsAfterAlign @ 0xc02a8c", "<???> @ 0x101a58", "EditorUI::createMoveMenu @ 0xbe14a4", "<???> @ 0x1547e00"], "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"}