//
// GJPFollowCommandLayer::updateOffsetLabel from 0x4dd2f0 to 0x4dd386 (150 bytes)
//
// 1 xrefs:
// > GJPFollowCommandLayer::init @ 0x4de326
//
// 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 GJPFollowCommandLayer::updateOffsetLabel(GJPFollowCommandLayer *a1)
{
int m_offset; // r2
float v3; // r0
cocos2d::CCString *v4; // r0
char *CString; // r1
CCTextInputNode *m_offsetInput; // r7
char *v7; // r2
char v8[4]; // [sp+8h] [bp-Ch] BYREF
a1->m_disableTextDelegate = 1;
m_offset = a1->m_offset;
if ( m_offset == -99999 )
{
CString = (char *)&unk_939830;
}
else
{
v3 = floorf((float)m_offset / 3.0);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)(int)v3);
CString = (char *)cocos2d::CCString::getCString(v4);
}
m_offsetInput = a1->m_offsetInput;
sub_776584((int)v8, CString);
CCTextInputNode::setString((int)m_offsetInput, v8, v7);
sub_774008(v8);
a1->m_disableTextDelegate = 0;
}