//
// SetGroupIDLayer::updateEditorLayerID from 0x9768e8 to 0x976950 (104 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::textChanged @ 0x979d90
// > SetGroupIDLayer::onArrow @ 0x97a0d4
// > SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x97cd4c
// > ??> @ 0x7b6f0
//
// 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; // x1
unsigned int v3; // w20
bool v4; // cf
unsigned int v5; // w1
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
m_targetObject->m_editorLayer = a1->m_editorLayerValue;
}
else
{
v3 = 0;
while ( 1 )
{
v4 = v3 >= (unsigned int)cocos2d::CCArray::count(a1->m_targetObjects);
v5 = v3++;
if ( v4 )
break;
*(_WORD *)(cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v5) + 1186) = a1->m_editorLayerValue;
}
}
}