//
// EditorUI::selectObject from 0x6f4528 to 0x6f45be (150 bytes)
//
// 7 xrefs:
// > EditorUI::onCreateObject @ 0x4874c6
// > EditorUI::createGradientFromSelection @ 0x487bb6
// > EditorUI::clickOnPosition @ 0x48c802
// > EditorUI::ccTouchEnded @ 0x6f0da0
// > EditorUI::pasteObjects @ 0x6f2edc
// > EditorUI::selectObjects @ 0x6f48ea
// > EditorUI::processSelectObject @ 0x6f4b88
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:57:38 +0000
//
EditorUI *__fastcall EditorUI::selectObject(EditorUI *this, GameObject *a2, int a3)
{
EditorUI *result; // r0
int v6; // r1
cocos2d::CCArray *StickyGroup; // r0
cocos2d::CCObject *v8; // r1
cocos2d::CCArray *v9; // r1
if ( a3 || (result = (EditorUI *)EditorUI::canSelectObject(this, (GameManager **)a2)) != nullptr )
{
if ( *((_BYTE *)this + 643)
&& !*((_BYTE *)this + 644)
&& (v6 = *((_DWORD *)a2 + 185), v6 > 0)
&& (StickyGroup = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup(
*((cocos2d::CCDictionary ***)this + 236),
v6)) != nullptr
&& cocos2d::CCArray::count(StickyGroup) > 1u )
{
EditorUI::deselectAll((GameObject **)this);
v9 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(a2, v8);
return (EditorUI *)EditorUI::selectObjects(this, v9, 0);
}
else
{
*((_BYTE *)this + 642) = 1;
EditorUI::deselectAll((GameObject **)this);
*((_DWORD *)this + 249) = a2;
(*(void (__fastcall **)(GameObject *, int))(*(_DWORD *)a2 + 764))(a2, 65280);
*(_DWORD *)(*((_DWORD *)this + 249) + 992) = *((_DWORD *)this + 255);
*((_BYTE *)this + 588) = 1;
return EditorUI::checkLiveColorSelect(this);
}
}
return result;
}