{"type": "func", "start": 5369828480, "end": 5369828772, "name": "EditorUI::deselectAll", "pseudocode": "// \n// EditorUI::deselectAll from 0x140111480 to 0x1401115a4 (292 bytes)\n// \n// 20 xrefs:\n// > EditorUI::onDeleteSelectedType @ 0x1400e69ef\n// > EditorUI::onDeleteStartPos @ 0x1400e6a29\n// > EditorUI::FLAlert_Clicked @ 0x1400e6b24\n// > EditorUI::FLAlert_Clicked @ 0x1400e6b43\n// > EditorUI::selectObject @ 0x14011059c\n// > EditorUI::selectObject @ 0x1401105cc\n// > EditorUI::onDeselectAll @ 0x140111476\n// > EditorUI::onPlaytest @ 0x140112122\n// > EditorUI::pasteObjects @ 0x140114199\n// > EditorUI::createSmartObjectsFromTemplate @ 0x140116ec2\n// > EditorUI::createSmartObjectsFromTemplate @ 0x14011760f\n// > EditorUI::createSmartObjectsFromType @ 0x140117f71\n// > EditorUI::createSmartObjectsFromType @ 0x1401182e7\n// > EditorUI::createNewKeyframeAnim @ 0x1401193ee\n// > EditorUI::keyDown @ 0x140125481\n// > LevelEditorLayer::handleAction @ 0x1402d6aca\n// > LevelEditorLayer::breakApartTextObject @ 0x1402df61d\n// > SetupKeyframePopup::onCustomButton @ 0x140426878\n// > SetupKeyframePopup::onCustomButton @ 0x140426a74\n// > <???> @ 0x1406c8f64\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditorUI::deselectAll(EditorUI *a1)\n{\n  GameObject *m_selectedObject; // rcx\n  unsigned int v3; // edi\n  GameObject *v4; // rax\n  GJRotationControl *m_rotationControl; // rcx\n\n  cocos2d::CCNode::stopActionByTag(a1, 124);\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    m_selectedObject->m_isSelected = 0;\n    GameObject::updateObjectEditorColor(m_selectedObject);\n  }\n  v3 = 0;\n  a1->m_selectedObject = nullptr;\n  EditorUI::toggleEditObjectButton(a1);\n  a1->m_canActivateControls = 1;\n  cocos2d::CCPoint::operator=(&a1->m_lastTouchPoint, &dword_1406C1AA8);\n  if ( cocos2d::CCArray::count(a1->m_selectedObjects) && cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    do\n    {\n      v4 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v3);\n      v4->m_isSelected = 0;\n      GameObject::updateObjectEditorColor(v4);\n      ++v3;\n    }\n    while ( v3 < cocos2d::CCArray::count(a1->m_selectedObjects) );\n  }\n  cocos2d::CCArray::removeAllObjects(a1->m_selectedObjects);\n  EditorUI::updateButtons(a1);\n  m_rotationControl = a1->m_rotationControl;\n  a1->m_rotationTouchID = -1;\n  if ( m_rotationControl->isVisible(m_rotationControl) )\n  {\n    a1->m_rotationControl->setVisible(a1->m_rotationControl, 0);\n    GJRotationControl::finishTouch(a1->m_rotationControl);\n  }\n  EditorUI::deactivateScaleControl(a1);\n  EditorUI::deactivateTransformControl(a1);\n  EditorUI::updateObjectInfoLabel(a1);\n}", "assembly": "; \n; EditorUI::deselectAll from 0x140111480 to 0x1401115a4 (292 bytes)\n; \n; 20 xrefs:\n; > EditorUI::onDeleteSelectedType @ 0x1400e69ef\n; > EditorUI::onDeleteStartPos @ 0x1400e6a29\n; > EditorUI::FLAlert_Clicked @ 0x1400e6b24\n; > EditorUI::FLAlert_Clicked @ 0x1400e6b43\n; > EditorUI::selectObject @ 0x14011059c\n; > EditorUI::selectObject @ 0x1401105cc\n; > EditorUI::onDeselectAll @ 0x140111476\n; > EditorUI::onPlaytest @ 0x140112122\n; > EditorUI::pasteObjects @ 0x140114199\n; > EditorUI::createSmartObjectsFromTemplate @ 0x140116ec2\n; > EditorUI::createSmartObjectsFromTemplate @ 0x14011760f\n; > EditorUI::createSmartObjectsFromType @ 0x140117f71\n; > EditorUI::createSmartObjectsFromType @ 0x1401182e7\n; > EditorUI::createNewKeyframeAnim @ 0x1401193ee\n; > EditorUI::keyDown @ 0x140125481\n; > LevelEditorLayer::handleAction @ 0x1402d6aca\n; > LevelEditorLayer::breakApartTextObject @ 0x1402df61d\n; > SetupKeyframePopup::onCustomButton @ 0x140426878\n; > SetupKeyframePopup::onCustomButton @ 0x140426a74\n; > <???> @ 0x1406c8f64\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140111480\npush    rdi                                                            ; +0x5, 0x140111485\nsub     rsp, 20h                                                       ; +0x6, 0x140111486\nmov     edx, 7Ch ; '|'                                                 ; +0xa, 0x14011148a\nmov     rbx, rcx                                                       ; +0xf, 0x14011148f\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0x12, 0x140111492\nmov     rcx, [rbx+538h]                                                ; +0x18, 0x140111498\ntest    rcx, rcx                                                       ; +0x1f, 0x14011149f\njz      short loc_1401114B0                                            ; +0x22, 0x1401114a2\nmov     byte ptr [rcx+475h], 0                                         ; +0x24, 0x1401114a4\ncall    GameObject__updateObjectEditorColor                            ; +0x2b, 0x1401114ab\nxor     edi, edi                                                       ; +0x30, 0x1401114b0\nmov     rcx, rbx                                                       ; +0x32, 0x1401114b2\nmov     [rbx+538h], rdi                                                ; +0x35, 0x1401114b5\ncall    EditorUI__toggleEditObjectButton                               ; +0x3c, 0x1401114bc\nlea     rcx, [rbx+520h]                                                ; +0x41, 0x1401114c1\nmov     byte ptr [rbx+2C8h], 1                                         ; +0x48, 0x1401114c8\nlea     rdx, dword_1406C1AA8                                           ; +0x4f, 0x1401114cf\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x56, 0x1401114d6\nmov     rcx, [rbx+340h]                                                ; +0x5c, 0x1401114dc\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x63, 0x1401114e3\ntest    eax, eax                                                       ; +0x69, 0x1401114e9\njz      short loc_140111531                                            ; +0x6b, 0x1401114eb\nmov     rcx, [rbx+340h]                                                ; +0x6d, 0x1401114ed\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x1401114f4\ntest    eax, eax                                                       ; +0x7a, 0x1401114fa\njz      short loc_140111531                                            ; +0x7c, 0x1401114fc\nxchg    ax, ax                                                         ; +0x7e, 0x1401114fe\nmov     rcx, [rbx+340h]                                                ; +0x80, 0x140111500\nmov     edx, edi                                                       ; +0x87, 0x140111507\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x140111509\nmov     rcx, rax                                                       ; +0x8f, 0x14011150f\nmov     byte ptr [rax+475h], 0                                         ; +0x92, 0x140111512\ncall    GameObject__updateObjectEditorColor                            ; +0x99, 0x140111519\nmov     rcx, [rbx+340h]                                                ; +0x9e, 0x14011151e\ninc     edi                                                            ; +0xa5, 0x140111525\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa7, 0x140111527\ncmp     edi, eax                                                       ; +0xad, 0x14011152d\njb      short loc_140111500                                            ; +0xaf, 0x14011152f\nmov     rcx, [rbx+340h]                                                ; +0xb1, 0x140111531\ncall    cs:?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0xb8, 0x140111538\nmov     rcx, rbx                                                       ; +0xbe, 0x14011153e\ncall    EditorUI__updateButtons                                        ; +0xc1, 0x140111541\nmov     rcx, [rbx+2B8h]                                                ; +0xc6, 0x140111546\nmov     dword ptr [rbx+2A0h], 0FFFFFFFFh                               ; +0xcd, 0x14011154d\nmov     rax, [rcx]                                                     ; +0xd7, 0x140111557\ncall    qword ptr [rax+148h]                                           ; +0xda, 0x14011155a\ntest    al, al                                                         ; +0xe0, 0x140111560\njz      short loc_140111582                                            ; +0xe2, 0x140111562\nmov     rcx, [rbx+2B8h]                                                ; +0xe4, 0x140111564\nxor     edx, edx                                                       ; +0xeb, 0x14011156b\nmov     rax, [rcx]                                                     ; +0xed, 0x14011156d\ncall    qword ptr [rax+140h]                                           ; +0xf0, 0x140111570\nmov     rcx, [rbx+2B8h]                                                ; +0xf6, 0x140111576\ncall    GJRotationControl__finishTouch                                 ; +0xfd, 0x14011157d\nmov     rcx, rbx                                                       ; +0x102, 0x140111582\ncall    EditorUI__deactivateScaleControl                               ; +0x105, 0x140111585\nmov     rcx, rbx                                                       ; +0x10a, 0x14011158a\ncall    EditorUI__deactivateTransformControl                           ; +0x10d, 0x14011158d\nmov     rcx, rbx                                                       ; +0x112, 0x140111592\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x115, 0x140111595\nadd     rsp, 20h                                                       ; +0x11a, 0x14011159a\npop     rdi                                                            ; +0x11e, 0x14011159e\njmp     EditorUI__updateObjectInfoLabel                                ; +0x11f, 0x14011159f", "xrefs": ["EditorUI::onDeleteSelectedType @ 0x1400e69ef", "EditorUI::onDeleteStartPos @ 0x1400e6a29", "EditorUI::FLAlert_Clicked @ 0x1400e6b24", "EditorUI::FLAlert_Clicked @ 0x1400e6b43", "EditorUI::selectObject @ 0x14011059c", "EditorUI::selectObject @ 0x1401105cc", "EditorUI::onDeselectAll @ 0x140111476", "EditorUI::onPlaytest @ 0x140112122", "EditorUI::pasteObjects @ 0x140114199", "EditorUI::createSmartObjectsFromTemplate @ 0x140116ec2", "EditorUI::createSmartObjectsFromTemplate @ 0x14011760f", "EditorUI::createSmartObjectsFromType @ 0x140117f71", "EditorUI::createSmartObjectsFromType @ 0x1401182e7", "EditorUI::createNewKeyframeAnim @ 0x1401193ee", "EditorUI::keyDown @ 0x140125481", "LevelEditorLayer::handleAction @ 0x1402d6aca", "LevelEditorLayer::breakApartTextObject @ 0x1402df61d", "SetupKeyframePopup::onCustomButton @ 0x140426878", "SetupKeyframePopup::onCustomButton @ 0x140426a74", "<???> @ 0x1406c8f64"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}