//
// SetGroupIDLayer::updateOrderChannel from 0x1403fd9c0 to 0x1403fda81 (193 bytes)
//
// 6 xrefs:
// > SetGroupIDLayer::onArrow @ 0x1403fb26d
// > SetGroupIDLayer::textChanged @ 0x1403fc052
// > SetGroupIDLayer::onNextFreeOrderChannel @ 0x1403fd91a
// > ??> @ 0x14069e5f8
// > ??> @ 0x14069e62c
// > ??> @ 0x1406d860c
//
// 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::updateOrderChannel(SetGroupIDLayer *a1)
{
GameObject *m_targetObject; // rcx
unsigned int i; // edi
struct cocos2d::CCObject *v4; // rsi
a1->m_channelUpdated = 1;
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
if ( m_targetObject->canBeOrdered(m_targetObject) )
LODWORD(a1->m_targetObject[1].m_obRect.size.width) = a1->m_channelValue;
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i);
if ( ((unsigned __int8 (__fastcall *)(struct cocos2d::CCObject *))v4->__vftable[21].isEqual)(v4) )
LODWORD(v4[32].__vftable) = a1->m_channelValue;
}
}
}