//
// SetGroupIDLayer::updateEditorOrder from 0x10003e7dc to 0x10003e87c (160 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::onArrow @ 0x10003e6d0
// > SetGroupIDLayer::textChanged @ 0x10003edcc
//
// 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::updateEditorOrder(SetGroupIDLayer *a1)
{
GameObject *m_targetObject; // x0
__int64 v3; // x20
_DWORD *v4; // x21
a1->m_channelOrderEdited = 1;
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
if ( ((unsigned int (__fastcall *)(GameObject *))m_targetObject->canBeOrdered)(m_targetObject) )
HIDWORD(a1->m_targetObject[1].m_pobTexture) = a1->m_orderValue;
}
else if ( (unsigned int)sub_10024A36C(a1->m_targetObjects) )
{
v3 = 0;
do
{
v4 = (_DWORD *)sub_10024A388(a1->m_targetObjects, v3);
if ( (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 1680LL))(v4) )
v4[443] = a1->m_orderValue;
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(a1->m_targetObjects) );
}
}