{"type": "func", "start": 5369824560, "end": 5369824813, "name": "EditorUI::selectObject", "pseudocode": "// \n// EditorUI::selectObject from 0x140110530 to 0x14011062d (253 bytes)\n// \n// 7 xrefs:\n// > EditorUI::clickOnPosition @ 0x1400e2820\n// > EditorUI::findAndSelectObject @ 0x1400e6f3c\n// > EditorUI::onCreateObject @ 0x14010fa7f\n// > EditorUI::selectObjects @ 0x140110d4b\n// > EditorUI::pasteObjects @ 0x1401141bd\n// > EditorUI::ccTouchEnded @ 0x1401250e0\n// > <???> @ 0x1406c8ebc\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::selectObject(EditorUI *a1, GameObject *a2, bool a3)\n{\n  cocos2d::CCArray *v5; // rax\n  cocos2d::CCArray *v6; // rax\n  __int16 v7; // [rsp+40h] [rbp+18h] BYREF\n  char v8; // [rsp+42h] [rbp+1Ah]\n\n  LOBYTE(v7) = a3;\n  if ( EditorUI::canSelectObject(a1, a2) )\n  {\n    if ( a1->m_stickyControlsEnabled\n      && !a1->m_linkControlsDisabled\n      && a2->m_linkedGroup > 0\n      && (v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(\n                                     a1->m_editorLayer->m_linkedGroupDict,\n                                     a2->m_linkedGroup)) != nullptr\n      && cocos2d::CCArray::count(v5) > 1 )\n    {\n      EditorUI::deselectAll(a1);\n      v6 = cocos2d::CCArray::createWithObject(a2);\n      EditorUI::selectObjects(a1, v6, 0);\n    }\n    else\n    {\n      a1->m_snapSelected = 1;\n      EditorUI::deselectAll(a1);\n      v7 = -256;\n      v8 = 0;\n      a1->m_selectedObject = a2;\n      a2->selectObject(a2, (cocos2d::ccColor3B *)&v7);\n      LODWORD(a1->m_selectedObject->m_unk460) = a1->m_cycledObjectIndex;\n      a1->m_canActivateControls = 1;\n      EditorUI::checkLiveColorSelect(a1);\n    }\n  }\n}", "assembly": "; \n; EditorUI::selectObject from 0x140110530 to 0x14011062d (253 bytes)\n; \n; 7 xrefs:\n; > EditorUI::clickOnPosition @ 0x1400e2820\n; > EditorUI::findAndSelectObject @ 0x1400e6f3c\n; > EditorUI::onCreateObject @ 0x14010fa7f\n; > EditorUI::selectObjects @ 0x140110d4b\n; > EditorUI::pasteObjects @ 0x1401141bd\n; > EditorUI::ccTouchEnded @ 0x1401250e0\n; > <???> @ 0x1406c8ebc\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, 0x140110530\nmov     byte ptr [rsp+arg_10], r8b                                     ; +0x5, 0x140110535\npush    rdi                                                            ; +0xa, 0x14011053a\nsub     rsp, 20h                                                       ; +0xb, 0x14011053b\nmov     rdi, rdx                                                       ; +0xf, 0x14011053f\nmov     rbx, rcx                                                       ; +0x12, 0x140110542\ncall    EditorUI__canSelectObject                                      ; +0x15, 0x140110545\ntest    al, al                                                         ; +0x1a, 0x14011054a\njz      loc_140110622                                                  ; +0x1c, 0x14011054c\ncmp     byte ptr [rbx+323h], 0                                         ; +0x22, 0x140110552\njz      short loc_1401105C2                                            ; +0x29, 0x140110559\ncmp     byte ptr [rbx+324h], 0                                         ; +0x2b, 0x14011055b\njnz     short loc_1401105C2                                            ; +0x32, 0x140110562\nmovsxd  rax, dword ptr [rdi+370h]                                      ; +0x34, 0x140110564\ntest    eax, eax                                                       ; +0x3b, 0x14011056b\njle     short loc_1401105C2                                            ; +0x3d, 0x14011056d\nmov     rcx, [rbx+500h]                                                ; +0x3f, 0x14011056f\nmov     rdx, rax                                                       ; +0x46, 0x140110576\nmov     rcx, [rcx+0FC0h]                                               ; +0x49, 0x140110579\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x50, 0x140110580\ntest    rax, rax                                                       ; +0x56, 0x140110586\njz      short loc_1401105C2                                            ; +0x59, 0x140110589\nmov     rcx, rax                                                       ; +0x5b, 0x14011058b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5e, 0x14011058e\ncmp     eax, 1                                                         ; +0x64, 0x140110594\njbe     short loc_1401105C2                                            ; +0x67, 0x140110597\nmov     rcx, rbx                                                       ; +0x69, 0x140110599\ncall    EditorUI__deselectAll                                          ; +0x6c, 0x14011059c\nmov     rcx, rdi                                                       ; +0x71, 0x1401105a1\ncall    cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x74, 0x1401105a4\nxor     r8d, r8d                                                       ; +0x7a, 0x1401105aa\nmov     rcx, rbx                                                       ; +0x7d, 0x1401105ad\nmov     rdx, rax                                                       ; +0x80, 0x1401105b0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x83, 0x1401105b3\nadd     rsp, 20h                                                       ; +0x88, 0x1401105b8\npop     rdi                                                            ; +0x8c, 0x1401105bc\njmp     EditorUI__selectObjects                                        ; +0x8d, 0x1401105bd\nmov     rcx, rbx                                                       ; +0x92, 0x1401105c2\nmov     byte ptr [rbx+322h], 1                                         ; +0x95, 0x1401105c5\ncall    EditorUI__deselectAll                                          ; +0x9c, 0x1401105cc\nmovzx   eax, cs:word_140529A4C                                         ; +0xa1, 0x1401105d1\nlea     rdx, [rsp+28h+arg_10]                                          ; +0xa8, 0x1401105d8\nmov     [rsp+28h+arg_10], ax                                           ; +0xad, 0x1401105dd\nmov     rcx, rdi                                                       ; +0xb2, 0x1401105e2\nmovzx   eax, cs:byte_140529A4E                                         ; +0xb5, 0x1401105e5\nmov     [rsp+28h+arg_12], al                                           ; +0xbc, 0x1401105ec\nmov     [rbx+538h], rdi                                                ; +0xc0, 0x1401105f0\nmov     rax, [rdi]                                                     ; +0xc7, 0x1401105f7\ncall    qword ptr [rax+550h]                                           ; +0xca, 0x1401105fa\nmov     rcx, [rbx+538h]                                                ; +0xd0, 0x140110600\nmov     eax, [rbx+55Ch]                                                ; +0xd7, 0x140110607\nmov     [rcx+478h], eax                                                ; +0xdd, 0x14011060d\nmov     rcx, rbx                                                       ; +0xe3, 0x140110613\nmov     byte ptr [rbx+2C8h], 1                                         ; +0xe6, 0x140110616\ncall    EditorUI__checkLiveColorSelect                                 ; +0xed, 0x14011061d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf2, 0x140110622\nadd     rsp, 20h                                                       ; +0xf7, 0x140110627\npop     rdi                                                            ; +0xfb, 0x14011062b\nretn                                                                   ; +0xfc, 0x14011062c", "xrefs": ["EditorUI::clickOnPosition @ 0x1400e2820", "EditorUI::findAndSelectObject @ 0x1400e6f3c", "EditorUI::onCreateObject @ 0x14010fa7f", "EditorUI::selectObjects @ 0x140110d4b", "EditorUI::pasteObjects @ 0x1401141bd", "EditorUI::ccTouchEnded @ 0x1401250e0", "<???> @ 0x1406c8ebc"], "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"}