{"type": "func", "start": 12600048, "end": 12600604, "name": "EditorUI::updateTransformControl", "pseudocode": "// \n// EditorUI::updateTransformControl from 0xc042f0 to 0xc0451c (556 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditorUI::updateTransformControl @ 0xc04520\n// > <???> @ 0x896c8\n// > <???> @ 0x1437208\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:50 +0000\n// \n\n__int64 __fastcall EditorUI::updateTransformControl(EditorUI *this)\n{\n  int v2; // w0\n  float v3; // s8\n  __int64 v4; // x0\n  cocos2d::CCObject *v5; // x1\n  cocos2d::CCArray *v6; // x0\n  cocos2d::CCArray *v7; // x22\n  cocos2d::CCArray *v9; // x0\n  _BYTE v10[8]; // [xsp+50h] [xbp+50h] BYREF\n\n  if ( !(*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 99) + 352LL))(*((_QWORD *)this + 99)) )\n    return _stack_chk_guard;\n  v2 = *((unsigned __int8 *)this + 532);\n  *((float *)this + 126) = 1.0;\n  *((float *)this + 127) = 1.0;\n  *((_DWORD *)this + 128) = 0;\n  *((_DWORD *)this + 129) = 0;\n  *((_DWORD *)this + 130) = 0;\n  *((_DWORD *)this + 131) = 0;\n  *((_DWORD *)this + 134) = 0;\n  *((_DWORD *)this + 135) = 0;\n  *((_DWORD *)this + 136) = 0;\n  *((_DWORD *)this + 137) = 0;\n  *((float *)this + 142) = 1.0;\n  *((float *)this + 143) = 1.0;\n  v3 = 0.0;\n  if ( v2 )\n  {\n    v4 = *((_QWORD *)this + 187);\n    *((_BYTE *)this + 532) = 0;\n    if ( v4 )\n    {\nLABEL_4:\n      v3 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v4 + 368LL))(v4);\n      if ( v3 != 0.0 && !*(_BYTE *)(*((_QWORD *)this + 99) + 603LL) )\n      {\n        v6 = *((cocos2d::CCArray **)this + 187);\n        if ( v6 )\n          v7 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v6, v5);\n        else\n          v7 = *((cocos2d::CCArray **)this + 112);\n        EditorUI::resetObjectEditorValues(this, v7);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (EditorUI *)((char *)this + 768));\n        EditorUI::transformObjects((__int64)this, v7, (cocos2d::CCPoint *)v10, 1.0, 1.0, -v3, -v3, 0.0, 0.0);\n      }\n      goto LABEL_9;\n    }\n    v9 = *((cocos2d::CCArray **)this + 112);\n    if ( v9 && (unsigned int)cocos2d::CCArray::count(v9) )\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 112), 0);\n      goto LABEL_4;\n    }\n    v3 = 0.0;\n  }\nLABEL_9:\n  (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 100) + 128LL))(*((_QWORD *)this + 100));\n  (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 144LL))(\n    *((_QWORD *)this + 100),\n    *((float *)this + 127));\n  (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 376LL))(\n    *((_QWORD *)this + 100),\n    *((float *)this + 128));\n  (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 392LL))(\n    *((_QWORD *)this + 100),\n    *((float *)this + 129));\n  (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 264LL))(\n    *((_QWORD *)this + 100),\n    *((float *)this + 130));\n  (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 280LL))(\n    *((_QWORD *)this + 100),\n    *((float *)this + 131));\n  GJTransformControl::loadValues(\n    *((GJTransformControl **)this + 99),\n    *((cocos2d::CCArray **)this + 187),\n    *((cocos2d::CCArray **)this + 112),\n    (__int64)this + 464);\n  if ( v3 != 0.0 )\n    GJTransformControl::applyRotation(*((GJTransformControl **)this + 99), v3);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::updateTransformControl from 0xc042f0 to 0xc0451c (556 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditorUI::updateTransformControl @ 0xc04520\n; > <???> @ 0x896c8\n; > <???> @ 0x1437208\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:50 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0xc042f0\nMOV             X29, SP                                                ; +0x4, 0xc042f4\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0xc042f8\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0xc, 0xc042fc\nSTR             D8, [SP,#0x60+var_30]                                  ; +0x10, 0xc04300\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0xc04304\nLDR             X1, [X0,#0x318]                                        ; +0x18, 0xc04308\nMOV             X19, X0                                                ; +0x1c, 0xc0430c\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xc04310\nMOV             X0, X1                                                 ; +0x24, 0xc04314\nLDR             X1, [X1]                                               ; +0x28, 0xc04318\nLDR             X2, [X2]                                               ; +0x2c, 0xc0431c\nLDR             X1, [X1,#0x160]                                        ; +0x30, 0xc04320\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x34, 0xc04324\nBLR             X1                                                     ; +0x38, 0xc04328\nUXTB            W0, W0                                                 ; +0x3c, 0xc0432c\nCBZ             W0, loc_C044AC                                         ; +0x40, 0xc04330\nFMOV            S1, WZR                                                ; +0x44, 0xc04334\nLDRB            W0, [X19,#0x214]                                       ; +0x48, 0xc04338\nFMOV            S0, #1.0                                               ; +0x4c, 0xc0433c\nSTR             S0, [X19,#0x1F8]                                       ; +0x50, 0xc04340\nSTR             S0, [X19,#0x1FC]                                       ; +0x54, 0xc04344\nSTR             S1, [X19,#0x200]                                       ; +0x58, 0xc04348\nSTR             S1, [X19,#0x204]                                       ; +0x5c, 0xc0434c\nSTR             S1, [X19,#0x208]                                       ; +0x60, 0xc04350\nSTR             S1, [X19,#0x20C]                                       ; +0x64, 0xc04354\nSTR             S1, [X19,#0x218]                                       ; +0x68, 0xc04358\nSTR             S1, [X19,#0x21C]                                       ; +0x6c, 0xc0435c\nSTR             S1, [X19,#0x220]                                       ; +0x70, 0xc04360\nSTR             S1, [X19,#0x224]                                       ; +0x74, 0xc04364\nSTR             S0, [X19,#0x238]                                       ; +0x78, 0xc04368\nSTR             S0, [X19,#0x23C]                                       ; +0x7c, 0xc0436c\nFMOV            S8, S1                                                 ; +0x80, 0xc04370\nCBZ             W0, loc_C04404                                         ; +0x84, 0xc04374\nLDR             X0, [X19,#0x5D8]                                       ; +0x88, 0xc04378\nSTRB            WZR, [X19,#0x214]                                      ; +0x8c, 0xc0437c\nCBZ             X0, loc_C044E4                                         ; +0x90, 0xc04380\nLDR             X1, [X0]                                               ; +0x94, 0xc04384\nLDR             X1, [X1,#0x170]                                        ; +0x98, 0xc04388\nBLR             X1                                                     ; +0x9c, 0xc0438c\nFMOV            S8, S0                                                 ; +0xa0, 0xc04390\nFCMP            S8, #0.0                                               ; +0xa4, 0xc04394\nB.EQ            loc_C04400                                             ; +0xa8, 0xc04398\nLDR             X0, [X19,#0x318]                                       ; +0xac, 0xc0439c\nLDRB            W0, [X0,#0x25B]                                        ; +0xb0, 0xc043a0\nCBNZ            W0, loc_C04400                                         ; +0xb4, 0xc043a4\nLDR             X0, [X19,#0x5D8]; this                                 ; +0xb8, 0xc043a8\nCBZ             X0, loc_C04510                                         ; +0xbc, 0xc043ac\nBL              _ZN7cocos2d7CCArray16createWithObjectEPNS_8CCObjectE; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0xc0, 0xc043b0\nMOV             X22, X0                                                ; +0xc4, 0xc043b4\nMOV             X0, X19; this                                          ; +0xc8, 0xc043b8\nMOV             X1, X22; cocos2d::CCArray *                            ; +0xcc, 0xc043bc\nADD             X21, X29, #0x60+var_10                                 ; +0xd0, 0xc043c0\nBL              _ZN8EditorUI23resetObjectEditorValuesEPN7cocos2d7CCArrayE; EditorUI::resetObjectEditorValues(cocos2d::CCArray *) ; +0xd4, 0xc043c4\nSTR             X21, [X29,#0x60+var_18]                                ; +0xd8, 0xc043c8\nMOV             X0, X21; this                                          ; +0xdc, 0xc043cc\nADD             X1, X19, #0x300; cocos2d::CCPoint *                    ; +0xe0, 0xc043d0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xe4, 0xc043d4\nFMOV            S4, WZR                                                ; +0xe8, 0xc043d8\nLDR             X2, [X29,#0x60+var_18]                                 ; +0xec, 0xc043dc\nFNEG            S2, S8                                                 ; +0xf0, 0xc043e0\nMOV             X0, X19                                                ; +0xf4, 0xc043e4\nFMOV            S0, #1.0                                               ; +0xf8, 0xc043e8\nMOV             X1, X22                                                ; +0xfc, 0xc043ec\nFMOV            S1, S0                                                 ; +0x100, 0xc043f0\nFMOV            S3, S2                                                 ; +0x104, 0xc043f4\nFMOV            S5, S4                                                 ; +0x108, 0xc043f8\nBL              _ZN8EditorUI16transformObjectsEPN7cocos2d7CCArrayENS0_7CCPointEffffff; EditorUI::transformObjects(cocos2d::CCArray *,cocos2d::CCPoint,float,float,float,float,float,float) ; +0x10c, 0xc043fc\nLDR             S0, [X19,#0x1F8]                                       ; +0x110, 0xc04400\nLDR             X1, [X19,#0x320]                                       ; +0x114, 0xc04404\nMOV             X0, X1                                                 ; +0x118, 0xc04408\nLDR             X1, [X1]                                               ; +0x11c, 0xc0440c\nLDR             X1, [X1,#0x80]                                         ; +0x120, 0xc04410\nBLR             X1                                                     ; +0x124, 0xc04414\nLDR             X1, [X19,#0x320]                                       ; +0x128, 0xc04418\nLDR             S0, [X19,#0x1FC]                                       ; +0x12c, 0xc0441c\nMOV             X0, X1                                                 ; +0x130, 0xc04420\nLDR             X1, [X1]                                               ; +0x134, 0xc04424\nLDR             X1, [X1,#0x90]                                         ; +0x138, 0xc04428\nBLR             X1                                                     ; +0x13c, 0xc0442c\nLDR             X1, [X19,#0x320]                                       ; +0x140, 0xc04430\nLDR             S0, [X19,#0x200]                                       ; +0x144, 0xc04434\nMOV             X0, X1                                                 ; +0x148, 0xc04438\nLDR             X1, [X1]                                               ; +0x14c, 0xc0443c\nLDR             X1, [X1,#0x178]                                        ; +0x150, 0xc04440\nBLR             X1                                                     ; +0x154, 0xc04444\nLDR             X1, [X19,#0x320]                                       ; +0x158, 0xc04448\nLDR             S0, [X19,#0x204]                                       ; +0x15c, 0xc0444c\nMOV             X0, X1                                                 ; +0x160, 0xc04450\nLDR             X1, [X1]                                               ; +0x164, 0xc04454\nLDR             X1, [X1,#0x188]                                        ; +0x168, 0xc04458\nBLR             X1                                                     ; +0x16c, 0xc0445c\nLDR             X1, [X19,#0x320]                                       ; +0x170, 0xc04460\nLDR             S0, [X19,#0x208]                                       ; +0x174, 0xc04464\nMOV             X0, X1                                                 ; +0x178, 0xc04468\nLDR             X1, [X1]                                               ; +0x17c, 0xc0446c\nLDR             X1, [X1,#0x108]                                        ; +0x180, 0xc04470\nBLR             X1                                                     ; +0x184, 0xc04474\nLDR             X1, [X19,#0x320]                                       ; +0x188, 0xc04478\nLDR             S0, [X19,#0x20C]                                       ; +0x18c, 0xc0447c\nMOV             X0, X1                                                 ; +0x190, 0xc04480\nLDR             X1, [X1]                                               ; +0x194, 0xc04484\nLDR             X1, [X1,#0x118]                                        ; +0x198, 0xc04488\nBLR             X1                                                     ; +0x19c, 0xc0448c\nLDR             X0, [X19,#0x318]; int                                  ; +0x1a0, 0xc04490\nADD             X3, X19, #0x1D0                                        ; +0x1a4, 0xc04494\nLDR             X1, [X19,#0x5D8]; this                                 ; +0x1a8, 0xc04498\nLDR             X2, [X19,#0x380]; cocos2d::CCArray *                   ; +0x1ac, 0xc0449c\nBL              _ZN18GJTransformControl10loadValuesEP10GameObjectPN7cocos2d7CCArrayERNSt6__ndk113unordered_mapIi21GameObjectEditorStateNS5_4hashIiEENS5_8equal_toIiEENS5_9allocatorINS5_4pairIKiS7_EEEEEE; GJTransformControl::loadValues(GameObject *,cocos2d::CCArray *,std::unordered_map<int,GameObjectEditorState> &) ; +0x1b0, 0xc044a0\nFCMP            S8, #0.0                                               ; +0x1b4, 0xc044a4\nB.NE            loc_C044D4                                             ; +0x1b8, 0xc044a8\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1bc, 0xc044ac\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x1c0, 0xc044b0\nLDR             X0, [X20]                                              ; +0x1c4, 0xc044b4\nCMP             X1, X0                                                 ; +0x1c8, 0xc044b8\nB.NE            loc_C04518                                             ; +0x1cc, 0xc044bc\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x1d0, 0xc044c0\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x1d4, 0xc044c4\nLDR             D8, [SP,#0x60+var_30]                                  ; +0x1d8, 0xc044c8\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x1dc, 0xc044cc\nRET                                                                    ; +0x1e0, 0xc044d0\nFMOV            S0, S8; float                                          ; +0x1e4, 0xc044d4\nLDR             X0, [X19,#0x318]; this                                 ; +0x1e8, 0xc044d8\nBL              _ZN18GJTransformControl13applyRotationEf; GJTransformControl::applyRotation(float) ; +0x1ec, 0xc044dc\nB               loc_C044AC                                             ; +0x1f0, 0xc044e0\nLDR             X0, [X19,#0x380]; this                                 ; +0x1f4, 0xc044e4\nCBZ             X0, loc_C04508                                         ; +0x1f8, 0xc044e8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1fc, 0xc044ec\nCBZ             W0, loc_C04504                                         ; +0x200, 0xc044f0\nLDR             X0, [X19,#0x380]; this                                 ; +0x204, 0xc044f4\nMOV             W1, #0; unsigned int                                   ; +0x208, 0xc044f8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x20c, 0xc044fc\nB               loc_C04384                                             ; +0x210, 0xc04500\nLDR             S0, [X19,#0x1F8]                                       ; +0x214, 0xc04504\nFMOV            S8, WZR                                                ; +0x218, 0xc04508\nB               loc_C04404                                             ; +0x21c, 0xc0450c\nLDR             X22, [X19,#0x380]                                      ; +0x220, 0xc04510\nB               loc_C043B8                                             ; +0x224, 0xc04514\nBL              .__stack_chk_fail                                      ; +0x228, 0xc04518", "xrefs": ["`non-virtual thunk to'EditorUI::updateTransformControl @ 0xc04520", "<???> @ 0x896c8", "<???> @ 0x1437208"], "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"}