//
// SetGroupIDLayer::updateEditorLayerID from 0x10003e70c to 0x10003e774 (104 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x10003cde0
// > SetGroupIDLayer::onArrow @ 0x10003e6ac
// > SetGroupIDLayer::textChanged @ 0x10003ece8
//
// 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 __fastcall SetGroupIDLayer::updateEditorLayerID(SetGroupIDLayer *a1)
{
GameObject *m_targetObject; // x8
__int64 v3; // x20
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
m_targetObject->m_editorLayer = a1->m_editorLayerValue;
}
else if ( (unsigned int)sub_10024A36C(a1->m_targetObjects) )
{
v3 = 0;
do
{
*(_WORD *)(sub_10024A388(a1->m_targetObjects, v3) + 1202) = a1->m_editorLayerValue;
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(a1->m_targetObjects) );
}
}