//
// EditorUI::selectObject from 0xbdcb18 to 0xbdcc04 (236 bytes)
//
// 9 xrefs:
// > EditorUI::onCreateObject @ 0x7ca208
// > EditorUI::onCreateObject @ 0x7ca5c4
// > EditorUI::createGradientFromSelection @ 0x7cad44
// > EditorUI::clickOnPosition @ 0x7d1ce4
// > EditorUI::ccTouchEnded @ 0xbd68b4
// > EditorUI::pasteObjects @ 0xbd9cc4
// > EditorUI::selectObjects @ 0xbdd090
// > EditorUI::processSelectObject @ 0xbdd528
// > ??> @ 0xff7f0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:03:43 +0000
//
__int64 __fastcall EditorUI::selectObject(EditorUI *this, GameObject *a2, char a3)
{
int v5; // w1
cocos2d::CCArray *StickyGroup; // x0
cocos2d::CCObject *v7; // x1
cocos2d::CCArray *v8; // x0
__int64 result; // x0
if ( a3 || (result = EditorUI::canSelectObject(this, a2), (_BYTE)result) )
{
if ( *((_BYTE *)this + 867)
&& !*((_BYTE *)this + 868)
&& (v5 = *((_DWORD *)a2 + 218), v5 > 0)
&& (StickyGroup = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup(
*((cocos2d::CCDictionary ***)this + 180),
v5)) != nullptr
&& (unsigned int)cocos2d::CCArray::count(StickyGroup) > 1 )
{
EditorUI::deselectAll((GameObject **)this);
v8 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(a2, v7);
return EditorUI::selectObjects(this, v8, 0);
}
else
{
*((_BYTE *)this + 866) = 1;
EditorUI::deselectAll((GameObject **)this);
*((_QWORD *)this + 187) = a2;
(*(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)a2 + 1528LL))(a2, 65280);
*(_DWORD *)(*((_QWORD *)this + 187) + 1136LL) = *((_DWORD *)this + 385);
*((_BYTE *)this + 776) = 1;
return EditorUI::checkLiveColorSelect((__int64)this);
}
}
return result;
}