//
// GJPFollowCommandLayer::updateMaxSpeed from 0x924cd0 to 0x924d38 (104 bytes)
//
// 2 xrefs:
// > GJPFollowCommandLayer::textChanged @ 0x924e0c
// > ??> @ 0x45690
//
// 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::updateMaxSpeed(GJPFollowCommandLayer *a1)
{
EffectGameObject *m_gameObject; // x1
unsigned int v3; // w20
bool v4; // cf
unsigned int v5; // w1
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_followYMaxSpeed = a1->m_maxSpeed;
}
else
{
v3 = 0;
while ( 1 )
{
v4 = v3 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);
v5 = v3++;
if ( v4 )
break;
*(float *)(cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v5) + 1572) = a1->m_maxSpeed;
}
}
}