{"type": "func", "start": 4299058760, "end": 4299058992, "name": "EditorUI::selectObject", "pseudocode": "// \n// EditorUI::selectObject from 0x1003e6e48 to 0x1003e6f30 (232 bytes)\n// \n// 7 xrefs:\n// > EditorUI::clickOnPosition @ 0x1003e6800\n// > EditorUI::findAndSelectObject @ 0x1003ea064\n// > EditorUI::onCreateObject @ 0x1003eb5c8\n// > EditorUI::onCreateObject @ 0x1003eb630\n// > EditorUI::pasteObjects @ 0x1003ece2c\n// > EditorUI::selectObjects @ 0x1003ed96c\n// > EditorUI::ccTouchEnded @ 0x1003f95fc\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; // w1\n  cocos2d::CCArray *StickyGroup; // x0\n  cocos2d::CCArray *v7; // x1\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 >= 1)\n      && (StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, m_linkedGroup)) != nullptr\n      && (unsigned int)sub_10024A36C((__int64)StickyGroup) >= 2 )\n    {\n      EditorUI::deselectAll(a1);\n      v7 = (cocos2d::CCArray *)sub_10024A1B8((__int64)a2);\n      EditorUI::selectObjects(a1, v7, 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 0x1003e6e48 to 0x1003e6f30 (232 bytes)\n; \n; 7 xrefs:\n; > EditorUI::clickOnPosition @ 0x1003e6800\n; > EditorUI::findAndSelectObject @ 0x1003ea064\n; > EditorUI::onCreateObject @ 0x1003eb5c8\n; > EditorUI::onCreateObject @ 0x1003eb630\n; > EditorUI::pasteObjects @ 0x1003ece2c\n; > EditorUI::selectObjects @ 0x1003ed96c\n; > EditorUI::ccTouchEnded @ 0x1003f95fc\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003e6e48\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003e6e4c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003e6e50\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003e6e54\nMOV             X20, X1                                                ; +0x10, 0x1003e6e58\nMOV             X19, X0                                                ; +0x14, 0x1003e6e5c\nTBNZ            W2, #0, loc_1003E6E70                                  ; +0x18, 0x1003e6e60\nMOV             X1, X20                                                ; +0x1c, 0x1003e6e64\nBL              EditorUI__canSelectObject                              ; +0x20, 0x1003e6e68\nCBZ             W0, loc_1003E6F20                                      ; +0x24, 0x1003e6e6c\nLDRB            W8, [X19,#0x30B]                                       ; +0x28, 0x1003e6e70\nCMP             W8, #1                                                 ; +0x2c, 0x1003e6e74\nB.NE            loc_1003E6ED4                                          ; +0x30, 0x1003e6e78\nLDRB            W8, [X19,#0x30C]                                       ; +0x34, 0x1003e6e7c\nTBNZ            W8, #0, loc_1003E6ED4                                  ; +0x38, 0x1003e6e80\nLDR             W1, [X20,#0x368]                                       ; +0x3c, 0x1003e6e84\nCMP             W1, #1                                                 ; +0x40, 0x1003e6e88\nB.LT            loc_1003E6ED4                                          ; +0x44, 0x1003e6e8c\nLDR             X0, [X19,#0x4E8]                                       ; +0x48, 0x1003e6e90\nBL              GJBaseGameLayer__getStickyGroup                        ; +0x4c, 0x1003e6e94\nCBZ             X0, loc_1003E6ED4                                      ; +0x50, 0x1003e6e98\nBL              sub_10024A36C                                          ; +0x54, 0x1003e6e9c\nCMP             W0, #2                                                 ; +0x58, 0x1003e6ea0\nB.CC            loc_1003E6ED4                                          ; +0x5c, 0x1003e6ea4\nMOV             X0, X19                                                ; +0x60, 0x1003e6ea8\nBL              EditorUI__deselectAll                                  ; +0x64, 0x1003e6eac\nMOV             X0, X20                                                ; +0x68, 0x1003e6eb0\nBL              sub_10024A1B8                                          ; +0x6c, 0x1003e6eb4\nMOV             X1, X0                                                 ; +0x70, 0x1003e6eb8\nMOV             X0, X19                                                ; +0x74, 0x1003e6ebc\nMOV             W2, #0                                                 ; +0x78, 0x1003e6ec0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x7c, 0x1003e6ec4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x80, 0x1003e6ec8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x84, 0x1003e6ecc\nB               EditorUI__selectObjects                                ; +0x88, 0x1003e6ed0\nMOV             W21, #1                                                ; +0x8c, 0x1003e6ed4\nSTRB            W21, [X19,#0x30A]                                      ; +0x90, 0x1003e6ed8\nMOV             X0, X19                                                ; +0x94, 0x1003e6edc\nBL              EditorUI__deselectAll                                  ; +0x98, 0x1003e6ee0\nSTR             X20, [X19,#0x520]                                      ; +0x9c, 0x1003e6ee4\nLDR             X8, [X20]                                              ; +0xa0, 0x1003e6ee8\nLDR             X8, [X8,#0x5E8]                                        ; +0xa4, 0x1003e6eec\nMOV             X0, X20                                                ; +0xa8, 0x1003e6ef0\nMOV             W1, #0xFF00                                            ; +0xac, 0x1003e6ef4\nBLR             X8                                                     ; +0xb0, 0x1003e6ef8\nLDR             X8, [X19,#0x520]                                       ; +0xb4, 0x1003e6efc\nLDR             W9, [X19,#0x544]                                       ; +0xb8, 0x1003e6f00\nSTR             W9, [X8,#0x470]                                        ; +0xbc, 0x1003e6f04\nSTRB            W21, [X19,#0x2B0]                                      ; +0xc0, 0x1003e6f08\nMOV             X0, X19                                                ; +0xc4, 0x1003e6f0c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc8, 0x1003e6f10\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xcc, 0x1003e6f14\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xd0, 0x1003e6f18\nB               EditorUI__checkLiveColorSelect                         ; +0xd4, 0x1003e6f1c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xd8, 0x1003e6f20\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xdc, 0x1003e6f24\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xe0, 0x1003e6f28\nRET                                                                    ; +0xe4, 0x1003e6f2c", "xrefs": ["EditorUI::clickOnPosition @ 0x1003e6800", "EditorUI::findAndSelectObject @ 0x1003ea064", "EditorUI::onCreateObject @ 0x1003eb5c8", "EditorUI::onCreateObject @ 0x1003eb630", "EditorUI::pasteObjects @ 0x1003ece2c", "EditorUI::selectObjects @ 0x1003ed96c", "EditorUI::ccTouchEnded @ 0x1003f95fc"], "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"}