//
// SetGroupIDLayer::updateEditorLayerID2 from 0x1403fcf10 to 0x1403fcf8c (124 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::onArrow @ 0x1403fb228
// > SetGroupIDLayer::textChanged @ 0x1403fbe12
// > SetGroupIDLayer::onNextFreeEditorLayer2 @ 0x1403fd0ba
// > ??> @ 0x1406d854c
//
// 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::updateEditorLayerID2(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_editorLayer2 = a1->m_editorLayer2Value;
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); LOWORD(v4[21].m_uUnknown) = a1->m_editorLayer2Value )
v4 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i++);
}
}