//
// cocos2d::CCFollow::step from 0x5afe54 to 0x5afef0 (156 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::CCFollow::step(cocos2d::CCFollow *a1, float a2)
{
int v3; // r0
cocos2d::CCNode *m_pTarget; // r6
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7
float v6; // r8
float v7; // r0
cocos2d::CCNode *v8; // r7
void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
int v10; // r0
cocos2d *v11[2]; // [sp+4h] [bp-14h] BYREF
cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF
if ( LOBYTE(a1[1].m_uID) )
{
if ( !BYTE1(a1[1].m_uID) )
{
v3 = (*((int (__fastcall **)(cocos2d::CCFollow_vtbl *, _DWORD))a1[1].copyWithZone + 24))(
a1[1].__vftable,
LODWORD(a2));
cocos2d::CCPoint::operator-(v11, &a1[1].m_nLuaID, v3);
m_pTarget = a1->m_pTarget;
setPosition = m_pTarget->setPosition;
v6 = cocos2d::clampf(*(float *)v11, *(float *)&a1[1].m_eObjType, *(float *)&a1[1].m_uIndexInArray);
v7 = cocos2d::clampf(*(float *)&v11[1], *(float *)&a1[1].m_unknown2, *(float *)&a1[1].m_uUnknown);
cocos2d::CCPoint::CCPoint(&v12, v6, v7);
setPosition(m_pTarget, &v12);
}
}
else
{
v8 = a1->m_pTarget;
v9 = v8->setPosition;
v10 = (*((int (__fastcall **)(cocos2d::CCFollow_vtbl *, _DWORD))a1[1].copyWithZone + 24))(
a1[1].__vftable,
LODWORD(a2));
cocos2d::CCPoint::operator-(&v12, &a1[1].m_nLuaID, v10);
v9(v8, &v12);
}
}