//
// SetGroupIDLayer::updateOrderChannel from 0x10003e87c to 0x10003e91c (160 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::onNextFreeOrderChannel @ 0x10003db9c
// > SetGroupIDLayer::onArrow @ 0x10003e5dc
// > SetGroupIDLayer::textChanged @ 0x10003edf0
//
// 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::updateOrderChannel(SetGroupIDLayer *a1)
{
GameObject *m_targetObject; // x0
__int64 v3; // x20
_DWORD *v4; // x21
a1->m_channelUpdated = 1;
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
if ( ((unsigned int (__fastcall *)(GameObject *))m_targetObject->canBeOrdered)(m_targetObject) )
LODWORD(a1->m_targetObject[1].m_obRect.origin.x) = a1->m_channelValue;
}
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[444] = a1->m_channelValue;
v3 = (unsigned int)(v3 + 1);
}
while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(a1->m_targetObjects) );
}
}