//
// EditorUI::findAndSelectObject from 0x1003ea024 to 0x1003ea120 (252 bytes)
//
// 1 xrefs:
// > EditorUI::setIDPopupClosed @ 0x1003e9f94
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall EditorUI::findAndSelectObject(EditorUI *a1, int a2, bool a3)
{
LevelEditorLayer *m_editorLayer; // x0
GameObject *GameObject; // x0
GameObject *v6; // x20
cocos2d::CCLayer *m_objectLayer; // x21
const cocos2d::CCPoint *v8; // x0
CCCircleWave *v9; // x20
__int64 v10; // [xsp+0h] [xbp-30h] BYREF
__int64 v11; // [xsp+8h] [xbp-28h] BYREF
m_editorLayer = a1->m_editorLayer;
if ( a3 )
GameObject = LevelEditorLayer::findGameObject(m_editorLayer, a2);
else
GameObject = GJBaseGameLayer::tryGetObject(m_editorLayer, a2);
v6 = GameObject;
if ( GameObject )
{
EditorUI::selectObject(a1, GameObject, 0);
EditorUI::centerCameraOnObject(a1, v6);
m_objectLayer = a1->m_editorLayer->m_objectLayer;
v8 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(GameObject *))v6->getPosition)(v6);
cocos2d::CCNode::convertToWorldSpace(m_objectLayer, v8);
sub_1000229B8(&v10, &v11);
v9 = CCCircleWave::create(1.0, 50.0, 0.8, 0, 0);
v9->m_color.b = -1;
*(_WORD *)&v9->m_color.r = -1;
((void (__fastcall *)(CCCircleWave *, __int64 *))v9->setPosition)(v9, &v10);
((void (__fastcall *)(EditorUI *, CCCircleWave *, _QWORD))a1->addChild_0)(a1, v9, 0);
v9->m_circleMode = Outline;
}
}