{"type": "func", "start": 5370819248, "end": 5370819377, "name": "EditorUI::activateTransformControl", "pseudocode": "// \n// EditorUI::activateTransformControl from 0x1402032b0 to 0x140203331 (129 bytes)\n// \n// 5 xrefs:\n// > EditorUI::handleEditorAction @ 0x1401c259b\n// > EditorUI::alignObjects @ 0x140201c69\n// > EditorUI::updateControlsAfterAlign @ 0x140201d1a\n// > EditorUI::createMoveMenu @ 0x1401f2d53\n// > <???> @ 0x14091aff0\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::activateTransformControl(__int64 a1)\n{\n  unsigned int result; // eax\n  __int64 v3; // rax\n\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944));\n  if ( result || *(_QWORD *)(a1 + 1568) )\n  {\n    v3 = EditorSFXManager::sharedState();\n    EditorSFXManager::playAction(v3, 189);\n    EditorUI::deactivateScaleControl(a1);\n    EditorUI::deactivateRotationControl(a1);\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 840) + 344LL))(*(_QWORD *)(a1 + 840)) )\n    {\n      EditorUI::deactivateTransformControl(a1);\n      return EditorUI::toggleSpecialEditButtons(a1, 0);\n    }\n    else\n    {\n      return EditorUI::showTransformControl(a1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::activateTransformControl from 0x1402032b0 to 0x140203331 (129 bytes)\n; \n; 5 xrefs:\n; > EditorUI::handleEditorAction @ 0x1401c259b\n; > EditorUI::alignObjects @ 0x140201c69\n; > EditorUI::updateControlsAfterAlign @ 0x140201d1a\n; > EditorUI::createMoveMenu @ 0x1401f2d53\n; > <???> @ 0x14091aff0\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; \npush    rbx                                                            ; +0x0, 0x1402032b0\nsub     rsp, 20h                                                       ; +0x2, 0x1402032b2\nmov     rbx, rcx                                                       ; +0x6, 0x1402032b6\nmov     rcx, [rcx+3B0h]                                                ; +0x9, 0x1402032b9\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x10, 0x1402032c0\ntest    eax, eax                                                       ; +0x16, 0x1402032c6\njnz     short loc_1402032D4                                            ; +0x18, 0x1402032c8\ncmp     qword ptr [rbx+620h], 0                                        ; +0x1a, 0x1402032ca\njz      short loc_14020332B                                            ; +0x22, 0x1402032d2\ncall    EditorSFXManager__sharedState                                  ; +0x24, 0x1402032d4\nmov     rcx, rax                                                       ; +0x29, 0x1402032d9\nmov     edx, 0BDh                                                      ; +0x2c, 0x1402032dc\ncall    EditorSFXManager__playAction                                   ; +0x31, 0x1402032e1\nmov     rcx, rbx                                                       ; +0x36, 0x1402032e6\ncall    EditorUI__deactivateScaleControl                               ; +0x39, 0x1402032e9\nmov     rcx, rbx                                                       ; +0x3e, 0x1402032ee\ncall    EditorUI__deactivateRotationControl                            ; +0x41, 0x1402032f1\nmov     rcx, [rbx+348h]                                                ; +0x46, 0x1402032f6\nmov     rax, [rcx]                                                     ; +0x4d, 0x1402032fd\ncall    qword ptr [rax+158h]                                           ; +0x50, 0x140203300\nmov     rcx, rbx                                                       ; +0x56, 0x140203306\ntest    al, al                                                         ; +0x59, 0x140203309\njz      short loc_140203321                                            ; +0x5b, 0x14020330b\ncall    EditorUI__deactivateTransformControl                           ; +0x5d, 0x14020330d\nxor     edx, edx                                                       ; +0x62, 0x140203312\nmov     rcx, rbx                                                       ; +0x64, 0x140203314\nadd     rsp, 20h                                                       ; +0x67, 0x140203317\npop     rbx                                                            ; +0x6b, 0x14020331b\njmp     EditorUI__toggleSpecialEditButtons                             ; +0x6c, 0x14020331c\nadd     rsp, 20h                                                       ; +0x71, 0x140203321\npop     rbx                                                            ; +0x75, 0x140203325\njmp     EditorUI__showTransformControl                                 ; +0x76, 0x140203326\nadd     rsp, 20h                                                       ; +0x7b, 0x14020332b\npop     rbx                                                            ; +0x7f, 0x14020332f\nretn                                                                   ; +0x80, 0x140203330", "xrefs": ["EditorUI::handleEditorAction @ 0x1401c259b", "EditorUI::alignObjects @ 0x140201c69", "EditorUI::updateControlsAfterAlign @ 0x140201d1a", "EditorUI::createMoveMenu @ 0x1401f2d53", "<???> @ 0x14091aff0"], "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"}