{"type": "func", "start": 5370819392, "end": 5370819769, "name": "EditorUI::showTransformControl", "pseudocode": "// \n// EditorUI::showTransformControl from 0x140203340 to 0x1402034b9 (377 bytes)\n// \n// 5 xrefs:\n// > EditorUI::activateTransformControl @ 0x140203326\n// > LevelEditorLayer::handleAction @ 0x1403f2e82\n// > <???> @ 0x1408a4024\n// > <???> @ 0x1408a4034\n// > <???> @ 0x14091affc\n// \n// This function is hookable on this platform (idp: pc, 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 11:28:14 +0000\n// \n\nunsigned int __fastcall EditorUI::showTransformControl(__int64 a1)\n{\n  unsigned int result; // eax\n  cocos2d::CCArray *v3; // rcx\n  __int64 v4; // rcx\n  cocos2d::CCPoint *GroupCenter; // rax\n  __int64 v6; // rdx\n  __int64 v7; // rax\n  __int64 v8; // rbx\n  struct cocos2d::CCObject *v9; // rax\n  __int64 v10; // rcx\n  __int16 v11; // [rsp+30h] [rbp+8h] BYREF\n  char v12; // [rsp+32h] [rbp+Ah]\n\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944));\n  if ( result || *(_QWORD *)(a1 + 1568) )\n  {\n    v11 = -22874;\n    v12 = -90;\n    *(_BYTE *)(a1 + 556) = 1;\n    EditorUI::updateEditButtonColor(a1, 47, &v11);\n    v3 = *(cocos2d::CCArray **)(a1 + 944);\n    *(_BYTE *)(a1 + 824) = 0;\n    if ( cocos2d::CCArray::count(v3) )\n      GroupCenter = EditorUI::getGroupCenter(v4, (cocos2d::CCPoint *)&v11, *(cocos2d::CCArray **)(a1 + 944), 0);\n    else\n      GroupCenter = (cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1568) + 200LL))(*(_QWORD *)(a1 + 1568));\n    cocos2d::CCPoint::operator=(a1 + 816, GroupCenter);\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 840) + 184LL))(*(_QWORD *)(a1 + 840), a1 + 816);\n    (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL));\n    GJTransformControl::scaleButtons(*(_QWORD *)(a1 + 840));\n    LOBYTE(v6) = 1;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 840) + 336LL))(*(_QWORD *)(a1 + 840), v6);\n    v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 840) + 200LL))(*(_QWORD *)(a1 + 840));\n    cocos2d::CCPoint::operator-(a1 + 816, &v11, v7);\n    v8 = *(_QWORD *)(a1 + 840);\n    v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v8 + 512), 0);\n    result = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int16 *))(*(_QWORD *)v9 + 184LL))(v9, &v11);\n    v10 = *(_QWORD *)(v8 + 440);\n    if ( v10 )\n      return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 96LL))(v10);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::showTransformControl from 0x140203340 to 0x1402034b9 (377 bytes)\n; \n; 5 xrefs:\n; > EditorUI::activateTransformControl @ 0x140203326\n; > LevelEditorLayer::handleAction @ 0x1403f2e82\n; > <???> @ 0x1408a4024\n; > <???> @ 0x1408a4034\n; > <???> @ 0x14091affc\n; \n; This function is hookable on this platform (idp: pc, 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 11:28:14 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140203340\npush    rdi                                                            ; +0x5, 0x140203345\nsub     rsp, 20h                                                       ; +0x6, 0x140203346\nmov     rbx, rcx                                                       ; +0xa, 0x14020334a\nmov     rcx, [rcx+3B0h]                                                ; +0xd, 0x14020334d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x14, 0x140203354\ntest    eax, eax                                                       ; +0x1a, 0x14020335a\njnz     short loc_14020336C                                            ; +0x1c, 0x14020335c\ncmp     qword ptr [rbx+620h], 0                                        ; +0x1e, 0x14020335e\njz      loc_1402034AE                                                  ; +0x26, 0x140203366\nmovzx   eax, cs:word_1407033DC                                         ; +0x2c, 0x14020336c\nlea     r8, [rsp+28h+arg_0]                                            ; +0x33, 0x140203373\nmov     [rsp+28h+arg_0], ax                                            ; +0x38, 0x140203378\nmov     edx, 2Fh ; '/'                                                 ; +0x3d, 0x14020337d\nmovzx   eax, cs:byte_1407033DE                                         ; +0x42, 0x140203382\nmov     rcx, rbx                                                       ; +0x49, 0x140203389\nmov     [rsp+28h+arg_2], al                                            ; +0x4c, 0x14020338c\nmov     [rsp+28h+arg_8], rsi                                           ; +0x50, 0x140203390\nmov     byte ptr [rbx+22Ch], 1                                         ; +0x55, 0x140203395\ncall    EditorUI__updateEditButtonColor                                ; +0x5c, 0x14020339c\nmov     rcx, [rbx+3B0h]                                                ; +0x61, 0x1402033a1\nmov     byte ptr [rbx+338h], 0                                         ; +0x68, 0x1402033a8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6f, 0x1402033af\ntest    eax, eax                                                       ; +0x75, 0x1402033b5\njz      short loc_1402033CF                                            ; +0x77, 0x1402033b7\nmov     r8, [rbx+3B0h]                                                 ; +0x79, 0x1402033b9\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x80, 0x1402033c0\nxor     r9d, r9d                                                       ; +0x85, 0x1402033c5\ncall    EditorUI__getGroupCenter                                       ; +0x88, 0x1402033c8\njmp     short loc_1402033DF                                            ; +0x8d, 0x1402033cd\nmov     rcx, [rbx+620h]                                                ; +0x8f, 0x1402033cf\nmov     rax, [rcx]                                                     ; +0x96, 0x1402033d6\ncall    qword ptr [rax+0C8h]                                           ; +0x99, 0x1402033d9\nmov     rdx, rax                                                       ; +0x9f, 0x1402033df\nlea     rcx, [rbx+330h]                                                ; +0xa2, 0x1402033e2\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xa9, 0x1402033e9\nmov     rcx, [rbx+348h]                                                ; +0xaf, 0x1402033ef\nlea     rdx, [rbx+330h]                                                ; +0xb6, 0x1402033f6\nmov     rax, [rcx]                                                     ; +0xbd, 0x1402033fd\ncall    qword ptr [rax+0B8h]                                           ; +0xc0, 0x140203400\nmov     rax, [rbx+5E8h]                                                ; +0xc6, 0x140203406\nmov     rcx, [rax+10C8h]                                               ; +0xcd, 0x14020340d\nmov     rax, [rcx]                                                     ; +0xd4, 0x140203414\ncall    qword ptr [rax+0A8h]                                           ; +0xd7, 0x140203417\nmovss   xmm1, cs:flt_140835080                                         ; +0xdd, 0x14020341d\nmov     rcx, [rbx+348h]                                                ; +0xe5, 0x140203425\ndivss   xmm1, xmm0                                                     ; +0xec, 0x14020342c\ncall    GJTransformControl__scaleButtons                               ; +0xf0, 0x140203430\nmov     rcx, [rbx+348h]                                                ; +0xf5, 0x140203435\nmov     dl, 1                                                          ; +0xfc, 0x14020343c\nmov     rax, [rcx]                                                     ; +0xfe, 0x14020343e\ncall    qword ptr [rax+150h]                                           ; +0x101, 0x140203441\nmov     rcx, [rbx+348h]                                                ; +0x107, 0x140203447\nmov     rax, [rcx]                                                     ; +0x10e, 0x14020344e\ncall    qword ptr [rax+0C8h]                                           ; +0x111, 0x140203451\nmov     r8, rax                                                        ; +0x117, 0x140203457\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x11a, 0x14020345a\nlea     rcx, [rbx+330h]                                                ; +0x11f, 0x14020345f\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x126, 0x140203466\nmov     rbx, [rbx+348h]                                                ; +0x12c, 0x14020346c\nxor     edx, edx                                                       ; +0x133, 0x140203473\nmov     rcx, [rbx+200h]                                                ; +0x135, 0x140203475\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x13c, 0x14020347c\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x142, 0x140203482\nmov     rcx, [rax]                                                     ; +0x147, 0x140203487\nmov     r8, [rcx+0B8h]                                                 ; +0x14a, 0x14020348a\nmov     rcx, rax                                                       ; +0x151, 0x140203491\ncall    r8                                                             ; +0x154, 0x140203494\nmov     rcx, [rbx+1B8h]                                                ; +0x157, 0x140203497\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x15e, 0x14020349e\ntest    rcx, rcx                                                       ; +0x163, 0x1402034a3\njz      short loc_1402034AE                                            ; +0x166, 0x1402034a6\nmov     rax, [rcx]                                                     ; +0x168, 0x1402034a8\ncall    qword ptr [rax+60h]                                            ; +0x16b, 0x1402034ab\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x16e, 0x1402034ae\nadd     rsp, 20h                                                       ; +0x173, 0x1402034b3\npop     rdi                                                            ; +0x177, 0x1402034b7\nretn                                                                   ; +0x178, 0x1402034b8", "xrefs": ["EditorUI::activateTransformControl @ 0x140203326", "LevelEditorLayer::handleAction @ 0x1403f2e82", "<???> @ 0x1408a4024", "<???> @ 0x1408a4034", "<???> @ 0x14091affc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}