//
// EditorUI::selectObjectsInRect from 0x1003ede5c to 0x1003edf40 (228 bytes)
//
// 1 xrefs:
// > EditorUI::ccTouchEnded @ 0x1003f95c4
//
// 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::selectObjectsInRect(EditorUI *a1, cocos2d::CCRect a2)
{
__int64 v2; // x1
LevelEditorLayer *m_editorLayer; // x20
double v5; // d0
cocos2d::CCArray *v6; // x20
unsigned int v7; // w21
__int64 v8; // x0
GameObject *m_selectedObject; // x8
float v10; // s1
float v11; // s2
float v12; // s3
_QWORD v13[2]; // [xsp+0h] [xbp-30h] BYREF
cocos2d::CCRect v14; // 0:kr00_16.16
m_editorLayer = a1->m_editorLayer;
v5 = sub_100022B98(v13, v2);
v14.origin.x = *(float *)&v5;
v14.origin.y = v10;
v14.size.width = v11;
v14.size.height = v12;
v6 = LevelEditorLayer::objectsInRect(m_editorLayer, v14, (bool)v13);
if ( (unsigned int)sub_10024A36C((__int64)v6) )
{
if ( (unsigned int)sub_10024A36C((__int64)v6) )
{
v7 = 0;
while ( 1 )
{
v8 = sub_10024A388((__int64)v6, v7);
m_selectedObject = a1->m_selectedObject;
if ( m_selectedObject )
{
if ( m_selectedObject->m_uniqueID != *(_DWORD *)(v8 + 916) )
break;
}
if ( (sub_10024A420((__int64)a1->m_selectedObjects, v8) & 1) == 0 )
break;
if ( ++v7 >= (unsigned int)sub_10024A36C((__int64)v6) )
goto LABEL_10;
}
EditorUI::createUndoSelectObject(a1, 0);
}
LABEL_10:
EditorUI::selectObjects(a1, v6, 0);
EditorUI::updateObjectInfoLabel(a1);
((void (__fastcall *)(EditorUI *))a1->updateScaleControl)(a1);
}
}