{"type": "func", "start": 3812840, "end": 3812990, "name": "EditorUI::selectObject", "pseudocode": "// \n// EditorUI::selectObject from 0x3a2de8 to 0x3a2e7e (150 bytes)\n// \n// 6 xrefs:\n// > EditorUI::findAndSelectObject @ 0x3a2eb4\n// > EditorUI::selectObjects @ 0x3a3342\n// > EditorUI::pasteObjects @ 0x3a3784\n// > EditorUI::onCreateObject @ 0x3a3d54\n// > EditorUI::clickOnPosition @ 0x3a4afa\n// > EditorUI::ccTouchEnded @ 0x3a5894\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  int m_linkedGroup; // r1\n  cocos2d::CCArray *StickyGroup; // r0\n  GameObject_vtbl *v7; // r0\n  cocos2d::CCObject *v8; // r1\n  cocos2d::CCArray *v9; // r1\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      && cocos2d::CCArray::count(StickyGroup) > 1u )\n    {\n      EditorUI::deselectAll(a1);\n      v9 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)a2, v8);\n      EditorUI::selectObjects(a1, v9, 0);\n    }\n    else\n    {\n      a1->m_snapSelected = 1;\n      EditorUI::deselectAll(a1);\n      v7 = a2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      a1->m_selectedObject = a2;\n      ((void (__fastcall *)(GameObject *, int))v7->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 0x3a2de8 to 0x3a2e7e (150 bytes)\n; \n; 6 xrefs:\n; > EditorUI::findAndSelectObject @ 0x3a2eb4\n; > EditorUI::selectObjects @ 0x3a3342\n; > EditorUI::pasteObjects @ 0x3a3784\n; > EditorUI::onCreateObject @ 0x3a3d54\n; > EditorUI::clickOnPosition @ 0x3a4afa\n; > EditorUI::ccTouchEnded @ 0x3a5894\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            {R4-R6,LR}                                             ; +0x0, 0x3a2de8\nMOV             R4, R0                                                 ; +0x2, 0x3a2dea\nMOV             R5, R1                                                 ; +0x4, 0x3a2dec\nCBNZ            R2, loc_3A2DF8                                         ; +0x6, 0x3a2dee\nBL              _ZN8EditorUI15canSelectObjectEP10GameObject; EditorUI::canSelectObject(GameObject *) ; +0x8, 0x3a2df0\nCBNZ            R0, loc_3A2DF8                                         ; +0xc, 0x3a2df4\nPOP             {R4-R6,PC}                                             ; +0xe, 0x3a2df6\nLDRB.W          R3, [R4,#0x247]                                        ; +0x10, 0x3a2df8\nCBZ             R3, loc_3A2E1E                                         ; +0x14, 0x3a2dfc\nLDRB.W          R6, [R4,#0x248]                                        ; +0x16, 0x3a2dfe\nCBNZ            R6, loc_3A2E1E                                         ; +0x1a, 0x3a2e02\nLDR.W           R1, [R5,#0x2DC]; int                                   ; +0x1c, 0x3a2e04\nCMP             R1, #0                                                 ; +0x20, 0x3a2e08\nBLE             loc_3A2E1E                                             ; +0x22, 0x3a2e0a\nLDR.W           R0, [R4,#0x340]; this                                  ; +0x24, 0x3a2e0c\nBL              _ZN15GJBaseGameLayer14getStickyGroupEi; GJBaseGameLayer::getStickyGroup(int) ; +0x28, 0x3a2e10\nCBZ             R0, loc_3A2E1E                                         ; +0x2c, 0x3a2e14\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2e, 0x3a2e16\nCMP             R0, #1                                                 ; +0x32, 0x3a2e1a\nBHI             loc_3A2E64                                             ; +0x34, 0x3a2e1c\nMOVS            R6, #1                                                 ; +0x36, 0x3a2e1e\nMOV             R0, R4; this                                           ; +0x38, 0x3a2e20\nSTRB.W          R6, [R4,#0x246]                                        ; +0x3a, 0x3a2e22\nBL              _ZN8EditorUI11deselectAllEv; EditorUI::deselectAll(void) ; +0x3e, 0x3a2e26\nLDR             R2, =(word_9AA83C - 0x3A2E32)                          ; +0x42, 0x3a2e2a\nLDR             R0, [R5]                                               ; +0x44, 0x3a2e2c\nADD             R2, PC; word_9AA83C                                    ; +0x46, 0x3a2e2e\nSTR.W           R5, [R4,#0x374]                                        ; +0x48, 0x3a2e30\nLDRB            R1, [R2,#(byte_9AA843 - 0x9AA83C)]                     ; +0x4c, 0x3a2e34\nLDRB            R3, [R2,#(byte_9AA842 - 0x9AA83C)]                     ; +0x4e, 0x3a2e36\nORR.W           R3, R3, R1,LSL#8                                       ; +0x50, 0x3a2e38\nLDRB            R1, [R2,#(byte_9AA844 - 0x9AA83C)]                     ; +0x54, 0x3a2e3c\nLDR.W           R2, [R0,#0x2F4]                                        ; +0x56, 0x3a2e3e\nMOV             R0, R5                                                 ; +0x5a, 0x3a2e42\nORR.W           R1, R3, R1,LSL#16                                      ; +0x5c, 0x3a2e44\nBLX             R2                                                     ; +0x60, 0x3a2e48\nLDR.W           R2, [R4,#0x388]                                        ; +0x62, 0x3a2e4a\nLDR.W           R3, [R4,#0x374]                                        ; +0x66, 0x3a2e4e\nMOV             R0, R4; this                                           ; +0x6a, 0x3a2e52\nSTR.W           R2, [R3,#0x3D8]                                        ; +0x6c, 0x3a2e54\nSTRB.W          R6, [R4,#0x210]                                        ; +0x70, 0x3a2e58\nPOP.W           {R4-R6,LR}                                             ; +0x74, 0x3a2e5c\nB.W             _ZN8EditorUI20checkLiveColorSelectEv; EditorUI::checkLiveColorSelect(void) ; +0x78, 0x3a2e60\nMOV             R0, R4; this                                           ; +0x7c, 0x3a2e64\nBL              _ZN8EditorUI11deselectAllEv; EditorUI::deselectAll(void) ; +0x7e, 0x3a2e66\nMOV             R0, R5; this                                           ; +0x82, 0x3a2e6a\nBL              _ZN7cocos2d7CCArray16createWithObjectEPNS_8CCObjectE; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x84, 0x3a2e6c\nMOV             R2, R6; bool                                           ; +0x88, 0x3a2e70\nMOV             R1, R0; cocos2d::CCArray *                             ; +0x8a, 0x3a2e72\nMOV             R0, R4; this                                           ; +0x8c, 0x3a2e74\nPOP.W           {R4-R6,LR}                                             ; +0x8e, 0x3a2e76\nB.W             _ZN8EditorUI13selectObjectsEPN7cocos2d7CCArrayEb; EditorUI::selectObjects(cocos2d::CCArray *,bool) ; +0x92, 0x3a2e7a", "xrefs": ["EditorUI::findAndSelectObject @ 0x3a2eb4", "EditorUI::selectObjects @ 0x3a3342", "EditorUI::pasteObjects @ 0x3a3784", "EditorUI::onCreateObject @ 0x3a3d54", "EditorUI::clickOnPosition @ 0x3a4afa", "EditorUI::ccTouchEnded @ 0x3a5894"], "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"}