//
// EditorUI::selectObjectsInRect from 0x10003cb70 to 0x10003cc70 (256 bytes)
//
// 1 xrefs:
// > EditorUI::ccTouchEnded @ 0x10004ffbe
//
// 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)
{
LevelEditorLayer *m_editorLayer; // r14
cocos2d::CCArray *v3; // r14
unsigned int v4; // r15d
__int64 v5; // rax
GameObject *m_selectedObject; // rcx
cocos2d::CCArray *SelectedObjects; // rax
UndoObject *v8; // rax
_BYTE v9[40]; // [rsp+8h] [rbp-28h] BYREF
m_editorLayer = a1->m_editorLayer;
*(double *)&a2.origin = sub_10028D180(v9);
v3 = LevelEditorLayer::objectsInRect(m_editorLayer, a2, (bool)v9);
if ( (unsigned int)sub_100720070(v3) )
{
if ( (unsigned int)sub_100720070(v3) )
{
v4 = 0;
while ( 1 )
{
v5 = sub_1007200C0(v3, v4);
m_selectedObject = a1->m_selectedObject;
if ( m_selectedObject )
{
if ( m_selectedObject->m_uniqueID != *(_DWORD *)(v5 + 916) )
break;
}
if ( !(unsigned __int8)sub_100720160(a1->m_selectedObjects, v5) )
break;
if ( ++v4 >= (unsigned int)sub_100720070(v3) )
goto LABEL_10;
}
SelectedObjects = EditorUI::getSelectedObjects(a1);
v8 = UndoObject::createWithArray(SelectedObjects, Select);
v8->m_redo = 0;
LevelEditorLayer::addToUndoList(a1->m_editorLayer, v8, 0);
}
LABEL_10:
EditorUI::selectObjects(a1, v3, 0);
EditorUI::updateObjectInfoLabel(a1);
((void (__fastcall *)(EditorUI *))a1->updateScaleControl)(a1);
}
}