//
// SetGroupIDLayer::updateEditorOrder from 0x979ad0 to 0x979b90 (192 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::textChanged @ 0x979e08
// > SetGroupIDLayer::onArrow @ 0x97a074
// > ??> @ 0xa3950
//
// 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::updateEditorOrder(SetGroupIDLayer *a1)
{
GameObject *m_targetObject; // x0
unsigned int v3; // w19
bool v4; // cf
unsigned int v5; // w1
_DWORD *v6; // x21
m_targetObject = a1->m_targetObject;
v3 = 0;
a1->m_channelOrderEdited = 1;
if ( m_targetObject )
{
if ( m_targetObject->canBeOrdered(m_targetObject) )
HIDWORD(a1->m_targetObject[1].m_pobTexture) = a1->m_orderValue;
}
else
{
while ( 1 )
{
v4 = v3 >= (unsigned int)cocos2d::CCArray::count(a1->m_targetObjects);
v5 = v3++;
if ( v4 )
break;
while ( 1 )
{
v6 = (_DWORD *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v5);
if ( !(*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v6 + 1680LL))(v6) )
break;
v6[439] = a1->m_orderValue;
v4 = v3 >= (unsigned int)cocos2d::CCArray::count(a1->m_targetObjects);
v5 = v3++;
if ( v4 )
return;
}
}
}
}