{"type": "func", "start": 7055216, "end": 7055760, "name": "EditorUI::updateTransformControl", "pseudocode": "// \n// EditorUI::updateTransformControl from 0x6ba770 to 0x6ba990 (544 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorUI::updateTransformControl @ 0x6ba994\n// > <???> @ 0x65238\n// > <???> @ 0x1156b38\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::updateTransformControl(EditorUI *a1)\n{\n  _BOOL4 m_transformReset; // w1\n  float v3; // s8\n  GameObject *m_selectedObject; // x0\n  cocos2d::CCObject *v5; // x1\n  GameObject *v6; // x0\n  cocos2d::CCArray *v7; // x22\n  float v8; // s6\n  float v9; // s7\n  cocos2d::CCArray *m_selectedObjects; // x0\n  cocos2d::CCPoint v11; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v12; // 0:s0.4,4:s1.4\n\n  if ( a1->m_transformControl->isVisible(a1->m_transformControl) )\n  {\n    m_transformReset = a1->m_transformState.m_transformReset;\n    a1->m_transformState.m_scaleX = 1.0;\n    a1->m_transformState.m_scaleY = 1.0;\n    a1->m_transformState.m_angleX = 0.0;\n    a1->m_transformState.m_angleY = 0.0;\n    a1->m_transformState.m_skewX = 0.0;\n    a1->m_transformState.m_skewY = 0.0;\n    a1->m_transformState.m_transformRotationX = 0.0;\n    a1->m_transformState.m_transformRotationY = 0.0;\n    a1->m_transformState.m_transformPosition.x = 0.0;\n    a1->m_transformState.m_transformPosition.y = 0.0;\n    a1->m_transformState.m_transformScaleX = 1.0;\n    a1->m_transformState.m_transformScaleY = 1.0;\n    v3 = 0.0;\n    if ( m_transformReset )\n    {\n      m_selectedObject = a1->m_selectedObject;\n      a1->m_transformState.m_transformReset = 0;\n      if ( m_selectedObject )\n        goto LABEL_4;\n      m_selectedObjects = a1->m_selectedObjects;\n      if ( m_selectedObjects && (unsigned int)cocos2d::CCArray::count(m_selectedObjects) )\n      {\n        m_selectedObject = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, 0);\nLABEL_4:\n        v3 = m_selectedObject->getRotation(m_selectedObject);\n        if ( v3 != 0.0 )\n        {\n          v6 = a1->m_selectedObject;\n          if ( v6 )\n            v7 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)v6, v5);\n          else\n            v7 = a1->m_selectedObjects;\n          EditorUI::resetObjectEditorValues(a1, v7);\n          cocos2d::CCPoint::CCPoint(&v11, &a1->m_pivotPoint);\n          v12.x = 1.0;\n          v12.y = 1.0;\n          EditorUI::transformObjects(a1, v7, v12, -v3, -v3, 0.0, 0.0, v8, v9);\n        }\n        goto LABEL_8;\n      }\n      v3 = 0.0;\n    }\nLABEL_8:\n    ((void (__fastcall *)(cocos2d::CCNode *))a1->m_transformNode->setScaleX)(a1->m_transformNode);\n    a1->m_transformNode->setScaleY(a1->m_transformNode, a1->m_transformState.m_scaleY);\n    a1->m_transformNode->setRotationX(a1->m_transformNode, a1->m_transformState.m_angleX);\n    a1->m_transformNode->setRotationY(a1->m_transformNode, a1->m_transformState.m_angleY);\n    a1->m_transformNode->setSkewX(a1->m_transformNode, a1->m_transformState.m_skewX);\n    a1->m_transformNode->setSkewY(a1->m_transformNode, a1->m_transformState.m_skewY);\n    GJTransformControl::loadValues(\n      a1->m_transformControl,\n      a1->m_selectedObject,\n      a1->m_selectedObjects,\n      &a1->m_objectEditorStates);\n    if ( v3 != 0.0 )\n      GJTransformControl::applyRotation(a1->m_transformControl, v3);\n  }\n}", "assembly": "; \n; EditorUI::updateTransformControl from 0x6ba770 to 0x6ba990 (544 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorUI::updateTransformControl @ 0x6ba994\n; > <???> @ 0x65238\n; > <???> @ 0x1156b38\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_60]!                                ; +0x0, 0x6ba770\nMOV             X29, SP                                                ; +0x4, 0x6ba774\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x6ba778\nLDR             X1, [X0,#0x2D0]                                        ; +0xc, 0x6ba77c\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x6ba780\nMOV             X19, X0                                                ; +0x14, 0x6ba784\nMOV             X0, X1                                                 ; +0x18, 0x6ba788\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6ba78c\nLDR             X1, [X1]                                               ; +0x20, 0x6ba790\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x24, 0x6ba794\nLDR             X2, [X2]                                               ; +0x28, 0x6ba798\nLDR             X1, [X1,#0x150]                                        ; +0x2c, 0x6ba79c\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x30, 0x6ba7a0\nSTR             D8, [SP,#0x60+var_30]                                  ; +0x34, 0x6ba7a4\nBLR             X1                                                     ; +0x38, 0x6ba7a8\nUXTB            W0, W0                                                 ; +0x3c, 0x6ba7ac\nCBZ             W0, loc_6BA920                                         ; +0x40, 0x6ba7b0\nFMOV            S1, WZR                                                ; +0x44, 0x6ba7b4\nLDRB            W1, [X19,#0x224]                                       ; +0x48, 0x6ba7b8\nFMOV            S0, #1.0                                               ; +0x4c, 0x6ba7bc\nSTR             S0, [X19,#0x208]                                       ; +0x50, 0x6ba7c0\nSTR             S0, [X19,#0x20C]                                       ; +0x54, 0x6ba7c4\nSTR             S1, [X19,#0x210]                                       ; +0x58, 0x6ba7c8\nSTR             S1, [X19,#0x214]                                       ; +0x5c, 0x6ba7cc\nSTR             S1, [X19,#0x218]                                       ; +0x60, 0x6ba7d0\nSTR             S1, [X19,#0x21C]                                       ; +0x64, 0x6ba7d4\nSTR             S1, [X19,#0x228]                                       ; +0x68, 0x6ba7d8\nSTR             S1, [X19,#0x22C]                                       ; +0x6c, 0x6ba7dc\nSTR             S1, [X19,#0x230]                                       ; +0x70, 0x6ba7e0\nSTR             S1, [X19,#0x234]                                       ; +0x74, 0x6ba7e4\nSTR             S0, [X19,#0x248]                                       ; +0x78, 0x6ba7e8\nSTR             S0, [X19,#0x24C]                                       ; +0x7c, 0x6ba7ec\nFMOV            S8, S1                                                 ; +0x80, 0x6ba7f0\nCBZ             W1, loc_6BA878                                         ; +0x84, 0x6ba7f4\nLDR             X0, [X19,#0x530]                                       ; +0x88, 0x6ba7f8\nSTRB            WZR, [X19,#0x224]                                      ; +0x8c, 0x6ba7fc\nCBZ             X0, loc_6BA958                                         ; +0x90, 0x6ba800\nLDR             X1, [X0]                                               ; +0x94, 0x6ba804\nLDR             X1, [X1,#0x160]                                        ; +0x98, 0x6ba808\nBLR             X1                                                     ; +0x9c, 0x6ba80c\nFMOV            S8, S0                                                 ; +0xa0, 0x6ba810\nFCMP            S8, #0.0                                               ; +0xa4, 0x6ba814\nB.EQ            loc_6BA874                                             ; +0xa8, 0x6ba818\nLDR             X0, [X19,#0x530]; this                                 ; +0xac, 0x6ba81c\nCBZ             X0, loc_6BA984                                         ; +0xb0, 0x6ba820\nBL              _ZN7cocos2d7CCArray16createWithObjectEPNS_8CCObjectE; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0xb4, 0x6ba824\nMOV             X22, X0                                                ; +0xb8, 0x6ba828\nMOV             X0, X19; this                                          ; +0xbc, 0x6ba82c\nMOV             X1, X22; cocos2d::CCArray *                            ; +0xc0, 0x6ba830\nADD             X21, X29, #0x60+var_10                                 ; +0xc4, 0x6ba834\nBL              _ZN8EditorUI23resetObjectEditorValuesEPN7cocos2d7CCArrayE; EditorUI::resetObjectEditorValues(cocos2d::CCArray *) ; +0xc8, 0x6ba838\nSTR             X21, [X29,#0x60+var_18]                                ; +0xcc, 0x6ba83c\nMOV             X0, X21; this                                          ; +0xd0, 0x6ba840\nADD             X1, X19, #0x2B8; cocos2d::CCPoint *                    ; +0xd4, 0x6ba844\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xd8, 0x6ba848\nFMOV            S4, WZR                                                ; +0xdc, 0x6ba84c\nLDR             X2, [X29,#0x60+var_18]                                 ; +0xe0, 0x6ba850\nFNEG            S2, S8                                                 ; +0xe4, 0x6ba854\nMOV             X0, X19                                                ; +0xe8, 0x6ba858\nFMOV            S0, #1.0                                               ; +0xec, 0x6ba85c\nMOV             X1, X22                                                ; +0xf0, 0x6ba860\nFMOV            S1, S0                                                 ; +0xf4, 0x6ba864\nFMOV            S3, S2                                                 ; +0xf8, 0x6ba868\nFMOV            S5, S4                                                 ; +0xfc, 0x6ba86c\nBL              _ZN8EditorUI16transformObjectsEPN7cocos2d7CCArrayENS0_7CCPointEffffff; EditorUI::transformObjects(cocos2d::CCArray *,cocos2d::CCPoint,float,float,float,float,float,float) ; +0x100, 0x6ba870\nLDR             S0, [X19,#0x208]                                       ; +0x104, 0x6ba874\nLDR             X1, [X19,#0x2D8]                                       ; +0x108, 0x6ba878\nMOV             X0, X1                                                 ; +0x10c, 0x6ba87c\nLDR             X1, [X1]                                               ; +0x110, 0x6ba880\nLDR             X1, [X1,#0x80]                                         ; +0x114, 0x6ba884\nBLR             X1                                                     ; +0x118, 0x6ba888\nLDR             X1, [X19,#0x2D8]                                       ; +0x11c, 0x6ba88c\nLDR             S0, [X19,#0x20C]                                       ; +0x120, 0x6ba890\nMOV             X0, X1                                                 ; +0x124, 0x6ba894\nLDR             X1, [X1]                                               ; +0x128, 0x6ba898\nLDR             X1, [X1,#0x90]                                         ; +0x12c, 0x6ba89c\nBLR             X1                                                     ; +0x130, 0x6ba8a0\nLDR             X1, [X19,#0x2D8]                                       ; +0x134, 0x6ba8a4\nLDR             S0, [X19,#0x210]                                       ; +0x138, 0x6ba8a8\nMOV             X0, X1                                                 ; +0x13c, 0x6ba8ac\nLDR             X1, [X1]                                               ; +0x140, 0x6ba8b0\nLDR             X1, [X1,#0x168]                                        ; +0x144, 0x6ba8b4\nBLR             X1                                                     ; +0x148, 0x6ba8b8\nLDR             X1, [X19,#0x2D8]                                       ; +0x14c, 0x6ba8bc\nLDR             S0, [X19,#0x214]                                       ; +0x150, 0x6ba8c0\nMOV             X0, X1                                                 ; +0x154, 0x6ba8c4\nLDR             X1, [X1]                                               ; +0x158, 0x6ba8c8\nLDR             X1, [X1,#0x178]                                        ; +0x15c, 0x6ba8cc\nBLR             X1                                                     ; +0x160, 0x6ba8d0\nLDR             X1, [X19,#0x2D8]                                       ; +0x164, 0x6ba8d4\nLDR             S0, [X19,#0x218]                                       ; +0x168, 0x6ba8d8\nMOV             X0, X1                                                 ; +0x16c, 0x6ba8dc\nLDR             X1, [X1]                                               ; +0x170, 0x6ba8e0\nLDR             X1, [X1,#0xF8]                                         ; +0x174, 0x6ba8e4\nBLR             X1                                                     ; +0x178, 0x6ba8e8\nLDR             X1, [X19,#0x2D8]                                       ; +0x17c, 0x6ba8ec\nLDR             S0, [X19,#0x21C]                                       ; +0x180, 0x6ba8f0\nMOV             X0, X1                                                 ; +0x184, 0x6ba8f4\nLDR             X1, [X1]                                               ; +0x188, 0x6ba8f8\nLDR             X1, [X1,#0x108]                                        ; +0x18c, 0x6ba8fc\nBLR             X1                                                     ; +0x190, 0x6ba900\nLDR             X0, [X19,#0x2D0]; int                                  ; +0x194, 0x6ba904\nADD             X3, X19, #0x1D0                                        ; +0x198, 0x6ba908\nLDR             X1, [X19,#0x530]; this                                 ; +0x19c, 0x6ba90c\nLDR             X2, [X19,#0x338]; cocos2d::CCArray *                   ; +0x1a0, 0x6ba910\nBL              _ZN18GJTransformControl10loadValuesEP10GameObjectPN7cocos2d7CCArrayERSt13unordered_mapIi21GameObjectEditorStateSt4hashIiESt8equal_toIiESaISt4pairIKiS6_EEE; GJTransformControl::loadValues(GameObject *,cocos2d::CCArray *,std::unordered_map<int,GameObjectEditorState> &) ; +0x1a4, 0x6ba914\nFCMP            S8, #0.0                                               ; +0x1a8, 0x6ba918\nB.NE            loc_6BA948                                             ; +0x1ac, 0x6ba91c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1b0, 0x6ba920\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x1b4, 0x6ba924\nLDR             X0, [X20]                                              ; +0x1b8, 0x6ba928\nCMP             X1, X0                                                 ; +0x1bc, 0x6ba92c\nB.NE            loc_6BA98C                                             ; +0x1c0, 0x6ba930\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x1c4, 0x6ba934\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x1c8, 0x6ba938\nLDR             D8, [SP,#0x60+var_30]                                  ; +0x1cc, 0x6ba93c\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x1d0, 0x6ba940\nRET                                                                    ; +0x1d4, 0x6ba944\nFMOV            S0, S8; float                                          ; +0x1d8, 0x6ba948\nLDR             X0, [X19,#0x2D0]; this                                 ; +0x1dc, 0x6ba94c\nBL              _ZN18GJTransformControl13applyRotationEf; GJTransformControl::applyRotation(float) ; +0x1e0, 0x6ba950\nB               loc_6BA920                                             ; +0x1e4, 0x6ba954\nLDR             X0, [X19,#0x338]; this                                 ; +0x1e8, 0x6ba958\nCBZ             X0, loc_6BA97C                                         ; +0x1ec, 0x6ba95c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1f0, 0x6ba960\nCBZ             W0, loc_6BA978                                         ; +0x1f4, 0x6ba964\nLDR             X0, [X19,#0x338]; this                                 ; +0x1f8, 0x6ba968\nMOV             W1, #0; unsigned int                                   ; +0x1fc, 0x6ba96c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x200, 0x6ba970\nB               loc_6BA804                                             ; +0x204, 0x6ba974\nLDR             S0, [X19,#0x208]                                       ; +0x208, 0x6ba978\nFMOV            S8, WZR                                                ; +0x20c, 0x6ba97c\nB               loc_6BA878                                             ; +0x210, 0x6ba980\nLDR             X22, [X19,#0x338]                                      ; +0x214, 0x6ba984\nB               loc_6BA82C                                             ; +0x218, 0x6ba988\nBL              .__stack_chk_fail                                      ; +0x21c, 0x6ba98c", "xrefs": ["`non-virtual thunk to'EditorUI::updateTransformControl @ 0x6ba994", "<???> @ 0x65238", "<???> @ 0x1156b38"], "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"}