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