//
// EditorUI::processSelectObjects from 0x1401c9570 to 0x1401c9627 (183 bytes)
//
// 7 xrefs:
// > EditorUI::ccTouchEnded @ 0x1401c161f
// > EditorUI::selectAll @ 0x1401c7f7d
// > EditorUI::selectAllWithDirection @ 0x1401c814d
// > EditorUI::findObject @ 0x1401c93ff
// > ??> @ 0x1408a2e58
// > ??> @ 0x1408a2e68
// > ??> @ 0x14091a87c
//
// This function is hookable on this platform (idp: pc, 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 11:28:06 +0000
//
unsigned int __fastcall EditorUI::processSelectObjects(__int64 a1, cocos2d::CCArray *a2)
{
unsigned int result; // eax
unsigned int v5; // ebx
struct cocos2d::CCObject *v6; // rax
__int64 v7; // rdx
result = cocos2d::CCArray::count(a2);
if ( result )
{
v5 = 0;
if ( cocos2d::CCArray::count(a2) )
{
while ( 1 )
{
v6 = cocos2d::CCArray::objectAtIndex(a2, v5);
v7 = *(_QWORD *)(a1 + 1568);
if ( v7 )
{
if ( *(_DWORD *)(v7 + 924) != *((_DWORD *)v6 + 231) )
break;
}
if ( !cocos2d::CCArray::containsObject(*(cocos2d::CCArray **)(a1 + 944), v6) )
break;
if ( ++v5 >= cocos2d::CCArray::count(a2) )
goto LABEL_9;
}
EditorUI::createUndoSelectObject(a1, 0);
}
LABEL_9:
EditorUI::selectObjects(a1, a2, 0);
EditorUI::updateButtons(a1);
return EditorUI::updateSpecialUIElements(a1);
}
return result;
}