{"type": "func", "start": 12593568, "end": 12593716, "name": "EditorUI::activateTransformControl", "pseudocode": "// \n// EditorUI::activateTransformControl from 0xc029a0 to 0xc02a34 (148 bytes)\n// \n// 5 xrefs:\n// > EditorUI::handleEditorAction @ 0xbd8084\n// > EditorUI::updateControlsAfterAlign @ 0xc02ac0\n// > <???> @ 0xc6da8\n// > EditorUI::createMoveMenu @ 0xbe17bc\n// > <???> @ 0x1545cf0\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\nEditorSFXManager *__fastcall EditorUI::activateTransformControl(cocos2d::CCArray **this, cocos2d::CCObject *a2)\n{\n  EditorSFXManager *result; // x0\n  EditorSFXManager *v4; // x0\n\n  result = (EditorSFXManager *)cocos2d::CCArray::count(*(this + 112));\n  if ( (_DWORD)result || (result = *(this + 187)) != nullptr )\n  {\n    v4 = (EditorSFXManager *)EditorSFXManager::sharedState(result);\n    EditorSFXManager::playAction(v4, 189);\n    EditorUI::deactivateScaleControl((EditorUI *)this);\n    EditorUI::deactivateRotationControl((EditorUI *)this);\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 99) + 352LL))(*(this + 99)) )\n    {\n      EditorUI::deactivateTransformControl((EditorUI *)this);\n      return (EditorSFXManager *)EditorUI::toggleSpecialEditButtons(this, 0);\n    }\n    else\n    {\n      return (EditorSFXManager *)EditorUI::showTransformControl((EditorUI *)this);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::activateTransformControl from 0xc029a0 to 0xc02a34 (148 bytes)\n; \n; 5 xrefs:\n; > EditorUI::handleEditorAction @ 0xbd8084\n; > EditorUI::updateControlsAfterAlign @ 0xc02ac0\n; > <???> @ 0xc6da8\n; > EditorUI::createMoveMenu @ 0xbe17bc\n; > <???> @ 0x1545cf0\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_20]!                                ; +0x0, 0xc029a0\nMOV             X29, SP                                                ; +0x4, 0xc029a4\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xc029a8\nMOV             X19, X0                                                ; +0xc, 0xc029ac\nLDR             X0, [X0,#0x380]; this                                  ; +0x10, 0xc029b0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x14, 0xc029b4\nCBNZ            W0, loc_C029C4                                         ; +0x18, 0xc029b8\nLDR             X0, [X19,#0x5D8]; this                                 ; +0x1c, 0xc029bc\nCBZ             X0, loc_C02A0C                                         ; +0x20, 0xc029c0\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x24, 0xc029c4\nMOV             W1, #0xBD; int                                         ; +0x28, 0xc029c8\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x2c, 0xc029cc\nMOV             X0, X19; this                                          ; +0x30, 0xc029d0\nBL              _ZN8EditorUI22deactivateScaleControlEv; EditorUI::deactivateScaleControl(void) ; +0x34, 0xc029d4\nMOV             X0, X19; this                                          ; +0x38, 0xc029d8\nBL              _ZN8EditorUI25deactivateRotationControlEv; EditorUI::deactivateRotationControl(void) ; +0x3c, 0xc029dc\nLDR             X1, [X19,#0x318]                                       ; +0x40, 0xc029e0\nMOV             X0, X1                                                 ; +0x44, 0xc029e4\nLDR             X1, [X1]                                               ; +0x48, 0xc029e8\nLDR             X1, [X1,#0x160]                                        ; +0x4c, 0xc029ec\nBLR             X1                                                     ; +0x50, 0xc029f0\nUXTB            W0, W0                                                 ; +0x54, 0xc029f4\nCBNZ            W0, loc_C02A18                                         ; +0x58, 0xc029f8\nMOV             X0, X19; this                                          ; +0x5c, 0xc029fc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x60, 0xc02a00\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x64, 0xc02a04\nB               _ZN8EditorUI20showTransformControlEv; EditorUI::showTransformControl(void) ; +0x68, 0xc02a08\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x6c, 0xc02a0c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x70, 0xc02a10\nRET                                                                    ; +0x74, 0xc02a14\nMOV             X0, X19; this                                          ; +0x78, 0xc02a18\nBL              _ZN8EditorUI26deactivateTransformControlEv; EditorUI::deactivateTransformControl(void) ; +0x7c, 0xc02a1c\nMOV             X0, X19; this                                          ; +0x80, 0xc02a20\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x84, 0xc02a24\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x88, 0xc02a28\nMOV             W1, #0; bool                                           ; +0x8c, 0xc02a2c\nB               _ZN8EditorUI24toggleSpecialEditButtonsEb; EditorUI::toggleSpecialEditButtons(bool) ; +0x90, 0xc02a30", "xrefs": ["EditorUI::handleEditorAction @ 0xbd8084", "EditorUI::updateControlsAfterAlign @ 0xc02ac0", "<???> @ 0xc6da8", "EditorUI::createMoveMenu @ 0xbe17bc", "<???> @ 0x1545cf0"], "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"}