{"type": "func", "start": 7401392, "end": 7401478, "name": "EditorUI::activateTransformControl", "pseudocode": "// \n// EditorUI::activateTransformControl from 0x70efb0 to 0x70f006 (86 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f1ae6\n// > EditorUI::updateControlsAfterAlign @ 0x70f022\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:43 +0000\n// \n\nEditorSFXManager *__fastcall EditorUI::activateTransformControl(cocos2d::CCArray **this, cocos2d::CCObject *a2)\n{\n  EditorSFXManager *result; // r0\n  EditorSFXManager *v4; // r0\n  int v5; // r1\n  int v6; // r2\n  int v7; // r3\n\n  result = (EditorSFXManager *)cocos2d::CCArray::count(*(this + 167));\n  if ( result || *(this + 249) )\n  {\n    v4 = (EditorSFXManager *)EditorSFXManager::sharedState(result);\n    EditorSFXManager::playAction(v4, 189);\n    EditorUI::deactivateScaleControl((EditorUI *)this);\n    EditorUI::deactivateRotationControl((EditorUI *)this);\n    if ( (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 149) + 176))(*(this + 149)) )\n    {\n      EditorUI::deactivateTransformControl((EditorUI *)this);\n      return (EditorSFXManager *)EditorUI::toggleSpecialEditButtons(this, 0);\n    }\n    else\n    {\n      return (EditorSFXManager *)EditorUI::showTransformControl(this, v5, v6, v7);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::activateTransformControl from 0x70efb0 to 0x70f006 (86 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f1ae6\n; > EditorUI::updateControlsAfterAlign @ 0x70f022\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:43 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x70efb0\nMOV             R4, R0                                                 ; +0x2, 0x70efb2\nLDR.W           R0, [R0,#0x29C]; this                                  ; +0x4, 0x70efb4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x8, 0x70efb8\nCBNZ            R0, loc_70EFC6                                         ; +0xc, 0x70efbc\nLDR.W           R3, [R4,#0x3E4]                                        ; +0xe, 0x70efbe\nCBNZ            R3, loc_70EFC6                                         ; +0x12, 0x70efc2\nPOP             {R4,PC}                                                ; +0x14, 0x70efc4\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x16, 0x70efc6\nMOVS            R1, #0xBD; int                                         ; +0x1a, 0x70efca\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x1c, 0x70efcc\nMOV             R0, R4; this                                           ; +0x20, 0x70efd0\nBL              _ZN8EditorUI22deactivateScaleControlEv; EditorUI::deactivateScaleControl(void) ; +0x22, 0x70efd2\nMOV             R0, R4; this                                           ; +0x26, 0x70efd6\nBL              _ZN8EditorUI25deactivateRotationControlEv; EditorUI::deactivateRotationControl(void) ; +0x28, 0x70efd8\nLDR.W           R0, [R4,#0x254]                                        ; +0x2c, 0x70efdc\nLDR             R3, [R0]                                               ; +0x30, 0x70efe0\nLDR.W           R3, [R3,#0xB0]                                         ; +0x32, 0x70efe2\nBLX             R3                                                     ; +0x36, 0x70efe6\nCBZ             R0, loc_70EFFC                                         ; +0x38, 0x70efe8\nMOV             R0, R4; this                                           ; +0x3a, 0x70efea\nBL              _ZN8EditorUI26deactivateTransformControlEv; EditorUI::deactivateTransformControl(void) ; +0x3c, 0x70efec\nMOV             R0, R4; this                                           ; +0x40, 0x70eff0\nMOVS            R1, #0; bool                                           ; +0x42, 0x70eff2\nPOP.W           {R4,LR}                                                ; +0x44, 0x70eff4\nB.W             _ZN8EditorUI24toggleSpecialEditButtonsEb; EditorUI::toggleSpecialEditButtons(bool) ; +0x48, 0x70eff8\nMOV             R0, R4; this                                           ; +0x4c, 0x70effc\nPOP.W           {R4,LR}                                                ; +0x4e, 0x70effe\nB.W             _ZN8EditorUI20showTransformControlEv; EditorUI::showTransformControl(void) ; +0x52, 0x70f002", "xrefs": ["EditorUI::handleEditorAction @ 0x6f1ae6", "EditorUI::updateControlsAfterAlign @ 0x70f022"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}