//
// GJFollowCommandLayer::updateTextInputLabel2 from 0x4dbb8c to 0x4dbbfe (114 bytes)
//
// 2 xrefs:
// > GJFollowCommandLayer::init @ 0x4dc73c
// > GJFollowCommandLayer::onUpdateGroupID2 @ 0x4dca9c
//
// 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 GJFollowCommandLayer::updateTextInputLabel2(GJFollowCommandLayer *a1)
{
const char *m_followGroupID; // r1
cocos2d::CCString *v3; // r0
char *CString; // r1
CCTextInputNode *m_followIDInput; // r7
char *v6; // r2
char v7[4]; // [sp+8h] [bp-Ch] BYREF
m_followGroupID = (const char *)a1->m_followGroupID;
a1->m_disableTextDelegate = 1;
if ( m_followGroupID == (const char *)-99999 )
{
CString = (char *)&unk_939830;
}
else
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_followGroupID);
CString = (char *)cocos2d::CCString::getCString(v3);
}
m_followIDInput = a1->m_followIDInput;
sub_776584((int)v7, CString);
CCTextInputNode::setString((int)m_followIDInput, v7, v6);
sub_774008(v7);
a1->m_disableTextDelegate = 0;
}