{"type": "func", "start": 12591428, "end": 12591800, "name": "EditorUI::showTransformControl", "pseudocode": "// \n// EditorUI::showTransformControl from 0xc02144 to 0xc022b8 (372 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::handleAction @ 0x7a1c30\n// > EditorUI::activateTransformControl @ 0xc02a08\n// > <???> @ 0xc60e8\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::showTransformControl(EditorUI *this)\n{\n  char *v2; // x22\n  __int64 v3; // x0\n  __n128 v4; // q0\n  GJTransformControl *v5; // x23\n  float v6; // s0\n  __int64 v7; // x19\n  __int64 v8; // x0\n  long double v9; // q0\n  __int64 v11; // [xsp+40h] [xbp+40h] BYREF\n\n  if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) || *((_QWORD *)this + 187) )\n  {\n    *((_BYTE *)this + 532) = 1;\n    EditorUI::updateEditButtonColor((__int64)this, (_BYTE *)&qword_28 + 7, 10921638);\n    *((_BYTE *)this + 776) = 0;\n    v2 = (char *)this + 768;\n    if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) )\n    {\n      EditorUI::getGroupCenter((cocos2d::CCPoint *)&v11, *((cocos2d::CCArray **)this + 112), 0);\n      v4 = cocos2d::CCPoint::operator=((char *)this + 768, &v11);\n    }\n    else\n    {\n      v3 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 187) + 192LL))(*((_QWORD *)this + 187));\n      v4 = cocos2d::CCPoint::operator=((char *)this + 768, v3);\n    }\n    (*(void (__fastcall **)(_QWORD, char *, long double))(**((_QWORD **)this + 99) + 184LL))(\n      *((_QWORD *)this + 99),\n      v2,\n      *(long double *)&v4);\n    v5 = *((GJTransformControl **)this + 99);\n    v6 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 180) + 3920LL) + 168LL))(*(_QWORD *)(*((_QWORD *)this + 180) + 3920LL));\n    GJTransformControl::scaleButtons(v5, 1.0 / v6);\n    (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 99) + 344LL))(*((_QWORD *)this + 99), 1);\n    v7 = *((_QWORD *)this + 99);\n    v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);\n    cocos2d::CCPoint::operator-(&v11, v2, v8, v9);\n    GJTransformControl::updateAnchorSprite(v7, (__int64)&v11);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::showTransformControl from 0xc02144 to 0xc022b8 (372 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::handleAction @ 0x7a1c30\n; > EditorUI::activateTransformControl @ 0xc02a08\n; > <???> @ 0xc60e8\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_50]!                                ; +0x0, 0xc02144\nMOV             X29, SP                                                ; +0x4, 0xc02148\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0xc0214c\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc02150\nSTR             X23, [SP,#0x50+var_20]                                 ; +0x10, 0xc02154\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0xc02158\nMOV             X19, X0                                                ; +0x18, 0xc0215c\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xc02160\nLDR             X0, [X0,#0x380]; this                                  ; +0x20, 0xc02164\nLDR             X1, [X1]                                               ; +0x24, 0xc02168\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x28, 0xc0216c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2c, 0xc02170\nCBNZ            W0, loc_C02180                                         ; +0x30, 0xc02174\nLDR             X0, [X19,#0x5D8]                                       ; +0x34, 0xc02178\nCBZ             X0, loc_C02260                                         ; +0x38, 0xc0217c\nMOV             W2, #1                                                 ; +0x3c, 0xc02180\nSTRB            W2, [X19,#0x214]                                       ; +0x40, 0xc02184\nADRP            X2, #qword_119AAA8@PAGE                                ; +0x44, 0xc02188\nMOV             X0, X19                                                ; +0x48, 0xc0218c\nMOV             W1, #0x2F ; '/'                                        ; +0x4c, 0xc02190\nLDR             X2, [X2,#qword_119AAA8@PAGEOFF]                        ; +0x50, 0xc02194\nBL              _ZN8EditorUI21updateEditButtonColorEiN7cocos2d10_ccColor3BE; EditorUI::updateEditButtonColor(int,cocos2d::_ccColor3B) ; +0x54, 0xc02198\nSTRB            WZR, [X19,#0x308]                                      ; +0x58, 0xc0219c\nLDR             X0, [X19,#0x380]; this                                 ; +0x5c, 0xc021a0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x60, 0xc021a4\nCBNZ            W0, loc_C02288                                         ; +0x64, 0xc021a8\nLDR             X1, [X19,#0x5D8]                                       ; +0x68, 0xc021ac\nADD             X22, X19, #0x300                                       ; +0x6c, 0xc021b0\nADD             X21, X29, #0x50+var_10                                 ; +0x70, 0xc021b4\nMOV             X0, X1                                                 ; +0x74, 0xc021b8\nLDR             X1, [X1]                                               ; +0x78, 0xc021bc\nLDR             X1, [X1,#0xC0]                                         ; +0x7c, 0xc021c0\nBLR             X1                                                     ; +0x80, 0xc021c4\nMOV             X1, X0                                                 ; +0x84, 0xc021c8\nMOV             X0, X22                                                ; +0x88, 0xc021cc\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x8c, 0xc021d0\nLDR             X2, [X19,#0x318]                                       ; +0x90, 0xc021d4\nMOV             X1, X22                                                ; +0x94, 0xc021d8\nMOV             X0, X2                                                 ; +0x98, 0xc021dc\nLDR             X2, [X2]                                               ; +0x9c, 0xc021e0\nLDR             X2, [X2,#0xB8]                                         ; +0xa0, 0xc021e4\nBLR             X2                                                     ; +0xa4, 0xc021e8\nLDR             X23, [X19,#0x318]                                      ; +0xa8, 0xc021ec\nLDR             X0, [X19,#0x5A0]                                       ; +0xac, 0xc021f0\nLDR             X1, [X0,#0xF50]                                        ; +0xb0, 0xc021f4\nMOV             X0, X1                                                 ; +0xb4, 0xc021f8\nLDR             X1, [X1]                                               ; +0xb8, 0xc021fc\nLDR             X1, [X1,#0xA8]                                         ; +0xbc, 0xc02200\nBLR             X1                                                     ; +0xc0, 0xc02204\nFMOV            S1, #1.0                                               ; +0xc4, 0xc02208\nMOV             X0, X23; this                                          ; +0xc8, 0xc0220c\nFDIV            S0, S1, S0; float                                      ; +0xcc, 0xc02210\nBL              _ZN18GJTransformControl12scaleButtonsEf; GJTransformControl::scaleButtons(float) ; +0xd0, 0xc02214\nLDR             X2, [X19,#0x318]                                       ; +0xd4, 0xc02218\nMOV             W1, #1                                                 ; +0xd8, 0xc0221c\nMOV             X0, X2                                                 ; +0xdc, 0xc02220\nLDR             X2, [X2]                                               ; +0xe0, 0xc02224\nLDR             X2, [X2,#0x158]                                        ; +0xe4, 0xc02228\nBLR             X2                                                     ; +0xe8, 0xc0222c\nLDR             X19, [X19,#0x318]                                      ; +0xec, 0xc02230\nMOV             X0, X19                                                ; +0xf0, 0xc02234\nLDR             X1, [X19]                                              ; +0xf4, 0xc02238\nLDR             X1, [X1,#0xC0]                                         ; +0xf8, 0xc0223c\nBLR             X1                                                     ; +0xfc, 0xc02240\nMOV             X1, X0                                                 ; +0x100, 0xc02244\nMOV             X8, X21                                                ; +0x104, 0xc02248\nMOV             X0, X22                                                ; +0x108, 0xc0224c\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x10c, 0xc02250\nMOV             X0, X19                                                ; +0x110, 0xc02254\nMOV             X1, X21                                                ; +0x114, 0xc02258\nBL              _ZN18GJTransformControl18updateAnchorSpriteEN7cocos2d7CCPointE; GJTransformControl::updateAnchorSprite(cocos2d::CCPoint) ; +0x118, 0xc0225c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x11c, 0xc02260\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x120, 0xc02264\nLDR             X0, [X20]                                              ; +0x124, 0xc02268\nCMP             X1, X0                                                 ; +0x128, 0xc0226c\nB.NE            loc_C022B4                                             ; +0x12c, 0xc02270\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x130, 0xc02274\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x134, 0xc02278\nLDR             X23, [SP,#0x50+var_20]                                 ; +0x138, 0xc0227c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x13c, 0xc02280\nRET                                                                    ; +0x140, 0xc02284\nADD             X21, X29, #0x50+var_10                                 ; +0x144, 0xc02288\nLDR             X1, [X19,#0x380]; cocos2d::CCArray *                   ; +0x148, 0xc0228c\nMOV             X0, X19; this                                          ; +0x14c, 0xc02290\nMOV             X8, X21                                                ; +0x150, 0xc02294\nMOV             W2, #0; bool                                           ; +0x154, 0xc02298\nADD             X22, X19, #0x300                                       ; +0x158, 0xc0229c\nBL              _ZN8EditorUI14getGroupCenterEPN7cocos2d7CCArrayEb; EditorUI::getGroupCenter(cocos2d::CCArray *,bool) ; +0x15c, 0xc022a0\nMOV             X0, X22                                                ; +0x160, 0xc022a4\nMOV             X1, X21                                                ; +0x164, 0xc022a8\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x168, 0xc022ac\nB               loc_C021D4                                             ; +0x16c, 0xc022b0\nBL              .__stack_chk_fail                                      ; +0x170, 0xc022b4", "xrefs": ["LevelEditorLayer::handleAction @ 0x7a1c30", "EditorUI::activateTransformControl @ 0xc02a08", "<???> @ 0xc60e8"], "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"}