//
// SetGroupIDLayer::updateEditorLabel from 0x509d3c to 0x509dae (114 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::onPaste @ 0x50a142
// > SetGroupIDLayer::init @ 0x50b0c2
// > SetGroupIDLayer::onArrow @ 0x50bade
// > SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x50d3e8
//
// 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::updateEditorLabel(SetGroupIDLayer *a1)
{
const char *m_editorLayerValue; // r1
cocos2d::CCString *v3; // r0
char *CString; // r1
CCTextInputNode *m_editorLayerInput; // r7
char *v6; // r2
char v7[4]; // [sp+8h] [bp-Ch] BYREF
m_editorLayerValue = (const char *)a1->m_editorLayerValue;
a1->m_editorLayerEdited = 1;
if ( (int)m_editorLayerValue < 0 )
{
CString = (char *)&unk_939830;
}
else
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_editorLayerValue);
CString = (char *)cocos2d::CCString::getCString(v3);
}
m_editorLayerInput = a1->m_editorLayerInput;
sub_776584((int)v7, CString);
CCTextInputNode::setString((int)m_editorLayerInput, v7, v6);
sub_774008(v7);
a1->m_editorLayerEdited = 0;
}