{"type": "func", "start": 7292200, "end": 7292350, "name": "EditorUI::selectObject", "pseudocode": "// \n// EditorUI::selectObject from 0x6f4528 to 0x6f45be (150 bytes)\n// \n// 7 xrefs:\n// > EditorUI::onCreateObject @ 0x4874c6\n// > EditorUI::createGradientFromSelection @ 0x487bb6\n// > EditorUI::clickOnPosition @ 0x48c802\n// > EditorUI::ccTouchEnded @ 0x6f0da0\n// > EditorUI::pasteObjects @ 0x6f2edc\n// > EditorUI::selectObjects @ 0x6f48ea\n// > EditorUI::processSelectObject @ 0x6f4b88\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:57:38 +0000\n// \n\nEditorUI *__fastcall EditorUI::selectObject(EditorUI *this, GameObject *a2, int a3)\n{\n  EditorUI *result; // r0\n  int v6; // r1\n  cocos2d::CCArray *StickyGroup; // r0\n  cocos2d::CCObject *v8; // r1\n  cocos2d::CCArray *v9; // r1\n\n  if ( a3 || (result = (EditorUI *)EditorUI::canSelectObject(this, (GameManager **)a2)) != nullptr )\n  {\n    if ( *((_BYTE *)this + 643)\n      && !*((_BYTE *)this + 644)\n      && (v6 = *((_DWORD *)a2 + 185), v6 > 0)\n      && (StickyGroup = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup(\n                                              *((cocos2d::CCDictionary ***)this + 236),\n                                              v6)) != nullptr\n      && cocos2d::CCArray::count(StickyGroup) > 1u )\n    {\n      EditorUI::deselectAll((GameObject **)this);\n      v9 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(a2, v8);\n      return (EditorUI *)EditorUI::selectObjects(this, v9, 0);\n    }\n    else\n    {\n      *((_BYTE *)this + 642) = 1;\n      EditorUI::deselectAll((GameObject **)this);\n      *((_DWORD *)this + 249) = a2;\n      (*(void (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 764))(a2, 65280);\n      *(_DWORD *)(*((_DWORD *)this + 249) + 992) = *((_DWORD *)this + 255);\n      *((_BYTE *)this + 588) = 1;\n      return EditorUI::checkLiveColorSelect(this);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::selectObject from 0x6f4528 to 0x6f45be (150 bytes)\n; \n; 7 xrefs:\n; > EditorUI::onCreateObject @ 0x4874c6\n; > EditorUI::createGradientFromSelection @ 0x487bb6\n; > EditorUI::clickOnPosition @ 0x48c802\n; > EditorUI::ccTouchEnded @ 0x6f0da0\n; > EditorUI::pasteObjects @ 0x6f2edc\n; > EditorUI::selectObjects @ 0x6f48ea\n; > EditorUI::processSelectObject @ 0x6f4b88\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:57:38 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x6f4528\nMOV             R4, R0                                                 ; +0x2, 0x6f452a\nMOV             R5, R1                                                 ; +0x4, 0x6f452c\nCBNZ            R2, loc_6F4538                                         ; +0x6, 0x6f452e\nBL              _ZN8EditorUI15canSelectObjectEP10GameObject; EditorUI::canSelectObject(GameObject *) ; +0x8, 0x6f4530\nCBNZ            R0, loc_6F4538                                         ; +0xc, 0x6f4534\nPOP             {R4-R6,PC}                                             ; +0xe, 0x6f4536\nLDRB.W          R3, [R4,#0x283]                                        ; +0x10, 0x6f4538\nCBZ             R3, loc_6F455E                                         ; +0x14, 0x6f453c\nLDRB.W          R6, [R4,#0x284]                                        ; +0x16, 0x6f453e\nCBNZ            R6, loc_6F455E                                         ; +0x1a, 0x6f4542\nLDR.W           R1, [R5,#0x2E4]; int                                   ; +0x1c, 0x6f4544\nCMP             R1, #0                                                 ; +0x20, 0x6f4548\nBLE             loc_6F455E                                             ; +0x22, 0x6f454a\nLDR.W           R0, [R4,#0x3B0]; this                                  ; +0x24, 0x6f454c\nBL              _ZN15GJBaseGameLayer14getStickyGroupEi; GJBaseGameLayer::getStickyGroup(int) ; +0x28, 0x6f4550\nCBZ             R0, loc_6F455E                                         ; +0x2c, 0x6f4554\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2e, 0x6f4556\nCMP             R0, #1                                                 ; +0x32, 0x6f455a\nBHI             loc_6F45A4                                             ; +0x34, 0x6f455c\nMOVS            R6, #1                                                 ; +0x36, 0x6f455e\nMOV             R0, R4; this                                           ; +0x38, 0x6f4560\nSTRB.W          R6, [R4,#0x282]                                        ; +0x3a, 0x6f4562\nBL              _ZN8EditorUI11deselectAllEv; EditorUI::deselectAll(void) ; +0x3e, 0x6f4566\nLDR             R2, =(byte_BF02D4 - 0x6F4574)                          ; +0x42, 0x6f456a\nSTR.W           R5, [R4,#0x3E4]                                        ; +0x44, 0x6f456c\nADD             R2, PC; byte_BF02D4                                    ; +0x48, 0x6f4570\nLDR             R0, [R5]                                               ; +0x4a, 0x6f4572\nLDRB            R1, [R2,#(byte_BF02D5 - 0xBF02D4)]                     ; +0x4c, 0x6f4574\nLDRB            R3, [R2]                                               ; +0x4e, 0x6f4576\nORR.W           R3, R3, R1,LSL#8                                       ; +0x50, 0x6f4578\nLDRB            R1, [R2,#(byte_BF02D6 - 0xBF02D4)]                     ; +0x54, 0x6f457c\nLDR.W           R2, [R0,#0x2FC]                                        ; +0x56, 0x6f457e\nMOV             R0, R5                                                 ; +0x5a, 0x6f4582\nORR.W           R1, R3, R1,LSL#16                                      ; +0x5c, 0x6f4584\nBLX             R2                                                     ; +0x60, 0x6f4588\nLDR.W           R3, [R4,#0x3E4]                                        ; +0x62, 0x6f458a\nLDR.W           R2, [R4,#0x3FC]                                        ; +0x66, 0x6f458e\nMOV             R0, R4; this                                           ; +0x6a, 0x6f4592\nSTR.W           R2, [R3,#0x3E0]                                        ; +0x6c, 0x6f4594\nSTRB.W          R6, [R4,#0x24C]                                        ; +0x70, 0x6f4598\nPOP.W           {R4-R6,LR}                                             ; +0x74, 0x6f459c\nB.W             _ZN8EditorUI20checkLiveColorSelectEv; EditorUI::checkLiveColorSelect(void) ; +0x78, 0x6f45a0\nMOV             R0, R4; this                                           ; +0x7c, 0x6f45a4\nBL              _ZN8EditorUI11deselectAllEv; EditorUI::deselectAll(void) ; +0x7e, 0x6f45a6\nMOV             R0, R5; this                                           ; +0x82, 0x6f45aa\nBL              _ZN7cocos2d7CCArray16createWithObjectEPNS_8CCObjectE; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x84, 0x6f45ac\nMOV             R2, R6; bool                                           ; +0x88, 0x6f45b0\nMOV             R1, R0; cocos2d::CCArray *                             ; +0x8a, 0x6f45b2\nMOV             R0, R4; this                                           ; +0x8c, 0x6f45b4\nPOP.W           {R4-R6,LR}                                             ; +0x8e, 0x6f45b6\nB.W             _ZN8EditorUI13selectObjectsEPN7cocos2d7CCArrayEb; EditorUI::selectObjects(cocos2d::CCArray *,bool) ; +0x92, 0x6f45ba", "xrefs": ["EditorUI::onCreateObject @ 0x4874c6", "EditorUI::createGradientFromSelection @ 0x487bb6", "EditorUI::clickOnPosition @ 0x48c802", "EditorUI::ccTouchEnded @ 0x6f0da0", "EditorUI::pasteObjects @ 0x6f2edc", "EditorUI::selectObjects @ 0x6f48ea", "EditorUI::processSelectObject @ 0x6f4b88"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}