//
// SetGroupIDLayer::updateEditorLayerID from 0x1403fce90 to 0x1403fcf0c (124 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::onArrow @ 0x1403fb1ff
// > SetGroupIDLayer::textChanged @ 0x1403fbd52
// > SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x1403fd01a
// > ??> @ 0x1406d8540
//
// 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 SetGroupIDLayer::updateEditorLayerID(SetGroupIDLayer *a1)
{
GameObject *m_targetObject; // rcx
unsigned int i; // edi
struct cocos2d::CCObject *v4; // rax
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
m_targetObject->m_editorLayer = a1->m_editorLayerValue;
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); HIWORD(v4[21].m_uIndexInArray) = a1->m_editorLayerValue )
v4 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i++);
}
}