//
// SetGroupIDLayer::updateGroupIDLabel from 0x509ebc to 0x509f2e (114 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::onPaste @ 0x50a13c
// > SetGroupIDLayer::init @ 0x50b0bc
// > SetGroupIDLayer::onArrow @ 0x50bacc
// > SetGroupIDLayer::onNextGroupID1 @ 0x50d382
//
// 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::updateGroupIDLabel(SetGroupIDLayer *a1)
{
const char *m_groupIDValue; // r1
cocos2d::CCString *v3; // r0
char *CString; // r1
CCTextInputNode *m_groupIDInput; // r7
char *v6; // r2
char v7[4]; // [sp+8h] [bp-Ch] BYREF
m_groupIDValue = (const char *)a1->m_groupIDValue;
a1->m_editorLayerEdited = 1;
if ( (int)m_groupIDValue < 0 )
{
CString = (char *)&unk_939830;
}
else
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_groupIDValue);
CString = (char *)cocos2d::CCString::getCString(v3);
}
m_groupIDInput = a1->m_groupIDInput;
sub_776584((int)v7, CString);
CCTextInputNode::setString((int)m_groupIDInput, v7, v6);
sub_774008(v7);
a1->m_editorLayerEdited = 0;
}