//
// SetGroupIDLayer::updateEditorOrder from 0x100316ea0 to 0x100316f50 (176 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::textChanged @ 0x100317868
//
// 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; // rdi
unsigned int v3; // r14d
_DWORD *v4; // r15
a1->m_channelOrderEdited = 1;
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
if ( ((unsigned __int8 (__fastcall *)(GameObject *))m_targetObject->canBeOrdered)(m_targetObject) )
HIDWORD(a1->m_targetObject[1].m_pobTexture) = a1->m_orderValue;
}
else if ( (unsigned int)sub_100720070(a1->m_targetObjects) )
{
v3 = 0;
do
{
v4 = (_DWORD *)sub_1007200C0(a1->m_targetObjects, v3);
if ( (*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 1680LL))(v4) )
v4[443] = a1->m_orderValue;
++v3;
}
while ( v3 < (unsigned int)sub_100720070(a1->m_targetObjects) );
}
}