{"type": "func", "start": 4295157632, "end": 4295157839, "name": "EditorUI::selectObject", "pseudocode": "// \n// EditorUI::selectObject from 0x10002e780 to 0x10002e84f (207 bytes)\n// \n// 7 xrefs:\n// > EditorUI::clickOnPosition @ 0x10002dbc8\n// > EditorUI::findAndSelectObject @ 0x100033426\n// > EditorUI::onCreateObject @ 0x1000350a6\n// > EditorUI::onCreateObject @ 0x1000351c3\n// > EditorUI::pasteObjects @ 0x10003b976\n// > EditorUI::selectObjects @ 0x10003c545\n// > EditorUI::ccTouchEnded @ 0x10005004f\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 __fastcall EditorUI::selectObject(EditorUI *a1, GameObject *a2, bool a3)\n{\n  int m_linkedGroup; // esi\n  cocos2d::CCArray *StickyGroup; // rax\n  cocos2d::CCArray *v6; // rax\n\n  if ( a3 || EditorUI::canSelectObject(a1, a2) )\n  {\n    if ( a1->m_stickyControlsEnabled\n      && !a1->m_linkControlsDisabled\n      && (m_linkedGroup = a2->m_linkedGroup, m_linkedGroup > 0)\n      && (StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, m_linkedGroup)) != nullptr\n      && (unsigned int)sub_100720070(StickyGroup) >= 2 )\n    {\n      EditorUI::deselectAll(a1);\n      v6 = (cocos2d::CCArray *)sub_10071FA80(a2);\n      EditorUI::selectObjects(a1, v6, 0);\n    }\n    else\n    {\n      a1->m_snapSelected = 1;\n      EditorUI::deselectAll(a1);\n      a1->m_selectedObject = a2;\n      ((void (__fastcall *)(GameObject *, __int64))a2->selectObject)(a2, 65280);\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 0x10002e780 to 0x10002e84f (207 bytes)\n; \n; 7 xrefs:\n; > EditorUI::clickOnPosition @ 0x10002dbc8\n; > EditorUI::findAndSelectObject @ 0x100033426\n; > EditorUI::onCreateObject @ 0x1000350a6\n; > EditorUI::onCreateObject @ 0x1000351c3\n; > EditorUI::pasteObjects @ 0x10003b976\n; > EditorUI::selectObjects @ 0x10003c545\n; > EditorUI::ccTouchEnded @ 0x10005004f\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\npush    rbp                                                            ; +0x0, 0x10002e780\nmov     rbp, rsp                                                       ; +0x1, 0x10002e781\npush    r14                                                            ; +0x4, 0x10002e784\npush    rbx                                                            ; +0x6, 0x10002e786\nmov     r14, rsi                                                       ; +0x7, 0x10002e787\nmov     rbx, rdi                                                       ; +0xa, 0x10002e78a\ntest    edx, edx                                                       ; +0xd, 0x10002e78d\njnz     short loc_10002E7A1                                            ; +0xf, 0x10002e78f\nmov     rsi, r14                                                       ; +0x11, 0x10002e791\ncall    EditorUI__canSelectObject                                      ; +0x14, 0x10002e794\ntest    al, al                                                         ; +0x19, 0x10002e799\njz      loc_10002E84A                                                  ; +0x1b, 0x10002e79b\ncmp     byte ptr [rbx+30Bh], 1                                         ; +0x21, 0x10002e7a1\njnz     short loc_10002E7FD                                            ; +0x28, 0x10002e7a8\ncmp     byte ptr [rbx+30Ch], 0                                         ; +0x2a, 0x10002e7aa\njnz     short loc_10002E7FD                                            ; +0x31, 0x10002e7b1\nmov     esi, [r14+368h]                                                ; +0x33, 0x10002e7b3\ntest    esi, esi                                                       ; +0x3a, 0x10002e7ba\njle     short loc_10002E7FD                                            ; +0x3c, 0x10002e7bc\nmov     rdi, [rbx+4E8h]                                                ; +0x3e, 0x10002e7be\ncall    GJBaseGameLayer__getStickyGroup                                ; +0x45, 0x10002e7c5\ntest    rax, rax                                                       ; +0x4a, 0x10002e7ca\njz      short loc_10002E7FD                                            ; +0x4d, 0x10002e7cd\nmov     rdi, rax                                                       ; +0x4f, 0x10002e7cf\ncall    sub_100720070                                                  ; +0x52, 0x10002e7d2\ncmp     eax, 2                                                         ; +0x57, 0x10002e7d7\njb      short loc_10002E7FD                                            ; +0x5a, 0x10002e7da\nmov     rdi, rbx                                                       ; +0x5c, 0x10002e7dc\ncall    EditorUI__deselectAll                                          ; +0x5f, 0x10002e7df\nmov     rdi, r14                                                       ; +0x64, 0x10002e7e4\ncall    sub_10071FA80                                                  ; +0x67, 0x10002e7e7\nmov     rdi, rbx                                                       ; +0x6c, 0x10002e7ec\nmov     rsi, rax                                                       ; +0x6f, 0x10002e7ef\nxor     edx, edx                                                       ; +0x72, 0x10002e7f2\npop     rbx                                                            ; +0x74, 0x10002e7f4\npop     r14                                                            ; +0x75, 0x10002e7f5\npop     rbp                                                            ; +0x77, 0x10002e7f7\njmp     EditorUI__selectObjects                                        ; +0x78, 0x10002e7f8\nmov     byte ptr [rbx+30Ah], 1                                         ; +0x7d, 0x10002e7fd\nmov     rdi, rbx                                                       ; +0x84, 0x10002e804\ncall    EditorUI__deselectAll                                          ; +0x87, 0x10002e807\nmov     [rbx+520h], r14                                                ; +0x8c, 0x10002e80c\nmov     rax, [r14]                                                     ; +0x93, 0x10002e813\nmov     rdi, r14                                                       ; +0x96, 0x10002e816\nmov     esi, 0FF00h                                                    ; +0x99, 0x10002e819\ncall    qword ptr [rax+5E8h]                                           ; +0x9e, 0x10002e81e\nmov     rax, [rbx+520h]                                                ; +0xa4, 0x10002e824\nmov     ecx, [rbx+544h]                                                ; +0xab, 0x10002e82b\nmov     [rax+470h], ecx                                                ; +0xb1, 0x10002e831\nmov     byte ptr [rbx+2B0h], 1                                         ; +0xb7, 0x10002e837\nmov     rdi, rbx                                                       ; +0xbe, 0x10002e83e\npop     rbx                                                            ; +0xc1, 0x10002e841\npop     r14                                                            ; +0xc2, 0x10002e842\npop     rbp                                                            ; +0xc4, 0x10002e844\njmp     EditorUI__checkLiveColorSelect                                 ; +0xc5, 0x10002e845\npop     rbx                                                            ; +0xca, 0x10002e84a\npop     r14                                                            ; +0xcb, 0x10002e84b\npop     rbp                                                            ; +0xcd, 0x10002e84d\nretn                                                                   ; +0xce, 0x10002e84e", "xrefs": ["EditorUI::clickOnPosition @ 0x10002dbc8", "EditorUI::findAndSelectObject @ 0x100033426", "EditorUI::onCreateObject @ 0x1000350a6", "EditorUI::onCreateObject @ 0x1000351c3", "EditorUI::pasteObjects @ 0x10003b976", "EditorUI::selectObjects @ 0x10003c545", "EditorUI::ccTouchEnded @ 0x10005004f"], "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"}