//
// SetGroupIDLayer::updateOrderChannelLabel from 0x509fd0 to 0x50a056 (134 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::init @ 0x50b04a
// > SetGroupIDLayer::onArrow @ 0x50bb3c
// > SetGroupIDLayer::onNextFreeOrderChannel @ 0x50d4b8
//
// 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::updateOrderChannelLabel(SetGroupIDLayer *a1)
{
const char *m_channelValue; // r1
CCTextInputNode *m_channelInput; // r7
char *v4; // r2
cocos2d::CCString *v5; // r0
char *CString; // r0
char v7[4]; // [sp+8h] [bp-8h] BYREF
m_channelValue = (const char *)a1->m_channelValue;
m_channelInput = a1->m_channelInput;
a1->m_editorLayerEdited = 1;
if ( m_channelValue )
{
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_channelValue);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_776584((int)v7, CString);
}
else
{
sub_776584((int)v7, (char *)&unk_939830);
}
CCTextInputNode::setString((int)m_channelInput, v7, v4);
sub_774008(v7);
a1->m_editorLayerEdited = 0;
}