//
// GJPFollowCommandLayer::updateOffsetLabel from 0x100160218 to 0x1001602b4 (156 bytes)
//
// 1 xrefs:
// > GJPFollowCommandLayer::init @ 0x10015fccc
//
// 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 __fastcall GJPFollowCommandLayer::updateOffsetLabel(GJPFollowCommandLayer *a1)
{
int m_offset; // w8
char *CString; // x1
cocos2d::CCString *v4; // x0
CCTextInputNode *m_offsetInput; // x20
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
a1->m_disableTextDelegate = 1;
m_offset = a1->m_offset;
if ( m_offset == -99999 )
{
CString = "";
}
else
{
v4 = (cocos2d::CCString *)sub_100268F4C("%i", vcvtms_s32_f32((float)m_offset / 3.0));
CString = (char *)cocos2d::CCString::getCString(v4);
}
m_offsetInput = a1->m_offsetInput;
sub_100009900(__p, CString);
CCTextInputNode::setString(m_offsetInput, __p);
if ( v7 < 0 )
operator delete(__p[0]);
a1->m_disableTextDelegate = 0;
}