{"type": "func", "start": 3802296, "end": 3802722, "name": "EditorUI::updateTransformControl", "pseudocode": "// \n// EditorUI::updateTransformControl from 0x3a04b8 to 0x3a0662 (426 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorUI::updateTransformControl @ 0x3a0670\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; // r2\n  GameObject *m_selectedObject; // r6\n  float v4; // r0\n  cocos2d::CCObject *v5; // r1\n  cocos2d::CCArray *m_selectedObjects; // r0\n  int v7; // r0\n  float v8; // s16\n  GameObject *v9; // r0\n  cocos2d::CCArray *v10; // r6\n  cocos2d::CCPoint v11; // r2\n  float v12; // [sp+14h] [bp-18h]\n  cocos2d::CCPoint v13; // [sp+1Ch] [bp-10h] BYREF\n\n  if ( ((int (__fastcall *)(GJTransformControl *))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_transformScaleX = 1.0;\n    a1->m_transformState.m_transformScaleY = 1.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    if ( m_transformReset )\n    {\n      m_selectedObject = a1->m_selectedObject;\n      a1->m_transformState.m_transformReset = 0;\n      if ( m_selectedObject )\n      {\n        v4 = COERCE_FLOAT(((int (__fastcall *)(GameObject *))m_selectedObject->getRotation)(m_selectedObject));\n        goto LABEL_11;\n      }\n      m_selectedObjects = a1->m_selectedObjects;\n      if ( m_selectedObjects && cocos2d::CCArray::count(m_selectedObjects) )\n      {\n        v7 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, 0);\n        v4 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v7 + 176))(v7));\nLABEL_11:\n        v8 = v4;\n        if ( v4 != 0.0 )\n        {\n          v9 = a1->m_selectedObject;\n          if ( v9 )\n            v10 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)v9, v5);\n          else\n            v10 = a1->m_selectedObjects;\n          EditorUI::resetObjectEditorValues(a1, v10);\n          cocos2d::CCPoint::CCPoint(&v13, &a1->m_pivotPoint);\n          LODWORD(v11.x) = &v13;\n          v11.y = 1.0;\n          EditorUI::transformObjects(a1, v10, v11, 1.0, -v8, -v8, 0.0, 0.0, v12);\n        }\n        goto LABEL_9;\n      }\n      v8 = 0.0;\n    }\n    else\n    {\n      v8 = 0.0;\n    }\nLABEL_9:\n    ((void (__fastcall *)(cocos2d::CCNode *, _DWORD))a1->m_transformNode->setScaleX)(\n      a1->m_transformNode,\n      LODWORD(a1->m_transformState.m_scaleX));\n    ((void (__fastcall *)(cocos2d::CCNode *, _DWORD))a1->m_transformNode->setScaleY)(\n      a1->m_transformNode,\n      LODWORD(a1->m_transformState.m_scaleY));\n    ((void (__fastcall *)(cocos2d::CCNode *, _DWORD))a1->m_transformNode->setRotationX)(\n      a1->m_transformNode,\n      LODWORD(a1->m_transformState.m_angleX));\n    ((void (__fastcall *)(cocos2d::CCNode *, _DWORD))a1->m_transformNode->setRotationY)(\n      a1->m_transformNode,\n      LODWORD(a1->m_transformState.m_angleY));\n    ((void (__fastcall *)(cocos2d::CCNode *, _DWORD))a1->m_transformNode->setSkewX)(\n      a1->m_transformNode,\n      LODWORD(a1->m_transformState.m_skewX));\n    ((void (__fastcall *)(cocos2d::CCNode *, _DWORD))a1->m_transformNode->setSkewY)(\n      a1->m_transformNode,\n      LODWORD(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 ( v8 != 0.0 )\n      GJTransformControl::applyRotation(a1->m_transformControl, v8);\n  }\n}", "assembly": "; \n; EditorUI::updateTransformControl from 0x3a04b8 to 0x3a0662 (426 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorUI::updateTransformControl @ 0x3a0670\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\nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x3a04b8\nMOV             R4, R0                                                 ; +0x4, 0x3a04bc\nLDR             R7, =(__stack_chk_guard_ptr - 0x3A04C8)                ; +0x6, 0x3a04be\nVPUSH           {D8}                                                   ; +0x8, 0x3a04c0\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3a04c4\nLDR             R7, [R7]; __stack_chk_guard                            ; +0xe, 0x3a04c6\nLDR.W           R0, [R0,#0x218]                                        ; +0x10, 0x3a04c8\nLDR             R3, [R7]                                               ; +0x14, 0x3a04cc\nSUB             SP, SP, #0x2C                                          ; +0x16, 0x3a04ce\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x18, 0x3a04d0\nLDR             R3, [R0]                                               ; +0x1a, 0x3a04d2\nLDR.W           R3, [R3,#0xA8]                                         ; +0x1c, 0x3a04d4\nBLX             R3                                                     ; +0x20, 0x3a04d8\nCMP             R0, #0                                                 ; +0x22, 0x3a04da\nBEQ.W           loc_3A064C                                             ; +0x24, 0x3a04dc\nVLDR            S15, =0.0                                              ; +0x28, 0x3a04e0\nMOV.W           R3, #0x3F800000                                        ; +0x2c, 0x3a04e4\nLDRB.W          R2, [R4,#0x190]                                        ; +0x30, 0x3a04e8\nMOV             R5, R3                                                 ; +0x34, 0x3a04ec\nSTR.W           R3, [R4,#0x174]                                        ; +0x36, 0x3a04ee\nSTR.W           R3, [R4,#0x178]                                        ; +0x3a, 0x3a04f2\nVSTR            S15, [R4,#0x17C]                                       ; +0x3e, 0x3a04f6\nSTR.W           R3, [R4,#0x1B4]                                        ; +0x42, 0x3a04fa\nSTR.W           R3, [R4,#0x1B8]                                        ; +0x46, 0x3a04fe\nVSTR            S15, [R4,#0x180]                                       ; +0x4a, 0x3a0502\nVSTR            S15, [R4,#0x184]                                       ; +0x4e, 0x3a0506\nVSTR            S15, [R4,#0x188]                                       ; +0x52, 0x3a050a\nVSTR            S15, [R4,#0x194]                                       ; +0x56, 0x3a050e\nVSTR            S15, [R4,#0x198]                                       ; +0x5a, 0x3a0512\nVSTR            S15, [R4,#0x19C]                                       ; +0x5e, 0x3a0516\nVSTR            S15, [R4,#0x1A0]                                       ; +0x62, 0x3a051a\nVMOV            R8, S15                                                ; +0x66, 0x3a051e\nCBZ             R2, loc_3A055E                                         ; +0x6a, 0x3a0522\nLDR.W           R6, [R4,#0x374]                                        ; +0x6c, 0x3a0524\nMOVS            R3, #0                                                 ; +0x70, 0x3a0528\nSTRB.W          R3, [R4,#0x190]                                        ; +0x72, 0x3a052a\nCBZ             R6, loc_3A053A                                         ; +0x76, 0x3a052e\nLDR             R3, [R6]                                               ; +0x78, 0x3a0530\nMOV             R0, R6                                                 ; +0x7a, 0x3a0532\nLDR.W           R3, [R3,#0xB0]                                         ; +0x7c, 0x3a0534\nB               loc_3A05E8                                             ; +0x80, 0x3a0538\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x82, 0x3a053a\nCMP             R0, #0                                                 ; +0x86, 0x3a053e\nBEQ.W           loc_3A0646                                             ; +0x88, 0x3a0540\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x8c, 0x3a0544\nCMP             R0, #0                                                 ; +0x90, 0x3a0548\nBEQ             loc_3A0646                                             ; +0x92, 0x3a054a\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x94, 0x3a054c\nMOV             R1, R6; unsigned int                                   ; +0x98, 0x3a0550\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x9a, 0x3a0552\nLDR             R3, [R0]                                               ; +0x9e, 0x3a0556\nLDR.W           R3, [R3,#0xB0]                                         ; +0xa0, 0x3a0558\nB               loc_3A05E8                                             ; +0xa4, 0x3a055c\nVMOV.F32        S16, S15                                               ; +0xa6, 0x3a055e\nLDR.W           R0, [R4,#0x21C]                                        ; +0xaa, 0x3a0562\nLDR.W           R1, [R4,#0x174]                                        ; +0xae, 0x3a0566\nLDR             R3, [R0]                                               ; +0xb2, 0x3a056a\nLDR             R3, [R3,#0x40]                                         ; +0xb4, 0x3a056c\nBLX             R3                                                     ; +0xb6, 0x3a056e\nLDR.W           R0, [R4,#0x21C]                                        ; +0xb8, 0x3a0570\nLDR.W           R1, [R4,#0x178]                                        ; +0xbc, 0x3a0574\nLDR             R3, [R0]                                               ; +0xc0, 0x3a0578\nLDR             R3, [R3,#0x48]                                         ; +0xc2, 0x3a057a\nBLX             R3                                                     ; +0xc4, 0x3a057c\nLDR.W           R0, [R4,#0x21C]                                        ; +0xc6, 0x3a057e\nLDR.W           R1, [R4,#0x17C]                                        ; +0xca, 0x3a0582\nLDR             R3, [R0]                                               ; +0xce, 0x3a0586\nLDR.W           R3, [R3,#0xB4]                                         ; +0xd0, 0x3a0588\nBLX             R3                                                     ; +0xd4, 0x3a058c\nLDR.W           R0, [R4,#0x21C]                                        ; +0xd6, 0x3a058e\nLDR.W           R1, [R4,#0x180]                                        ; +0xda, 0x3a0592\nLDR             R3, [R0]                                               ; +0xde, 0x3a0596\nLDR.W           R3, [R3,#0xBC]                                         ; +0xe0, 0x3a0598\nBLX             R3                                                     ; +0xe4, 0x3a059c\nLDR.W           R0, [R4,#0x21C]                                        ; +0xe6, 0x3a059e\nLDR.W           R1, [R4,#0x184]                                        ; +0xea, 0x3a05a2\nLDR             R3, [R0]                                               ; +0xee, 0x3a05a6\nLDR             R3, [R3,#0x7C]                                         ; +0xf0, 0x3a05a8\nBLX             R3                                                     ; +0xf2, 0x3a05aa\nLDR.W           R0, [R4,#0x21C]                                        ; +0xf4, 0x3a05ac\nLDR.W           R1, [R4,#0x188]                                        ; +0xf8, 0x3a05b0\nLDR             R3, [R0]                                               ; +0xfc, 0x3a05b4\nLDR.W           R3, [R3,#0x84]                                         ; +0xfe, 0x3a05b6\nBLX             R3                                                     ; +0x102, 0x3a05ba\nLDR.W           R0, [R4,#0x218]; int                                   ; +0x104, 0x3a05bc\nLDR.W           R1, [R4,#0x374]; this                                  ; +0x108, 0x3a05c0\nADD.W           R3, R4, #0x158                                         ; +0x10c, 0x3a05c4\nLDR.W           R2, [R4,#0x260]; cocos2d::CCArray *                    ; +0x110, 0x3a05c8\nBL              _ZN18GJTransformControl10loadValuesEP10GameObjectPN7cocos2d7CCArrayERSt13unordered_mapIi21GameObjectEditorStateSt4hashIiESt8equal_toIiESaISt4pairIKiS6_EEE; GJTransformControl::loadValues(GameObject *,cocos2d::CCArray *,std::unordered_map<int,GameObjectEditorState> &) ; +0x114, 0x3a05cc\nVCMP.F32        S16, #0.0                                              ; +0x118, 0x3a05d0\nVMRS            APSR_nzcv, FPSCR                                       ; +0x11c, 0x3a05d4\nBEQ             loc_3A064C                                             ; +0x120, 0x3a05d8\nLDR.W           R0, [R4,#0x218]; this                                  ; +0x122, 0x3a05da\nVMOV            R1, S16; float                                         ; +0x126, 0x3a05de\nBL              _ZN18GJTransformControl13applyRotationEf; GJTransformControl::applyRotation(float) ; +0x12a, 0x3a05e2\nB               loc_3A064C                                             ; +0x12e, 0x3a05e6\nBLX             R3                                                     ; +0x130, 0x3a05e8\nVMOV            S16, R0                                                ; +0x132, 0x3a05ea\nVCMP.F32        S16, #0.0                                              ; +0x136, 0x3a05ee\nVMRS            APSR_nzcv, FPSCR                                       ; +0x13a, 0x3a05f2\nBEQ             loc_3A0562                                             ; +0x13e, 0x3a05f6\nLDR.W           R0, [R4,#0x374]; this                                  ; +0x140, 0x3a05f8\nCBZ             R0, loc_3A0606                                         ; +0x144, 0x3a05fc\nBL              _ZN7cocos2d7CCArray16createWithObjectEPNS_8CCObjectE; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x146, 0x3a05fe\nMOV             R6, R0                                                 ; +0x14a, 0x3a0602\nB               loc_3A060A                                             ; +0x14c, 0x3a0604\nLDR.W           R6, [R4,#0x260]                                        ; +0x14e, 0x3a0606\nADD.W           R9, SP, #0x2C+var_10                                   ; +0x152, 0x3a060a\nMOV             R0, R4; this                                           ; +0x156, 0x3a060e\nMOV             R1, R6; cocos2d::CCArray *                             ; +0x158, 0x3a0610\nBL              _ZN8EditorUI23resetObjectEditorValuesEPN7cocos2d7CCArrayE; EditorUI::resetObjectEditorValues(cocos2d::CCArray *) ; +0x15a, 0x3a0612\nADD.W           R1, R4, #0x208; cocos2d::CCPoint *                     ; +0x15e, 0x3a0616\nMOV             R0, R9; this                                           ; +0x162, 0x3a061a\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x164, 0x3a061c\nVNEG.F32        S15, S16                                               ; +0x168, 0x3a0620\nSTR             R5, [SP,#0x2C+var_2C]                                  ; +0x16c, 0x3a0624\nMOV             R0, R4                                                 ; +0x16e, 0x3a0626\nSTR.W           R8, [SP,#0x2C+var_20]                                  ; +0x170, 0x3a0628\nMOV             R1, R6                                                 ; +0x174, 0x3a062c\nSTR.W           R8, [SP,#0x2C+var_1C]                                  ; +0x176, 0x3a062e\nMOV             R2, R9                                                 ; +0x17a, 0x3a0632\nVSTR            S15, [SP,#0x2C+var_28]                                 ; +0x17c, 0x3a0634\nMOV.W           R3, #0x3F800000                                        ; +0x180, 0x3a0638\nVSTR            S15, [SP,#0x2C+var_24]                                 ; +0x184, 0x3a063c\nBL              _ZN8EditorUI16transformObjectsEPN7cocos2d7CCArrayENS0_7CCPointEffffff; EditorUI::transformObjects(cocos2d::CCArray *,cocos2d::CCPoint,float,float,float,float,float,float) ; +0x188, 0x3a0640\nB               loc_3A0562                                             ; +0x18c, 0x3a0644\nVLDR            S16, =0.0                                              ; +0x18e, 0x3a0646\nB               loc_3A0562                                             ; +0x192, 0x3a064a\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x194, 0x3a064c\nLDR             R3, [R7]                                               ; +0x196, 0x3a064e\nCMP             R2, R3                                                 ; +0x198, 0x3a0650\nBEQ             loc_3A0658                                             ; +0x19a, 0x3a0652\nBLX             __stack_chk_fail                                       ; +0x19c, 0x3a0654\nADD             SP, SP, #0x2C ; ','                                    ; +0x1a0, 0x3a0658\nVPOP            {D8}                                                   ; +0x1a2, 0x3a065a\nPOP.W           {R4-R9,PC}                                             ; +0x1a6, 0x3a065e", "xrefs": ["`non-virtual thunk to'EditorUI::updateTransformControl @ 0x3a0670"], "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"}