//
// EditorPauseLayer::onSelectAll from 0x1400dcda0 to 0x1400dceca (298 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::customSetup @ 0x1400db564
// > ??> @ 0x1406c8958
//
// 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 EditorPauseLayer::onSelectAll(EditorPauseLayer *a1, cocos2d::CCObject *a2)
{
EditorUI *m_editorUI; // rdi
cocos2d::CCArray *m_objects; // rsi
unsigned int v4; // ebx
cocos2d::CCArray *i; // rbp
struct cocos2d::CCObject *v6; // rax
int m_uUnknown_low; // edx
int m_currentLayer; // r8d
GJRotationControl *m_rotationControl; // rcx
m_editorUI = a1->m_editorLayer->m_editorUI;
m_objects = m_editorUI->m_editorLayer->m_objects;
v4 = 0;
for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v4 < cocos2d::CCArray::count(m_objects); ++v4 )
{
v6 = cocos2d::CCArray::objectAtIndex(m_objects, v4);
m_uUnknown_low = SLOWORD(v6[21].m_uUnknown);
m_currentLayer = m_editorUI->m_editorLayer->m_currentLayer;
if ( !LOWORD(v6[21].m_uUnknown) )
m_uUnknown_low = -1;
if ( (_WORD)m_currentLayer == 0xFFFF
|| m_currentLayer == SHIWORD(v6[21].m_uIndexInArray)
|| m_currentLayer == m_uUnknown_low )
{
cocos2d::CCArray::addObject(i, v6);
}
}
EditorUI::processSelectObjects(m_editorUI, i);
EditorUI::updateButtons(m_editorUI);
m_rotationControl = m_editorUI->m_rotationControl;
m_editorUI->m_rotationTouchID = -1;
if ( m_rotationControl->isVisible(m_rotationControl) )
{
m_editorUI->m_rotationControl->setVisible(m_editorUI->m_rotationControl, 0);
GJRotationControl::finishTouch(m_editorUI->m_rotationControl);
}
EditorUI::deactivateScaleControl(m_editorUI);
EditorUI::deactivateTransformControl(m_editorUI);
EditorUI::updateObjectInfoLabel(m_editorUI);
}