//
// GJPFollowCommandLayer::updateMaxSpeedLabel from 0x1001602d0 to 0x100160364 (148 bytes)
//
// 1 xrefs:
// > GJPFollowCommandLayer::init @ 0x10015fcd4
//
// 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::updateMaxSpeedLabel(GJPFollowCommandLayer *a1)
{
float m_maxSpeed; // s0
cocos2d::CCString *v3; // x0
char *CString; // x1
CCTextInputNode *m_maxSpeedInput; // x20
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
a1->m_disableTextDelegate = 1;
m_maxSpeed = a1->m_maxSpeed;
if ( m_maxSpeed == -99999.0 )
{
CString = "";
}
else
{
v3 = (cocos2d::CCString *)sub_100268F4C("%0.1f", m_maxSpeed);
CString = (char *)cocos2d::CCString::getCString(v3);
}
m_maxSpeedInput = a1->m_maxSpeedInput;
sub_100009900(__p, CString);
CCTextInputNode::setString(m_maxSpeedInput, __p);
if ( v7 < 0 )
operator delete(__p[0]);
a1->m_disableTextDelegate = 0;
}