//
// SetGroupIDLayer::updateEditorLayerID from 0x509b28 to 0x509b60 (56 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::textChanged @ 0x50b9d4
// > SetGroupIDLayer::onArrow @ 0x50bae8
// > SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x50d3e2
//
// 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; // r4
int v3; // r0
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
m_targetObject->m_editorLayer = a1->m_editorLayerValue;
}
else
{
while ( (unsigned int)m_targetObject < cocos2d::CCArray::count(a1->m_targetObjects) )
{
v3 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, (unsigned int)m_targetObject);
m_targetObject = (GameObject *)((char *)m_targetObject + 1);
*(_WORD *)(v3 + 1030) = a1->m_editorLayerValue;
}
}
}